/* ========================================================================
   SquidStudios — shared site styles
   Used by: index.html, privacy.html, terms.html, /yacht-zee/, /card-club/,
            /word-blitz/, /golf-caddy/, /family-nest/, /press/, /blog/
   ======================================================================== */

@font-face {
  font-family: "League Spartan";
  src: url("../fonts/LeagueSpartan-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "League Spartan";
  src: url("../fonts/LeagueSpartan-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #061941;
  --navy-soft: #0b2b56;
  --teal: #079fb6;
  --teal-dark: #067e96;
  --aqua: #53d6e8;
  --foam: #effcff;
  --sky: #dff8ff;
  --sand: #fff8df;
  --gold: #ffc914;
  --green: #1aa76c;
  --white: #ffffff;
  --ink-muted: #43617d;
  --line: rgba(5, 55, 93, 0.13);
  --shadow: 0 18px 50px rgba(15, 79, 112, 0.15);
  --shadow-strong: 0 24px 70px rgba(6, 52, 88, 0.25);
  --radius: 18px;
  --font: "League Spartan", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 15%, rgba(83, 214, 232, 0.18), transparent 28%),
    radial-gradient(circle at 85% 8%, rgba(255, 201, 20, 0.10), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f7fdff 54%, #e9faff 100%);
  color: var(--navy);
  font-family: var(--font);
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

/* ---------- Skip-to-content (a11y) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
  font-weight: 800;
}

/* ---------- Layout ---------- */
.page-shell { position: relative; overflow: hidden; }
.container  { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 12px;
  z-index: 20;
  width: min(1180px, calc(100% - 24px));
  min-height: 86px;
  margin: 12px auto 0;
  padding: 10px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(5, 55, 93, 0.14);
  backdrop-filter: blur(16px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand img {
  width: 246px;
  height: auto;
  filter: drop-shadow(0 9px 12px rgba(4, 66, 95, 0.18));
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(22px, 4vw, 54px);
  list-style: none;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
}

.nav-links a {
  padding: 8px 2px;
  transition: color 0.18s ease, transform 0.18s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--teal); transform: translateY(-1px); outline: none; }

.nav-social { display: flex; align-items: center; gap: 12px; }

.icon-link {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--teal), var(--teal-dark));
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(7, 159, 182, 0.25);
}

.icon-link svg { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 24px 12px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: linear-gradient(180deg, #10bed3, #05889f);
  color: var(--white);
  box-shadow: 0 11px 20px rgba(7, 159, 182, 0.28);
}

.btn-secondary {
  background: var(--white);
  color: var(--teal-dark);
  border-color: var(--teal);
  box-shadow: 0 8px 20px rgba(5, 55, 93, 0.08);
}

.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* If JS is disabled, show everything immediately */
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Section heading ---------- */
.section-heading { margin-bottom: 26px; text-align: center; }
.section-heading h2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--navy);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.section-heading h2::before,
.section-heading h2::after {
  content: "";
  width: clamp(34px, 8vw, 82px);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--aqua), transparent);
}

.section-heading p {
  margin-top: 8px;
  color: var(--navy-soft);
  font-size: 18px;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 36px;
  padding: 62px 0 28px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(120px 80px at 10% 30%, rgba(83, 214, 232, 0.34), transparent 68%),
    radial-gradient(150px 90px at 82% 18%, rgba(83, 214, 232, 0.22), transparent 70%),
    linear-gradient(180deg, #058da6, #044f78 52%, #063457);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 48px;
  background:
    radial-gradient(90px 38px at 9% 0, #f7fdff 0 68%, transparent 70%),
    radial-gradient(120px 50px at 28% 0, #f7fdff 0 68%, transparent 70%),
    radial-gradient(140px 56px at 50% 0, #f7fdff 0 68%, transparent 70%),
    radial-gradient(120px 50px at 72% 0, #f7fdff 0 68%, transparent 70%),
    radial-gradient(90px 38px at 92% 0, #f7fdff 0 68%, transparent 70%);
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr 0.7fr;
  gap: 34px;
  align-items: start;
}

.footer-brand img {
  width: 112px;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.18));
}

.footer-brand p {
  max-width: 250px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.24;
}

.footer-col h3 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
}

.footer-col a:hover,
.footer-col a:focus-visible { color: var(--white); outline: none; }

.footer-bottom {
  position: relative;
  z-index: 1;
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  text-align: center;
}

/* ---------- Sub-page hero band (used on legal/per-app/blog/press) ---------- */
.subpage-hero {
  padding: 44px 0 20px;
}

.subpage-hero h1 {
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800;
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--navy);
}

.subpage-hero p {
  margin-top: 10px;
  color: var(--navy-soft);
  font-size: 18px;
  max-width: 720px;
}

/* ---------- Card ---------- */
.card {
  margin: 22px 0 32px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin-top: 24px;
  color: var(--navy);
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
}

.card p, .card li {
  margin-top: 12px;
  color: var(--navy-soft);
  font-size: 17px;
  line-height: 1.6;
}

.card ul { margin: 12px 0 0 22px; }
.card a { color: var(--teal-dark); font-weight: 800; }

/* ---------- App store buttons ---------- */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.store-btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 14px;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.20);
  cursor: pointer;
  border: 0;
  font-family: var(--font);
}

.store-btn .store-icon { width: 22px; height: 22px; flex: 0 0 auto; }
.store-btn.ios     { background: linear-gradient(180deg, #1c2234, #0f1626); }
.store-btn.android { background: linear-gradient(180deg, #22c55e, #14913f); }
.store-btn.disabled, .store-btn[aria-disabled="true"] {
  background: rgba(5, 55, 93, 0.16);
  color: var(--navy);
  box-shadow: none;
  cursor: not-allowed;
}

.store-btn .platform-label { display: block; font-size: 11px; line-height: 1; opacity: 0.9; }
.store-btn .platform-name  { display: block; font-size: 16px; line-height: 1; margin-top: 2px; }

/* ---------- Responsive (shared) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 900px) {
  .site-nav {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }
  .brand img { width: 200px; }
  .nav-links { gap: 22px; font-size: 19px; }
  .nav-social { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1180px); }
  .site-nav {
    top: 8px;
    width: calc(100% - 16px);
    min-height: 0;
    padding: 10px 12px;
    border-radius: 14px;
  }
  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 17px;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
}
