/* ====================================================
   Solar Square Panels — shared stylesheet
   ==================================================== */

:root {
  --navy-900: #0a1930;
  --navy-800: #0f2544;
  --navy-700: #16345e;
  --navy-600: #1e4278;
  --gold-500: #f5a623;
  --gold-400: #ffbb47;
  --gold-300: #ffd280;
  --gold-100: #fff3dd;
  --white: #ffffff;
  --gray-50: #f7f8fa;
  --gray-100: #eef1f5;
  --gray-200: #e4e7ec;
  --gray-500: #667085;
  --gray-700: #3c4658;
  --text: #14213d;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(10, 25, 48, 0.07);
  --shadow: 0 10px 30px rgba(10, 25, 48, 0.10);
  --shadow-lg: 0 20px 50px rgba(10, 25, 48, 0.16);
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1em; color: var(--gray-700); }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

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

section[id] { scroll-margin-top: 84px; }

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--gray-50); }
.section--navy { background: var(--navy-900); color: var(--white); }
.section--navy p { color: rgba(255,255,255,0.72); }
.section--photo {
  background-image: linear-gradient(120deg, rgba(10,25,48,0.90), rgba(10,25,48,0.82)), url("../assets/services-photo.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.section--photo .section-head h2 { color: var(--white); }
.section--photo .section-head p { color: rgba(255,255,255,0.8); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 12px;
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 { font-size: clamp(28px, 3.6vw, 38px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--gold {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 8px 20px rgba(245, 166, 35, 0.35);
}
.btn--gold:hover { background: var(--gold-400); box-shadow: 0 10px 26px rgba(245, 166, 35, 0.45); }

.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn--outline-navy {
  background: transparent;
  border-color: var(--navy-700);
  color: var(--navy-800);
}
.btn--outline-navy:hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }

.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--navy-900); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand small { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--gold-500); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--gray-700);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover { color: var(--navy-900); }
.main-nav a.is-active { color: var(--navy-900); }
.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: var(--gold-500);
  border-radius: 3px;
}

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy-900); font-size: 14px; }
.header-phone svg { color: var(--gold-500); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--navy-900);
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.18s ease;
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
  .header-phone span { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(100deg, rgba(10,25,48,0.94) 0%, rgba(10,25,48,0.86) 40%, rgba(10,25,48,0.55) 100%),
    radial-gradient(circle at 15% 20%, var(--navy-700), var(--navy-900) 60%);
  background-size: cover, cover;
  background-position: center, center;
  color: var(--white);
  overflow: hidden;
}
.hero--photo {
  background-image:
    linear-gradient(100deg, rgba(10,25,48,0.94) 0%, rgba(10,25,48,0.86) 40%, rgba(10,25,48,0.55) 100%),
    url("../assets/hero-photo.jpg");
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 80% 30%, black, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 90px 0 100px;
}
.hero h1 { font-size: clamp(34px, 5vw, 54px); }
.hero .lede { color: rgba(255,255,255,0.78); font-size: 18px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-trust { display: flex; gap: 28px; margin-top: 44px; flex-wrap: wrap; }
.hero-trust div strong { display: block; font-size: 24px; color: var(--gold-400); }
.hero-trust div span { font-size: 13px; color: rgba(255,255,255,0.65); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0 64px; }
}

/* ---------- Panel graphic (CSS-drawn, used as photo placeholder) ---------- */
.panel-art {
  position: relative;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  background: linear-gradient(155deg, var(--navy-600), var(--navy-800));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.panel-art::before {
  content: "";
  position: absolute;
  inset: 10%;
  background:
    linear-gradient(rgba(255,255,255,0.16) 1px, transparent 1px) 0 0 / 100% 16.6%,
    linear-gradient(90deg, rgba(255,255,255,0.16) 1px, transparent 1px) 0 0 / 24.9% 100%;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
}
.panel-art::after {
  content: "";
  position: absolute;
  top: 8%; right: 10%;
  width: 70px; height: 70px;
  background: radial-gradient(circle, var(--gold-400), rgba(255,187,71,0));
  border-radius: 50%;
  filter: blur(1px);
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.placeholder-photo {
  position: relative;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.placeholder-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px) 0 0 / 100% 20%,
    linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px) 0 0 / 20% 100%;
  opacity: 0.9;
}
.placeholder-photo .tag {
  position: relative;
  z-index: 1;
  margin: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-900);
  background: var(--gold-400);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
}
.stat-strip div { text-align: center; }
.stat-strip strong { display: block; font-size: 32px; color: var(--gold-500); }
.stat-strip span { font-size: 14px; color: var(--gray-500); font-weight: 600; }
@media (max-width: 760px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }

.icon-badge {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--gold-100);
  color: var(--gold-500);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

.card h3 { font-size: 19px; }
.card p { font-size: 15px; margin-bottom: 0; }
.card .link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--navy-800); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 8px; }
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-400);
  font-weight: 800;
  margin-bottom: 16px;
}
.step h3 { font-size: 17px; }
.step p { font-size: 14.5px; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.testimonial .stars { color: var(--gold-500); letter-spacing: 2px; margin-bottom: 10px; }
.testimonial p { font-style: italic; color: var(--gray-700); }
.testimonial .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testimonial .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--navy-700));
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
}
.testimonial .who strong { display: block; font-size: 14px; }
.testimonial .who span { font-size: 13px; color: var(--gray-500); }

/* ---------- Calculator ---------- */
.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.calc-form { padding: 44px; }
.calc-result {
  padding: 44px;
  background: var(--navy-900);
  color: var(--white);
}
.calc-result p { color: rgba(255,255,255,0.7); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--gray-700); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  color: var(--text);
  font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); background: var(--white); }
.field textarea { resize: vertical; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 24px 0; }
.result-tile { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-sm); padding: 16px; }
.result-tile strong { display: block; font-size: 24px; color: var(--gold-400); }
.result-tile span { font-size: 12.5px; color: rgba(255,255,255,0.65); }
.calc-note { font-size: 12.5px; color: rgba(255,255,255,0.5); margin-top: 18px; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, rgba(10,25,48,0.90), rgba(10,25,48,0.72));
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--white);
}
.cta-banner--photo {
  background-image: linear-gradient(120deg, rgba(10,25,48,0.90), rgba(10,25,48,0.72)), url("../assets/cta-photo.jpg");
}
.cta-banner h2 { color: var(--white); margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.78); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 15px; margin-bottom: 18px; }
.footer-grid ul li { margin-bottom: 10px; font-size: 14.5px; }
.footer-grid ul li a:hover { color: var(--gold-400); }
.footer-brand .brand { color: var(--white); }
.footer-brand p { margin-top: 14px; font-size: 14px; max-width: 320px; }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: 14.5px; }
.footer-contact-item svg { flex: none; color: var(--gold-400); margin-top: 2px; }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--gold-500); color: var(--navy-900); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 56px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 64px 0;
}
.page-header .eyebrow { color: var(--gold-400); }
.breadcrumb { font-size: 13.5px; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Gallery ---------- */
.gallery-item { position: relative; }
.gallery-item .caption { padding: 14px 4px 0; }
.gallery-item .caption strong { display: block; font-size: 15px; }
.gallery-item .caption span { font-size: 13px; color: var(--gray-500); }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-700);
}
.filter-btn.is-active { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }

/* ---------- About page ---------- */
.value-row { display: flex; gap: 16px; margin-bottom: 22px; }
.value-row .icon-badge { margin-bottom: 0; }
.value-row div h3 { font-size: 16.5px; margin-bottom: 4px; }
.value-row div p { font-size: 14.5px; margin-bottom: 0; }
.badge-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.badge-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-800);
}
.badge-pill svg { color: var(--gold-500); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--gray-50); border-radius: var(--radius-lg); padding: 36px; border: 1px solid var(--gray-200); }
.contact-card .footer-contact-item { color: var(--gray-700); }
.contact-card .footer-contact-item svg { color: var(--gold-500); }
.hours-row { display: flex; justify-content: space-between; font-size: 14.5px; padding: 9px 0; border-bottom: 1px solid var(--gray-200); }
.hours-row:last-child { border-bottom: none; }
.map-placeholder {
  margin-top: 24px;
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  background:
    linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)),
    linear-gradient(135deg, var(--gold-100), var(--gray-200));
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13.5px;
  font-weight: 600;
  border: 1.5px dashed var(--gray-200);
  text-align: center;
  padding: 20px;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row-2 { grid-template-columns: 1fr; } }
.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  background: #eafaf0;
  border: 1px solid #b7ebc9;
  color: #14804a;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 22px;
}
.form-success.is-visible { display: flex; }

/* ---------- Misc ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.faq-item { border-bottom: 1px solid var(--gray-200); padding: 20px 0; }
.faq-item summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform 0.2s ease; color: var(--gold-500); }
.faq-item[open] summary .chev { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; margin-bottom: 0; font-size: 14.5px; }
