/* ==========================================================================
   DryScout.org — first local homepage draft
   Brand family: DryScout navy / cyan. Personality: bright, airy, community.
   White space is intentional throughout.
   ========================================================================== */

:root {
  --navy:        #0F1B3D;
  --navy-soft:   #1B2F6E;
  --blue:        #1E6FE6;   /* primary action (flag blue) */
  --blue-deep:   #175CC4;
  --cyan:        #17A3DA;   /* headline accent */
  --text:        #1A2238;
  --text-soft:   #4F5A78;
  --muted:       #8B95AB;
  --line:        #DDE4EF;
  --line-soft:   #EEF2F8;
  --surface:     #FFFFFF;
  --pale-blue:   #E9F3FC;

  --card-blue:     #E3F1FB;
  --card-peach:    #FDF3E7;
  --card-green:    #EAF7E9;
  --card-lavender: #ECEEFA;

  --font-display: 'Nunito', 'Inter Tight', system-ui, sans-serif;
  --font-body:    'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1520px;
  --gutter: 56px;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700;
  border-radius: 12px; line-height: 1;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn .arrow { font-family: var(--font-body); font-weight: 600; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-nav { font-size: 15px; padding: 12px 20px; border-radius: 10px; }
.btn-card {
  width: 100%; font-size: 19px; padding: 15px 20px;
  background: #fff; color: var(--blue);
  border: 1px solid rgba(15, 27, 61, 0.14);
}
.btn-card:hover { border-color: var(--blue); }

/* ---------- 1. HEADER ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 16px; }
.brand-logo { height: 40px; width: auto; }
.brand-divider { width: 1px; height: 30px; background: #C5D0E2; }
.brand-community {
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--navy);
}

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav > a:not(.btn) { font-size: 15px; font-weight: 600; color: var(--navy); }
.site-nav > a:not(.btn):hover { color: var(--blue); }
.site-nav > .btn-nav { margin-left: 8px; }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: 10px; }
.nav-toggle-bar { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--navy);
}
.eyebrow-bar { display: flex; align-items: center; gap: 18px; }
.eyebrow-bar::before { content: ""; width: 64px; height: 4px; border-radius: 2px; background: var(--cyan); }
.section-title {
  font-family: var(--font-display);
  font-weight: 800; font-size: clamp(34px, 3.6vw, 50px);
  line-height: 1.12; letter-spacing: -0.015em;
  color: var(--navy);
  margin-top: 22px;
}
.section-lede { font-size: 20px; color: var(--text-soft); margin-top: 10px; }

/* ---------- 2. OPENING: Explore & Play intro left, Jax right ---------- */
.opening { background: var(--surface); }
.opening-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: end; column-gap: 24px;
  padding-top: 28px;
}
.opening-copy { align-self: center; padding-top: 8px; }
.opening-jax {
  position: relative;
  width: clamp(198px, 17.1vw, 252px);
  margin-right: clamp(40px, 26vw - 205px, 190px);   /* sits Jax over the gap between cards 3 and 4 without crowding the headline */
  margin-bottom: -18px;          /* Jax settles slightly toward the cards */
  pointer-events: none;
}
.opening-jax img { width: 100%; height: auto; position: relative; z-index: 1; }
.opening-jax-shadow {
  position: absolute; left: 12%; right: 10%; bottom: 2%; height: 9%;
  background: radial-gradient(ellipse at center, rgba(15, 27, 61, 0.22) 0%, rgba(15, 27, 61, 0) 70%);
}

/* ---------- 3. GAME CARDS ---------- */
.explore { padding: 0; }
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 36px 28px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 27, 61, 0.05);
}
.card-blue { background: var(--card-blue); }
.card-peach { background: var(--card-peach); }
.card-green { background: var(--card-green); }
.card-lavender { background: var(--card-lavender); }

.card-art { width: 100%; max-width: 190px; margin-bottom: 22px; }
.card-art img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }
.card-title { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--navy); }
.card-copy { font-size: 16px; line-height: 1.45; color: var(--text-soft); margin-top: 8px; margin-bottom: 28px; }
.card .btn-card { margin-top: auto; }

/* ---------- 6/7. EMAIL + SOCIAL RIBBON (white space above is intentional) ---------- */
.ribbon-wrap { padding: 96px 0 0; }
.ribbon {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  background: var(--pale-blue);
  border-radius: 20px;
  padding: 30px 40px;
}
.ribbon-left { display: flex; align-items: center; gap: 22px; }
.ribbon-icon {
  width: 68px; height: 68px; flex: none; border-radius: 50%;
  background: #D2E6F8; color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
}
.ribbon-icon svg { width: 34px; height: 34px; }
.ribbon-title { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--navy); }
.ribbon-copy { font-size: 15px; color: var(--text-soft); margin-top: 2px; }

.ribbon-form { display: flex; align-items: stretch; flex: 0 1 380px; }
.ribbon-input {
  flex: 1 1 auto; min-width: 0;
  height: 52px; padding: 0 18px;
  font-family: var(--font-body); font-size: 15px; color: var(--text);
  background: #fff; border: 1px solid var(--line);
  border-radius: 10px 0 0 10px;
}
.ribbon-input::placeholder { color: var(--muted); }
.ribbon-input:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.btn-subscribe { font-size: 16px; padding: 0 22px; border-radius: 0 10px 10px 0; }

.ribbon-right { flex: none; }
.follow-label { font-size: 14px; color: var(--text-soft); margin-bottom: 10px; }
.social { display: flex; gap: 10px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .15s ease;
}
.social a:hover { background: var(--blue); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- 8/9. FOOTER (white space above is intentional) ---------- */
.site-footer { padding: 88px 0 40px; }
.footer-top {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 32px;
}
.footer-brand { justify-self: start; }
.footer-nav { display: flex; align-items: center; gap: 36px; justify-self: center; }
.footer-nav a { font-size: 15px; font-weight: 600; color: var(--navy); }
.footer-nav a:hover { color: var(--blue); }
.legal { display: flex; gap: 28px; justify-self: end; }
.legal a { font-size: 14px; color: var(--text-soft); }
.legal a:hover { color: var(--navy); }

.copyright { font-size: 14px; color: var(--text-soft); text-align: center; margin-top: 30px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Laptop */
@media (max-width: 1180px) {
  :root { --gutter: 32px; }
  .site-nav { gap: 24px; }
}

/* Tablet */
@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 76px; z-index: 40;
    flex-direction: column; align-items: flex-start; gap: 18px;
    background: var(--surface); border-bottom: 1px solid var(--line-soft);
    padding: 20px var(--gutter) 24px;
  }
  .site-nav.is-open { display: flex; }
  .site-header { position: relative; }
  .btn-nav { margin-top: 4px; }

  .opening-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-top: 32px; }
  .opening-copy { padding-top: 0; }
  .eyebrow-bar { justify-content: center; }
  .opening-jax { width: min(40vw, 240px); margin: 12px 0 -14px; }

  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .ribbon { flex-wrap: wrap; justify-content: flex-start; gap: 28px 40px; }
  .ribbon-form { flex: 1 1 100%; max-width: 480px; }
  .ribbon-wrap { padding-top: 80px; }

  .footer-top { grid-template-columns: auto 1fr; row-gap: 22px; }
  .footer-nav { grid-column: 1 / -1; justify-self: start; }
  .site-footer { padding-top: 72px; }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .header-inner { height: 68px; }
  .brand-logo { height: 34px; }
  .brand { gap: 12px; }
  .site-nav { top: 68px; }

  .opening-inner { padding-top: 24px; }
  .eyebrow { font-size: 11px; letter-spacing: 0.18em; }
  .section-lede { font-size: 17px; }
  .opening-jax { width: min(50vw, 200px); }

  .cards { grid-template-columns: 1fr; gap: 18px; margin-top: 24px; }
  .card { padding: 32px 24px 24px; }

  .ribbon-wrap { padding-top: 64px; }
  .ribbon { padding: 26px 22px; gap: 24px; }
  .ribbon-left { align-items: flex-start; }
  .ribbon-icon { width: 56px; height: 56px; }
  .ribbon-icon svg { width: 28px; height: 28px; }
  .ribbon-form { flex-direction: column; gap: 10px; }
  .ribbon-input { border-radius: 10px; }
  .btn-subscribe { height: 50px; border-radius: 10px; }

  .site-footer { padding-top: 64px; }
  .footer-top { grid-template-columns: 1fr; gap: 22px; }
  .footer-nav { gap: 22px; flex-wrap: wrap; }
  .legal { gap: 20px; justify-self: start; }
  .copyright { margin-top: 28px; }
}
