/* =====================================================
   SOLARDEY — Main Stylesheet
   Brand colors, typography, shared components
   ===================================================== */

:root {
  --green-800: #16381B;
  --green-700: #268535;
  --green-500: #64B837;
  --green-200: #DBFF99;
  --yellow-200: #F4EE49;
  --yellow-500: #C29F13;
  --yellow-700: #8F5A00;
  --yellow-800: #422A00;
  --gray-900: #1C1C1C;
  --gray-700: #5A5A5A;
  --gray-500: #B2B2B2;
  --gray-200: #E8E8E8;
  --gray-100: #F4F4F2;
  --cream: #FAF8F3;
  --white: #FFFFFF;

  --font-body: 'Atkinson Hyperlegible', system-ui, sans-serif;
  --font-display: 'Instrument Serif', Georgia, serif;

  --max-width: 1280px;
  --section-padding: 120px 40px;
  --section-padding-mobile: 56px 22px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&family=Instrument+Serif:ital@0;1&display=swap');

/* ── INNER WRAPPER ── */
.inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 768px) { .inner { padding: 0 22px; } }

/* ── EYEBROW ── */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow-yellow { color: var(--yellow-200); }
.eyebrow-green  { color: var(--green-700); }
.eyebrow-amber  { color: var(--yellow-800); }
.eyebrow-white  { color: var(--white); }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: skewX(-10deg);
  transition: background .2s, color .2s;
  cursor: pointer;
  border: none;
}
.btn span { display: inline-block; transform: skewX(10deg); }
.btn-primary  { background: var(--yellow-200); color: var(--green-800); }
.btn-primary:hover { background: var(--white); }
.btn-dark     { background: var(--green-800); color: var(--yellow-200); }
.btn-dark:hover { background: var(--green-700); }
.btn-outline-white { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--green-800); }
.btn-outline-dark  { background: transparent; color: var(--green-800); box-shadow: inset 0 0 0 2px var(--green-800); }
.btn-outline-dark:hover { background: var(--green-800); color: var(--white); }
.btn-full { display: block; width: 100%; text-align: center; }

@media (max-width: 768px) {
  .btn-full-mobile { display: block; width: 100%; text-align: center; margin-bottom: 10px; }
}

/* ── ARROW LINK ── */
.arrow-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}
.arrow-link::after { content: "→"; }
.arrow-link:hover { gap: 10px; }
.arrow-link-yellow { color: var(--yellow-200); }
.arrow-link-white  { color: var(--white); }

/* ── SVG LOGO helpers ── */
.logo svg   { height: 22px; width: auto; }
.logo-lg svg { height: 32px; width: auto; }
.logo-sm svg { height: 18px; width: auto; }

/* ── SYMBOL helper ── */
.sym { display: inline-block; line-height: 0; }
.sym svg { display: block; }

/* ── SECTION backgrounds ── */
.bg-dark-green { background: var(--green-800); color: var(--white); }
.bg-green      { background: var(--green-700); color: var(--white); }
.bg-yellow     { background: var(--yellow-200); color: var(--gray-900); }
.bg-charcoal   { background: var(--gray-900); color: var(--white); }
.bg-light      { background: var(--gray-100); }
.bg-cream      { background: var(--cream); }
.bg-white      { background: var(--white); }

/* ── CAROUSEL ── */
.carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
.carousel::-webkit-scrollbar { height: 3px; }
.carousel::-webkit-scrollbar-thumb { background: var(--green-200); border-radius: 2px; }
.carousel-item { scroll-snap-align: start; flex-shrink: 0; }

/* ── NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-800);
  border-bottom: 1px solid rgba(244,238,73,.12);
}
.site-nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}
.nav-logo { color: var(--yellow-200); }
.nav-links {
  display: flex;
  gap: 26px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .02em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--yellow-200); }
.nav-cta {
  background: var(--yellow-200);
  color: var(--green-800);
  padding: 9px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  transform: skewX(-10deg);
  display: inline-block;
  white-space: nowrap;
  transition: background .2s;
}
.nav-cta span { display: inline-block; transform: skewX(10deg); }
.nav-cta:hover { background: var(--white); }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-burger i { width: 18px; height: 2px; background: var(--white); display: block; }

/* Mobile nav */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--green-800);
    padding: 80px 32px 40px;
    gap: 32px;
    z-index: 99;
  }
  .nav-links.open a {
    font-size: 28px;
    font-family: var(--font-display);
    font-weight: 400;
  }
  .site-nav .inner { padding-top: 12px; padding-bottom: 12px; }
}

/* ── FOOTER ── */
.site-footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 72px 0 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 52px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 28px;
}
.footer-brand-logo { color: var(--yellow-200); margin-bottom: 14px; }
.footer-brand-logo svg { height: 22px; }
.footer-brand p { color: rgba(255,255,255,.55); font-size: 13px; line-height: 1.6; max-width: 300px; }
.footer-tagline { color: var(--yellow-200); font-family: var(--font-display); font-style: italic; font-size: 15px; margin-top: 12px; }
.footer-col h5 { font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--yellow-200); margin-bottom: 14px; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-col a:hover { color: var(--yellow-200); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: rgba(255,255,255,.38); letter-spacing: .05em; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.07); font-size: 11px; font-weight: 700; color: var(--white); transition: background .2s, color .2s; }
.footer-social a:hover { background: var(--yellow-200); color: var(--green-800); }

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}
