/* warm-resort-glossy — shared across all pages. The senior-living controller
   commits this file alongside the rendered HTML pages so every page gets the
   same visual language. The --primary / --primary-dark / --primary-light CSS
   vars are the only customer-swappable bits; everything else (accent, paper,
   serif/sans pairing) defines the theme. */

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

:root {
    --primary: #5a7a5e;          /* warm sage */
    --primary-dark: #3f5944;
    --primary-light: #e8efe9;
    --accent: #b1623f;            /* terracotta */
    --accent-soft: #f5e1d5;
    --paper: #fbf8f3;             /* cream */
    --paper-warm: #f3ebde;
    --ink: #2d2a26;
    --ink-soft: #5b574f;
    --rule: #e6e1d5;
    --rule-strong: #c9c1ad;
    --gold: #b08a3e;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-size: 18px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .display-serif {
    font-family: 'Source Serif 4', serif;
    font-weight: 600;
    color: var(--primary-dark);
    letter-spacing: -0.01em;
    line-height: 1.18;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary-dark); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 36px; }
.narrow    { max-width: 780px;  margin: 0 auto; padding: 0 36px; }

/* ── NAV ─────────────────────────────────────── */
nav.site-nav {
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    position: sticky;
    top: 0;
    z-index: 60;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 84px;
    gap: 16px;
}
.nav-brand { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo {
    font-family: 'Source Serif 4', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
}
.nav-tagline {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-top: 4px;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s, color 0.15s;
}
.nav-links a:hover { color: var(--primary-dark); border-bottom-color: var(--accent); }
.nav-cta {
    background: var(--accent);
    color: white !important;
    padding: 12px 22px !important;
    border-radius: 999px;
    font-weight: 700 !important;
    border-bottom: none !important;
    transition: background 0.15s, transform 0.1s;
}
.nav-cta:hover { background: #8e4f33; border-bottom: none !important; }
.nav-call { font-family: 'Source Serif 4', serif; color: var(--primary-dark) !important; font-weight: 700 !important; font-size: 17px !important; }

@media (max-width: 880px) {
    .nav-links { gap: 12px; }
    .nav-links a:not(.nav-cta):not(.nav-call) { display: none; }
}

/* ── HERO ────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--primary-light);
}
.hero-img {
    width: 100%;
    height: 620px;
    object-fit: cover;
    display: block;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(45,42,38,0.35) 0%, rgba(45,42,38,0.5) 50%, rgba(45,42,38,0.6) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 36px;
}
.hero-content { max-width: 820px; margin: 0 auto; }
.hero-eyebrow {
    display: inline-block;
    background: rgba(251,248,243,0.92);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 22px;
}
.hero h1 {
    font-size: 60px;
    color: white;
    font-weight: 600;
    line-height: 1.08;
    margin-bottom: 22px;
    text-shadow: 0 2px 18px rgba(0,0,0,0.45);
}
.hero-sub {
    color: rgba(255,255,255,0.96);
    font-size: 20px;
    max-width: 640px;
    margin: 0 auto 32px;
    text-shadow: 0 1px 12px rgba(0,0,0,0.45);
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Lighter hero variant for inner pages — no full-bleed photo, just a band */
.hero-band {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--paper-warm) 100%);
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--rule);
}
.hero-band h1 { font-size: 48px; color: var(--primary-dark); margin-bottom: 14px; }
.hero-band p  { font-size: 19px; color: var(--ink-soft); max-width: 720px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: transform 0.1s, box-shadow 0.15s;
    border: none;
    cursor: pointer;
}
.btn-primary { background: var(--accent); color: white; box-shadow: 0 8px 24px rgba(177,98,63,0.32); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(177,98,63,0.4); color: white; }
.btn-ghost { background: rgba(251,248,243,0.95); color: var(--primary-dark); }
.btn-ghost:hover { background: white; color: var(--primary-dark); }

@media (max-width: 720px) {
    .hero-img { height: 480px; }
    .hero h1 { font-size: 38px; }
    .hero-band h1 { font-size: 34px; }
    .hero-sub { font-size: 17px; }
    .hero-overlay { padding: 40px 22px; }
}

/* ── PROOF STRIP ─────────────────────────────── */
.proof-strip {
    background: var(--paper-warm);
    border-bottom: 1px solid var(--rule);
    padding: 22px 0;
}
.proof-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 36px;
    font-size: 14px;
    color: var(--primary-dark);
    font-weight: 600;
}
.proof-item-text { display: inline-flex; align-items: center; gap: 8px; }
.proof-item-text::before {
    content: "✓";
    color: var(--accent);
    font-weight: 800;
    font-size: 16px;
}

/* ── SECTION ─────────────────────────────────── */
.section { padding: 80px 0; }
.section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.section-heading { font-size: 40px; margin-bottom: 18px; }
.section-lead { font-size: 19px; color: var(--ink-soft); max-width: 720px; }

/* ── 3-PILLAR GRID ──────────────────────────── */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr; gap: 22px; } }
.pillar {
    background: white;
    border: 1px solid var(--rule);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pillar:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(45,42,38,0.08); }
.pillar-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: var(--rule);
}
.pillar-body { padding: 28px; }
.pillar-icon { font-size: 28px; margin-bottom: 10px; }
.pillar h3 { font-size: 24px; margin-bottom: 10px; }
.pillar p { color: var(--ink-soft); font-size: 16px; line-height: 1.65; }

/* ── TESTIMONIAL ─────────────────────────────── */
.testimonial-band {
    background: var(--primary-dark);
    color: white;
    padding: 80px 0;
}
.testimonial-band .section-eyebrow { color: var(--paper-warm); }
.testimonial-quote {
    font-family: 'Source Serif 4', serif;
    font-size: 30px;
    line-height: 1.4;
    color: white;
    margin-bottom: 26px;
    position: relative;
}
.testimonial-quote::before {
    content: "“";
    font-size: 100px;
    line-height: 1;
    color: var(--accent);
    position: absolute;
    top: -28px;
    left: -22px;
    opacity: 0.55;
}
.testimonial-attr { color: var(--accent-soft); font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.testimonial-stars { color: var(--gold); margin-top: 6px; font-size: 18px; letter-spacing: 2px; }

/* ── AWARDS ──────────────────────────────────── */
.awards {
    background: var(--paper-warm);
    padding: 50px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}
.awards-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 42px;
}
.award {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 140px;
}
.award-name {
    font-family: 'Source Serif 4', serif;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    line-height: 1.3;
}
.award-year { color: var(--ink-soft); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ── CTA BAND ────────────────────────────────── */
.cta-band {
    text-align: center;
    background: var(--accent-soft);
    padding: 90px 0;
}
.cta-band h2 { font-size: 44px; margin-bottom: 18px; }
.cta-band p { font-size: 19px; color: var(--ink-soft); max-width: 640px; margin: 0 auto 32px; }

/* ── FOOTER ──────────────────────────────────── */
footer {
    background: var(--primary-dark);
    color: var(--paper-warm);
    padding: 64px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand { font-family: 'Source Serif 4', serif; font-size: 22px; color: white; margin-bottom: 12px; }
.footer-tagline { color: rgba(255,255,255,0.78); font-size: 15px; line-height: 1.65; }
.footer-col h4 {
    color: white;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 14px;
    font-family: 'Inter', system-ui;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.78); font-size: 14px; }
.footer-col a:hover { color: var(--accent-soft); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    flex-wrap: wrap;
    gap: 16px;
}

/* ── INNER-PAGE BLOCKS ────────────────────────── */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

.amenity-list {
    columns: 2;
    column-gap: 48px;
    list-style: none;
    margin-top: 32px;
}
@media (max-width: 720px) { .amenity-list { columns: 1; } }
.amenity-list li {
    padding: 10px 0 10px 28px;
    position: relative;
    border-bottom: 1px solid var(--rule);
    font-size: 17px;
    color: var(--ink);
    break-inside: avoid;
}
.amenity-list li::before {
    content: "✓";
    color: var(--accent);
    font-weight: 800;
    position: absolute;
    left: 0;
    top: 11px;
}

.floor-plan-grid, .care-level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 48px;
}
.floor-plan, .care-level {
    background: white;
    border: 1px solid var(--rule);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.floor-plan-photo {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: var(--paper-warm);
}
.floor-plan-body, .care-level-body { padding: 26px; flex: 1; }
.floor-plan-label, .care-level-label {
    font-family: 'Source Serif 4', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 6px;
}
.floor-plan-sqft, .care-level-tagline {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
}
.floor-plan-features {
    list-style: none;
    margin-top: 12px;
}
.floor-plan-features li {
    padding: 6px 0 6px 18px;
    position: relative;
    color: var(--ink-soft);
    font-size: 15px;
}
.floor-plan-features li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 4px;
    top: 6px;
}

.contact-form {
    background: white;
    border: 1px solid var(--rule);
    border-radius: 18px;
    padding: 36px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
    display: block;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 14px;
    margin-bottom: 6px;
}
.form-row input, .form-row textarea, .form-row select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--rule-strong);
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    color: var(--ink);
    background: var(--paper);
}
.form-row textarea { min-height: 120px; resize: vertical; }

.faq-item {
    border-bottom: 1px solid var(--rule);
    padding: 22px 0;
}
.faq-item h3 {
    font-size: 19px;
    margin-bottom: 8px;
    color: var(--primary-dark);
}
.faq-item p { color: var(--ink-soft); font-size: 16px; }

/* Gallery — only used on gallery.html */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 32px 0;
}
.gallery-chip {
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--paper-warm);
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--rule);
}
.gallery-chip.active { background: var(--accent); color: white; border-color: var(--accent); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
.gallery-tile {
    aspect-ratio: 4/3;
    background: var(--paper-warm);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.gallery-tile:hover img { transform: scale(1.04); }
.gallery-tile-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.72) 100%);
    color: white;
    padding: 28px 14px 12px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s;
}
.gallery-tile:hover .gallery-tile-caption { opacity: 1; }
