/* Sun & Steel Solutions — redesign
   Brand palette pulled from the live site:
   sunflower gold #f4ca6d on deep green #1e2e2a, sage greens for support. */

:root {
  /* Brand palette: #3f5451 green · #97a9cd periwinkle · #98bdab sage · #f4ca6d gold */
  --ink: #273432;
  --green-900: #31423f;
  --green-800: #3f5451;
  --green-700: #4d635e;
  --green-600: #5a716b;
  --sage-500: #7c9a8d;
  --sage-400: #98bdab;
  --mint-200: #cadfd5;
  --peri: #97a9cd;
  --peri-600: #7c90bf;
  --peri-100: #e8ecf5;
  --paper: #f3f7f5;
  --paper-2: #e9f1ed;
  --gold: #f4ca6d;
  --gold-600: #e6b54e;
  --gold-700: #bd8a2a;
  --white: #ffffff;
  --text: #2e3d39;
  --muted: #687a73;
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: #dde8e2;

  --shadow-sm: 0 1px 2px rgba(16, 32, 26, 0.06), 0 2px 8px rgba(16, 32, 26, 0.05);
  --shadow-md: 0 10px 30px rgba(16, 32, 26, 0.12);
  --shadow-lg: 0 30px 60px rgba(16, 32, 26, 0.22);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--green-900);
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.eyebrow {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin: 0 0 14px;
}
.section-dark .eyebrow { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: var(--gold); color: #2a2410; box-shadow: 0 8px 20px rgba(244, 202, 109, 0.35); }
.btn-gold:hover { background: var(--gold-600); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }
.btn-dark { background: var(--green-800); color: var(--white); }
.btn-dark:hover { background: var(--green-900); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 40, 35, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 88px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 86px; width: auto; max-width: none; display: block; }

.nav { display: flex; gap: 14px; margin-left: auto; align-items: center; }
.nav-item { position: relative; }
.nav-top {
  display: flex; align-items: center; gap: 5px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px; font-weight: 500;
  padding: 10px 14px; border-radius: 10px;
  white-space: nowrap;
}
.nav-top:hover,
.nav-item.has-dd:hover > .nav-top { color: var(--gold); }
.caret { display: inline-flex; width: 13px; height: 13px; transition: transform 0.2s ease; }
.caret svg { width: 100%; height: 100%; }
.nav-item.has-dd:hover .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 224px;
  background: var(--green-900);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 24px 50px rgba(39, 52, 50, 0.34);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 60;
}
.nav-item.has-dd:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 10px 14px; border-radius: 9px;
  color: rgba(255, 255, 255, 0.85); font-size: 14.5px; font-weight: 500;
  white-space: nowrap;
}
.dropdown a:hover { background: rgba(255, 255, 255, 0.07); color: var(--gold); }

.header-cta { display: flex; align-items: center; gap: 16px; }
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.9); }
.cart-link svg { width: 24px; height: 24px; }
.cart-link:hover { color: var(--gold); }
.cart-count {
  position: absolute; top: -7px; right: -9px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--gold); color: var(--ink);
  font-size: 11px; font-weight: 700; line-height: 18px;
  text-align: center; border-radius: 9px;
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; stroke: var(--white); }

/* ---------- Floating Sunny chat widget ---------- */
.sunny-widget {
  position: fixed; right: 26px; bottom: 26px; z-index: 80;
  width: 58px; height: 58px;
}
.sw-bubble {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22), 0 0 22px 4px rgba(244, 202, 109, 0.6);
  animation: sunPulse 2.4s ease-in-out infinite;
}
.sw-label {
  position: absolute; right: 38px; bottom: 38px; z-index: 1;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600; font-size: 11.5px; letter-spacing: 0.01em;
  padding: 4px 10px; border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
@media (min-width: 721px) {
  .sunny-widget { bottom: 90px; }
}
@keyframes sunPulse {
  0%   { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22), 0 0 22px 4px rgba(244, 202, 109, 0.6), 0 0 0 0 rgba(244, 202, 109, 0.55); transform: scale(1); }
  70%  { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22), 0 0 22px 4px rgba(244, 202, 109, 0.25), 0 0 0 16px rgba(244, 202, 109, 0); transform: scale(1.06); }
  100% { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22), 0 0 22px 4px rgba(244, 202, 109, 0.6), 0 0 0 0 rgba(244, 202, 109, 0); transform: scale(1); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--green-900);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 560px at 80% -10%, rgba(244, 202, 109, 0.22), transparent 58%),
    linear-gradient(90deg, rgba(39, 52, 50, 0.94) 0%, rgba(39, 52, 50, 0.74) 42%, rgba(39, 52, 50, 0.32) 100%),
    linear-gradient(180deg, rgba(39, 52, 50, 0) 55%, rgba(39, 52, 50, 0.78) 100%);
  z-index: 1;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center center;
  opacity: 0.9;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 2; padding-top: 88px; padding-bottom: 96px; }
.hero-inner { max-width: 660px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(36px, 5.4vw, 62px);
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--gold); }
.hero-sub { font-size: clamp(17px, 2.1vw, 20px); color: var(--mint-200); max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.trust {
  display: flex; flex-wrap: wrap; gap: 30px;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.trust .item { display: flex; align-items: center; gap: 11px; }
.trust .item svg { width: 26px; height: 26px; stroke: var(--gold); flex: none; }
.trust .item b { display: block; font-family: var(--font-head); font-size: 15px; color: var(--white); }
.trust .item span { font-size: 13px; color: var(--sage-400); }

/* ---------- Section scaffolding ---------- */
section { padding: 84px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.section-dark { background: var(--green-900); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .section-head p { color: var(--mint-200); }
.section-tint { background: var(--paper-2); }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 300px; display: flex; align-items: flex-end;
  color: var(--white); box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 0.5s ease; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(39,52,50,0) 30%, rgba(39,52,50,0.9) 100%); z-index: 1; }
.cat-card .cc-body { position: relative; z-index: 2; padding: 22px; width: 100%; }
.cat-card h3 { color: var(--white); font-size: 21px; margin-bottom: 4px; }
.cat-card .count { font-size: 13px; color: var(--mint-200); }
.cat-card .cc-arrow { position: absolute; top: 18px; right: 18px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgba(244,202,109,0.92); display: grid; place-items: center; opacity: 0; transform: translateY(-6px); transition: all 0.2s ease; }
.cat-card:hover .cc-arrow { opacity: 1; transform: translateY(0); }
.cat-card .cc-arrow svg { width: 18px; height: 18px; stroke: #2a2410; }

/* ---------- Product cards ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.prod-grid.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line-dark);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.card .thumb { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .thumb img { transform: scale(1.05); }
.card .tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold); color: #2a2410;
  font-family: var(--font-head); font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card .kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage-500); margin-bottom: 6px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card .desc { font-size: 14px; color: var(--muted); margin-bottom: 16px; flex: 1; }
.card .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.card .price { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--green-800); }
.card .price small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; }
.card .link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--gold-700);
}
.card .link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.card:hover .link svg { transform: translateX(3px); }

/* ---------- Feature / value band ---------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.value {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
}
.value .ic { width: 52px; height: 52px; border-radius: 12px; background: rgba(244,202,109,0.14); display: grid; place-items: center; margin-bottom: 18px; }
.value .ic svg { width: 26px; height: 26px; stroke: var(--gold); }
.value h3 { font-size: 18px; margin-bottom: 8px; }
.value p { font-size: 14px; color: var(--mint-200); margin: 0; }

/* ---------- Meet Sunny ---------- */
.sunny { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.sunny-media { position: relative; display: grid; place-items: center; }
.sunny-media .glow { position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(151,169,205,0.5), transparent 70%); filter: blur(22px); }
.sunny-media img { position: relative; width: 76%; border-radius: 28px; box-shadow: var(--shadow-lg); }
#sunny .eyebrow { color: var(--peri); }
.sunny .chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 26px; }
.sunny .chip { font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 999px; background: rgba(151,169,205,0.12); border: 1px solid rgba(151,169,205,0.4); color: #c7d0e6; }

/* ---------- Grants / financing band ---------- */
.band {
  background: linear-gradient(120deg, var(--green-800), var(--green-600));
  border-radius: var(--radius); color: var(--white);
  padding: 48px 52px; display: flex; align-items: center; justify-content: space-between; gap: 30px;
  box-shadow: var(--shadow-md); flex-wrap: wrap;
}
.band h2 { color: var(--white); font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.band p { color: var(--mint-200); margin: 0; max-width: 540px; }

/* ---------- Newsletter ---------- */
.news { text-align: center; }
.news form { display: flex; gap: 12px; max-width: 480px; margin: 22px auto 0; }
.news input {
  flex: 1; padding: 14px 18px; border-radius: 999px; border: 1.5px solid var(--line-dark);
  font-family: var(--font-body); font-size: 15px; background: var(--white);
}
.news input:focus { outline: none; border-color: var(--gold-600); box-shadow: 0 0 0 4px rgba(244,202,109,0.2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--mint-200); padding: 64px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.site-footer .brand img { height: 54px; }
.site-footer .f-about { font-size: 14px; color: var(--sage-400); margin: 18px 0; max-width: 320px; }
.site-footer h4 { color: var(--white); font-family: var(--font-head); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer li a { font-size: 14px; color: var(--mint-200); }
.site-footer li a:hover { color: var(--gold); }
.f-contact { font-size: 14px; }
.f-contact .row { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.f-contact svg { width: 18px; height: 18px; stroke: var(--gold); flex: none; margin-top: 2px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; font-size: 13px; color: var(--sage-500); flex-wrap: wrap; }
.footer-legal a { color: var(--sage-400); }
.footer-legal a:hover { color: var(--gold); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid, .prod-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .sunny { grid-template-columns: 1fr; gap: 36px; }
  .sunny-media { order: -1; }
}
@media (max-width: 1150px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .header-cta { margin-left: auto; }
  .nav.open {
    display: flex; position: absolute; top: 88px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--green-900); padding: 8px 20px 20px;
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 88px); overflow-y: auto;
  }
  .nav.open .nav-item { position: static; border-bottom: 1px solid var(--line); }
  .nav.open .nav-top { padding: 14px 4px; justify-content: space-between; }
  .nav.open .dropdown {
    position: static; display: none; opacity: 1; visibility: visible; transform: none;
    min-width: 0; padding: 0 0 8px 12px;
    background: transparent; border: 0; box-shadow: none;
  }
  .nav.open .nav-item.open .dropdown { display: block; }
  .nav.open .dropdown a { padding: 11px 10px; }
}
@media (max-width: 720px) {
  section { padding: 60px 0; }
  .cat-grid { grid-template-columns: 1fr; }
  .prod-grid, .prod-grid.cols-4 { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .band { padding: 32px; }
  .news form { flex-direction: column; border-radius: 16px; }
  .news input, .news form .btn { width: 100%; justify-content: center; }
}
