/* 513 Solar — SUNWICK build */
:root {
  --blue: #005be2;
  --blue-bright: #00adee;
  --green: #00d084;
  --ink: #0b1526;
  --ink-soft: #3b4a63;
  --paper: #ffffff;
  --paper-soft: #f4f7fb;
  --line: #e2e9f2;
  --radius: 14px;
  --max: 1160px;
  --display: "Space Grotesk", "Karla", sans-serif;
  --body: "Karla", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }

h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
.section-soft { background: var(--paper-soft); }
.kicker {
  display: inline-block; font-family: var(--display); font-size: 0.82rem;
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 640px; margin-top: 16px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: transform 0.3s ease;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); font-weight: 700; font-size: 0.95rem; }
.nav a:hover { color: var(--blue); }
.nav a.active { color: var(--blue); }
.btn {
  display: inline-block; font-family: var(--display); font-weight: 700;
  padding: 14px 26px; border-radius: 999px; font-size: 1rem;
  background: var(--blue); color: #fff; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,91,226,.28); }
.btn-green { background: var(--green); color: #04331f; }
.btn-green:hover { box-shadow: 0 10px 24px rgba(0,208,132,.32); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: #fff; box-shadow: none; }
.nav .btn { padding: 10px 20px; font-size: 0.9rem; }
.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; padding: 0 0 72px;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
}
.hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,17,38,.34) 0%, rgba(6,17,38,.72) 78%, rgba(6,17,38,.88) 100%);
}
.hero .wrap { position: relative; }
.hero h1 { max-width: 760px; }
.hero p { max-width: 600px; font-size: 1.2rem; margin: 20px 0 30px; color: rgba(255,255,255,.9); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-sub { padding: 76px 0 56px; min-height: 62vh; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(11,21,38,.1); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body p { color: var(--ink-soft); flex: 1; }
.card-link { font-weight: 700; font-family: var(--display); }
.card-link::after { content: " →"; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.split .kicker { margin-bottom: 10px; }
.split p { color: var(--ink-soft); margin-top: 14px; }

/* Checklist / bullets */
.checks { list-style: none; margin-top: 26px; display: grid; gap: 16px; }
.checks li { padding-left: 36px; position: relative; color: var(--ink-soft); }
.checks li strong { color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--green);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.4-4.2-4.2 1.7-1.7 2.5 2.5 5.7-5.7 1.7 1.7z"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.4-4.2-4.2 1.7-1.7 2.5 2.5 5.7-5.7 1.7 1.7z"/></svg>') center/contain no-repeat;
}

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 44px; }
.step { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display); font-size: 2rem; font-weight: 700;
  color: var(--blue-bright); display: block; margin-bottom: 10px;
}
.step h3 { margin-bottom: 8px; font-size: 1.1rem; }
.step p { color: var(--ink-soft); font-size: 0.97rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--blue) 0%, #003fa3 60%, #052a63 100%);
  color: #fff; text-align: center; border-radius: 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 560px; margin: 16px auto 30px; font-size: 1.15rem; }
.cta-band .phone { display: block; margin-top: 22px; font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: #fff; }
.cta-band .phone span { color: var(--green); }

/* Footer */
.site-footer { background: var(--ink); color: #b9c4d6; padding: 56px 0 30px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { font-family: var(--display); color: #fff; margin-bottom: 14px; font-size: 1rem; }
.site-footer a { color: #b9c4d6; display: block; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer .logo-foot { height: 42px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); }
.vet-badge {
  display: flex; align-items: center; gap: 10px; margin-top: 18px;
  font-family: var(--display); font-weight: 700; color: #fff; font-size: 0.98rem;
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.85rem; color: #7f8ca1; }

/* rise animation base */
.rise { opacity: 0; transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 940px) {
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .nav { position: fixed; inset: 72px 0 auto 0; background: #fff; flex-direction: column;
         padding: 22px; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav-toggle {
    display: block; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink);
  }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 84vh; }
}
