/* Solar Cape Town — SOLAR-20261009-V3KR
   Shared stylesheet. Mobile-first, no external dependencies. */

:root {
  --ink: #11202e;
  --ink-soft: #46586b;
  --brand: #0b6b53;
  --brand-dark: #084f3d;
  --sun: #f5a623;
  --bg: #ffffff;
  --bg-soft: #f4f7f6;
  --line: #dde5e2;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(17, 32, 46, .08);
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-dark); }

h1, h2, h3 { line-height: 1.25; color: var(--ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}
.brand svg { display: block; }
.brand small { display: block; font-weight: 500; color: var(--ink-soft); font-size: .72rem; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .5rem .6rem;
  cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; }

.nav {
  display: none;
}
.nav.open { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block;
  padding: .6rem 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}
.nav a[aria-current="page"] { color: var(--brand); }

@media (min-width: 820px) {
  .nav-toggle { display: none; }
  .nav { display: block; }
  .nav ul { display: flex; gap: 1.25rem; align-items: center; }
  .nav a { padding: .4rem 0; }
  .has-sub { position: relative; }
  .sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 260px;
    padding: .5rem;
  }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
  .sub a { padding: .5rem .6rem; border-radius: 8px; }
  .sub a:hover { background: var(--bg-soft); }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid transparent;
}
.btn-primary { background: var(--sun); color: #1a1300; }
.btn-primary:hover { background: #e0940f; }
.btn-outline { border-color: var(--brand); color: var(--brand-dark); }
.btn-outline:hover { background: var(--bg-soft); }
.btn-cta { background: var(--brand); color: #fff; }
.btn-cta:hover { background: var(--brand-dark); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 55%, #12907a 100%);
  color: #fff;
  padding: 3.5rem 0;
}
.hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 .75rem; }
.hero p { font-size: 1.1rem; max-width: 46ch; color: #e8f5f0; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero .btn-outline { border-color: #fff; color: #fff; }
.hero .btn-outline:hover { background: rgba(255,255,255,.12); }

/* Sections */
section { padding: 2.75rem 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 60ch; margin-bottom: 1.5rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 .4rem;
}

/* Cards */
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) {
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card img { border-radius: 8px; margin-bottom: .75rem; }
.card .more { font-weight: 600; text-decoration: none; }

/* Steps / reasons */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1rem;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FAQ */
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  margin-bottom: .6rem;
  background: #fff;
}
.faq summary { font-weight: 600; cursor: pointer; }
.faq summary::marker { color: var(--brand); }
.faq details[open] { box-shadow: var(--shadow); }

/* Contact form */
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: .3rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
.form-note { font-size: .85rem; color: var(--ink-soft); }
.form-status { margin-top: 1rem; font-weight: 600; }

/* Callout / confirm */
.confirm {
  background: #fff7e6;
  border: 1px solid #f0c36d;
  border-radius: var(--radius);
  padding: .75rem 1rem;
  font-size: .9rem;
  color: #6b4a00;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #cbd6df;
  padding: 2.5rem 0 1.5rem;
  font-size: .92rem;
}
.site-footer h2 { color: #fff; font-size: 1rem; margin: 0 0 .6rem; }
.site-footer a { color: #e8f5f0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.footer-bottom {
  border-top: 1px solid #2a3b4a;
  margin-top: 1.5rem;
  padding-top: 1rem;
  font-size: .82rem;
  color: #93a4b3;
}

/* Breadcrumbs */
.breadcrumbs { font-size: .85rem; color: var(--ink-soft); padding-top: 1rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumbs li::after { content: "/"; margin-left: .4rem; color: var(--line); }
.breadcrumbs li:last-child::after { content: ""; }

/* Utility */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2rem; }
.mt-0 { margin-top: 0; }
.center { text-align: center; }
