/* SAGE public site ---------------------------------------------------- */
:root {
  --sage-900: #262f28;
  --sage-800: #313c33;
  --sage-700: #4a5b4d;
  --sage-600: #627967;
  --sage-400: #8fa493;
  --sage-200: #bccfbe;
  --sage-100: #e3ece4;
  --sage-50:  #f3f6f2;
  --cream:    #faf8f3;
  --ink:      #1f2a22;
  --muted:    #5d6a60;
  --line:     #d9e1d9;
  --gold:     #b08d3c;
  --danger:   #a3312a;
  --radius:   10px;
  --shadow:   0 1px 2px rgba(31,42,34,.06), 0 8px 24px rgba(31,42,34,.08);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 16px/1.6 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-700); text-underline-offset: 3px; }
a:hover { color: var(--sage-900); }
h1, h2, h3 { font-family: var(--serif); color: var(--sage-800); line-height: 1.15; font-weight: 600; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }
.narrow { max-width: 820px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Header */
.topbar { background: var(--sage-800); color: var(--sage-100); font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; }
@media (max-width: 560px) { .topbar-inner span { display: none; } .topbar-inner { justify-content: flex-end; } }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand img { width: clamp(200px, 30vw, 300px); height: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; align-items: center; gap: 4px; }
.site-nav a, .site-nav summary {
  display: block; padding: 10px 12px; border-radius: 8px; color: var(--sage-800);
  text-decoration: none; font-weight: 500; font-size: .95rem; cursor: pointer;
}
.site-nav a:hover, .site-nav summary:hover { background: var(--sage-50); }
.site-nav [aria-current="page"] { color: var(--sage-900); box-shadow: inset 0 -2px 0 var(--sage-600); border-radius: 0; }
.site-nav summary { list-style: none; }
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav summary::after { content: "▾"; font-size: .75em; margin-left: 6px; }
.has-sub { position: relative; }
.has-sub details ul {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 260px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px;
}
.site-nav .nav-cta { background: var(--sage-700); color: #fff; margin-left: 6px; }
.site-nav .nav-cta:hover { background: var(--sage-800); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 20px; height: 2px; background: var(--sage-800); margin: 0 auto; position: relative; content: "";
}
.nav-toggle-bar::before { position: absolute; top: -6px; } .nav-toggle-bar::after { position: absolute; top: 6px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .has-sub details ul { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
  .site-nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .site-nav [aria-current="page"] { box-shadow: inset 3px 0 0 var(--sage-600); }
}

/* Buttons */
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 8px; border: 1px solid var(--sage-700);
  background: var(--sage-700); color: #fff; font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--sage-800); border-color: var(--sage-800); color: #fff; }
.btn-outline { background: transparent; color: var(--sage-700); }
.btn-outline:hover { background: var(--sage-50); color: var(--sage-900); }
.btn-light { background: #fff; color: var(--sage-800); border-color: #fff; }
.btn-light:hover { background: var(--sage-100); color: var(--sage-900); border-color: var(--sage-100); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; margin-bottom: 10px; }

/* Hero / sections */
.hero {
  color: #fff; padding: clamp(40px, 6vw, 76px) 0;
  background:
    radial-gradient(1200px 400px at 85% 0%, rgba(188,207,190,.25), transparent 60%),
    linear-gradient(135deg, var(--sage-900), var(--sage-700));
}
.hero h1 { color: #fff; max-width: 24ch; font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
.hero-lead { max-width: 60ch; font-size: 1.1rem; color: var(--sage-100); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--sage-600); margin-bottom: .6em; }
.hero .eyebrow { color: var(--sage-200); }
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section-tight { padding-top: 8px; }
.section-alt { background: var(--sage-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 24px; }
.page-head { padding: clamp(32px, 5vw, 56px) 0 24px; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 70ch; }
.split { display: grid; gap: 32px; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* Toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.toolbar input[type=search] { flex: 1 1 260px; }
.toolbar select { flex: 0 1 200px; }
.toolbar-reset { font-size: .9rem; }
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=number], input[type=password], input[type=url], select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #c5d0c6; border-radius: 8px; background: #fff;
  font: 1rem/1.4 var(--sans); color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--sage-600); outline: 3px solid rgba(98,121,103,.2); }
.result-count { color: var(--muted); font-size: .92rem; }

/* Cards */
.card-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(31,42,34,.04); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--sage-100); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card-placeholder { position: absolute; inset: 0; display: grid; place-items: center; font: 600 2.4rem var(--serif); color: var(--sage-400); letter-spacing: .1em; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--gold); color: #fff; font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.badge-inline { position: static; display: inline-block; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-kicker { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-600); margin-bottom: 4px; font-weight: 600; }
.card-title { font-size: 1.3rem; margin-bottom: 6px; }
.card-title a { color: var(--sage-800); text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-meta { color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
.card-text { color: var(--muted); font-size: .92rem; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid var(--sage-50); }
.card-price { font-weight: 600; color: var(--sage-800); }
.card-link { font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 32px; text-align: center; }

/* Listing detail */
.crumbs { padding-top: 20px; font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.listing { display: grid; gap: 32px; padding-top: 16px; padding-bottom: 64px; }
@media (min-width: 900px) { .listing { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .listing-aside { position: sticky; top: 120px; } }
.listing-figure { margin: 0 0 24px; }
.mobile-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.mobile-cta strong { font-size: 1.15rem; color: var(--sage-800); }
@media (min-width: 900px) { .mobile-cta { display: none; } }
.listing-figure img { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.listing-figure figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 2px rgba(31,42,34,.04); }
.facts { margin: 0 0 18px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--sage-50); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.panel-note { font-size: .88rem; color: var(--muted); margin: 10px 0 0; }
.fineprint { font-size: .82rem; color: var(--muted); margin-top: 28px; }

/* Prose (CMS content) */
.prose { max-width: 75ch; }
.prose img { border-radius: 8px; margin: 12px 0; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose figure { margin: 1.2em 0; }
.prose .team-member { display: grid; gap: 16px; margin: 24px 0; }
@media (min-width: 640px) { .prose .team-member { grid-template-columns: 180px 1fr; } }

/* Search embed */
.search-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.embed { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.embed iframe { display: block; width: 100%; height: min(1400px, 160vh); border: 0; }

/* Forms */
.contact-layout { display: grid; gap: 24px; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.form .field { margin-bottom: 16px; border: 0; padding: 0; }
.form label, .form legend { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.form label.inline { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; margin-right: 18px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.req { color: var(--danger); }
.has-error input, .has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .88rem; margin: 6px 0 0; }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; }
.alert-error { background: #fbeceb; color: var(--danger); border: 1px solid #f0c9c6; }
.alert-info { background: var(--sage-50); border: 1px solid var(--line); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-card address { font-style: normal; margin-bottom: 1em; }

/* Footer */
.site-footer { background: var(--sage-900); color: var(--sage-100); padding-top: 48px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 32px; padding-bottom: 32px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.1fr 1fr 1.2fr; } }
.footer-name { font: 600 1.35rem var(--serif); color: #fff; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 24px; }
.site-footer li { margin-bottom: 8px; break-inside: avoid; }
.site-footer li a { text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.footer-note { font-size: .82rem; color: var(--sage-200); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; padding-bottom: 24px; font-size: .85rem; color: var(--sage-200); }
.footer-bottom p { margin: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .listing-aside .btn, .toolbar { display: none !important; } }
