/* Sunshine Direct LLC — site styles */

@font-face {
  font-family: "Source Sans";
  src: url("/fonts/source-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans";
  src: url("/fonts/source-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans";
  src: url("/fonts/source-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif";
  src: url("/fonts/source-serif-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif";
  src: url("/fonts/source-serif-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #12263f;
  --navy-deep: #0b1828;
  --navy-mid: #1b3654;
  --navy-soft: #243f5c;
  --gold: #d89a1c;
  --gold-bright: #e8b84a;
  --gold-deep: #b87a12;
  --cream: #f8f3ea;
  --cream-dark: #efe6d6;
  --ink: #1c2430;
  --muted: #5c6570;
  --line: rgba(18, 38, 63, 0.1);
  --white: #fffcf7;
  --shadow: 0 10px 30px rgba(12, 24, 40, 0.08);
  --font: "Source Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: "Source Serif", "Iowan Old Style", Palatino, Georgia, serif;
  --radius: 16px;
  --wrap: 1120px;
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.skip:focus { top: 1rem; }

.wrap {
  width: min(calc(100% - 2.5rem), var(--wrap));
  margin-inline: auto;
}

.kicker {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.kicker::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2px;
  margin-top: 0.55rem;
  background: var(--gold);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0;
}

h1 { font-size: clamp(2.15rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 40rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 243, 234, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 11px;
  background: var(--navy);
  padding: 6px;
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.nav-btn {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 10px;
  cursor: pointer;
  margin-right: -0.4rem;
}

.nav-btn span,
.nav-btn span::before,
.nav-btn span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-btn span::before,
.nav-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-btn span::before { top: -6px; }
.nav-btn span::after { top: 6px; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-mid);
  border-radius: 999px;
}

.site-nav a:hover { color: var(--navy); background: rgba(18, 38, 63, 0.06); }

.site-nav .nav-cta {
  margin-left: 0.35rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 1.05rem;
}

.site-nav .nav-cta:hover { background: var(--navy-mid); color: var(--white); }

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 70% at 85% 20%, rgba(232, 184, 74, 0.14), transparent 55%),
    linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  color: var(--cream);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 64px;
  background: linear-gradient(to bottom right, transparent 49.5%, var(--cream) 50%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
  padding: 5.5rem 0 7rem;
}

.hero .kicker { color: var(--gold-bright); }
.hero .kicker::after { background: var(--gold-bright); }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero .lede { color: rgba(248, 243, 234, 0.82); margin: 1.25rem 0 2rem; max-width: 34rem; }

.hero-art {
  display: grid;
  place-items: center;
}

.hero-sun {
  width: min(100%, 320px);
  height: auto;
  filter: drop-shadow(0 0 48px rgba(232, 184, 74, 0.28));
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-gold {
  background: var(--gold-bright);
  color: var(--navy-deep);
  border-color: var(--gold-bright);
}

.btn-gold:hover { background: #f0c55c; border-color: #f0c55c; }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(248, 243, 234, 0.35);
}

.btn-ghost:hover { background: rgba(248, 243, 234, 0.08); border-color: var(--cream); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-navy:hover { background: var(--navy-mid); border-color: var(--navy-mid); }

/* Sections */
.section { padding: 4.5rem 0; }
.section-head { margin-bottom: 2.25rem; max-width: 40rem; }
.section-head h2 { margin-bottom: 0.85rem; }

.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-navy {
  background:
    radial-gradient(ellipse 70% 80% at 0% 100%, rgba(232, 184, 74, 0.1), transparent 50%),
    var(--navy);
  color: var(--cream);
}
.section-navy h2,
.section-navy h3 { color: var(--white); }
.section-navy .kicker { color: var(--gold-bright); }
.section-navy .kicker::after { background: var(--gold-bright); }
.section-navy .lede,
.section-navy p { color: rgba(248, 243, 234, 0.82); }

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

.about-copy p { font-size: 1.125rem; color: var(--muted); }
.about-copy p + p { margin-top: 1rem; }

/* Product cards */
.cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
}

.card {
  grid-column: span 2;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.4rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.cards.tight .card { background: var(--cream); box-shadow: none; }

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(216, 154, 28, 0.45);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold-bright);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.card-icon svg { width: 22px; height: 22px; }

.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* When 5 cards, last two can span 3 on large screens */
.cards-5 .card:nth-child(4),
.cards-5 .card:nth-child(5) { grid-column: span 3; }

/* Brand points */
.points {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
}

.point {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.15rem;
  padding: 1.2rem 1.3rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(248, 243, 234, 0.1);
  border-radius: 14px;
}

.point-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(232, 184, 74, 0.15);
  color: var(--gold-bright);
  display: grid;
  place-items: center;
}

.point-icon svg { width: 20px; height: 20px; }
.point h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.point p { color: rgba(248, 243, 234, 0.78); font-size: 1rem; }

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.why-item {
  padding: 0.25rem 0.15rem;
}

.why-item .num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--gold);
  margin-bottom: 0.45rem;
}

.why-item h3 {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.35rem;
}

.why-item p { color: var(--muted); font-size: 0.98rem; }

/* Contact */
.contact-panel {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 2rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2.4rem 2.5rem;
  box-shadow: var(--shadow);
}

.email-link {
  display: inline-block;
  margin: 0.6rem 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  line-height: 1.3;
}

.email-link:hover { color: var(--gold-deep); }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(248, 243, 234, 0.7);
  padding: 1.6rem 0;
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--gold-bright);
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

/* 404 */
.page-missing {
  min-height: calc(100vh - var(--header-h) - 5rem);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 0;
}

.page-missing h1 { margin-bottom: 0.75rem; }
.page-missing p { margin-bottom: 1.5rem; color: var(--muted); }

/* Mobile */
@media (max-width: 860px) {
  .hero-inner,
  .split,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-inner { padding: 3.5rem 0 6rem; gap: 2.25rem; }
  .hero h1 { max-width: none; }
  .hero-art { order: -1; }
  .hero-sun { width: 200px; }
  .hero::after { height: 40px; }

  .cards,
  .cards-5 .card:nth-child(4),
  .cards-5 .card:nth-child(5) {
    grid-template-columns: 1fr;
  }
  .card { grid-column: auto !important; }

  .nav-btn { display: grid; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.1rem;
    display: none;
  }

  .nav-toggle:checked ~ .site-nav { display: block; }

  .nav-toggle:checked + .nav-btn span { background: transparent; }
  .nav-toggle:checked + .nav-btn span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked + .nav-btn span::after { top: 0; transform: rotate(-45deg); }

  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: 0.7rem 0.9rem; }
  .site-nav .nav-cta { margin-left: 0; text-align: center; }

  .contact-panel { padding: 1.6rem 1.35rem; }
  .email-link { font-size: 1.15rem; word-break: break-all; }
  .section { padding: 3.4rem 0; }
}

@media (min-width: 861px) and (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card,
  .cards-5 .card:nth-child(4),
  .cards-5 .card:nth-child(5) { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .nav-btn span, .nav-btn span::before, .nav-btn span::after {
    transition: none;
  }
  .btn:hover, .card:hover { transform: none; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
