/* ============================================================
   Solarlink Energy Systems — stylesheet
   Brand: leaf green + graphite, taken from the Solarlink logo
   ============================================================ */

:root {
  --leaf:      #A6CE59;
  --leaf-soft: #EDF5DC;
  --leaf-line: #D3E6AC;
  --green-600: #5E9128;
  --green-700: #4C7A22;
  --green-800: #3A5C1A;
  --green-900: #23370F;

  --ink:       #171C13;
  --body:      #4A5245;
  --muted:     #767E70;
  --line:      #E2E6DD;
  --bg:        #FFFFFF;
  --bg-tint:   #F7F9F3;

  --dark:      #1E2A18;
  --dark-2:    #16200F;

  --radius:    14px;
  --radius-lg: 22px;
  --shadow:    0 1px 2px rgba(23,28,19,.05), 0 8px 24px -8px rgba(23,28,19,.10);
  --shadow-lg: 0 2px 4px rgba(23,28,19,.06), 0 24px 48px -16px rgba(23,28,19,.18);

  --wrap:      1160px;
  --font:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.14; letter-spacing: -0.022em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.65rem); }
h3 { font-size: 1.16rem; font-weight: 700; letter-spacing: -0.012em; }
p  { margin: 0 0 1.1em; }
a  { color: var(--green-700); }
img { max-width: 100%; height: auto; display: block; }

.visually-hidden, .skip:not(:focus) {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed; top: 12px; left: 12px; z-index: 999;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 10px; text-decoration: none;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--green-600); outline-offset: 2px; border-radius: 6px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: 800px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  padding: .78rem 1.35rem; border-radius: 999px; border: 1.5px solid transparent;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.02rem; }
.btn-sm { padding: .58rem 1.05rem; font-size: .93rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-800); }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.logo { display: flex; align-items: center; flex: none; text-decoration: none; }
.logo img { height: 38px; width: auto; }

.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a {
  color: var(--body); text-decoration: none; font-weight: 550; font-size: .96rem;
  padding: .35rem 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--leaf); }

.header-cta { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.phone-link {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--ink); font-weight: 650; text-decoration: none; font-size: .96rem;
}
.phone-link:hover { color: var(--green-700); }
.phone-link svg { width: 17px; height: 17px; fill: none; stroke: var(--green-600); stroke-width: 1.9; }

.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; margin-left: auto; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .22s ease, opacity .18s ease; }
.burger span + span { margin-top: 6px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; padding: .5rem 24px 1.4rem; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav a { padding: .85rem 0; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav .mobile-cta { color: var(--green-700); }
.mobile-nav .mobile-tel { display: flex; align-items: center; gap: .5rem; }
.mobile-nav svg { width: 17px; height: 17px; fill: none; stroke: var(--green-600); stroke-width: 1.9; }

@media (max-width: 940px) {
  .nav, .header-cta { display: none; }
  .burger { display: block; }
  .mobile-nav:not([hidden]) { display: flex; }
}

/* ---------------- Hero ---------------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 420px at 82% -8%, rgba(166,206,89,.34), transparent 62%),
    radial-gradient(700px 500px at 8% 108%, rgba(94,145,40,.30), transparent 60%),
    linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 60%, #101809 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(680px 420px at 72% 20%, #000, transparent 76%);
}
.hero-inner { position: relative; z-index: 1; padding: clamp(4rem, 9vw, 7.5rem) 24px clamp(3.5rem, 7vw, 6rem); max-width: 900px; margin-inline: auto; text-align: center; }
.hero h1 { color: #fff; margin-bottom: .55em; text-wrap: balance; }
.hero .lede { font-size: clamp(1.06rem, 1.7vw, 1.23rem); color: rgba(255,255,255,.82); max-width: 660px; margin-inline: auto; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; margin: 2rem 0 2.4rem; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .10em; font-size: .765rem; font-weight: 700;
  color: var(--green-600); margin: 0 0 .9rem;
}
.eyebrow-light { color: var(--leaf); }

.hero-points {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .7rem 1.9rem; justify-content: center;
  font-size: .95rem; color: rgba(255,255,255,.8);
}
.hero-points li { display: flex; align-items: center; gap: .55rem; }
.hero-points li::before {
  content: ""; width: 17px; height: 17px; flex: none; border-radius: 50%;
  background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323370F' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ---------------- Trust bar ---------------- */
.trustbar { background: var(--bg-tint); border-bottom: 1px solid var(--line); }
.trustbar-inner { display: flex; align-items: center; justify-content: center; gap: 1.4rem 2.75rem; flex-wrap: wrap; padding-block: 1.5rem; }
.trustbar-label { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.badges { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2.5rem; margin: 0; padding: 0; }
.badge img { height: 44px; width: auto; }
.badge a { display: block; opacity: .9; transition: opacity .15s; }
.badge a:hover { opacity: 1; }

/* ---------------- Sections ---------------- */
.section { padding: clamp(3.5rem, 7.5vw, 6.5rem) 0; }
.section-tint { background: var(--bg-tint); }
.section-dark { background: var(--dark); color: rgba(255,255,255,.8); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a:not(.btn) { color: var(--leaf); }

.section-head { max-width: 680px; margin: 0 auto clamp(2.4rem, 4.5vw, 3.4rem); text-align: center; }
.section-head h2 { text-wrap: balance; }
.section-sub { font-size: 1.06rem; color: var(--muted); margin: 0; text-wrap: pretty; }

/* ---------------- Cards ---------------- */
.grid { display: grid; gap: 1.25rem; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.9rem 1.6rem; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--leaf-line); box-shadow: var(--shadow); transform: translateY(-3px); }
.card p { margin: 0; font-size: .965rem; }
.card h3 { margin-bottom: .45rem; }
.card-icon {
  width: 50px; height: 50px; border-radius: 14px; background: var(--leaf-soft);
  display: grid; place-items: center; margin-bottom: 1.15rem;
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--green-700); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- Why ---------------- */
.why-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.why-copy h2 { text-wrap: balance; }
.why-copy .btn { margin-top: .8rem; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.stats li {
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
}
.stat-num { display: block; font-size: 1.95rem; font-weight: 800; color: var(--leaf); letter-spacing: -.02em; line-height: 1.1; }
.stat-label { display: block; font-size: .93rem; color: rgba(255,255,255,.72); margin-top: .3rem; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------------- Steps ---------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 1.6rem; counter-reset: step; }
.steps li { position: relative; padding-top: 2.6rem; border-top: 2px solid var(--line); }
.steps li::after { content: ""; position: absolute; top: -2px; left: 0; width: 46px; height: 2px; background: var(--leaf); }
.step-n { position: absolute; top: 1.05rem; left: 0; font-size: .82rem; font-weight: 800; letter-spacing: .1em; color: var(--green-600); }
.steps p { margin: 0; font-size: .965rem; }

/* ---------------- Gallery ---------------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; }
.shot { margin: 0; }
.shot img, .shot > span {
  display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3;
  border-radius: var(--radius); object-fit: cover;
}
.shot.is-placeholder > span {
  background: repeating-linear-gradient(45deg, #EFF3E8 0 12px, #E7EDDC 12px 24px);
  border: 1px dashed var(--leaf-line); color: var(--muted); font-size: .88rem; font-weight: 600;
}
.shot figcaption { font-size: .88rem; color: var(--muted); margin-top: .6rem; }

/* ---------------- FAQ ---------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.25rem 2.6rem 1.25rem 0; position: relative;
  font-weight: 650; color: var(--ink); font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .35rem; top: 50%; width: 11px; height: 11px;
  border-right: 2.2px solid var(--green-600); border-bottom: 2.2px solid var(--green-600);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-body { padding-bottom: 1.35rem; }
.faq-body p { margin: 0; color: var(--body); }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: start; }
.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; align-items: center; gap: .9rem; }
.contact-list a { color: #fff; text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.contact-list a:hover { color: var(--leaf); }
.ci { width: 40px; height: 40px; flex: none; border-radius: 11px; background: rgba(166,206,89,.15); display: grid; place-items: center; }
.ci svg { width: 19px; height: 19px; fill: none; stroke: var(--leaf); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.contact-form { background: #fff; border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.3rem); box-shadow: var(--shadow-lg); }
.field { margin-bottom: 1.05rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: .875rem; font-weight: 650; color: var(--ink); margin-bottom: .38rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--ink);
  padding: .72rem .9rem; border: 1.5px solid var(--line); border-radius: 11px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(94,145,40,.15);
}
.field input:user-invalid { border-color: #C0392B; }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; margin: .9rem 0 0; }
.form-status { margin: .9rem 0 0; font-size: .93rem; font-weight: 600; text-align: center; }
.form-status.is-ok { color: var(--green-700); }
.form-status.is-err { color: #C0392B; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .field-row { grid-template-columns: 1fr; } }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--dark-2); color: rgba(255,255,255,.62); padding: 3.5rem 0 2rem; font-size: .93rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand img { height: 36px; width: auto; margin-bottom: 1rem; }
.footer-brand p { margin: 0; max-width: 30ch; }
.footer-nav, .footer-contact { display: grid; gap: .6rem; align-content: start; }
.footer-nav a, .footer-contact a { color: rgba(255,255,255,.72); text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--leaf); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.6rem; font-size: .84rem; color: rgba(255,255,255,.45); }
.footer-legal p { margin: 0; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; } }

/* ---------------- Brand mark ---------------- */
.brand { height: 42px; width: auto; display: block; }
.logo .brand { height: 40px; }
.footer-brand .brand { height: 40px; margin-bottom: 1rem; }
.footer-brand { --logo-text: #FFFFFF; --logo-sub: #A6CE59; }

/* White chips so the third-party badge artwork sits cleanly on the tint */
.badge a { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .55rem 1rem; }
.badge img { height: 40px; width: auto; }
