/* ============================================================
   Solar Seam — Integrated Solar Roofing (SolRoof / FIT VOLT)
   Shared stylesheet
   ============================================================ */

:root {
  --navy-900: #0e2440;
  --navy-800: #133057;
  --navy-700: #1b3d6b;
  --navy: #15355f;
  --navy-50: #eef3fb;

  --orange: #ff7f00;
  --orange-600: #ef6c00;
  --orange-300: #ffb366;

  --ink: #16202e;
  --slate: #54657d;
  --slate-300: #8595a9;
  --line: #e4e9f1;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-softer: #eef2f8;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(16, 38, 70, 0.06);
  --shadow: 0 14px 40px rgba(16, 38, 70, 0.10);
  --shadow-lg: 0 30px 70px rgba(16, 38, 70, 0.16);

  --maxw: 1180px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Sora', var(--font-body);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-900); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: all 0.22s ease; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--orange) 0%, var(--orange-600) 100%); color: #fff; box-shadow: 0 8px 22px rgba(255, 127, 0, 0.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 127, 0, 0.36); }
.btn-ghost { background: transparent; color: var(--navy-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); background: var(--navy-50); }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn .arrow { transition: transform 0.22s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(255,255,255,0.86); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(16,38,70,0.08); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 96px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.01em; color: var(--navy-900); }
.brand-text span { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange-600); font-weight: 600; margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a { font-weight: 500; font-size: 0.97rem; color: var(--navy-800); transition: color 0.2s ease; position: relative; padding: 6px 0; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--orange); transition: width 0.22s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--navy-900); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: 0.25s; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  color: #fff; overflow: hidden; padding: 120px 0 80px;
  background-color: var(--navy-900); background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-inner { max-width: 720px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head);
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  color: var(--orange-300); margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--orange); display: inline-block; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); color: #fff; margin-bottom: 22px; }
.hero h1 .accent { color: var(--orange-300); }
.hero p.lead { font-size: 1.22rem; color: rgba(255,255,255,0.9); max-width: 600px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 52px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.16); }
.hero-stats .num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: #fff; }
.hero-stats .lbl { font-size: 0.86rem; color: rgba(255,255,255,0.72); max-width: 150px; }

/* ---------- Page hero (inner) ---------- */
.page-hero { position: relative; padding: 150px 0 64px; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); }
.page-hero::after { content:''; position:absolute; inset:0; background:
  radial-gradient(540px 320px at 88% -10%, rgba(255,127,0,0.22), transparent 60%); pointer-events:none; }
.page-hero .inner { position: relative; max-width: 760px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); color: #fff; margin-bottom: 16px; }
.page-hero p { font-size: 1.16rem; color: rgba(255,255,255,0.85); max-width: 620px; }
.breadcrumb { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-300); margin-bottom: 18px; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section.tight { padding: 64px 0; }
.section.soft { background: var(--bg-soft); }
.section.navy { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; }
.section.navy h2, .section.navy h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 16px; }
.section-head p { font-size: 1.12rem; color: var(--slate); }
.section.navy .section-head p { color: rgba(255,255,255,0.82); }

/* ---------- Generic grids & cards ---------- */
.grid { display: grid; gap: 26px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .ic {
  width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--orange), var(--orange-600)); color: #fff; margin-bottom: 20px;
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 0.98rem; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.split-body h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 18px; }
.split-body p { color: var(--slate); font-size: 1.06rem; margin-bottom: 16px; }
.tick-list { list-style: none; margin-top: 22px; display: grid; gap: 14px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.02rem; color: var(--ink); }
.tick-list svg { flex: none; width: 22px; height: 22px; color: var(--orange); margin-top: 3px; }

/* ---------- Stats band ---------- */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.statband .item { text-align: center; padding: 12px; }
.statband .num { font-family: var(--font-head); font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 700; color: var(--orange); line-height: 1; }
.section.navy .statband .num { color: var(--orange-300); }
.statband .lbl { margin-top: 12px; color: var(--slate); font-size: 0.95rem; }
.section.navy .statband .lbl { color: rgba(255,255,255,0.8); }

/* ---------- Components (3 step / numbered) ---------- */
.steps { display: grid; gap: 24px; grid-template-columns: repeat(5, 1fr); counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.step .n { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: var(--orange); letter-spacing: 0.1em; }
.step h3 { font-size: 1.06rem; margin: 10px 0 8px; }
.step p { font-size: 0.92rem; color: var(--slate); }

/* ---------- Specs accordion ---------- */
.specs { max-width: 920px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.spec { border-bottom: 1px solid var(--line); }
.spec:last-child { border-bottom: none; }
.spec-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 28px; cursor: pointer; transition: background 0.2s ease; }
.spec-head:hover { background: var(--bg-soft); }
.spec-head h3 { font-size: 1.1rem; }
.spec-head .tog { font-size: 1.6rem; color: var(--orange); line-height: 1; transition: transform 0.25s ease; }
.spec.open .spec-head .tog { transform: rotate(45deg); }
.spec-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.spec.open .spec-body { max-height: 640px; }
.spec-inner { padding: 6px 28px 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 36px; }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.spec-row .k { color: var(--slate); font-size: 0.95rem; }
.spec-row .v { color: var(--navy-900); font-weight: 600; font-size: 0.95rem; text-align: right; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.shot { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--navy-900); aspect-ratio: 4 / 3; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.shot:hover img { transform: scale(1.06); }
.shot .meta { position: absolute; inset: auto 0 0 0; padding: 22px 20px 16px; color: #fff;
  background: linear-gradient(transparent, rgba(8,22,42,0.86)); }
.shot .meta h3 { color: #fff; font-size: 1.04rem; margin-bottom: 4px; }
.shot .meta p { font-size: 0.85rem; color: rgba(255,255,255,0.82); }
.shot.tall { aspect-ratio: 3 / 4; }
.shot.wide { grid-column: span 2; aspect-ratio: 16 / 9; }

/* ---------- Certifications ---------- */
.certs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; align-items: center; }
.certs .badge { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; height: 92px; display: flex; align-items: center; justify-content: center; }
.certs .badge img { max-height: 100%; width: auto; object-fit: contain; filter: saturate(1); }

/* ---------- Comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; margin: 0 auto; }
.compare .col { border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); }
.compare .col.bad { background: var(--bg-soft); }
.compare .col.good { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; border-color: transparent; box-shadow: var(--shadow); }
.compare .col h3 { margin-bottom: 18px; font-size: 1.2rem; }
.compare .col.good h3 { color: #fff; }
.compare ul { list-style: none; display: grid; gap: 14px; }
.compare li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; }
.compare li svg { flex: none; width: 20px; height: 20px; margin-top: 3px; }
.compare .col.bad svg { color: var(--slate-300); }
.compare .col.good svg { color: var(--orange-300); }
.compare .col.good li { color: rgba(255,255,255,0.92); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--orange) 0%, var(--orange-600) 100%); color: #fff; border-radius: 24px; padding: 56px; text-align: center; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.cta-band p { font-size: 1.12rem; color: rgba(255,255,255,0.92); max-width: 560px; margin: 0 auto 28px; }

/* ---------- Notice / disclaimer ---------- */
.notice { background: var(--navy-50); border: 1px solid #d7e3f5; border-left: 4px solid var(--orange); border-radius: var(--radius-sm); padding: 18px 22px; color: var(--navy-800); font-size: 0.92rem; }
.notice strong { color: var(--navy-900); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.qa { border-bottom: 1px solid var(--line); }
.qa-q { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 24px 4px; cursor: pointer; }
.qa-q h3 { font-size: 1.12rem; }
.qa-q .tog { font-size: 1.5rem; color: var(--orange); line-height: 1; transition: transform 0.25s ease; flex: none; }
.qa.open .qa-q .tog { transform: rotate(45deg); }
.qa-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.qa.open .qa-a { max-height: 420px; }
.qa-a p { padding: 0 4px 24px; color: var(--slate); font-size: 1.02rem; }

/* ---------- Forms ---------- */
.form-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 500; font-size: 0.9rem; color: var(--navy-800); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.98rem; color: var(--ink); background: #fff; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,127,0,0.12); }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--slate-300); margin-top: 6px; }
.contact-aside .ic-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.contact-aside .ic-row .ic { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--navy-50); color: var(--orange-600); display: flex; align-items: center; justify-content: center; }
.contact-aside .ic-row .ic svg { width: 22px; height: 22px; }
.contact-aside h4 { font-size: 1rem; margin-bottom: 3px; }
.contact-aside p { color: var(--slate); font-size: 0.96rem; }
.contact-aside a { color: var(--orange-600); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.72); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand p { margin-top: 16px; font-size: 0.94rem; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 0.96rem; margin-bottom: 16px; letter-spacing: 0.02em; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { font-size: 0.93rem; color: rgba(255,255,255,0.7); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--orange-300); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; font-size: 0.84rem; color: rgba(255,255,255,0.5); flex-wrap: wrap; }
.footer-bottom .disc { max-width: 760px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links, .nav-cta .btn { display: none; }
  .menu-toggle { display: flex; }
  .site-header.open .nav-links {
    display: flex; position: absolute; top: 96px; left: 0; width: 100%; flex-direction: column;
    background: #fff; padding: 20px 24px; gap: 6px; box-shadow: var(--shadow); border-top: 1px solid var(--line);
  }
  .site-header.open .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .split, .form-wrap { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: 0; }
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .statband { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .certs { grid-template-columns: repeat(3, 1fr); }
  .compare { grid-template-columns: 1fr; }
  .spec-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 580px) {
  .section { padding: 64px 0; }
  .cols-2, .cols-3, .cols-4, .steps, .gallery { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 38px 24px; }
  .certs { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 26px; }
  .shot.wide { grid-column: span 1; aspect-ratio: 4/3; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px; }
}

/* Brand logo (image) */
.brand-logo { height: 78px; width: auto; display: block; }
.footer-logo-wrap { display: inline-flex; background: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.footer-logo-img { height: 58px; width: auto; display: block; }
@media (max-width: 580px) { .brand-logo { height: 60px; } }

/* Brand tagline beside the logo */
.brand-tag { font-family: var(--font-head); font-weight: 600; font-size: 0.82rem; line-height: 1.25; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-800); padding-left: 14px; border-left: 2px solid var(--line); }
@media (max-width: 640px) { .brand-tag { display: none; } }
