/* ============================================================
   THREE SUNS SWIMWEAR — style.css
   All colors and fonts are CSS variables — easy to update.
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  /* Colors */
  --navy:       #0B1F3A;
  --navy-mid:   #122B52;
  --coral:      #FF5F4B;
  --aqua:       #00C2CB;
  --yellow:     #FFD166;
  --white:      #FAFAF7;
  --off-white:  #F0EFE9;
  --text-dark:  #0B1F3A;
  --text-mid:   #3D5A7A;
  --text-light: #FAFAF7;

  /* Typography */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;

  /* Layout */
  --max-width: 1100px;
  --radius:    6px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--aqua); }

/* ── ACCESSIBILITY ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── SAFETY STRIPE ── */
.safety-stripe {
  display: flex;
  height: 6px;
  width: 100%;
}

.safety-stripe span {
  flex: 1;
}

.safety-stripe span:nth-child(1) { background: var(--coral); }
.safety-stripe span:nth-child(2) { background: var(--aqua); }
.safety-stripe span:nth-child(3) { background: var(--yellow); }

.safety-stripe--footer {
  margin-bottom: var(--space-md);
}

/* ── HEADER ── */
.site-header {
  background: var(--navy);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  height: 56px;
  width: auto;
  /* Logo is dark on white — invert for navy background */
  filter: invert(1) brightness(2);
}

/* ── HERO ── */
.hero {
  background: var(--navy);
  color: var(--text-light);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: var(--space-sm);
}

.eyebrow--light {
  color: var(--coral);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-md);
}

/* Accent the three words with the brand colors */
.hero-headline br + br { display: none; }

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(250, 250, 247, 0.8);
  max-width: 520px;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}

/* ── EMAIL CAPTURE FORM ── */
.capture-form {
  display: flex;
  gap: var(--space-xs);
  max-width: 480px;
  margin: 0 auto var(--space-xs);
  flex-wrap: wrap;
}

.capture-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.85rem 1.1rem;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.capture-form input[type="email"]::placeholder {
  color: rgba(250,250,247,0.45);
}

.capture-form input[type="email"]:focus {
  border-color: var(--aqua);
}

.capture-form button {
  padding: 0.85rem 1.5rem;
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.capture-form button:hover { background: #e84d3a; }
.capture-form button:active { transform: scale(0.98); }

.capture-form--light input[type="email"] {
  background: var(--white);
  color: var(--text-dark);
  border-color: rgba(11,31,58,0.2);
}

.capture-form--light input[type="email"]::placeholder {
  color: var(--text-mid);
}

.capture-form--light input[type="email"]:focus {
  border-color: var(--navy);
}

.capture-form--light button {
  background: var(--navy);
}

.capture-form--light button:hover { background: var(--navy-mid); }

.form-note {
  font-size: 0.8rem;
  color: rgba(250,250,247,0.5);
  margin-top: var(--space-xs);
}

/* ── CONTAINER ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ── SECTION TITLE ── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

/* ── WHY SECTION ── */
.why {
  background: var(--off-white);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.pillar {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-md);
  text-align: left;
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: var(--space-sm);
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.pillar p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* ── ABOUT SECTION ── */
.about {
  background: var(--white);
  padding: var(--space-xl) var(--space-md);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-text p {
  color: var(--text-mid);
  margin-bottom: var(--space-sm);
  font-size: 1rem;
  line-height: 1.75;
}

.about-accent {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  border-radius: var(--radius);
  padding: var(--space-lg);
}

.about-logo {
  filter: invert(1) brightness(2);
  max-width: 280px;
  width: 100%;
}

/* ── BOTTOM CTA ── */
.cta-bottom {
  background: var(--navy);
  color: var(--text-light);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}

.cta-bottom h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: var(--space-xs);
}

.cta-bottom p {
  color: rgba(250,250,247,0.7);
  margin-bottom: var(--space-md);
  font-size: 1.05rem;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  color: rgba(250,250,247,0.5);
  text-align: center;
  padding: var(--space-md);
  font-size: 0.875rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.site-footer p + p {
  margin-top: var(--space-xs);
}

.footer-note a {
  color: var(--aqua);
  text-decoration: none;
}

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

/* ── MOBILE ── */
@media (max-width: 768px) {
  .hero { padding: var(--space-lg) var(--space-sm); }

  .capture-form {
    flex-direction: column;
  }

  .capture-form input[type="email"],
  .capture-form button {
    width: 100%;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-accent {
    order: -1;
    padding: var(--space-md);
  }

  .about-logo {
    max-width: 200px;
  }

  .why, .about, .cta-bottom {
    padding: var(--space-lg) var(--space-sm);
  }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
