/* =============================================================
   Cedar Ridge Storage Co. - Premium Design System
   =============================================================
   Layer 1 (brand) sits in tokens.css per the wiki design
   language. Layer 2 (patterns) live here: hero, section
   grammar, pricing card, sticky nav, button system, motion.
   No em-dashes anywhere. No tech jargon in any visible
   copy. Reduced motion is honored throughout.
   ============================================================= */

/* -------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------- */
:root {
    /* color */
    --color-bg:           #faf7f2;
    --color-bg-alt:       #f4efe6;
    --color-bg-deep:      #ece4d4;
    --color-surface:      #ffffff;
    --color-surface-soft: #fbf8f2;
    --color-ink:          #2a2520;
    --color-ink-soft:     #4a4036;
    --color-ink-muted:    #6a6058;
    --color-ink-inverse:  #f5f0e8;
    --color-line:         #e6dfd3;
    --color-line-subtle:  #efeae0;
    --color-brand:        #1a3a40;
    --color-brand-light:  #2c5057;
    --color-brand-deep:   #122c31;
    --color-brand-tint:   #f0e7d8;
    --color-accent:       #c9a961;
    --color-accent-dark:  #a88945;
    --color-accent-tint:  #f7f0df;
    --color-overlay:        rgba(26, 58, 64, 0.55);
    --color-overlay-strong: rgba(26, 58, 64, 0.78);
    --color-overlay-fade:   linear-gradient(135deg, rgba(26, 58, 64, 0.78) 0%, rgba(26, 58, 64, 0.45) 60%, rgba(26, 58, 64, 0.10) 100%);
    --color-success-bg:   #d4edda;
    --color-success-fg:   #155724;
    --color-warning-bg:   #fff3cd;
    --color-warning-fg:   #856404;
    --color-danger-bg:    #f8d7da;
    --color-danger-fg:    #721c24;

    /* type */
    --font-display: 'Cormorant Garamond', 'Garamond', 'Georgia', serif;
    --font-body:    'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
    --fs-display:   clamp(2.75rem, 5.5vw, 4.5rem);
    --fs-h1:        clamp(2.25rem, 4.2vw, 3.5rem);
    --fs-h2:        clamp(1.75rem, 3vw, 2.5rem);
    --fs-h3:        1.5rem;
    --fs-h4:        1.25rem;
    --fs-body:      1.0625rem;
    --fs-small:     0.9375rem;
    --fs-tiny:      0.8125rem;
    --lh-display:   1.05;
    --lh-body:      1.65;
    --ls-display:  -0.012em;
    --ls-uppercase: 0.16em;

    /* spacing (8px base) */
    --sp-1:  4px;
    --sp-2:  8px;
    --sp-3:  12px;
    --sp-4:  16px;
    --sp-5:  24px;
    --sp-6:  32px;
    --sp-7:  48px;
    --sp-8:  64px;
    --sp-9:  96px;
    --sp-10: 128px;
    --sp-11: 160px;

    /* radius */
    --r-sm: 4px;
    --r-md: 10px;
    --r-lg: 18px;
    --r-xl: 28px;

    /* shadow (warm tinted) */
    --shadow-sm: 0 1px 2px rgba(40, 30, 15, 0.05);
    --shadow-md: 0 4px 16px rgba(40, 30, 15, 0.08);
    --shadow-lg: 0 12px 40px rgba(40, 30, 15, 0.12);
    --shadow-xl: 0 24px 64px rgba(40, 30, 15, 0.16);
    --shadow-photo: 0 20px 60px rgba(40, 30, 15, 0.18);

    /* transition */
    --t-fast:  160ms ease;
    --t-base:  280ms cubic-bezier(0.2, 0.6, 0.2, 1);
    --t-slow:  480ms cubic-bezier(0.2, 0.6, 0.2, 1);
    --t-kenburns: 9s ease;

    /* layout */
    --max-content: 1240px;
    --max-narrow:  880px;
    --max-text:    680px;
    --header-h:    80px;
}

/* -------------------------------------------------------------
   2. Reset and base
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--color-ink);
    background: var(--color-bg);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--color-brand);
    font-weight: 500;
    line-height: var(--lh-display);
    letter-spacing: var(--ls-display);
    margin: 0 0 var(--sp-4) 0;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p { margin: 0 0 var(--sp-4) 0; }
p:last-child { margin-bottom: 0; }
a { color: var(--color-brand); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--color-accent-dark); }
img { max-width: 100%; height: auto; display: block; }
hr { border: none; height: 1px; background: var(--color-line); margin: var(--sp-6) 0; }

/* -------------------------------------------------------------
   3. Reveal-on-scroll (respects reduced motion)
   ------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--t-slow), transform var(--t-slow); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* -------------------------------------------------------------
   4. Layout primitives
   ------------------------------------------------------------- */
.container        { max-width: var(--max-content); margin: 0 auto; padding: 0 var(--sp-5); }
.container-narrow { max-width: var(--max-narrow);  margin: 0 auto; padding: 0 var(--sp-5); }
.section       { padding: var(--sp-9) 0; }
.section-tight { padding: var(--sp-7) 0; }
.section-dark  { background: var(--color-brand); color: var(--color-ink-inverse); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--color-ink-inverse); }

.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--fs-tiny);
    font-weight: 700;
    letter-spacing: var(--ls-uppercase);
    text-transform: uppercase;
    color: var(--color-accent-dark);
    margin-bottom: var(--sp-3);
}
.section-dark .eyebrow { color: var(--color-accent); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--sp-7); }
.section-head h2 { margin-bottom: var(--sp-3); }
.section-head p  { color: var(--color-ink-muted); font-size: 1.1rem; }
.section-dark .section-head p { color: rgba(245, 240, 232, 0.8); }

/* -------------------------------------------------------------
   5. Buttons
   ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: 14px 28px;
    border-radius: var(--r-sm);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--t-fast);
    white-space: nowrap;
    line-height: 1;
}
.btn .arrow { transition: transform var(--t-fast); display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
    background: var(--color-brand);
    color: var(--color-ink-inverse);
}
.btn-primary:hover {
    background: var(--color-accent-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-ghost {
    background: transparent;
    color: var(--color-ink);
    border-color: var(--color-line);
}
.btn-ghost:hover { background: var(--color-bg-alt); color: var(--color-brand); transform: translateY(-2px); }
.btn-on-photo {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-brand);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.btn-on-photo:hover { background: white; transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--color-brand); }
.btn-on-dark {
    background: transparent;
    color: var(--color-ink-inverse);
    border-color: rgba(255, 255, 255, 0.32);
}
.btn-on-dark:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.6); color: var(--color-ink-inverse); }
.btn-on-accent {
    background: var(--color-accent);
    color: var(--color-brand-deep);
}
.btn-on-accent:hover { background: var(--color-accent-dark); color: white; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-sm { padding: 10px 20px; font-size: 0.8125rem; }

/* -------------------------------------------------------------
   6. Header (sticky, blur on scroll)
   ------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 247, 242, 0.97);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    border-bottom: 1px solid transparent;
    transition: background var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.site-header.scrolled {
    border-bottom-color: var(--color-line-subtle);
    box-shadow: var(--shadow-sm);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    gap: var(--sp-5);
}
.site-brand {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    text-decoration: none;
    color: var(--color-brand);
    transition: opacity var(--t-fast);
}
.site-brand:hover { opacity: 0.78; }
.site-brand .brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: var(--color-brand);
    color: var(--color-accent);
    border-radius: var(--r-sm);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}
.site-brand .brand-text {
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1;
    color: var(--color-brand);
    font-weight: 600;
}
.site-nav { display: flex; align-items: center; gap: var(--sp-1); }
.site-nav a {
    padding: 10px 18px;
    color: var(--color-ink);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--r-sm);
    position: relative;
    transition: color var(--t-fast);
}
.site-nav a::after {
    content: '';
    position: absolute;
    left: 50%; right: 50%;
    bottom: 4px;
    height: 2px;
    background: var(--color-accent);
    opacity: 0.85;
    transition: left var(--t-base), right var(--t-base);
}
.site-nav a:hover { color: var(--color-brand); }
.site-nav a:hover::after { left: 18px; right: 18px; }
/* Reserve-a-Unit header CTA. Selector bumped to a.site-nav-cta so
   it wins the cascade over the base .site-nav a rule above. The
   base rule sets color: var(--color-ink) which is the wrong color
   on the dark CTA background and was making the button text
   invisible. */
.site-nav a.site-nav-cta {
    margin-left: var(--sp-3);
    background: #0a2024;
    color: var(--color-accent) !important;
    padding: 14px 26px;
    border-radius: var(--r-md);
    border: 2px solid var(--color-accent);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.875rem;
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.18), 0 6px 20px rgba(0, 0, 0, 0.35);
    transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.site-nav a.site-nav-cta::after {
    content: " \2192";
    display: inline;
    margin-left: 0.35em;
    transition: margin-left var(--t-fast);
    position: static;
    left: auto; right: auto;
    background: transparent;
    width: auto; height: auto;
}
.site-nav a.site-nav-cta:hover {
    background: var(--color-accent);
    color: #0a2024 !important;
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.32), 0 10px 28px rgba(0, 0, 0, 0.45);
}
.site-nav a.site-nav-cta:hover::after { margin-left: 0.6em; }

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--color-line);
    color: var(--color-brand);
    width: 44px; height: 44px;
    border-radius: var(--r-sm);
    font-size: 1.25rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
@media (max-width: 880px) {
    .site-nav { display: none; }
    .mobile-menu-btn { display: inline-flex; }
    .site-header .container { min-height: 64px; }
    :root { --header-h: 64px; }
}

.mobile-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 92vw);
    background: var(--color-bg);
    z-index: 200;
    padding: var(--sp-7) var(--sp-5) var(--sp-5);
    transform: translateX(100%);
    transition: transform var(--t-base);
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
    padding: 14px 16px;
    color: var(--color-ink);
    font-weight: 600;
    border-bottom: 1px solid var(--color-line-subtle);
}
.mobile-menu a:hover { color: var(--color-brand); }
.mobile-menu-close {
    position: absolute;
    top: var(--sp-3); right: var(--sp-3);
    background: none; border: none;
    font-size: 1.5rem;
    color: var(--color-ink);
    cursor: pointer;
    width: 40px; height: 40px;
    border-radius: var(--r-sm);
}
.mobile-menu-close:hover { background: var(--color-bg-alt); }

/* -------------------------------------------------------------
   7. Hero (full-bleed photo with overlay)
   ------------------------------------------------------------- */
.hero-photo {
    position: relative;
    min-height: 88vh;
    max-height: 880px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    color: var(--color-ink-inverse);
}
.hero-photo::before {
    content: '';
    position: absolute;
    inset: -4% 0 0 0;
    background: url('/images/hero/main.jpg') center/cover no-repeat;
    z-index: -2;
    transform: scale(1.06);
    transition: transform var(--t-kenburns);
}
.hero-photo.in::before { transform: scale(1); }
.hero-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-overlay-fade);
    z-index: -1;
}
.hero-content { max-width: 760px; padding: var(--sp-9) 0; }
.hero-eyebrow {
    display: inline-block;
    color: var(--color-accent);
    font-size: var(--fs-tiny);
    font-weight: 700;
    letter-spacing: var(--ls-uppercase);
    text-transform: uppercase;
    margin-bottom: var(--sp-5);
    padding: 6px 14px;
    background: rgba(201, 169, 97, 0.14);
    border: 1px solid rgba(201, 169, 97, 0.32);
    border-radius: 999px;
}
.hero-title {
    color: var(--color-ink-inverse);
    font-size: var(--fs-display);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.018em;
    margin: 0 0 var(--sp-4) 0;
}
.hero-title em {
    font-style: italic;
    color: var(--color-accent);
    font-weight: 500;
}
.hero-lede {
    font-size: clamp(1.05rem, 1.35vw, 1.25rem);
    line-height: 1.55;
    color: rgba(245, 240, 232, 0.92);
    margin: 0 0 var(--sp-6) 0;
    max-width: 560px;
}
.hero-cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.hero-scroll-hint {
    position: absolute;
    bottom: var(--sp-5);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(245, 240, 232, 0.7);
    font-size: 0.75rem;
    letter-spacing: var(--ls-uppercase);
    text-transform: uppercase;
    text-align: center;
    line-height: 1.6;
}
.hero-scroll-hint::after {
    content: '';
    display: block;
    width: 1px;
    height: 32px;
    background: rgba(245, 240, 232, 0.4);
    margin: var(--sp-2) auto 0;
}
@media (max-width: 880px) {
    .hero-photo { min-height: 70vh; }
}

/* -------------------------------------------------------------
   8. Trust strip
   ------------------------------------------------------------- */
.trust-strip {
    background: var(--color-bg-alt);
    padding: var(--sp-7) 0;
    border-top: 1px solid var(--color-line-subtle);
    border-bottom: 1px solid var(--color-line-subtle);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--sp-6);
    text-align: center;
}
.trust-item { color: var(--color-ink-muted); }
.trust-num {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--color-brand);
    line-height: 1;
    margin-bottom: var(--sp-2);
    font-weight: 500;
}
.trust-label {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: var(--ls-uppercase);
    text-transform: uppercase;
    color: var(--color-ink-muted);
}

/* -------------------------------------------------------------
   9. Features grid
   ------------------------------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--sp-5);
    margin-top: var(--sp-7);
}
.feature {
    background: var(--color-surface);
    border: 1px solid var(--color-line-subtle);
    border-radius: var(--r-md);
    padding: var(--sp-6);
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}
.feature-icon {
    width: 52px; height: 52px;
    background: var(--color-brand-tint);
    color: var(--color-brand);
    border-radius: var(--r-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-4);
    font-size: 1.4rem;
    font-weight: 700;
}
.feature h3 { font-size: 1.35rem; margin-bottom: var(--sp-2); }
.feature p { color: var(--color-ink-muted); margin: 0; }

/* -------------------------------------------------------------
   10. Photo gallery (asymmetric grid)
   ------------------------------------------------------------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 200px;
    gap: var(--sp-3);
    margin-top: var(--sp-7);
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-md);
    cursor: pointer;
    background: var(--color-bg-alt);
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: var(--sp-5);
    color: white;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    opacity: 0;
    transform: translateY(8px);
    transition: all var(--t-base);
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: none; }
.gallery-caption h4 { color: white; font-size: 1.3rem; margin: 0 0 4px 0; }
.gallery-caption p { margin: 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); }

.gallery-size-wide   { grid-column: span 8; grid-row: span 2; }
.gallery-size-tall   { grid-column: span 4; grid-row: span 2; }
.gallery-size-square { grid-column: span 4; grid-row: span 2; }
@media (max-width: 880px) {
    .gallery { grid-auto-rows: 180px; }
    .gallery-size-wide, .gallery-size-tall, .gallery-size-square {
        grid-column: span 12; grid-row: span 2;
    }
}

/* -------------------------------------------------------------
   11. How it works (numbered steps)
   ------------------------------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--sp-6);
    margin-top: var(--sp-7);
    position: relative;
}
.step { text-align: center; padding: 0 var(--sp-3); }
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px; height: 68px;
    background: var(--color-surface);
    border: 2px solid var(--color-brand);
    color: var(--color-brand);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 1.85rem;
    margin: 0 auto var(--sp-4);
    position: relative;
}
.step-num::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    opacity: 0.3;
}
.step h3 { font-size: 1.25rem; margin-bottom: var(--sp-2); }
.step p { color: var(--color-ink-muted); font-size: 0.95rem; }

/* -------------------------------------------------------------
   12. Testimonials (dark section)
   ------------------------------------------------------------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--sp-5);
    margin-top: var(--sp-7);
}
.testimonial {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r-md);
    padding: var(--sp-6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background var(--t-base), border-color var(--t-base);
}
.testimonial:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(201, 169, 97, 0.4); }
.testimonial-stars {
    color: var(--color-accent);
    margin-bottom: var(--sp-3);
    letter-spacing: 4px;
    font-size: 1.05rem;
}
.testimonial-quote {
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--color-ink-inverse);
    font-style: italic;
    margin: 0 0 var(--sp-5) 0;
}
.testimonial-cite {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    color: rgba(245, 240, 232, 0.7);
    font-size: 0.875rem;
    letter-spacing: 0.04em;
}
.testimonial-avatar {
    width: 40px; height: 40px;
    background: var(--color-accent);
    color: var(--color-brand-deep);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}
.testimonial-name { color: var(--color-ink-inverse); font-weight: 600; }
.testimonial-meta { color: rgba(245, 240, 232, 0.55); font-size: 0.8125rem; }

/* -------------------------------------------------------------
   13. CTA section
   ------------------------------------------------------------- */
.cta-band {
    position: relative;
    padding: var(--sp-9) 0;
    text-align: center;
    background: var(--color-brand);
    color: var(--color-ink-inverse);
    overflow: hidden;
    isolation: isolate;
}
.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-deep) 100%);
    z-index: -1;
}
.cta-band::after {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 60%; height: 200%;
    background: radial-gradient(ellipse at center, rgba(201, 169, 97, 0.12) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}
.cta-band h2 { color: var(--color-ink-inverse); font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: var(--sp-3); }
.cta-band p { color: rgba(245, 240, 232, 0.85); font-size: 1.1rem; max-width: 640px; margin: 0 auto var(--sp-6); }
.cta-band-actions { display: inline-flex; gap: var(--sp-3); flex-wrap: wrap; justify-content: center; }

/* -------------------------------------------------------------
   14. Footer
   ------------------------------------------------------------- */
.site-footer {
    background: var(--color-brand-deep);
    color: var(--color-ink-inverse);
    padding: var(--sp-8) 0 var(--sp-5);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--sp-7);
    margin-bottom: var(--sp-7);
}
@media (max-width: 880px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
}
.footer-brand-large {
    font-family: var(--font-display);
    font-size: 1.65rem;
    line-height: 1.2;
    color: var(--color-ink-inverse);
    margin-bottom: var(--sp-3);
    font-weight: 500;
}
.footer-tagline { color: rgba(245, 240, 232, 0.7); font-style: italic; font-size: 0.9375rem; margin-bottom: var(--sp-4); }
.footer-col h4 {
    color: var(--color-accent);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: var(--ls-uppercase);
    text-transform: uppercase;
    margin-bottom: var(--sp-4);
    font-family: var(--font-body);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--sp-2); }
.footer-col a {
    color: rgba(245, 240, 232, 0.78);
    font-size: 0.9375rem;
    transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: var(--sp-5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(245, 240, 232, 0.5);
    font-size: 0.8125rem;
    flex-wrap: wrap;
    gap: var(--sp-3);
}
@media (max-width: 880px) { .footer-bottom { flex-direction: column; text-align: center; } }

/* -------------------------------------------------------------
   15. Generic page styles
   ------------------------------------------------------------- */
.page-hero {
    text-align: center;
    padding: var(--sp-8) var(--sp-5) var(--sp-6);
    background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}
.page-hero h1 { margin-bottom: var(--sp-3); }
.page-hero p { color: var(--color-ink-muted); font-size: 1.15rem; max-width: 640px; margin: 0 auto; }
.page { padding: var(--sp-7) 0 var(--sp-9); }

/* -------------------------------------------------------------
   16. Pricing (Order page)
   ------------------------------------------------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--sp-5);
    padding: var(--sp-7) 0;
}
.unit-card {
    background: var(--color-surface);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-base), box-shadow var(--t-base);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-line-subtle);
}
.unit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.unit-card-photo {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    background: var(--color-bg-alt);
}
.unit-card-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}
.unit-card:hover .unit-card-photo img { transform: scale(1.06); }
.unit-card-photo .photo-overlay {
    position: absolute;
    bottom: var(--sp-3); left: var(--sp-3);
    background: rgba(26, 58, 64, 0.92);
    color: white;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.unit-card-body { padding: var(--sp-5); flex: 1; display: flex; flex-direction: column; }
.unit-card-size {
    display: inline-block;
    color: var(--color-accent-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: var(--ls-uppercase);
    text-transform: uppercase;
    margin-bottom: var(--sp-2);
}
.unit-card-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--color-brand);
    margin: 0 0 var(--sp-2) 0;
    line-height: 1.1;
    font-weight: 500;
}
.unit-card-dim {
    color: var(--color-ink-muted);
    font-size: 0.9375rem;
    margin-bottom: var(--sp-4);
}
.unit-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--sp-4) 0;
    color: var(--color-ink);
    font-size: 0.9375rem;
}
.unit-card-features li {
    padding: var(--sp-2) 0;
    border-bottom: 1px solid var(--color-line-subtle);
    display: flex;
    align-items: flex-start;
    gap: var(--sp-2);
}
.unit-card-features li:last-child { border-bottom: none; }
.unit-card-features li::before {
    content: '✓';
    color: var(--color-accent-dark);
    font-weight: 700;
    flex-shrink: 0;
}
.unit-card-price {
    display: flex;
    align-items: baseline;
    gap: var(--sp-2);
    margin-top: auto;
    padding-top: var(--sp-4);
    border-top: 1px solid var(--color-line-subtle);
    margin-bottom: var(--sp-3);
}
.unit-card-price .price-amount {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--color-brand);
    line-height: 1;
    font-weight: 500;
}
.unit-card-price .price-period { color: var(--color-ink-muted); font-size: 0.9rem; }
.unit-card-availability {
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-sm);
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--sp-3);
}
.unit-card-availability.avail { background: var(--color-success-bg); color: var(--color-success-fg); }
.unit-card-availability.full  { background: var(--color-danger-bg);  color: var(--color-danger-fg); }
.unit-card-special {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-3);
    background: var(--color-accent-bg, rgba(201, 169, 97, 0.12));
    color: var(--color-accent-dark, #8a6b1f);
    border: 1px solid var(--color-accent, #c9a961);
    border-radius: var(--r-sm);
    margin-bottom: var(--sp-3);
    font-size: 0.9rem;
    line-height: 1.3;
}
.unit-card-special strong { font-weight: 700; }
.unit-card-special-notes { color: var(--color-ink-muted, #666); font-size: 0.85rem; }
.unit-card-photo .photo-special {
    position: absolute;
    top: var(--sp-3);
    right: var(--sp-3);
    background: var(--color-brand, #1a3a40);
    color: #f5f0e8;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 1px solid #c9a961;
}
.unit-card-cta {
    width: 100%;
    padding: 14px;
    background: var(--color-brand);
    color: var(--color-ink-inverse);
    border: none;
    border-radius: var(--r-sm);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--t-fast);
}
.unit-card-cta:hover { background: var(--color-accent-dark); transform: translateY(-1px); }
.unit-card-cta:disabled {
    background: var(--color-line);
    color: var(--color-ink-muted);
    cursor: not-allowed;
    transform: none;
}

/* -------------------------------------------------------------
   17. About / Story page
   ------------------------------------------------------------- */
.about-image {
    position: relative;
    height: 56vh;
    min-height: 380px;
    max-height: 560px;
    overflow: hidden;
    isolation: isolate;
    color: var(--color-ink-inverse);
}
.about-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 1.6s ease;
}
.about-image.in img { transform: scale(1); }
.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 44, 49, 0.78) 0%, rgba(18, 44, 49, 0.25) 60%, transparent 100%);
    z-index: 1;
}
.about-image-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: var(--sp-7) var(--sp-5);
    z-index: 2;
    text-align: center;
    color: var(--color-ink-inverse);
}
.about-image-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.25;
    color: var(--color-ink-inverse);
    max-width: 720px;
    margin: 0 auto var(--sp-3) auto;
}
.about-image-caption {
    color: var(--color-accent);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: var(--ls-uppercase);
    text-transform: uppercase;
    margin: 0;
}
.story-section {
    max-width: var(--max-text);
    margin: 0 auto var(--sp-7);
    font-size: 1.1rem;
    color: var(--color-ink-soft);
}
.story-section h2 { margin-top: var(--sp-6); }
.story-beliefs {
    max-width: var(--max-text);
    margin: 0 auto;
    padding: var(--sp-7);
    background: var(--color-bg-alt);
    border-radius: var(--r-md);
    border-left: 4px solid var(--color-accent);
}
.story-beliefs h2 { margin-top: 0; }

/* -------------------------------------------------------------
   18. Contact page
   ------------------------------------------------------------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--sp-7);
    max-width: var(--max-content);
    margin: 0 auto;
}
@media (max-width: 880px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info { padding: var(--sp-3) 0; }
.contact-info h2 { margin-bottom: var(--sp-5); }
.contact-info-block { margin-bottom: var(--sp-5); padding-bottom: var(--sp-5); border-bottom: 1px solid var(--color-line-subtle); }
.contact-info-block:last-child { border-bottom: none; }
.contact-info-block h3 { font-size: 0.8125rem; letter-spacing: var(--ls-uppercase); text-transform: uppercase; color: var(--color-accent-dark); font-family: var(--font-body); font-weight: 700; margin-bottom: var(--sp-2); }
.contact-info-block p { margin: 0 0 4px 0; color: var(--color-ink-soft); }
.contact-info-block a { color: var(--color-brand); font-weight: 600; }
.contact-form {
    background: var(--color-surface);
    border-radius: var(--r-md);
    padding: var(--sp-6);
    box-shadow: var(--shadow-md);
}
.contact-form h2 { margin-bottom: var(--sp-5); }
.map-container {
    max-width: var(--max-content);
    margin: var(--sp-7) auto 0;
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-line-subtle);
}
.map-container iframe { width: 100%; height: 360px; border: 0; display: block; }

/* -------------------------------------------------------------
   19. Forms (used by Contact, Order, etc.)
   ------------------------------------------------------------- */
.form-group { margin-bottom: var(--sp-4); }
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-ink-soft);
    margin-bottom: var(--sp-2);
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px var(--sp-4);
    border: 1px solid var(--color-line);
    border-radius: var(--r-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--color-surface);
    color: var(--color-ink);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px rgba(26, 58, 64, 0.12);
}
.form-actions { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.alert { padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm); margin-bottom: var(--sp-4); font-size: 0.9375rem; }
.alert-success { background: var(--color-success-bg); color: var(--color-success-fg); }
.alert-error   { background: var(--color-danger-bg);  color: var(--color-danger-fg); }

/* -------------------------------------------------------------
   20. Confirmation (OrderConfirmation)
   ------------------------------------------------------------- */
.confirmation {
    max-width: 600px;
    margin: var(--sp-7) auto;
    background: var(--color-surface);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    padding: var(--sp-8) var(--sp-6);
    text-align: center;
}
.confirmation-icon {
    width: 80px; height: 80px;
    background: var(--color-success-bg);
    color: var(--color-success-fg);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: var(--sp-5);
}
.confirmation h1 { margin-bottom: var(--sp-3); }
.confirmation-order-id {
    color: var(--color-accent-dark);
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: var(--sp-5);
    font-weight: 700;
}
.confirmation-order-id strong { color: var(--color-brand); }
.confirmation-actions {
    display: flex;
    gap: var(--sp-3);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--sp-5);
}

/* -------------------------------------------------------------
   21. Demo banner (storefront, portal, admin)
   ------------------------------------------------------------- */
.demo-banner {
    background: #fff7e6;
    border-bottom: 1px solid #f5d491;
    color: #6b4a1a;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.demo-banner strong { color: #6b4a1a; }
.demo-banner a { color: #6b4a1a; text-decoration: underline; }
.demo-banner a:hover { color: #4c3413; }
@media (max-width: 720px) {
    .demo-banner { justify-content: center; text-align: center; }
}
