/* ==========================================================================
   STILLHOUSE — components
   Each block is a Framer component. Comment markers: <!-- component: Name -->
   ========================================================================== */

/* --- Button ----------------------------------------------------------------
   Primary: pill, Olive fill, Linen label + arrow, 56px tall.
   Secondary: pill, 1px border, Ink label.
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: var(--button-height);
  padding-inline: 30px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.btn__arrow {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--action);
  color: var(--action-text);
}
.btn--primary:hover { background: #333D25; }

.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn--secondary:hover { background: var(--text); color: var(--bg); }

.btn--on-dark {
  background: var(--color-linen);
  color: var(--color-ink);
}

/* --- Navbar ----------------------------------------------------------------
   Transparent over the hero, solid Linen after scroll (variant set in A1).
   ------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 84px;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: max(20px, var(--gutter));
}
.navbar__wordmark {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.navbar__links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar__links a {
  font-size: 15px;
  text-decoration: none;
  color: var(--text);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--dur-fast) var(--ease-out);
  padding-bottom: 2px;
}
.navbar__links a:hover { background-size: 100% 1px; }
.navbar__links a[aria-current="page"] { background-size: 100% 1px; }

.navbar__toggle {
  display: none;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--text);
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}

/* --- Footer ----------------------------------------------------------------- */
.footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding-block: 96px 0;
  overflow: hidden;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer__wordmark {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  margin: 0;
  font-weight: 500;
}
.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__list a { text-decoration: none; color: var(--color-sand); }
.footer__list a:hover { color: var(--color-linen); text-decoration: underline; }
.footer__legal {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline-dark);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  color: rgba(244, 238, 228, 0.62);   /* ≥ 6:1 on Ink (Stone is only 2.9:1 on Ink) */
}

/* --- Image frame (4px radius, one warm treatment) -------------------------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-image);
  background: var(--bg-alt);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(0.97) sepia(0.04);   /* warm, natural, slightly soft */
}
.media--4x5 { aspect-ratio: 4 / 5; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--16x9 { aspect-ratio: 16 / 9; }

/* --- Room list row (Home: typographic list, image preview on hover) ------- */
.room-row {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  align-items: baseline;
  gap: 24px;
  padding-block: 28px;
  border-top: 1px solid var(--hairline);
  text-decoration: none;
}
.room-row:last-child { border-bottom: 1px solid var(--hairline); }
.room-row__name {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  font-weight: 500;
  color: var(--text);
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.room-row:hover .room-row__name,
.room-row:focus-visible .room-row__name { color: var(--accent); transform: translateX(8px); }
.room-row__meta { color: var(--text-muted); font-size: 15px; }
.room-row__price { font-size: 15px; font-variant-numeric: tabular-nums; }

/* --- Room card ---------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}
.card__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* --- Quote (guest words) ---------------------------------------------------- */
.quote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 500;
}
.quote__by { margin-top: 20px; font-family: var(--font-body); font-style: normal; font-size: 14px; color: var(--text-muted); }

/* --- Tag / chip (wood accent) -------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding-inline: 14px;
  border-radius: var(--radius-pill);
  background: var(--color-oak);
  color: var(--color-walnut);
  font-size: 13px;
  font-weight: 500;
}

/* --- Form field (for Book page, styled in A8) ----------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label { font-size: 13px; font-weight: 500; }
.field input,
.field select,
.field textarea {
  height: 52px;
  padding-inline: 16px;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  background: var(--bg);
  font: inherit;
  color: var(--text);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Modern select + date icons, inset from the border */
.field select, .booking select {
  appearance: none; -webkit-appearance: none;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23554E44' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  cursor: pointer;
}
.field input[type="date"] { position: relative; padding-right: 48px; }
.field input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute; right: 18px; top: 50%; translate: 0 -50%;
  width: 16px; height: 16px; margin: 0; padding: 0; opacity: .7; cursor: pointer;
}
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }

/* --- Tablet (810–1199) ------------------------------------------------------ */
@media (max-width: 1199px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .room-row__name { font-size: 40px; }
  .navbar__links { gap: 22px; }
}

/* --- Mobile (0–809): full-screen Olive menu, no horizontal scroll ----------- */
@media (max-width: 809px) {
  .navbar__links { display: none; }
  .navbar__toggle { display: inline-flex; align-items: center; }
  .navbar__inner { height: 72px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__wordmark { font-size: 44px; }
  .footer__legal { flex-direction: column; }
  .room-row { grid-template-columns: 1fr auto; }
  .room-row__index { display: none; }
  .room-row__name { font-size: 32px; }
  .quote { font-size: 28px; }
  .btn { height: 52px; }
}
