/* Tuscany Estate Care — site styles. Tokens mirror the Tuscany Estate Care design system. */
:root {
  --surface-100: #f7f2ea; --surface-200: #efe6d8; --surface-300: #e3d6c3; --hairline: #d6c8b4;
  --ink: #2e241d; --ink-muted: #6b5d50;
  --sage: #5e7762; --sage-strong: #4f6654; --on-sage: #ffffff;
  --oak: #8e6643; --rattan: #b08d64; --wine: #6e3a44; --terracotta: #b5573b; --walnut: #594136;
  --font-serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --font-sans: Inter, "Helvetica Neue", Arial, system-ui, sans-serif;
  --space-2: 8px; --space-4: 16px; --space-6: 24px; --space-10: 40px; --space-24: 96px;
  --radius-sm: 2px; --radius-md: 6px;
  --max: 1200px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface-100: #1c1814; --surface-200: #26201b; --surface-300: #332b24; --hairline: #3d342c;
    --ink: #f2ebe1; --ink-muted: #b3a796;
    --sage: #7f9a84; --sage-strong: #9fb8a3; --on-sage: #1c1814;
    --oak: #c9a57c; --wine: #d4a6ad; --terracotta: #d98a6c; --walnut: #8a6a58;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--surface-100); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 28px; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sage-strong); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--sage-strong); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--space-6); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sage-strong); color: var(--on-sage); padding: 8px 16px; z-index: 100; }
.skip:focus { left: 8px; }

/* Type */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; margin: 0; letter-spacing: -0.005em; }
.display { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4.4vw, 44px); line-height: 1.1; }
h3 { font-size: 28px; line-height: 1.2; }
.eyebrow { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--oak); margin: 0 0 var(--space-4); }
.lede { font-size: 19px; line-height: 30px; color: var(--ink-muted); max-width: 62ch; }
.muted { color: var(--ink-muted); }
p { margin: 0 0 var(--space-4); max-width: 68ch; }
.quote { font-family: var(--font-serif); font-style: italic; font-size: 26px; line-height: 1.35; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: var(--radius-md); font: 600 15px/20px var(--font-sans); letter-spacing: .02em; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s; }
.btn-primary { background: var(--sage-strong); color: var(--on-sage); }
.btn-primary:hover { background: var(--sage); }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--surface-200); }
.btn-light { border-color: #fff; color: #fff; }
.btn-light:hover { background: rgba(255,255,255,.12); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface-100) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hairline); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: var(--space-4); }
.wordmark { font-family: var(--font-serif); font-weight: 500; font-size: 24px; line-height: 1; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-badge { display: block; width: 48px; height: 48px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px var(--hairline); }
.brand .wordmark { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .brand .wordmark { font-size: 20px; } .brand-badge { width: 42px; height: 42px; } }
.brand-footer .brand-badge { width: 112px; height: 112px; box-shadow: 0 0 0 3px rgba(242,235,225,.18); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--sage-strong); }
.nav .btn { color: var(--on-sage); min-height: 40px; padding: 8px 18px; }
.menu-toggle { display: none; background: none; border: 1.5px solid var(--ink); color: var(--ink); border-radius: var(--radius-md); padding: 8px 12px; font: 600 14px var(--font-sans); cursor: pointer; }
@media (max-width: 900px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface-100); border-bottom: 1px solid var(--hairline); padding: 8px var(--space-6) var(--space-6); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--hairline); font-size: 17px; }
  .nav .btn { margin-top: var(--space-4); border-bottom: 0; }
}

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,24,20,.85) 0%, rgba(28,24,20,.55) 50%, rgba(28,24,20,.1) 85%); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: clamp(48px, 8vw, 96px); }
.hero .eyebrow { color: #f3e3cc; }
.hero .display { max-width: 15ch; }
.hero p { color: #f2ebe1; font-size: 19px; line-height: 30px; max-width: 52ch; margin-top: var(--space-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-6); }

/* Facts strip */
.facts { background: var(--surface-200); border-bottom: 1px solid var(--hairline); }
.facts ul { list-style: none; margin: 0; padding: var(--space-6) 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); }
.facts li { display: flex; flex-direction: column; gap: 2px; }
.facts strong { font-family: var(--font-serif); font-weight: 500; font-size: 30px; line-height: 1.1; }
.facts span { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
@media (max-width: 800px) { .facts ul { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
.section { padding: var(--space-24) 0; }
.section.alt { background: var(--surface-200); }
@media (max-width: 700px) { .section { padding: 64px 0; } }
.section-head { margin-bottom: var(--space-10); }
.section-head h2 { max-width: 20ch; }
.section-head .lede { margin-top: var(--space-4); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.split figure { margin: 0; }
.photo { border-radius: var(--radius-sm); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-300); }
.photo.tall { aspect-ratio: 3 / 4; }
figcaption { font-size: 13px; line-height: 18px; color: var(--ink-muted); margin-top: var(--space-2); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }

/* Amenities */
.amenities { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-6); }
.amenities li { padding: 12px 0; border-top: 1px solid var(--hairline); font-size: 15px; line-height: 24px; }
@media (max-width: 520px) { .amenities { grid-template-columns: 1fr; } }

/* Rooms */
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 980px) { .rooms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .rooms { grid-template-columns: 1fr; } }
.room { background: var(--surface-100); border: 1px solid var(--hairline); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; }
.room button { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.room img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.room .body { padding: var(--space-6); }
.room h3 { font-size: 26px; margin-bottom: var(--space-2); }
.room p { font-size: 15px; line-height: 24px; color: var(--ink-muted); margin: 0; }

/* Gallery */
.gallery { columns: 3 280px; column-gap: var(--space-4); }
.gallery button { display: block; width: 100%; margin: 0 0 var(--space-4); padding: 0; border: 0; background: var(--surface-300); border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; break-inside: avoid; }
.gallery img { width: 100%; transition: transform .4s ease; }
.gallery button:hover img { transform: scale(1.03); }

/* Views band */
.views { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-4); }
.views img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.views .stack { display: grid; gap: var(--space-4); }
@media (max-width: 760px) { .views { grid-template-columns: 1fr; } }

/* Ring ornament (round mirrors / ring pendant motif) */
.ring { width: 56px; height: 56px; border: 1.5px solid var(--rattan); border-radius: 50%; margin-bottom: var(--space-6); }

/* Care */
.care-list { list-style: none; padding: 0; margin: var(--space-6) 0; columns: 2 220px; column-gap: var(--space-6); }
.care-list li { padding: 10px 0; border-top: 1px solid var(--hairline); break-inside: avoid; font-size: 15px; line-height: 24px; }
.motto { border-left: 0; padding: var(--space-6) 0 0; margin: var(--space-6) 0 0; border-top: 1px solid var(--hairline); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 72px); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact dl { margin: var(--space-6) 0 0; }
.contact dt { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--oak); margin-top: var(--space-6); }
.contact dd { margin: 4px 0 0; font-size: 17px; }
form { background: var(--surface-100); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: clamp(20px, 4vw, 40px); display: grid; gap: var(--space-4); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
input, select, textarea { font: 400 16px/24px var(--font-sans); color: var(--ink); background: var(--surface-100); border: 1.5px solid var(--ink-muted); border-radius: var(--radius-sm); padding: 10px 12px; width: 100%; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sage-strong); outline-offset: 1px; border-color: var(--sage-strong); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-note { font-size: 13px; line-height: 18px; color: var(--ink-muted); margin: 0; }

/* Footer */
.site-footer { background: var(--walnut); color: #f2ebe1; padding: 56px 0 40px; }
@media (prefers-color-scheme: dark) { .site-footer { background: var(--surface-200); } }
.site-footer a { color: #f2ebe1; }
.site-footer .wordmark { color: #f2ebe1; font-size: 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-10); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer p, .site-footer li { font-size: 15px; line-height: 24px; color: #e3d6c3; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer h4 { font: 600 12px/16px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 12px; color: #c9a57c; }
.legal { margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid rgba(242,235,225,.2); font-size: 13px; color: #c9bba6; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20,17,14,.94); display: none; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox .lb-cap { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #e3d6c3; font-size: 14px; }
.lb-btn { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; width: 48px; height: 48px; font-size: 22px; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .gallery img { transition: none; } }

/* Estates cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface-200); border: 1px solid var(--hairline); border-top: 3px solid var(--sage); border-radius: var(--radius-md); padding: var(--space-6); }
.card:nth-child(2) { border-top-color: var(--oak); }
.card:nth-child(3) { border-top-color: var(--terracotta); }
.card:nth-child(4) { border-top-color: var(--wine); }
.card-kicker { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 var(--space-2); }
.card h3 { font-size: 26px; margin-bottom: var(--space-2); }
.card p:last-child { font-size: 15px; line-height: 24px; color: var(--ink-muted); margin: 0; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid var(--hairline); }
.cta-row p { margin: 0; }

/* Services groups */
.svc-groups { margin-top: var(--space-6); }
.svc-groups h3 { font-size: 24px; margin-top: var(--space-4); }
.svc-groups .care-list { columns: 2 200px; margin: var(--space-2) 0 var(--space-4); }
.stay-fields[hidden] { display: none; }
