/* SPF Shades & Sails - design tokens + base styles
   Brand source: enrichment/brand/brand-tokens.json (site-extracted) */

@font-face {
  font-family: 'Oswald';
  src: url('../fonts/oswald-variable.woff2') format('woff2');
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Heebo';
  src: url('../fonts/heebo-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --primary: #438dbf;
  --secondary: #214d80;
  --secondary-deep: #17395f;
  --text: #333333;
  --muted: #666666;
  --on-dark: #ffffff;
  --tint: rgba(67, 141, 191, 0.06);
  --cream: #f6f9fb;
  --gold: #fbbf24;
  --font-heading: 'Oswald', 'Arial Black', sans-serif;
  --font-body: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-cta: 'Heebo', 'Roboto', sans-serif;
  --radius-card: 14px;
  --shadow-card: 0 6px 24px rgba(33, 77, 128, 0.10);
  --shadow-card-hover: 0 14px 34px rgba(33, 77, 128, 0.18);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: #ffffff;
  font-size: 1.0625rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--secondary);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { max-width: 640px; color: var(--text); }

.label {
  font-family: var(--font-cta);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.container { width: min(1120px, 92%); margin-inline: auto; }
.container--narrow { width: min(760px, 92%); margin-inline: auto; }

section { padding: 6.5rem 0; }

/* Buttons - site pattern: pill, primary fill, Heebo bold, hover -> navy */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-cta);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50px;
  padding: 0.95rem 2.1rem;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.btn:hover { background: var(--secondary); border-color: var(--secondary); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
}
.btn--ghost:hover { background: var(--secondary); color: #fff; }

/* Scroll animations */
.fade-up { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.stagger > * { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.stagger.visible > * { opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.24s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.36s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.48s; }

/* Section header helper */
.section-head { text-align: center; margin-bottom: 3.25rem; }
.section-head .label, .section-head h2, .section-head p { max-width: none; margin-inline: auto; }
.section-head p { max-width: 620px; color: var(--muted); margin-top: 0.9rem; }

@media (max-width: 900px) {
  section { padding: 5rem 0; }
}
@media (max-width: 600px) {
  section { padding: 3.5rem 0; }
  body { font-size: 1rem; }
  .section-head { margin-bottom: 2.25rem; }
  .section-head h2 { font-size: 1.5rem; }
  .btn { width: 100%; font-size: 0.9rem; padding: 0.8rem 1.5rem; }
}
