/* Butan Solar brand system — green ink on cream paper; the sun points, the forest speaks.
   Tokens from the Butan Solar design system (extracted from the 2026 employee handbook). */
:root {
  --surface-100: #fbf5e9;
  --surface-200: #fffdf7;
  --surface-tint: #f6e9c8;
  --border-soft: #eadfc6;
  --ink: #1b4633;
  --ink-muted: #6b7c71;
  --forest-900: #1b4633;
  --forest-700: #41544a;
  --forest-500: #5d6e63;
  --forest-300: #96a398;
  --sun-400: #f3ba3b;
  --amber-600: #c07a22;
  --amber-500: #de7e2e;
  --signal-red: #b23a2e;
  --cream: #fbf5e9;
  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-sans: Inter, Arial, Helvetica, sans-serif;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --radius-arch: 120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-sans); background: var(--surface-100); color: var(--ink); line-height: 1.55; font-size: 15px; }
a { color: inherit; text-decoration: none; }
a.u { text-decoration: underline; text-underline-offset: 2px; }
img { display: block; max-width: 100%; }

.container { width: min(1080px, 92vw); margin: 0 auto; }
.section { padding: clamp(3.2rem, 8vw, 6rem) 0; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; margin: 0 0 0.55em; color: var(--ink); letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1; max-width: 13ch; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); line-height: 1.1; max-width: 24ch; }
h3 { font-size: 1.19rem; line-height: 1.25; }

/* Eyebrow — 11px, 700, uppercase, 0.16em, amber. The brand's signature kicker. */
.eyebrow { margin: 0 0 12px; font-size: 11px; line-height: 1.2; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber-600); }
/* SectionBadge — section openers sit on a sun-400 pill. */
.section > .container > .eyebrow, .section > .container > div > .eyebrow { display: inline-block; background: var(--sun-400); color: var(--forest-900); padding: 6px 14px; border-radius: var(--radius-pill); }

.lede { margin: 0 0 24px; color: var(--ink); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 58ch; }
.fine { margin: 16px 0 0; color: var(--ink-muted); font-size: 13px; line-height: 1.5; max-width: 70ch; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--forest-900); color: var(--cream); padding: 8px 16px; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 2px; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 60; background: rgba(251, 245, 233, 0.94); border-bottom: 1px solid var(--border-soft); backdrop-filter: blur(10px); }
.topbar-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; }
.desktop-nav { display: inline-flex; gap: 24px; color: var(--ink); font-weight: 600; font-size: 14px; }
.desktop-nav a:hover { color: var(--amber-600); }

/* Buttons — sun-400 pill with forest text; ghost is a hairline */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border-radius: var(--radius-pill); font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; font-family: var(--font-sans); transition: background 150ms ease; }
.btn-primary { background: var(--sun-400); color: var(--forest-900); }
.btn-primary:hover { background: #f0b022; }
.btn-ghost { background: var(--surface-200); border-color: var(--border-soft); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-tint); }
.btn-nav { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* Hero — cream page with the arch motif rising at the right edge */
.hero { position: relative; overflow: hidden; padding: clamp(2.4rem, 6vw, 4.2rem) 0 clamp(2rem, 5vw, 3.4rem); }
/* Cover-page mood: forest ground, cream ink, sun arch — the handbook's cover composition. */
.hero-forest { background: var(--forest-900); color: var(--cream); }
.hero-forest h1 { color: var(--cream); }
.hero-forest .eyebrow { color: var(--sun-400); }
.hero-forest .btn-ghost { background: transparent; border-color: var(--forest-500); color: var(--cream); }
.hero-forest .btn-ghost:hover { background: var(--forest-700); }
.hero-forest .cred-grid li { background: var(--forest-700); border-color: var(--forest-500); }
.hero-forest .cred-label { color: var(--forest-300); }
.hero-forest .cred-value { color: var(--cream); }
.hero .container { position: relative; z-index: 1; }
.arch { position: absolute; right: 0; bottom: 0; width: min(46vw, 520px); height: auto; pointer-events: none; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 0; }
/* Credentials — four StatCards under the headline */
.cred-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 4px 0 22px; padding: 0; max-width: 720px; }
.cred-grid li { background: var(--surface-200); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 14px 16px; }
.cred-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 4px; }
.cred-value { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; line-height: 1.1; color: var(--ink); }

/* Rules of thumb — StatCards; the figure is the key metric in amber */
.rules-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rule { background: var(--surface-200); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 24px; }
.rule:nth-child(1) { background: var(--surface-tint); }
.rule-value { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 5.6vw, 3.8rem); line-height: 1; color: var(--amber-600); letter-spacing: -0.02em; }
.rule-title { margin: 6px 0 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.rule-text { margin: 0; color: var(--ink); font-size: 14px; }

/* Safety — a forest page: cream text, sun eyebrows, forest-700 cards */
.safety { background: var(--forest-900); color: var(--cream); position: relative; overflow: hidden; }
.safety h2, .safety h3, .safety .lede { color: var(--cream); }
.safety .rings { position: absolute; right: -60px; top: -60px; width: 420px; height: 420px; pointer-events: none; }
.safety .container { position: relative; z-index: 1; }
.safety-grid { margin-top: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.safety-card { background: var(--forest-700); border: 1px solid var(--forest-500); border-radius: var(--radius-md); padding: 20px; }
.safety-card p { margin: 0; color: var(--cream); font-size: 14px; }
.safety-card.sun { background: var(--sun-400); border-color: var(--sun-400); }
.safety-card.sun h3, .safety-card.sun p { color: var(--forest-900); }
.safety-card .chip { width: 32px; height: 32px; border-radius: var(--radius-pill); background: var(--sun-400); color: var(--forest-900); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.safety-card.sun .chip { background: var(--forest-900); color: var(--sun-400); }

/* Ways to pay */
.pay { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.model-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.model-card { background: var(--surface-200); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 20px; }
.model-card.accent { background: var(--surface-tint); }
.model-tag { display: inline-block; margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber-600); }
.model-card.accent .model-tag { background: var(--sun-400); color: var(--forest-900); padding: 6px 12px; border-radius: var(--radius-pill); }
.model-card p { margin: 0; color: var(--ink); font-size: 14px; }

/* Trusted-by marquee — logos (or names until logos are uploaded) sliding left */
.trusted { padding: 28px 0 36px; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: var(--surface-200); }
.trusted .container > .eyebrow { background: none; color: var(--ink-muted); padding: 0; }
.marquee { overflow: hidden; margin-top: 12px; position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 8%; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--surface-200), rgba(255, 253, 247, 0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--surface-200), rgba(255, 253, 247, 0)); }
.marquee-track { display: flex; width: max-content; gap: 12px; animation: marquee 12s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
/* Every logo is scaled to fill the same box; multiply blend turns white
   logo backgrounds transparent against the cream chip. */
.logo-chip { display: flex; align-items: center; justify-content: center; width: 220px; height: 104px; padding: 14px 20px; background: var(--surface-200); border: 1px solid var(--border-soft); border-radius: var(--radius-md); font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--ink); white-space: nowrap; flex-shrink: 0; }
.logo-chip img { width: 180px; height: 76px; object-fit: contain; mix-blend-mode: multiply; display: block; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Work — photo gallery from the Notion Website Content database */
.gallery { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery figure { margin: 0; position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; background: var(--forest-900); border: 1px solid var(--border-soft); }
.gallery figure.feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; min-height: 320px; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .placeholder { position: absolute; inset: 0; background: repeating-linear-gradient(105deg, transparent 0 34px, rgba(251,245,233,0.06) 34px 36px), linear-gradient(160deg, var(--forest-900), var(--forest-700)); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; align-items: flex-end; background: linear-gradient(to top, rgba(27,70,51,0.92), rgba(27,70,51,0)); color: var(--cream); display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.gallery .cap-name { font-weight: 700; font-size: 14px; display: block; }
.gallery .cap-sub { font-size: 12px; color: var(--forest-300); display: block; }
.gallery .cap-size { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--sun-400); white-space: nowrap; }
.gallery .cap-model { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sun-400); display: block; text-align: right; }

.process { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: s; }
.process-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.process li { counter-increment: s; padding: 16px; background: var(--surface-200); border: 1px solid var(--border-soft); border-radius: var(--radius-md); }
.process li::before { content: counter(s); width: 28px; height: 28px; border-radius: var(--radius-pill); background: var(--sun-400); color: var(--forest-900); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.process h3 { margin: 0 0 4px; font-size: 1.05rem; }
.process p { margin: 0; color: var(--ink); font-size: 14px; }

/* FAQ */
.faq-list { margin-top: 20px; border: 1px solid var(--border-soft); border-radius: var(--radius-md); background: var(--surface-200); overflow: hidden; }
.faq-item { border-top: 1px solid var(--border-soft); padding: 0 16px; }
.faq-item:first-child { border-top: none; }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 0; font-weight: 700; font-size: 15px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-display); font-size: 1.4rem; color: var(--amber-600); flex-shrink: 0; transition: transform 150ms ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 16px; color: var(--ink); max-width: 70ch; font-size: 14px; }

/* Lead — cream page, tint estimate callout, bordered form */
.lead { border-top: 1px solid var(--border-soft); }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.estimate { background: var(--surface-tint); border-radius: var(--radius-md); padding: 16px 18px; }
.estimate-label { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber-600); }
.estimate-big { margin: 6px 0 6px; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--ink); }
.estimate p:not(.estimate-label) { margin: 0 0 4px; color: var(--ink); font-size: 14px; }
.estimate .note { font-size: 13px; color: var(--ink-muted); margin-top: 8px; }
.lead-form { background: var(--surface-200); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 20px; }
.lead-form label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 14px; }
.optional { color: var(--ink-muted); font-weight: 400; }
.lead-form input, .lead-form select { width: 100%; margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--border-soft); border-radius: var(--radius-md); background: var(--surface-100); color: var(--ink); font-size: 16px; font-family: inherit; }
.lead-form input:focus, .lead-form select:focus { outline: none; border-color: var(--amber-500); box-shadow: 0 0 0 3px rgba(243, 186, 59, 0.35); }
#hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { min-height: 1.4rem; margin: 10px 0 0; font-size: 13px; color: var(--ink-muted); font-weight: 600; }

/* Footer — the closing page, full-bleed forest */
.footer { background: var(--forest-900); color: var(--cream); padding: 32px 0 96px; }
.footer-brand { margin: 0 0 8px; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--cream); display: flex; align-items: center; gap: 10px; }
.footer .fine { color: var(--forest-300); margin: 0 0 4px; }
.footer a.u { color: var(--sun-400); }

/* Mobile sticky bar */
.mobile-sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: none; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border-soft); background: var(--surface-200); }
.mobile-btn { text-align: center; font-weight: 700; padding: 15px 10px; }
.mobile-call { color: var(--ink); }
.mobile-wa { color: var(--forest-900); background: var(--sun-400); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 900px) {
  .lead-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery figure.feature { grid-column: span 2; grid-row: auto; min-height: 240px; }
  .process-row { grid-template-columns: 1fr 1fr; }
  .model-grid, .rules-grid, .safety-grid { grid-template-columns: 1fr; }
  .arch { width: 62vw; opacity: 0.9; }
}
@media (max-width: 720px) {
  .cred-grid { grid-template-columns: 1fr 1fr; }
  .desktop-nav { display: none; }
  .mobile-sticky-cta { display: grid; }
  .hero { padding-bottom: 34vw; }
  .arch { width: 78vw; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery figure.feature { grid-column: auto; }
  .process-row { grid-template-columns: 1fr; }
  .btn:not(.btn-nav) { width: 100%; }
  .hero-cta { flex-direction: column; }
}
