/* Click for Window Treatments -- umbrella site for Click for Shutters and
   Click for Curtains. Same "Considered Home" system (see DESIGN.md): one
   typeface via the optical-size axis, bone-cream ground, charcoal ink,
   copper accent kept to <=10% of any screen. */

:root {
    --copper: #b87333;
    --copper-dark: #8f5a28;
    --ink: #1a1a1a;
    --charcoal: #2a2a2a;
    --text-2: #6b6560;
    --cream: #faf8f5;
    --warm-white: #fdfcfa;
    --line: #e8e4de;
    --line-deep: #c4bfb6;
    --radius: 8px;
    --radius-lg: 14px;
    --font: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --section: clamp(72px, 11vw, 128px);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --shadow: 0 1px 2px rgba(26, 26, 26, 0.04), 0 8px 24px rgba(26, 26, 26, 0.05);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-variation-settings: 'opsz' 14;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 0.5em; font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-variation-settings: 'opsz' 96; letter-spacing: -0.03em; line-height: 1.03; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-variation-settings: 'opsz' 72; }
h3 { font-size: 1.35rem; font-weight: 500; font-variation-settings: 'opsz' 24; letter-spacing: -0.005em; line-height: 1.3; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--charcoal); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; }
.section { padding: var(--section) 0; }
.section-alt { background: var(--warm-white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.eyebrow { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--copper-dark); margin-bottom: 14px; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 26px;
    font: inherit; font-weight: 500; font-size: 0.98rem; text-decoration: none;
    border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-primary { background: var(--charcoal); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: #fff; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--charcoal); min-height: 44px; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-name { font-size: 1.15rem; font-weight: 500; font-variation-settings: 'opsz' 24; letter-spacing: -0.01em; }
.brand-name em, .footer-name em { font-style: normal; color: var(--copper-dark); }
.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
    text-decoration: none; color: var(--text-2); font-size: 0.95rem; border-radius: 999px;
}
.main-nav a:hover { color: var(--ink); }
.main-nav .nav-phone { color: var(--ink); font-weight: 500; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--charcoal); }
.hero-photo, .hero-veil { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-veil { background: linear-gradient(180deg, rgba(26, 26, 26, 0.1) 20%, rgba(26, 26, 26, 0.7) 100%); }
.hero-content { position: relative; padding-top: 120px; padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 { max-width: 14ch; color: #fff; }
.hero-lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 52ch; color: rgba(255, 255, 255, 0.9); margin-bottom: 28px; }

/* ---------- Site cards ---------- */
.site-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.site-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
.site-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.site-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.site-card-link:focus-visible { outline-offset: -3px; border-radius: var(--radius-lg); }
.site-card-photo { aspect-ratio: 4 / 3; background: var(--line); overflow: hidden; }
.site-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.site-card:hover .site-card-photo img { transform: scale(1.03); }
.site-card-body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; border-bottom: 3px solid var(--charcoal); }
.site-card-body p { color: var(--text-2); }
.site-card-cta { margin-top: auto; padding-top: 8px; font-weight: 500; color: var(--copper-dark); }

/* ---------- Story ---------- */
.story-grid { display: grid; gap: 32px 64px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .story-grid { grid-template-columns: 5fr 7fr; } }
.story-copy p:not(.lede) { color: var(--text-2); max-width: 62ch; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { border-top: 1px solid var(--line-deep); padding-top: 24px; }
.steps p { color: var(--text-2); }
.step-n { display: block; font-size: 2.4rem; font-variation-settings: 'opsz' 96; color: var(--copper); line-height: 1; margin-bottom: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(255, 255, 255, 0.78); padding: 64px 0 32px; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-name { font-size: 1.2rem; color: #fff; font-weight: 500; }
.site-footer .footer-name em { color: #e0a36a; }
.footer-h { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.footer-note { color: rgba(255, 255, 255, 0.6); font-size: 0.875rem; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .hide-sm { display: none; }
    .brand-name { font-size: 1rem; }
    .main-nav a { padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
.nowrap { white-space: nowrap; }
