:root {
  --ink: #17231f;
  --ink-soft: #24352f;
  --paper: #f1f2ed;
  --white: #ffffff;
  --muted: #66736d;
  --line: rgba(23, 35, 31, .16);
  --sun: #e7b84d;
  --sun-light: #f3d27c;
  --green: #4d8067;
  --green-light: #a8c7b4;
  --radius: 6px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
.section { padding: 96px 0; }
.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

.skip-link { position: fixed; top: -70px; left: 12px; z-index: 100; padding: 10px 14px; color: var(--ink); background: var(--sun-light); }
.skip-link:focus { top: 12px; }
.site-header { position: absolute; inset: 0 0 auto; z-index: 20; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.22); }
.nav { width: min(calc(100% - 40px), var(--max)); height: 82px; margin: 0 auto; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; font-size: 19px; font-weight: 800; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.brand > span:last-child > span { color: var(--sun-light); }
.brand-mark { position: relative; width: 29px; height: 22px; display: inline-block; border: 3px solid var(--sun-light); transform: skew(-9deg); }
.brand-mark::before { content: ""; position: absolute; left: 7px; top: -3px; bottom: -3px; border-left: 2px solid var(--sun-light); box-shadow: 8px 0 0 -0.5px var(--sun-light); }
.brand-mark::after { content: ""; position: absolute; left: -3px; right: -3px; top: 7px; border-top: 2px solid var(--sun-light); }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-links a { font-size: 14px; font-weight: 700; text-decoration: none; }
.nav-links a:not(.nav-cta):hover { color: var(--sun-light); }
.menu-button { display: none; width: 44px; height: 44px; margin-left: auto; border: 1px solid rgba(255,255,255,.46); border-radius: var(--radius); color: var(--white); background: rgba(0,0,0,.22); font-size: 24px; cursor: pointer; }
.nav-cta, .button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 21px; border: 1px solid var(--sun); border-radius: var(--radius); color: #211b0d; background: var(--sun-light); font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.button:hover, .nav-cta:hover { transform: translateY(-2px); background: #f9df9a; }
.button-secondary { color: var(--white); background: rgba(16,28,24,.56); border-color: rgba(255,255,255,.58); backdrop-filter: blur(8px); }
.button-secondary:hover { color: var(--ink); background: var(--white); }
.button:focus-visible, .nav-cta:focus-visible, .menu-button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--sun-light); outline-offset: 3px; }

.hero { position: relative; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; color: var(--white); background: var(--ink); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(8,15,12,.94) 0%, rgba(8,15,12,.74) 39%, rgba(8,15,12,.14) 73%), linear-gradient(0deg, rgba(8,15,12,.7), transparent 52%), url("solceller-hero.webp"); background-position: center; background-size: cover; transform: scale(1.015); animation: hero-image 1.05s ease-out both; }
.hero-inner { position: relative; z-index: 1; width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: 154px 0 88px; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 11px; margin: 0 0 14px; color: var(--sun-light); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.eyebrow::before, .section-kicker::before { content: ""; width: 38px; border-top: 2px solid currentColor; }
.eyebrow.dark, .section-kicker { color: #386c54; }
h1 { max-width: 850px; margin-bottom: 8px; font-size: 70px; line-height: 1.03; letter-spacing: 0; text-transform: uppercase; }
h1 span { color: var(--sun-light); }
.hero-tagline { max-width: 720px; margin-bottom: 18px; color: var(--white); font-size: 26px; font-weight: 800; line-height: 1.25; }
.hero-copy { max-width: 650px; margin-bottom: 32px; color: rgba(255,255,255,.84); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-scroll { position: absolute; right: max(20px, calc((100% - var(--max)) / 2)); bottom: 32px; z-index: 2; display: inline-flex; gap: 10px; align-items: center; color: rgba(255,255,255,.74); font-size: 13px; font-weight: 700; text-decoration: none; }
.hero-scroll span { color: var(--sun-light); font-size: 20px; }

.intro { padding: 78px 0; }
.intro-layout { display: grid; grid-template-columns: .47fr 1.53fr; gap: 7vw; align-items: start; }
.intro h2, .compare h2, .section-heading h2, .packages h2, .partner h2, .installation h2, .green-section h2, .checklist h2, .faq h2, .method h2, .contact-band h2 { margin-bottom: 18px; font-size: 48px; line-height: 1.08; letter-spacing: 0; }
.lead { max-width: 790px; margin: 0; color: var(--muted); font-size: 20px; }

.compare { background: var(--white); }
.compare-layout { display: grid; grid-template-columns: .66fr 1.34fr; gap: 8vw; align-items: start; }
.compare-copy { position: sticky; top: 28px; }
.compare-copy > p:not(.section-kicker) { color: var(--muted); }
.criteria-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.criteria-list li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.criteria-list li > span { color: #386c54; font-size: 13px; font-weight: 800; }
.criteria-list h3 { margin: 0 0 4px; font-size: 21px; line-height: 1.25; }
.criteria-list p { margin: 0; color: var(--muted); font-size: 15px; }

.roof { color: var(--white); background: var(--ink); }
.section-heading { max-width: 800px; margin-bottom: 48px; }
.section-heading > p:not(.eyebrow):not(.section-kicker) { color: var(--green-light); }
.roof-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.roof-grid article { min-height: 290px; padding: 29px 23px; border-right: 1px solid rgba(255,255,255,.18); }
.roof-grid article:first-child { padding-left: 0; }
.roof-grid article:last-child { border-right: 0; }
.roof-grid span { color: var(--sun-light); font-size: 13px; font-weight: 800; }
.roof-grid h3 { margin: 43px 0 10px; font-size: 22px; line-height: 1.2; }
.roof-grid p { margin: 0; color: var(--green-light); font-size: 15px; }

.packages { background: var(--paper); }
.packages-layout { display: grid; grid-template-columns: .76fr 1.24fr; gap: 8vw; align-items: start; }
.lead-small { color: var(--muted); font-size: 18px; }
.package-list { border-top: 1px solid var(--line); }
.package-list article { display: grid; grid-template-columns: 60px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.package-no { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--green); color: var(--green); font-size: 13px; font-weight: 800; }
.package-list h3 { margin: 0 0 6px; font-size: 22px; }
.package-list p { margin: 0; color: var(--muted); }

.partner { background: var(--white); }
.partner-heading { display: grid; grid-template-columns: 1fr .9fr; gap: 8vw; align-items: end; margin-bottom: 46px; }
.partner-heading > p { margin: 0; color: var(--muted); font-size: 15px; }
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partner-card { position: relative; min-height: 330px; padding: 31px 27px; border-right: 1px solid var(--line); }
.partner-card:first-child { padding-left: 0; }
.partner-card:last-child { border-right: 0; }
.partner-label { margin-bottom: 38px; color: #386c54; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.partner-card h3 { margin-bottom: 11px; font-size: 24px; line-height: 1.2; }
.partner-card > p:not(.partner-label) { min-height: 105px; color: var(--muted); font-size: 15px; }
.text-link { display: inline-flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 800; text-underline-offset: 5px; }
.text-link span:last-child { color: var(--sun); font-size: 19px; transition: transform .2s ease; }
.text-link:hover span:last-child { transform: translateX(4px); }
.ad-label { position: absolute; right: 22px; bottom: 34px; color: var(--muted); font-size: 10px; text-transform: uppercase; }

.installation { background: var(--paper); }
.installation-layout { display: grid; grid-template-columns: 1.03fr .97fr; gap: 7vw; align-items: center; }
.installation-image { min-height: 640px; margin: 0; overflow: hidden; background: var(--ink-soft); }
.installation-image img { width: 100%; height: 100%; min-height: 640px; object-fit: cover; }
.installation-copy > p:not(.section-kicker):not(.source-note) { color: var(--muted); }
.installation-list { margin: 29px 0 0; border-top: 1px solid var(--line); }
.installation-list div { display: grid; grid-template-columns: 145px 1fr; gap: 23px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.installation-list dt { font-weight: 800; }
.installation-list dd { margin: 0; color: var(--muted); font-size: 15px; }
.source-note { margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--line); color: #5b6862; font-size: 13px; }
.source-note a { font-weight: 800; text-underline-offset: 4px; }

.green-section { background: #e9ddb8; }
.green-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 8vw; align-items: start; }
.green-copy { padding-top: 8px; }
.green-copy > p:first-child { font-size: 19px; }
.green-section .source-note { border-color: rgba(23,35,31,.18); }

.checklist { color: var(--white); background: var(--ink-soft); }
.checklist-layout { display: grid; grid-template-columns: .66fr 1.34fr; gap: 8vw; align-items: start; }
.checklist ol { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; list-style: none; border-top: 1px solid rgba(255,255,255,.18); }
.checklist li { min-height: 78px; display: flex; gap: 14px; align-items: center; padding: 14px 18px 14px 0; border-bottom: 1px solid rgba(255,255,255,.18); color: #d8e3dd; font-size: 15px; }
.checklist li:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.18); }
.checklist li:nth-child(even) { padding-left: 18px; }
.checklist li span { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--sun-light); color: var(--sun-light); font-size: 12px; font-weight: 800; }

.faq { background: var(--paper); }
.faq-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 8vw; align-items: start; }
.faq-layout > div:first-child > p:not(.section-kicker) { color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 21px 40px 21px 0; font-weight: 800; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 18px; color: #386c54; font-size: 27px; font-weight: 400; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { padding: 0 34px 22px 0; color: var(--muted); }

.method { background: var(--white); }
.method-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 8vw; align-items: start; }
.method-layout > div:last-child p { color: var(--muted); }
.contact-band { padding: 68px 0; color: var(--white); background: var(--green); }
.contact-band .container { display: flex; justify-content: space-between; gap: 48px; align-items: center; }
.contact-band h2 { margin-bottom: 8px; font-size: 40px; }
.contact-band p { margin-bottom: 0; color: #e1ece5; }
.contact-band .button { flex: 0 0 auto; }

.site-footer { padding: 65px 0 24px; color: var(--white); background: #0e1714; }
.footer-main { display: grid; grid-template-columns: 1.2fr .8fr; gap: 8vw; padding-bottom: 43px; }
.footer-main p { max-width: 570px; margin: 18px 0; color: rgba(255,255,255,.58); }
.footer-main address { color: rgba(255,255,255,.7); font-style: normal; }
.footer-main address a { font-weight: 800; text-underline-offset: 4px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; align-content: start; }
.footer-links a { font-weight: 700; text-underline-offset: 4px; }
.owner-row { display: flex; justify-content: space-between; gap: 50px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.owner-row p { max-width: 540px; margin: 0; color: rgba(255,255,255,.66); font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; color: rgba(255,255,255,.42); font-size: 12px; }
.legal-note { max-width: 850px; margin: 16px 0 0; color: rgba(255,255,255,.42); font-size: 11px; }

.privacy-page { min-height: 100vh; background: var(--paper); }
.privacy-page .site-header { position: relative; color: var(--ink); border-color: var(--line); }
.privacy-page .brand > span:last-child > span { color: #386c54; }
.privacy-page .brand-mark { border-color: #386c54; }
.privacy-page .brand-mark::before { border-color: #386c54; box-shadow: 8px 0 0 -0.5px #386c54; }
.privacy-page .brand-mark::after { border-color: #386c54; }
.privacy-page main { width: min(calc(100% - 40px), 780px); margin: 0 auto; padding: 80px 0 110px; }
.privacy-page h1 { font-size: 58px; line-height: 1.04; text-transform: none; }
.privacy-page h2 { margin-top: 40px; font-size: 26px; }
.privacy-page p, .privacy-page li { color: var(--muted); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes hero-image { from { opacity: .55; transform: scale(1.06); } to { opacity: 1; transform: scale(1.015); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .menu-button { display: inline-grid; place-items: center; }
  .nav-links { display: none; position: fixed; inset: 82px 0 auto; padding: 26px 20px 32px; flex-direction: column; align-items: stretch; background: #111b17; border-top: 1px solid rgba(255,255,255,.16); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 8px; font-size: 17px; text-align: center; }
  .intro-layout, .compare-layout, .packages-layout, .installation-layout, .green-layout, .checklist-layout, .faq-layout, .method-layout { grid-template-columns: 1fr; gap: 48px; }
  .compare-copy { position: static; }
  .roof-grid { grid-template-columns: 1fr 1fr; }
  .roof-grid article:nth-child(2) { border-right: 0; }
  .roof-grid article:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.18); }
  .partner-heading { grid-template-columns: 1fr; gap: 12px; }
  .installation-image, .installation-image img { min-height: 500px; }
}

@media (max-width: 700px) {
  .partner-grid { grid-template-columns: 1fr; }
  .partner-card, .partner-card:first-child { min-height: auto; padding: 26px 3px; border-right: 0; border-bottom: 1px solid var(--line); }
  .partner-card:last-child { border-bottom: 0; }
  .partner-label { margin-bottom: 16px; }
  .partner-card > p:not(.partner-label) { min-height: 0; }
  .ad-label { position: static; display: inline-block; margin-left: 12px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav, .container, .hero-inner { width: min(calc(100% - 28px), var(--max)); }
  .nav { height: 72px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 25px; height: 19px; }
  .nav-links { top: 72px; }
  .hero { min-height: 91svh; }
  .hero::before { background-image: linear-gradient(90deg, rgba(8,15,12,.91), rgba(8,15,12,.24)), linear-gradient(0deg, rgba(8,15,12,.8), transparent 65%), url("solceller-hero.webp"); background-position: 62% center; }
  .hero-inner { padding: 120px 0 56px; }
  h1 { font-size: 42px; overflow-wrap: anywhere; }
  .hero-tagline { font-size: 21px; }
  .hero-copy { font-size: 17px; }
  .hero-actions { flex-direction: column; }
  .hero-scroll { display: none; }
  .section { padding: 70px 0; }
  .intro { padding: 59px 0; }
  .intro h2, .compare h2, .section-heading h2, .packages h2, .partner h2, .installation h2, .green-section h2, .checklist h2, .faq h2, .method h2 { font-size: 36px; }
  .lead { font-size: 18px; }
  .criteria-list li { grid-template-columns: 43px 1fr; }
  .roof-grid { grid-template-columns: 1fr; }
  .roof-grid article, .roof-grid article:first-child { min-height: auto; padding: 25px 3px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .roof-grid article:last-child { border-bottom: 0; }
  .roof-grid h3 { margin-top: 18px; }
  .installation-image, .installation-image img { min-height: 390px; }
  .installation-list div { grid-template-columns: 1fr; gap: 4px; }
  .checklist ol { grid-template-columns: 1fr; }
  .checklist li:nth-child(odd) { border-right: 0; }
  .checklist li, .checklist li:nth-child(even) { padding-left: 0; }
  .contact-band .container { align-items: stretch; flex-direction: column; gap: 25px; }
  .contact-band h2 { font-size: 34px; }
  .contact-band .button { width: 100%; overflow-wrap: anywhere; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .owner-row, .footer-bottom { flex-direction: column; }
  .privacy-page main { width: min(calc(100% - 28px), 780px); padding: 60px 0 90px; }
  .privacy-page h1 { font-size: 42px; }
}
