/* ==========================================================================
   Green Source Electrical — homepage
   Layered on top of style.css. Homepage-specific sections only.
   ========================================================================== */

/* —— hero —— */
.gs-hero {
  padding: 24px 0 28px;
}
.gs-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-soft);
  color: var(--green-deep);
  padding: 6px 11px 6px 9px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}
.gs-hero .eyebrow .pill-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--green); display: grid; place-items: center;
}
.gs-hero h1 {
  font-size: 32px; line-height: 1.04;
  letter-spacing: -0.03em; font-weight: 800;
}
.gs-hero h1 .accent {
  color: var(--green);
  display: inline-block;
  position: relative;
}
.gs-hero h1 .accent::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 2px; height: 7px;
  background: var(--green); opacity: 0.18; border-radius: 2px;
  z-index: -1;
}
.gs-hero .sub {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
  text-wrap: pretty;
  max-width: 60ch;
}

.gs-hero-photo {
  margin-top: 22px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #2d5a3d 0%, #1f4129 100%);
  box-shadow: 0 14px 40px -12px rgba(20, 32, 26, 0.35), 0 1px 0 rgba(255,255,255,0.1) inset;
}
.gs-hero-photo .ph-inner {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}
.gs-hero-photo .ph-inner.placeholder {
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 14px),
    radial-gradient(120% 80% at 30% 20%, rgba(255,255,255,0.18), transparent 50%),
    radial-gradient(80% 60% at 80% 90%, rgba(0,0,0,0.35), transparent 60%);
}
.gs-hero-photo .ph-tag {
  position: absolute;
  bottom: 14px; left: 14px;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  padding: 7px 10px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 7px;
  backdrop-filter: blur(6px);
}
.gs-hero-photo .ph-tag .ph-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.gs-hero-photo .ph-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  padding: 8px 10px 8px 11px;
  border-radius: 12px;
  display: flex; flex-direction: column; gap: 1px;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 600;
}
.gs-hero-photo .ph-badge small { font-size: 9px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }
.gs-hero-photo .ph-badge strong { font-family: 'Inter Tight', sans-serif; font-size: 13px; color: var(--green-deep); }

.gs-cta-row {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.gs-cta-row .gs-btn { flex: 1; min-width: 160px; }

.gs-trust-strip {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  padding: 14px 0;
}
.gs-trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.gs-trust-item svg { flex-shrink: 0; }
.gs-trust-item small { display: block; font-weight: 500; color: var(--ink-3); font-size: 11px; margin-top: 1px; letter-spacing: 0; }

/* —— credential strip —— */
.gs-creds {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.gs-creds::-webkit-scrollbar { display: none; }
.gs-cred {
  flex-shrink: 0;
  display: flex; flex-direction: column; gap: 2px;
  font-size: 11.5px;
  color: var(--ink-3);
  text-align: center;
  min-width: 92px;
}
.gs-cred strong {
  font-family: 'Inter Tight', sans-serif;
  font-size: 16px;
  color: var(--ink);
  font-weight: 700;
}

/* —— services grid —— */
.gs-services {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gs-service {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.gs-service:hover { border-color: var(--green); transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(45,90,61,0.25); }
.gs-service .icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-deep);
  display: grid; place-items: center;
}
.gs-service h3 { font-size: 15px; line-height: 1.18; }
.gs-service p { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; flex: 1; }
.gs-service .more {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--green-deep);
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 2px;
}
.gs-service .badge {
  position: absolute; top: 11px; right: 11px;
  background: var(--warn); color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px; font-weight: 600;
  padding: 3px 6px; border-radius: 4px;
  letter-spacing: 0.05em;
}
.gs-services-cta {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-deep);
}
.gs-services-cta a {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 16px; border-radius: 8px;
}
.gs-services-cta a:hover { background: var(--green-soft); }

/* —— why us (dark section) —— */
.gs-why {
  background: var(--charcoal);
  color: #f3eee2;
  position: relative;
  overflow: hidden;
}
.gs-why::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,90,61,0.45), transparent 70%);
}
.gs-why h2 { color: #fff; }
.gs-why .gs-section-eyebrow { color: #93c8a4; }
.gs-why .gs-section-eyebrow::before { background: #93c8a4; }
.gs-why .gs-section-lead { color: rgba(243,238,226,0.7); }

.gs-why-photo {
  margin-top: 20px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 2;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 14px 30px -16px rgba(0,0,0,0.5);
}
.gs-why-photo .ph-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}
.gs-why-photo .ph-img.placeholder {
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 14px),
    radial-gradient(circle at 30% 30%, rgba(45,90,61,0.55), transparent 60%);
}
.gs-why-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14, 22, 18, 0.85) 100%);
}
.gs-why-photo .ph-cap {
  position: absolute;
  left: 14px; bottom: 12px; right: 14px;
  display: flex; flex-direction: column;
  z-index: 2;
}
.gs-why-photo .ph-cap strong {
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px; font-weight: 700; color: #fff;
}
.gs-why-photo .ph-cap span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: #93c8a4;
  letter-spacing: 0.04em; margin-top: 2px;
}

.gs-why-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.gs-why-cell {
  background: var(--charcoal);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gs-why-cell .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #93c8a4;
  letter-spacing: 0.1em;
}
.gs-why-cell h3 { color: #fff; font-size: 15px; line-height: 1.2; }
.gs-why-cell p { font-size: 12px; color: rgba(243,238,226,0.65); line-height: 1.5; margin: 0; }

/* —— service area —— */
.gs-area-list {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.gs-area-pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 13px;
  transition: all .15s ease;
}
.gs-area-pill:hover { border-color: var(--green); color: var(--green-deep); }
.gs-area-pill .km {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; color: var(--ink-3);
  font-weight: 500; letter-spacing: 0.04em;
}
.gs-map-card {
  margin-top: 14px;
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  color: #f3eee2;
  border-radius: 14px;
  padding: 16px 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
}
.gs-map-card .map-glyph {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.14);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.gs-map-card strong { display: block; font-family: 'Inter Tight', sans-serif; font-size: 14px; margin-bottom: 2px; color: #fff; }
.gs-map-card .arrow { margin-left: auto; opacity: 0.7; }

/* —— projects —— */
.gs-projects {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gs-project {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1;
  background: #d8d2c4;
  display: block;
}
.gs-project.tall { aspect-ratio: 1 / 1.35; }
.gs-project .ph {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.gs-project .ph.placeholder {
  background-image:
    repeating-linear-gradient(45deg, rgba(0,0,0,0.05) 0 2px, transparent 2px 12px),
    linear-gradient(160deg, var(--c1, #b8b1a0), var(--c2, #8a8576));
}
.gs-project .cap {
  position: absolute;
  left: 8px; right: 8px; bottom: 8px;
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  padding: 7px 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.gs-project .cap small { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--ink-3); font-weight: 500; }

/* —— testimonials —— */
.gs-reviews-head {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.gs-reviews-head .g-mark {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  color: #4285F4;
  font-size: 14px;
}
.gs-reviews-head .stars { color: #f5a623; letter-spacing: 1px; font-size: 13px; }
.gs-reviews-head strong { font-size: 13px; }
.gs-reviews-head .count { font-size: 11.5px; color: var(--ink-3); margin-left: auto; }

.gs-reviews { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.gs-review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.gs-review .stars { color: #f5a623; letter-spacing: 2px; font-size: 13px; margin-bottom: 8px; }
.gs-review p { font-size: 13.5px; line-height: 1.55; color: var(--ink); }
.gs-review .who {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 9px;
  font-size: 12px;
}
.gs-review .who .av {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-deep);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 11px;
  font-family: 'Inter Tight', sans-serif;
}
.gs-review .who strong { font-weight: 600; }
.gs-review .who small { color: var(--ink-3); margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; }

/* —— inline quote form (dark green) —— */
.gs-form-section {
  background: var(--green-deep);
  color: #f3eee2;
  position: relative;
  overflow: hidden;
}
.gs-form-section::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 70%);
}
.gs-form-section h2 { color: #fff; font-size: 24px; line-height: 1.12; }
.gs-form-section .gs-section-eyebrow { color: #c8e6d1; }
.gs-form-section .gs-section-eyebrow::before { background: #c8e6d1; }
.gs-form-section .gs-section-lead { color: rgba(243,238,226,0.78); }

.gs-form {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.gs-field { display: flex; flex-direction: column; gap: 5px; }
.gs-field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243,238,226,0.65);
  display: flex; justify-content: space-between;
}
.gs-field label .opt {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(243,238,226,0.5);
  font-weight: 500;
}
.gs-field input,
.gs-field select,
.gs-field textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 12px 13px;
  font-size: 14px;
  color: #fff;
  font-weight: 500;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}
.gs-field input::placeholder,
.gs-field textarea::placeholder { color: rgba(243,238,226,0.4); }
.gs-field input:focus,
.gs-field select:focus,
.gs-field textarea:focus { border-color: #c8e6d1; background: rgba(255,255,255,0.08); }
.gs-field textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.gs-field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23c8e6d1' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.gs-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gs-form .field-error input,
.gs-form .field-error select { border-color: #f4a583; background: rgba(244,165,131,0.08); }
.gs-form .honeypot {
  position: absolute; left: -9999px;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}
.gs-form .submit {
  margin-top: 6px;
  padding: 16px;
  background: #fff;
  color: var(--green-deep);
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s ease, background .15s ease;
}
.gs-form .submit:hover { background: #fdf9ee; }
.gs-form .submit:active { transform: scale(0.98); }
.gs-form .submit[disabled] { opacity: 0.55; cursor: not-allowed; }
.gs-form .reassure {
  margin-top: 6px;
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px;
  color: rgba(243,238,226,0.7);
}
.gs-form .gs-form-message {
  display: none;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
}
.gs-form .gs-form-message[data-state="error"] {
  display: block;
  background: rgba(244, 165, 131, 0.15);
  color: #f4a583;
  border: 1px solid rgba(244, 165, 131, 0.4);
}
.gs-form .success {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(200,230,209,0.4);
  border-radius: 12px;
  padding: 24px 18px;
  text-align: center;
  margin-top: 6px;
}
.gs-form .success h3 { color: #fff; font-family: 'Inter Tight', sans-serif; font-size: 20px; margin-bottom: 8px; }
.gs-form .success p { font-size: 13.5px; color: rgba(243,238,226,0.78); line-height: 1.55; }
.gs-form .success .check {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(200,230,209,0.18);
  color: #c8e6d1;
  display: grid; place-items: center;
  margin: 0 auto 12px;
}
.gs-form .success .ref {
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(243, 238, 226, 0.55);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Wider viewports
   ========================================================================== */
@media (min-width: 760px) {
  .gs-hero { padding: 56px 0 32px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
  .gs-hero h1 { font-size: 56px; line-height: 1.02; letter-spacing: -0.035em; }
  .gs-hero .sub { font-size: 17px; }
  .gs-hero-photo { margin-top: 0; aspect-ratio: 4 / 5; }
  .gs-cta-row { margin-top: 28px; }
  .gs-trust-strip { grid-column: 1 / -1; }

  .gs-creds { padding: 22px 24px; gap: 28px; justify-content: space-around; }

  .gs-services { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .gs-service { padding: 22px 20px 20px; }
  .gs-service h3 { font-size: 16px; }
  .gs-service p { font-size: 13px; }

  .gs-why-grid { grid-template-columns: repeat(4, 1fr); }

  .gs-area-list { grid-template-columns: repeat(5, 1fr); }

  .gs-projects { grid-template-columns: repeat(3, 1fr); }
  .gs-project.tall { aspect-ratio: 1 / 1; }

  .gs-reviews { display: grid; grid-template-columns: repeat(3, 1fr); }

  .gs-form-section .gs-form { max-width: 720px; }
  .gs-form .row2 { gap: 12px; }

  .gs-section h2 { font-size: 32px; }
  .gs-why h2,
  .gs-form-section h2 { font-size: 32px; }
}

@media (min-width: 1024px) {
  .gs-hero h1 { font-size: 64px; }
  .gs-services { gap: 16px; }
}
