/* ==========================================================================
   Green Source Electrical — shared design system
   Tokens + chrome (utility strip, sticky header, mobile drawer, buttons,
   section base, footer). Loaded by every page; page-specific styles layer
   on top via {page}.css.
   Adapted from the Claude Design system.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');

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

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; padding: 0; color: inherit; }
input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }

body {
  --green: #2d5a3d;
  --green-deep: #1f4129;
  --green-soft: #e7eee9;
  --charcoal: #1c1f1d;
  --ink: #14201a;
  --ink-2: #4b5651;
  --ink-3: #7c8581;
  --bg: #f6f3ec;
  --card: #ffffff;
  --line: #e6e1d7;
  --warn: #c8632a;
  --content-max: 1200px;

  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

h1, h2, h3, h4 {
  font-family: 'Inter Tight', system-ui, sans-serif;
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: 32px; line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: 24px; line-height: 1.12; letter-spacing: -0.025em; }
h3 { font-size: 17px; line-height: 1.2; }
p  { margin: 0; }

.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--ink); color: #fff;
  padding: 8px 14px;
  z-index: 100;
}
.skip-link:focus { top: 0; }

.container { max-width: var(--content-max); margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* —— top utility strip —— */
.gs-strip {
  background: var(--charcoal);
  color: #f3eee2;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  gap: 12px;
}
.gs-strip a { color: #f3eee2; display: inline-flex; align-items: center; gap: 6px; }
.gs-strip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #6cd28e; box-shadow: 0 0 8px #6cd28e;
  display: inline-block; margin-right: 6px;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(.85); }
}

/* —— sticky header —— */
.gs-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246, 243, 236, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.gs-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; padding-bottom: 10px;
  gap: 12px;
}
.gs-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
@media (min-width: 760px) {
  .gs-logo { font-size: 22px; gap: 14px; }
}
.gs-logo .mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.gs-logo .mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.gs-logo .mark svg { color: #fff; }
.gs-footer .gs-logo .mark { background: #fff; }
.gs-logo small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.gs-nav { display: none; }
.gs-nav ul { list-style: none; display: flex; gap: 24px; padding: 0; margin: 0; }
.gs-nav a {
  font-size: 14px; font-weight: 600;
  color: var(--ink); padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.gs-nav a:hover { color: var(--green-deep); }
.gs-nav a[aria-current="page"] { border-bottom-color: var(--green); color: var(--green-deep); }

.gs-header-cta {
  display: none;
  background: var(--green);
  color: #fff;
  padding: 9px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13.5px;
  align-items: center; gap: 7px;
}
.gs-header-cta:hover { background: var(--green-deep); }

.gs-menu-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--ink);
  color: #f6f3ec;
  display: grid; place-items: center;
  transition: transform .15s ease;
}
.gs-menu-btn:active { transform: scale(0.94); }

/* —— mobile drawer —— */
.gs-drawer {
  position: fixed; inset: 0;
  z-index: 80;
  pointer-events: none;
}
.gs-drawer .scrim {
  position: absolute; inset: 0;
  background: rgba(14, 20, 16, 0.5);
  opacity: 0;
  transition: opacity .25s ease;
}
.gs-drawer[data-open="true"] { pointer-events: auto; }
.gs-drawer[data-open="true"] .scrim { opacity: 1; }
.gs-drawer .panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(78%, 360px);
  background: var(--bg);
  padding: 60px 22px 22px;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column;
}
.gs-drawer[data-open="true"] .panel { transform: translateX(0); }
.gs-drawer .panel .close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
}
.gs-drawer .panel nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}
.gs-drawer .panel nav a[aria-current="page"] { color: var(--green-deep); }
.gs-drawer .panel .drawer-cta {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 18px;
}
.gs-drawer .panel .drawer-call {
  font-family: 'Inter Tight', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--green-deep);
  display: flex; flex-direction: column;
}
.gs-drawer .panel .drawer-call small {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500; font-size: 10px; color: var(--ink-3);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 3px;
}

/* —— buttons —— */
.gs-btn {
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 600; font-size: 14.5px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  text-decoration: none;
}
.gs-btn:active { transform: translateY(1px) scale(0.99); }
.gs-btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 6px 16px -6px rgba(45,90,61,0.55);
}
.gs-btn-primary:hover { background: var(--green-deep); }
.gs-btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.gs-btn-secondary:hover { background: #faf7ef; border-color: #d8d2c4; }

/* —— section base —— */
.gs-section {
  padding: 32px 0;
}
.gs-section + .gs-section { border-top: 1px solid var(--line); }
.gs-section.flush + .gs-section,
.gs-section:first-of-type { border-top: 0; }
.gs-section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-deep);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.gs-section-eyebrow::before {
  content: '';
  width: 18px; height: 1px; background: var(--green);
}
.gs-section-lead {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
  max-width: 60ch;
}

/* —— footer —— */
.gs-footer {
  background: #0e1410;
  color: #b8c0bb;
  padding: 36px 0 32px;
  font-size: 12.5px;
  line-height: 1.55;
  margin-top: 48px;
}
.gs-footer .gs-logo { color: #fff; }
.gs-footer .gs-logo small { color: #6f7a73; }
.gs-footer h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6f7a73;
  font-weight: 500;
  margin: 22px 0 10px;
}
.gs-footer ul { list-style: none; padding: 0; margin: 0; }
.gs-footer ul li { padding: 4px 0; }
.gs-footer ul li a:hover { color: #fff; }
.gs-footer .row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.gs-footer .legal {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #6f7a73;
  flex-wrap: wrap;
  gap: 8px;
}
.gs-footer .legal .esa {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
}
.gs-footer .socials {
  display: flex; gap: 8px; margin-top: 8px;
}
.gs-footer .socials a {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: grid; place-items: center;
  transition: background .15s;
}
.gs-footer .socials a:hover { background: rgba(255,255,255,0.12); }

/* ==========================================================================
   Wider viewports — ≥ 760
   ========================================================================== */
@media (min-width: 760px) {
  .gs-strip { padding-left: 24px; padding-right: 24px; }
  .container { padding-left: 24px; padding-right: 24px; }

  .gs-menu-btn { display: none; }
  .gs-nav { display: block; }
  .gs-header-cta { display: inline-flex; }
  .gs-header .container { padding-top: 14px; padding-bottom: 14px; }

  .gs-section { padding: 56px 0; }

  .gs-footer { padding: 56px 0 32px; }
  .gs-footer .row { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .gs-strip .dot { animation: none; }
  .gs-faq-item .body,
  .gs-faq-item .toggle,
  .gs-drawer .panel,
  .gs-drawer .scrim { transition: none; }
}
