/* Gentile Landscaping concept: tokens first, then layout by section. */

:root {
  --linen: #F0F1EA;
  --boxwood: #1E3A2B;
  --boxwood-deep: #172F22;
  --ink: #1C2620;
  --bluestone: #DCDDD4;
  --moss: #56664A;
  --pool: #2D6C86;
  --amber: #F2D48C;

  --serif: "Marcellus", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Albert Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --t-xs: 0.8125rem;   /* 13 */
  --t-sm: 0.9375rem;   /* 15 */
  --t-base: 1.0625rem; /* 17 */
  --t-md: 1.3125rem;   /* 21 */
  --t-lg: clamp(1.5rem, 1.25rem + 0.9vw, 1.875rem);    /* 24 → 30 */
  --t-xl: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);     /* 28 → 40 */
  --t-2xl: clamp(2.125rem, 1.5rem + 2.6vw, 3.375rem);  /* 34 → 54 */
  --t-3xl: clamp(2.5rem, 1.6rem + 4.2vw, 4.75rem);     /* 40 → 76 */

  --gutter: clamp(16px, 4.6vw, 72px);
  --col-gap: clamp(16px, 2.2vw, 36px);
  --section: clamp(4.5rem, 2.5rem + 6vw, 8.5rem);
  --room-gap: clamp(4rem, 2rem + 6vw, 7.5rem);
  --header-h: 64px;
  --focus: var(--pool);
}

@media (min-width: 1025px) {
  :root { --header-h: 76px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Anchor targets: land each heading about 24px below the fixed header, and never leave a strip of the hero showing. */
section[id] { scroll-margin-top: calc(var(--header-h) + 24px - var(--section)); }
#top { scroll-margin-top: 0; }
#property { scroll-margin-top: calc(var(--header-h) + 24px); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

html.is-locked { overflow: hidden; }

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 1.62;
  font-kerning: normal;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: 0.005em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
address { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

[tabindex="-1"]:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed; left: 12px; top: -100px; z-index: 100;
  padding: 0.75rem 1rem; background: var(--linen); color: var(--ink);
}
.skip:focus { top: 12px; }

/* ---------- Masthead ---------- */

.masthead {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  padding-top: env(safe-area-inset-top);
  color: #fff;
  transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.masthead[data-state="solid"] {
  background: rgba(240, 241, 234, 0.95);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(30, 58, 43, 0.12);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .masthead[data-state="solid"] {
    background: rgba(240, 241, 234, 0.86);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

.masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  height: var(--header-h);
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
}

.masthead__mark {
  justify-self: start;
  font-family: var(--serif);
  font-size: 1.0625rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.masthead[data-state="solid"] .masthead__mark { opacity: 1; visibility: visible; }

.masthead__nav { display: none; }

.masthead__actions {
  display: flex; align-items: center; justify-content: flex-end;
  gap: clamp(0.25rem, 1.4vw, 1.5rem);
}

.masthead__phone,
.masthead__menu {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px;
  padding: 0 0.5rem;
  font-size: var(--t-sm);
  letter-spacing: 0.02em;
  text-decoration: none;
  background: none; border: 0;
}

.masthead__phone-long { display: none; }

.masthead__cta { display: none; }

.masthead__menu {
  gap: 0.6rem;
}

.masthead__menu::after {
  content: "";
  width: 18px; height: 7px;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}

.masthead[data-state="over-hero"] { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.28); }
.masthead[data-state="over-hero"] :focus-visible { outline-color: #fff; }

html:not(.js) .masthead__menu { display: none; }

@media (min-width: 700px) {
  .masthead__phone-long { display: inline; }
  .masthead__phone-short { display: none; }
}

@media (min-width: 1025px) {
  .masthead__inner { grid-template-columns: 1fr auto 1fr; }
  .masthead__nav { display: block; }
  .masthead__nav ul { display: flex; gap: clamp(1.25rem, 2.2vw, 2.5rem); }
  .masthead__nav a {
    display: inline-block; padding: 0.6rem 0;
    font-size: var(--t-sm); letter-spacing: 0.02em;
    text-decoration: underline; text-decoration-color: transparent;
    text-underline-offset: 0.4em; text-decoration-thickness: 1px;
    transition: text-decoration-color 0.25s ease;
  }
  .masthead__nav a:hover { text-decoration-color: currentColor; }
  .masthead__menu { display: none; }
  .masthead__cta {
    display: inline-flex; align-items: center; min-height: 44px;
    padding: 0 1.25rem;
    border-radius: 999px;
    font-size: var(--t-sm);
    text-decoration: none;
    text-shadow: none;
    background: var(--linen); color: var(--boxwood);
    transition: background-color 0.25s ease, color 0.25s ease;
  }
  .masthead__cta:hover { background: #fff; }
  .masthead[data-state="solid"] .masthead__cta { background: var(--boxwood); color: var(--linen); }
  .masthead[data-state="solid"] .masthead__cta:hover { background: var(--boxwood-deep); }
}

/* ---------- Menu sheet ---------- */

.menu-sheet { position: fixed; inset: 0; z-index: 60; }
.menu-sheet[hidden] { display: none; }

.menu-sheet__backdrop {
  position: absolute; inset: 0;
  background: rgba(23, 47, 34, 0.5);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.menu-sheet__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(440px, 100%);
  display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) max(var(--gutter), env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) var(--gutter);
  background: var(--linen);
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.menu-sheet.is-open .menu-sheet__backdrop { opacity: 1; }
.menu-sheet.is-open .menu-sheet__panel { transform: none; }

.menu-sheet__top {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
}

.menu-sheet__mark {
  font-family: var(--serif); font-size: 1.0625rem;
  letter-spacing: 0.26em; text-transform: uppercase;
}

.menu-sheet__close {
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 44px; min-width: 44px; padding: 0 0.5rem;
  background: none; border: 0;
  font-size: var(--t-sm);
}

.menu-sheet__close::before { content: "\00D7"; font-size: 1.35rem; line-height: 1; margin-top: -2px; }

.menu-sheet__links { margin-top: clamp(1rem, 5vh, 3rem); }
.menu-sheet__links a {
  display: block;
  padding: 0.45rem 0;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.25rem);
  line-height: 1.2;
  text-decoration: none;
}
.menu-sheet__links a:hover { color: var(--moss); }

.menu-sheet__foot {
  margin-top: auto; padding-top: 2rem;
  font-size: var(--t-sm); color: var(--moss);
}
.menu-sheet__foot a {
  display: inline-block; margin-bottom: 0.5rem;
  font-family: var(--serif); font-size: var(--t-lg);
  color: var(--boxwood); text-decoration: none;
}

@media (max-height: 480px) {
  .menu-sheet__links { margin-top: 0; columns: 2; column-gap: 1.5rem; }
  .menu-sheet__links a { font-size: 1.375rem; padding: 0.3rem 0; white-space: nowrap; }
  .menu-sheet__foot { padding-top: 1rem; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 360px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--boxwood);
}

.hero__slides, .hero__slide { position: absolute; inset: 0; }

.hero__slide {
  opacity: 0;
  transition: opacity 2.6s ease-in-out;
}
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide.is-failed { display: none; }

.hero__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}
.js .hero__slide img { opacity: 0; transition: opacity 0.9s ease; }
.js .hero__slide img.is-loaded { opacity: 1; }

.hero__slide:nth-child(2) img { object-position: 34% 55%; }
.hero__slide:nth-child(3) img { object-position: 42% 60%; }

@media (max-aspect-ratio: 4/5) {
  .hero__slide img,
  .hero__slide:nth-child(2) img,
  .hero__slide:nth-child(3) img { object-position: 50% 50%; }
}

.hero__veil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(14, 26, 19, 0.36) 0%, rgba(14, 26, 19, 0) 20%),
    radial-gradient(ellipse 58% 34% at 50% 45%, rgba(14, 26, 19, 0.24) 0%, rgba(14, 26, 19, 0) 72%),
    linear-gradient(to top, rgba(14, 26, 19, 0.5) 0%, rgba(14, 26, 19, 0.14) 26%, rgba(14, 26, 19, 0) 42%);
}

.hero__brand {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center;
  padding: var(--header-h) var(--gutter) 22vh;
  pointer-events: none;
}

.wordmark {
  text-align: center;
  text-shadow: 0 2px 30px rgba(10, 20, 14, 0.32), 0 1px 3px rgba(10, 20, 14, 0.2);
}

.wordmark__name {
  display: block;
  font-size: min(11.5vw, 19svh, 9.75rem);
  line-height: 1;
  letter-spacing: 0.24em;
  margin-right: -0.24em;
  text-transform: uppercase;
}

.wordmark__line {
  display: block;
  margin-top: clamp(0.75rem, 2.2svh, 1.4rem);
  font-size: clamp(1rem, 0.85rem + 0.7vw, 1.5rem);
  letter-spacing: 0.08em;
  margin-right: -0.08em;
}

.hero__foot {
  position: absolute; z-index: 4;
  left: max(var(--gutter), env(safe-area-inset-left));
  right: max(var(--gutter), env(safe-area-inset-right));
  bottom: max(clamp(20px, 4.5vh, 48px), calc(env(safe-area-inset-bottom) + 16px));
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1.25rem 2rem;
  text-shadow: 0 1px 16px rgba(10, 20, 14, 0.35);
}

.hero__intro { max-width: 34rem; }

.hero__tagline {
  font-family: var(--serif);
  font-size: var(--t-lg);
  line-height: 1.2;
}

.hero__lede {
  margin-top: 0.5rem;
  max-width: 44ch;
  font-size: var(--t-sm);
  line-height: 1.55;
}

.hero__controls {
  display: flex; align-items: center; gap: 0.25rem;
  margin-right: -0.5rem;
}

.hero__caption {
  margin-right: 0.75rem;
  font-size: var(--t-xs);
  letter-spacing: 0.02em;
  min-width: 0;
}

.hero__dots { display: flex; }

.hero__dot {
  display: grid; place-items: center;
  width: 36px; height: 44px; padding: 0;
  background: none; border: 0;
}
.hero__dot[hidden] { display: none; }
.hero__dot span {
  display: block; width: 24px; height: 2px;
  background: rgba(255, 255, 255, 0.45);
  transition: background-color 0.4s ease;
}
.hero__dot[aria-current="true"] span { background: #fff; }
.hero__dot:hover span { background: rgba(255, 255, 255, 0.8); }

.hero__pause {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; min-width: 44px; padding: 0 0.5rem 0 0.75rem;
  background: none; border: 0;
  font-size: var(--t-xs); letter-spacing: 0.02em;
}

.hero__pause-icon {
  width: 9px; height: 11px;
  border-left: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
}
.hero__pause[aria-pressed="true"] .hero__pause-icon {
  width: 0; height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
}

.hero :focus-visible { outline-color: #fff; }

html:not(.js) .hero__controls { display: none; }
.hero--static .hero__pause { display: none; }
.hero--no-image .hero__controls { display: none; }

@media (max-width: 699px) {
  .hero__brand { padding-bottom: 30svh; }
  .hero__foot { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .hero__controls { justify-content: space-between; margin-left: -0.25rem; }
  .hero__caption { flex: 1; }
}

/* Narrowest phones: the dots already name each photograph, so the visible caption steps aside. */
@media (max-width: 359px) {
  .hero__caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .hero__controls { justify-content: flex-start; }
}

@media (max-height: 620px) and (orientation: portrait) {
  .hero__lede { font-size: 0.875rem; }
  .hero__foot { gap: 0.5rem; }
}

@media (max-height: 480px) and (orientation: landscape) {
  .hero__brand { padding-bottom: 14svh; }
  .hero__lede { display: none; }
  .hero__foot { flex-direction: row; align-items: flex-end; bottom: max(12px, env(safe-area-inset-bottom)); }
  .wordmark__line { margin-top: 0.5rem; font-size: 0.95rem; }
}

/* ---------- Shared section frame ---------- */

.approach, .property, .services, .gallery, .reviews, .contact {
  padding: var(--section) max(var(--gutter), env(safe-area-inset-right)) var(--section) max(var(--gutter), env(safe-area-inset-left));
}

/* One 12-column system from 700px. Text anchors on column 1 or on the column after a one-column gap;
   images fill the complementary span. Headings sit on the top edge of the image they describe. */

/* ---------- Approach ---------- */

.approach {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: calc(var(--section) * 0.8);
}

.approach__title { font-size: var(--t-2xl); max-width: 17ch; }

.approach__image { margin-top: clamp(1.75rem, 5vw, 2.5rem); }
.approach__image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 62%; }

.approach__body {
  margin-top: clamp(1.75rem, 5vw, 2.5rem);
  max-width: 36rem;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem;
}

.approach__facts {
  margin: 2.25rem 0 0;
  border-top: 1px solid rgba(30, 58, 43, 0.2);
  display: grid; grid-template-columns: minmax(0, 1fr);
  max-width: 36rem;
}
/* Phones: one fact per row, label beside value. */
.approach__facts > div {
  min-width: 0;
  display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); align-items: baseline; column-gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(30, 58, 43, 0.12);
}
.approach__facts dt { font-size: var(--t-xs); color: var(--moss); letter-spacing: 0.02em; }
.approach__facts dd { margin: 0; font-family: var(--serif); font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); line-height: 1.3; }
.nowrap { white-space: nowrap; }
.approach__facts a { text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

/* From 700px the facts sit in one row, each column sized to its content. */
@media (min-width: 700px) {
  .approach__facts { grid-template-columns: max-content max-content max-content; column-gap: clamp(2rem, 3.5vw, 3.5rem); padding-top: 1.25rem; max-width: none; }
  .approach__facts > div { display: block; padding: 0; border-bottom: 0; }
  .approach__facts dd { margin-top: 0.2rem; }
}

/* Tablet and short landscape: heading, a wide photograph, then the text at a comfortable measure. */
@media (min-width: 700px) and (max-width: 1024px) {
  .approach__image img { aspect-ratio: 16 / 7; object-position: 50% 58%; }
  .approach__body { max-width: 38rem; }
}

/* Wide screens: text column on the left, the photograph exactly as tall as the text beside it. */
@media (min-width: 1025px) {
  .approach { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
  .approach__title { grid-column: 1 / span 6; grid-row: 1; margin-top: -0.12em; }
  .approach__body { grid-column: 1 / span 6; grid-row: 2; }
  .approach__facts { grid-column: 1 / span 6; grid-row: 3; }
  .approach__image { grid-column: 8 / -1; grid-row: 1 / span 3; align-self: stretch; margin-top: 0; position: relative; min-height: 24rem; }
  .approach__image img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}

/* ---------- Rooms outdoors ---------- */

.property { padding-top: 0; padding-bottom: 0; }

.property__intro {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem var(--col-gap);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.property__intro h2 { font-size: var(--t-3xl); }
.property__intro p { max-width: 36rem; }

.room {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem var(--col-gap);
  margin-bottom: var(--room-gap);
}

.room h3 { font-size: var(--t-xl); margin-bottom: 0.85rem; }
.room__text { min-width: 0; }
.room__text p { max-width: 34rem; }

.room__media { min-width: 0; }
.room__media img { width: 100%; height: 100%; object-fit: cover; }

/* Phone composition: every room opens with its photograph(s) at full content width, then its text. */
.room__media--patio img { aspect-ratio: 3 / 2; }

.room--terrace { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; }
.room--terrace .room__text { grid-column: 1 / -1; }
.room__media--fireplace img,
.room__media--kitchen img { aspect-ratio: 3 / 4; }
.room__media--kitchen img { object-position: 57% 50%; }

.room__media--pool { margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left))) calc(-1 * max(var(--gutter), env(safe-area-inset-right))); }
.room__media--pool img { aspect-ratio: 5 / 4; object-position: 32% 50%; }
.room__media--falls img { aspect-ratio: 3 / 2; }

.room__media--wall img { aspect-ratio: 4 / 5; object-position: 50% 45%; }
.room__media--night img { aspect-ratio: 4 / 5; object-position: 50% 62%; }

.room--evening {
  margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left))) calc(-1 * max(var(--gutter), env(safe-area-inset-right)));
  margin-bottom: 0;
  padding: var(--section) max(var(--gutter), env(safe-area-inset-right)) var(--section) max(var(--gutter), env(safe-area-inset-left));
  background: var(--boxwood);
  color: var(--linen);
  --focus: var(--linen);
}

@media (min-width: 700px) {
  .property__intro { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .property__intro h2 { grid-column: 1 / span 6; }
  .property__intro p { grid-column: 7 / -1; }

  .room, .room--terrace { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 0; align-items: start; }
  .room h3 { margin-top: -0.14em; } /* cap height meets the image's top edge */

  /* The way in: photograph left, text right */
  .room--arrival .room__media--patio { grid-column: 1 / span 6; grid-row: 1; }
  .room--arrival .room__text { grid-column: 7 / -1; grid-row: 1; }

  /* The terrace: text over the kitchen on the left, closing on the fireplace's bottom edge */
  .room--terrace .room__text { grid-column: 1 / span 6; grid-row: 1; }
  .room--terrace .room__media--kitchen { grid-column: 1 / span 6; grid-row: 2; align-self: end; padding-top: 2rem; }
  .room--terrace .room__media--fireplace { grid-column: 7 / -1; grid-row: 1 / span 2; }
  .room__media--kitchen img { aspect-ratio: 4 / 3; }
  .room__media--fireplace img { aspect-ratio: 4 / 5; object-position: 50% 58%; }

  /* The water: full-bleed pool, then the pond and the text on one line */
  .room--water { row-gap: clamp(1.75rem, 3vw, 2.5rem); }
  .room--water .room__media--pool { grid-column: 1 / -1; grid-row: 1; }
  .room__media--pool img { aspect-ratio: 21 / 9; object-position: 50% 62%; }
  .room--water .room__media--falls { grid-column: 1 / span 6; grid-row: 2; }
  .room--water .room__text { grid-column: 7 / -1; grid-row: 2; }

  /* The borders: text left, stone right */
  .room--borders .room__text { grid-column: 1 / span 6; grid-row: 1; }
  .room--borders .room__media--wall { grid-column: 7 / -1; grid-row: 1; }
  .room__media--wall img { aspect-ratio: 1 / 1; }

  /* After dark: photograph left, text right, centred in the band */
  .room--evening { align-items: center; }
  .room--evening .room__media--night { grid-column: 1 / span 6; grid-row: 1; }
  .room--evening .room__text { grid-column: 7 / -1; grid-row: 1; }
}

@media (min-width: 1025px) {
  /* Two zones on wide screens: left = columns 1–6, right = columns 8–12, the same right edge
     every section-head paragraph starts on. Photographs and text alternate between them. */
  .property__intro p { grid-column: 8 / -1; }
  .room--arrival .room__media--patio { grid-column: 1 / span 6; }
  .room--arrival .room__text { grid-column: 8 / -1; }
  .room--terrace .room__text,
  .room--terrace .room__media--kitchen { grid-column: 1 / span 6; }
  .room--terrace .room__media--fireplace { grid-column: 8 / -1; }
  .room--water .room__text { grid-column: 8 / -1; }
  .room--borders .room__text { grid-column: 1 / span 6; }
  .room--borders .room__media--wall { grid-column: 8 / -1; }
  .room__media--wall img { aspect-ratio: 1 / 1; object-position: 50% 42%; }
  .room--evening .room__text { grid-column: 8 / -1; }
}

/* ---------- Services index ---------- */

.services { background: var(--bluestone); }

.services__head {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem var(--col-gap);
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.services__head h2 { font-size: var(--t-2xl); max-width: 14ch; }
.services__head p { max-width: 30rem; }

.services__index {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem) var(--col-gap);
}

.service-group h3 {
  font-size: var(--t-md);
  padding-top: 1rem;
  margin-bottom: 0.75rem;
  border-top: 1px solid rgba(30, 58, 43, 0.28);
}
.service-group li { padding: 0.3rem 0; max-width: 32ch; }

@media (min-width: 700px) {
  .services__head { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .services__head h2 { grid-column: 1 / span 6; }
  .services__head p { grid-column: 7 / -1; }
  .services__index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1025px) {
  .services__index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Gallery ---------- */

.gallery { padding-bottom: calc(var(--section) * 0.45); }

.gallery__head {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem var(--col-gap);
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.gallery__head h2 { font-size: var(--t-2xl); }
.gallery__head p { max-width: 34rem; color: var(--moss); }

.gallery__filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.gallery__filters button {
  min-height: 38px;
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(28, 38, 32, 0.28);
  border-radius: 999px;
  background: transparent;
  font-size: var(--t-sm);
  line-height: 1.3;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.gallery__filters button:hover { border-color: var(--boxwood); }
.gallery__filters button[aria-pressed="true"] {
  background: var(--boxwood); border-color: var(--boxwood); color: var(--linen);
}

.gallery__grid { columns: 1; column-gap: var(--col-gap); }

.gallery__item {
  break-inside: avoid;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.gallery__item[hidden] { display: none; }

.gallery__item a { display: block; cursor: zoom-in; background: var(--bluestone); }
.gallery__item img { width: 100%; }
.gallery__item p { margin-top: 0.6rem; font-size: var(--t-xs); color: var(--moss); letter-spacing: 0.01em; }

@media (min-width: 360px) { .gallery__grid { columns: 2; } }
@media (max-width: 699px) {
  .gallery__grid { column-gap: 12px; }
  .gallery__item { margin-bottom: 1.25rem; }
  .gallery__item p { margin-top: 0.4rem; }
  .gallery__filters { gap: 0.4rem; }
  .gallery__filters button { font-size: 0.875rem; }
}
@media (min-width: 700px) {
  .gallery__head { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .gallery__head h2 { grid-column: 1 / span 6; }
  .gallery__head p { grid-column: 7 / -1; }
}
@media (min-width: 1025px) { .gallery__grid { columns: 3; } }

/* ---------- Reviews ---------- */

.reviews__head {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem var(--col-gap);
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}
.reviews__head h2 { font-size: var(--t-2xl); }
.reviews__head p { font-size: var(--t-sm); color: var(--moss); max-width: 34rem; }

.reviews__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem var(--col-gap); }

.review {
  display: flex; flex-direction: column;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(30, 58, 43, 0.22);
}
.review blockquote { margin: 0; }
.review blockquote p {
  font-family: var(--serif);
  font-size: var(--t-lg);
  line-height: 1.22;
  max-width: 18ch;
}
.review__by { margin-top: 1rem; font-size: var(--t-sm); font-weight: 500; }
.review__link {
  align-self: flex-start;
  margin-top: 0.1rem; padding: 0.35rem 0;
  font-size: var(--t-sm); color: var(--moss);
  text-decoration-thickness: 1px; text-underline-offset: 0.25em;
}
.review__link:hover { color: var(--boxwood); }

@media (min-width: 700px) {
  .reviews__head { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .reviews__head h2 { grid-column: 1 / span 6; }
  .reviews__head p { grid-column: 7 / -1; }
  .reviews__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Name and link share one line across the three columns. */
  .review blockquote { flex: 1 0 auto; }
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 5rem) var(--col-gap);
  background: var(--boxwood);
  color: var(--linen);
  --focus: var(--linen);
}

.contact h2 { font-size: var(--t-xl); }

.contact__phone {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 1.4rem + 5.6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.contact__phone:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.12em; }

.contact__note { margin-top: 1.5rem; max-width: 30rem; }

.contact__address {
  margin-top: 1.5rem;
  font-size: var(--t-sm);
  line-height: 1.7;
  color: rgba(240, 241, 234, 0.86);
}
.contact__address a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

.contact__form h3 { font-size: var(--t-lg); margin-bottom: 1.25rem; }

.demo-flag {
  display: block;
  width: fit-content;
  margin: 0 auto 1.5rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid rgba(240, 241, 234, 0.5);
  border-radius: 999px;
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
  text-align: center;
}

.callback { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }

.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.3rem; min-width: 0; }
.field label { font-size: var(--t-xs); letter-spacing: 0.02em; color: rgba(240, 241, 234, 0.82); }

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 0.55rem 0;
  border: 0;
  border-bottom: 1px solid rgba(240, 241, 234, 0.48);
  border-radius: 0;
  background: transparent;
  color: var(--linen);
  font-size: var(--t-base);
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  padding-right: 1.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23F0F1EA' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
}
.field select option { color: var(--ink); background: #fff; }

.field input:focus-visible,
.field select:focus-visible { outline: none; border-bottom: 2px solid var(--linen); margin-bottom: -1px; }

.field input[aria-invalid="true"] { border-bottom-color: var(--amber); }
.field__error { font-size: var(--t-xs); color: var(--amber); }
.field__error[hidden] { display: none; }

.field-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem var(--col-gap); }

.callback__submit {
  justify-self: start;
  min-height: 48px;
  margin-top: 0.75rem;
  padding: 0 1.75rem;
  border: 0; border-radius: 999px;
  background: var(--linen); color: var(--boxwood);
  font-size: var(--t-sm); font-weight: 500;
  transition: background-color 0.25s ease;
}
.callback__submit:hover { background: #fff; }

.callback__status { font-size: var(--t-sm); min-height: 1.5em; }
.callback__status:empty { min-height: 0; }
.callback__status a { color: inherit; text-underline-offset: 0.2em; }

@media (min-width: 480px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .contact { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .contact__call { grid-column: 1 / span 6; }
  .contact__form { grid-column: 8 / -1; padding-top: 0.5rem; }
}

@media (max-width: 379px) {
  .contact__phone { font-size: 2.25rem; }
  .callback__submit { justify-self: stretch; }
}

/* ---------- Footer ---------- */

.footer {
  padding: clamp(3rem, 6vw, 5rem) max(var(--gutter), env(safe-area-inset-right)) max(2rem, calc(env(safe-area-inset-bottom) + 1.25rem)) max(var(--gutter), env(safe-area-inset-left));
  font-size: var(--t-sm);
}

.footer__mark {
  font-family: var(--serif);
  font-size: var(--t-lg);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.footer__cols {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem var(--col-gap);
  margin-top: 1.75rem;
  color: var(--ink);
}
.footer__cols a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

.footer__demo {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(30, 58, 43, 0.18);
  font-size: var(--t-xs);
  color: var(--moss);
}

@media (min-width: 700px) {
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 56rem; }
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: #111F17;
  color: var(--linen);
  overflow: hidden;
  --focus: var(--linen);
}
.lightbox::backdrop { background: rgba(17, 31, 23, 0.6); }
.lightbox[open] { display: block; }

.lightbox__stage {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 68px);
  bottom: calc(env(safe-area-inset-bottom) + 84px);
  left: max(var(--gutter), env(safe-area-inset-left));
  right: max(var(--gutter), env(safe-area-inset-right));
  display: grid; place-items: center;
}

.lightbox__figure {
  display: flex; flex-direction: column; align-items: center;
  max-width: 100%; max-height: 100%;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 68px - 84px - 3rem);
  max-height: calc(100dvh - 68px - 84px - 3rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  width: auto; height: auto;
  object-fit: contain;
  background: rgba(240, 241, 234, 0.06);
}

.lightbox__caption {
  margin-top: 0.85rem;
  font-size: var(--t-sm);
  text-align: center;
}
.lightbox__count { margin-left: 0.75rem; color: rgba(240, 241, 234, 0.72); }

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px;
  padding: 0 1.1rem;
  border: 1px solid rgba(240, 241, 234, 0.42);
  border-radius: 999px;
  background: rgba(17, 31, 23, 0.6);
  color: var(--linen);
  font-size: var(--t-sm);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(240, 241, 234, 0.14); border-color: var(--linen); }

.lightbox__close {
  position: fixed; z-index: 2;
  top: calc(env(safe-area-inset-top) + 12px);
  right: calc(max(12px, env(safe-area-inset-right)) + 4px);
  gap: 0.55rem;
}
.lightbox__close::before {
  content: "\00D7"; font-size: 1.35rem; line-height: 1; margin-top: -2px;
}

.lightbox__nav {
  position: fixed; z-index: 2;
  left: max(var(--gutter), env(safe-area-inset-left));
  right: max(var(--gutter), env(safe-area-inset-right));
  bottom: calc(env(safe-area-inset-bottom) + 18px);
  display: flex; justify-content: space-between;
}
.lightbox__prev[disabled], .lightbox__next[disabled] { visibility: hidden; }

@media (max-height: 500px) and (orientation: landscape) {
  .lightbox__stage { top: calc(env(safe-area-inset-top) + 12px); bottom: calc(env(safe-area-inset-bottom) + 12px); left: 120px; right: 120px; }
  .lightbox__img { max-height: calc(100vh - 24px - 2.75rem); max-height: calc(100dvh - 24px - 2.75rem - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .lightbox__nav { top: 50%; bottom: auto; transform: translateY(-50%); left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); }
  .lightbox__close { top: calc(env(safe-area-inset-top) + 10px); }
}

/* ---------- Wide-screen alignment ---------- */

/* Placed last so it wins over each section's tablet rule: every section-head paragraph
   starts on column 8, the right-zone edge used throughout the rooms. */
@media (min-width: 1025px) {
  .services__head p, .gallery__head p, .reviews__head p { grid-column: 8 / -1; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
