:root {
  color-scheme: light;
  font-family: 'Avenir Next', Avenir, system-ui, sans-serif;
  font-size: 16px;
  font-synthesis: none;
  --review-bg: #eeeae1;
  --review-ink: #292c25;
  --serif: Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid #2d78a6; outline-offset: 4px; }
[hidden] { display: none !important; }
p, h1, h2, h3, figure { margin: 0; }
img { display: block; max-width: 100%; }
section[id] { scroll-margin-top: 1rem; }

body[data-concept="courtyard"] {
  --paper: #f9f7ee;
  --ink: #233426;
  --muted: #485748;
  --line: #cfd1bf;
  --strong: #304b36;
  --strong-text: #fffdf2;
  --contact-bg: #e1e7d7;
  --button-radius: 4px;
  --display: var(--serif);
}

body[data-concept="crew"] {
  --paper: #fff9ed;
  --ink: #281c15;
  --muted: #5a4536;
  --line: #decab1;
  --strong: #923c27;
  --strong-text: #fffaf0;
  --contact-bg: #f2dec1;
  --button-radius: 0;
  --display: 'Avenir Next Condensed', 'Arial Narrow', system-ui, sans-serif;
}

body[data-concept="foothills"] {
  --paper: #f1f0e9;
  --ink: #263732;
  --muted: #475a52;
  --line: #c3ccc2;
  --strong: #344d43;
  --strong-text: #fcfaf0;
  --contact-bg: #dce4dc;
  --button-radius: 999px;
  --display: var(--serif);
}

.page-width { width: min(100% - 6rem, 80rem); margin-inline: auto; }
.review-bar { background: var(--review-bg); color: var(--review-ink); border-bottom: 1px solid #dbd5c9; }
.review-inner { width: min(100% - 4rem, 92rem); min-height: 64px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.review-caption { font-size: .85rem; font-weight: 700; white-space: nowrap; }
.concept-switch { display: flex; gap: 3px; border: 1px solid #d8d1c4; background: #e6e0d4; border-radius: 6px; padding: 3px; }
.concept-switch button { border: 0; background: transparent; border-radius: 3px; padding: .49rem .85rem; min-height: 36px; font-size: .87rem; color: inherit; font-weight: 600; white-space: nowrap; }
.concept-switch button[aria-pressed="true"] { background: #30382d; color: #fffdf7; }
.concept-switch button:hover:not([aria-pressed="true"]) { background: #f5f1e8; }
.intake-link { white-space: nowrap; padding: .45rem 0; border: 0; border-bottom: 1px solid #756b5b; color: var(--review-ink); background: transparent; font-size: .85rem; font-weight: 700; }
.intake-link:hover { border-color: transparent; }

.site-header { background: var(--paper); }
.site-nav { min-height: 88px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: .75rem; justify-self: start; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; color: var(--strong-text); background: var(--strong); font: 600 .96rem var(--serif); letter-spacing: -.04em; border-radius: 50% 50% 47% 47%; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.1rem; line-height: 1.1; letter-spacing: -.025em; }
.brand small { font-size: .76rem; margin-top: .19rem; color: var(--muted); }
.site-nav nav { display: flex; gap: clamp(1rem, 4vw, 4rem); }
.site-nav nav a, .language { font-size: .91rem; font-weight: 700; }
.site-nav nav a:hover, .language:hover { text-decoration: underline; text-underline-offset: .25em; }
.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: clamp(.65rem, 2vw, 1.75rem); }
.language { border: 0; padding: .65rem 0; color: var(--ink); background: transparent; }
.button { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; padding: .8rem 1.1rem; min-height: 48px; border: 1px solid transparent; border-radius: var(--button-radius); font-size: .93rem; font-weight: 700; line-height: 1.25; }
.button:active { transform: translateY(1px); }
.primary, .header-action { background: var(--strong); color: var(--strong-text); }
.primary:hover, .header-action:hover { filter: brightness(1.15); }
.secondary { color: var(--ink); border-color: currentColor; background: transparent; }
.secondary:hover { background: color-mix(in srgb, currentColor 7%, transparent); }
.header-action { min-height: 42px; padding-block: .57rem; }

.hero { display: grid; isolation: isolate; }
.hero-media { overflow: hidden; position: relative; min-width: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption { position: absolute; z-index: 1; right: 12px; bottom: 12px; background: #222a22e8; color: #fffdf6; border-radius: 2px; padding: .26rem .5rem; font-size: .75rem; font-weight: 600; }
.hero-copy { align-self: center; position: relative; }
.hero-place { display: flex; align-items: center; gap: .55rem; margin-bottom: 1.1rem; font-size: .875rem; font-weight: 700; }
.hero-place > span:first-child { display: block; width: 19px; height: 1px; background: currentColor; }
.hero h1 { max-width: 15ch; font-family: var(--display); font-size: clamp(2.6rem, 4.9vw, 5.2rem); line-height: 1.02; letter-spacing: -.063em; font-weight: 400; text-wrap: balance; }
.hero-copy > p:not(.hero-hint) { max-width: 31rem; margin-top: 1.35rem; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.135rem); line-height: 1.58; }
.hero-actions { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 1.55rem; }
.hero-hint { margin-top: .85rem; color: var(--muted); font-size: .85rem; }

[data-concept="courtyard"] .hero { width: min(100% - 6rem, 80rem); margin-inline: auto; grid-template-columns: minmax(0, .95fr) minmax(0, 1.22fr); gap: clamp(1.3rem, 4.8vw, 5.5rem); padding-block: 1.25rem 2.3rem; }
[data-concept="courtyard"] .hero-media { grid-column: 2; grid-row: 1; min-height: 29rem; aspect-ratio: 1.17; border-radius: 48% 48% 6px 6px / 29% 29% 6px 6px; }
[data-concept="courtyard"] .hero-copy { grid-column: 1; grid-row: 1; }
[data-concept="courtyard"] .hero h1 { text-wrap: pretty; }

[data-concept="crew"] .site-header { border-bottom: 2px solid #36261b; }
[data-concept="crew"] .brand-mark { border-radius: 0; font: 800 1.15rem var(--display); letter-spacing: -.06em; }
[data-concept="crew"] .hero { grid-template-columns: minmax(0, 1.18fr) minmax(0, .92fr); min-height: min(45vw, 40rem); background: #e9b37b; }
[data-concept="crew"] .hero-media { min-height: 28rem; }
[data-concept="crew"] .hero-media img { object-position: 53% center; }
[data-concept="crew"] .hero-copy { padding: 2.65rem max(3rem, (100vw - 80rem) / 2) 2.65rem clamp(1.8rem, 4.8vw, 5rem); }
[data-concept="crew"] .hero h1 { font-weight: 800; font-size: clamp(2.6rem, 5.5vw, 6rem); line-height: .98; }
[data-concept="crew"] .hero-copy > p:not(.hero-hint), [data-concept="crew"] .hero-hint { color: #482e20; }

[data-concept="foothills"] .brand-mark { width: 43px; height: 43px; border: 1px solid var(--strong); color: var(--strong); background: transparent; }
[data-concept="foothills"] .hero { min-height: clamp(30rem, 50vw, 44rem); grid-template-columns: 1fr; color: #fbf9ed; background: #2e3c34; }
[data-concept="foothills"] .hero-media, [data-concept="foothills"] .hero-copy { grid-area: 1 / 1; }
[data-concept="foothills"] .hero-media img { position: absolute; object-position: center 51%; }
[data-concept="foothills"] .hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #15241feb 0%, #172820d9 27%, #15241965 61%, #1524190d 100%); }
[data-concept="foothills"] .hero-copy { width: min(100% - 6rem, 80rem); margin-inline: auto; padding-block: 3rem; pointer-events: none; }
[data-concept="foothills"] .hero h1 { max-width: 14ch; }
[data-concept="foothills"] .hero-copy > p:not(.hero-hint), [data-concept="foothills"] .hero-hint { color: #f2ede0; }
[data-concept="foothills"] .hero .button { pointer-events: auto; }
[data-concept="foothills"] .hero .primary { background: #e5ebd9; color: #253830; }
[data-concept="foothills"] .hero .secondary { color: #fcfaf0; }

.services { padding-block: clamp(2rem, 5vw, 4.9rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.6rem; }
.section-heading > p { color: var(--muted); max-width: 23rem; line-height: 1.5; }
.section-label { margin-bottom: .55rem; font-size: .87rem; font-weight: 700; color: var(--muted); }
h2 { font-family: var(--display); font-size: clamp(2rem, 3.95vw, 3.7rem); line-height: 1.02; font-weight: 400; letter-spacing: -.048em; }
[data-concept="crew"] h2 { font-weight: 800; }
.service-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1rem, 4vw, 3.5rem); }
.service-list article { border-top: 1px solid var(--line); padding-block: 1.15rem 1.4rem; }
.service-list h3 { font-size: 1.15rem; font-weight: 750; line-height: 1.2; margin-bottom: .45rem; }
.service-list p, .contact p { color: var(--muted); line-height: 1.48; }
.contact { background: var(--contact-bg); }
.contact-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 2.6rem; }
.contact p { margin-top: .75rem; }
.contact .hero-actions { margin-top: 0; flex: 0 0 auto; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.15rem; font-size: .82rem; color: var(--muted); }
.mobile-actions { display: none; }

dialog { position: fixed; width: min(33rem, 100% - 2rem); max-height: calc(100dvh - 2rem); padding: 2rem; border: 1px solid #d4dacf; border-radius: 12px; background: #f8f8f2; color: #223629; box-shadow: 0 16px 65px #181d1960; }
dialog::backdrop { background: #171e19ad; }
dialog h2, [data-concept="crew"] dialog h2 { margin: 0 2.5rem .75rem 0; font: 700 clamp(1.5rem, 5vw, 2rem)/1.1 'Avenir Next', Avenir, system-ui, sans-serif; letter-spacing: -.04em; }
dialog p { line-height: 1.46; }
.close-dialog { position: absolute; top: .8rem; right: .8rem; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #b8c5b8; background: #f8f8f2; color: #223629; font-size: 1.5rem; line-height: 1; }
.close-dialog:hover { background: #e7eee5; }
.message-sample { margin-top: .9rem; padding: .75rem 1rem; border-radius: 9px; background: #e7eee5; }
.sample-label { font-weight: 700; margin-bottom: .2rem; color: #3e5947; font-size: .83rem; }
.intake-header .sample-label { margin-bottom: .45rem; }
.message-sample details { margin-top: .55rem; }
.message-sample summary { width: fit-content; cursor: pointer; color: #263e31; font-size: .88rem; font-weight: 700; }
.message-sample details p { margin-top: .35rem; }
.outgoing { background: #eff0e5; }
.intake-button { margin-top: .9rem; min-height: 44px; border-radius: 5px; border: 0; background: #314f3e; color: #fff; font-weight: 700; padding: .5rem .85rem; }
#sample-reply p:last-child { margin-top: .5rem; }

@media (max-width: 900px) {
  .page-width, [data-concept="courtyard"] .hero, [data-concept="foothills"] .hero-copy { width: calc(100% - 3rem); }
  .site-nav { min-height: 75px; gap: 1rem; }
  [data-concept="courtyard"] .hero-media { min-height: 23rem; }
  [data-concept="crew"] .hero-media { min-height: 24rem; }
  [data-concept="crew"] .hero-copy { padding-right: 1.5rem; }
}

@media (max-width: 680px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .page-width, [data-concept="courtyard"] .hero, [data-concept="foothills"] .hero-copy { width: calc(100% - 2rem); }
  .review-inner { width: calc(100% - 2rem); display: grid; grid-template-columns: 1fr auto; gap: .32rem .5rem; padding-block: .36rem .55rem; }
  .concept-switch { grid-area: 2 / 1 / auto / -1; display: grid; grid-template-columns: 1.18fr 1fr .75fr; }
  .concept-switch button { white-space: normal; padding: .35rem .25rem; font-size: clamp(.76rem, 3vw, .9rem); }
  .intake-link { justify-self: end; font-size: .8rem; padding-block: .3rem; }
  .site-nav { display: flex; justify-content: space-between; min-height: 66px; }
  .site-nav nav, .header-action { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .hero h1 { font-size: clamp(2.5rem, 9.1vw, 3.9rem); }
  .hero-place { margin-bottom: .75rem; }
  .hero-copy > p:not(.hero-hint) { margin-top: .8rem; }
  .hero-actions { margin-top: 1rem; }
  [data-concept="courtyard"] .hero { grid-template-columns: 1fr; gap: 1.3rem; padding-block: .45rem .9rem; }
  [data-concept="courtyard"] .hero-media { grid-column: 1; grid-row: 2; aspect-ratio: 1.62; min-height: 0; border-radius: 48% 48% 4px 4px / 20% 20% 4px 4px; }
  [data-concept="courtyard"] .hero-copy { padding-top: .5rem; }
  [data-concept="crew"] .hero { grid-template-columns: 1fr; }
  [data-concept="crew"] .hero-media { grid-row: 2; min-height: 0; aspect-ratio: 1.66; }
  [data-concept="crew"] .hero-copy { padding: 1.45rem 1rem; }
  [data-concept="crew"] .hero h1 { font-size: clamp(2.75rem, 10vw, 4.5rem); }
  [data-concept="foothills"] .hero { min-height: 34rem; }
  [data-concept="foothills"] .hero-media img { object-position: 59% center; }
  [data-concept="foothills"] .hero-media::after { background: linear-gradient(90deg, #17241eea 0%, #1d3025b8 55%, #1d302540 100%); }
  .section-heading, .contact-inner, .site-footer { display: grid; gap: .75rem; }
  .section-heading { margin-bottom: 1rem; }
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-list h3 { font-size: 1.08rem; }
  .service-list p { font-size: .95rem; }
  .contact-inner { padding-block: 1.75rem; }
  .contact .hero-actions { margin-top: .2rem; }
  .site-footer { gap: .35rem; }
  .mobile-actions { position: fixed; z-index: 2; inset: auto 0 0; display: grid; grid-template-columns: 1.2fr 1fr; gap: .55rem; border-top: 1px solid var(--line); background: var(--paper); padding: .5rem 1rem calc(.5rem + env(safe-area-inset-bottom, 0px)); }
  dialog { padding: 1.3rem; }
}

@media (max-width: 350px) {
  .button { padding-inline: .7rem; }
  .site-nav { gap: .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .button:active { transform: none; }
}
