/* ============================================================
   Hammer Golf — single-page site styles
   ============================================================ */

:root {
  /* Brand palette pulled from the mockup */
  --navy-900: #0a2a55;
  --navy-800: #0b3a73;
  --navy-700: #114a8b;
  --navy-600: #1c5aa2;
  --navy-card: #1e508e;
  --navy-card-2: #1a4a85;

  --green-500: #4cc11e;
  --green-600: #3fa915;
  --green-700: #2f8a0d;

  --orange-500: #ff7a1a;
  --red-500: #e23434;

  --white: #ffffff;
  --text-muted: #cfe0f5;
  --text-soft: #a9c3e3;

  --shadow-soft: 0 12px 30px rgba(3, 18, 41, 0.35);
  --shadow-card: 0 14px 30px rgba(0, 0, 0, 0.25);
  --shadow-btn: 0 6px 0 var(--green-700), 0 10px 20px rgba(0, 0, 0, 0.25);

  --radius-card: 18px;
  --radius-btn: 12px;

  --container: 1180px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--white);
  background: var(--navy-800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--navy-900);
  padding: 8px 12px;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: transform 120ms ease, filter 120ms ease;
  user-select: none;
}

.btn:active {
  transform: translateY(2px);
}

/* CTA button: source (64x225) used as-is, sliced 31 / 2 / 31 across its
   64-wide axis. Caps render with their native source aspect ratio:
       cap_render_width = button_height × (31 / 225) ≈ 0.138 × H
   so the 1:7.26 cap proportion is preserved instead of being squished.
   The source stays at native 64x225 so HiDPI/retina screens render the
   caps from extra source pixels (sharp on 2x/3x). */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--white);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.7);
  border-style: solid;
  border-color: transparent;
  border-radius: 0;
  border-image-source: url("assets/button-green.png");
  border-image-slice: 0 31 0 31 fill;
  border-image-repeat: stretch;
}

.btn-cta:hover {
  filter: brightness(1.06);
}

/* H=48  ->  cap ≈ 48 × 31/225 ≈ 6.6 → 7px */
.btn-cta--sm {
  height: 48px;
  border-width: 0 7px;
  border-image-width: 0 7px;
  padding: 0 14px;
  font-size: 14px;
  min-width: 150px;
}

/* H=72  ->  cap ≈ 72 × 31/225 ≈ 9.9 → 10px */
.btn-cta--lg {
  height: 72px;
  border-width: 0 10px;
  border-image-width: 0 10px;
  padding: 0 22px;
  font-size: 22px;
  min-width: 230px;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(8, 30, 64, 0.92) 0%, rgba(8, 30, 64, 0.78) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #f4f6fa 0%, #b7bec8 38%, #6b7785 70%, #2e3845 100%);
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.4);
}

.brand-name {
  font-size: 16px;
  text-transform: uppercase;
}

.primary-nav ul {
  display: flex;
  gap: 32px;
}

.primary-nav a {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 2px;
  position: relative;
  color: var(--white);
  opacity: 0.9;
  transition: opacity 120ms ease;
}

.primary-nav a:hover {
  opacity: 1;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -4px;
  height: 2px;
  background: var(--green-500);
  transition: left 200ms ease, right 200ms ease;
}

.primary-nav a:hover::after {
  left: 0;
  right: 0;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.mobile-nav {
  display: none;
  padding: 12px 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 30, 64, 0.96);
}
.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}
.mobile-nav a {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 4px;
}
.mobile-nav .btn-cta {
  align-self: flex-start;
}

body.nav-open .mobile-nav {
  display: block;
}
body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(480px, 78vh, 760px);
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(48px, 8vw, 96px);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 30, 64, 0.25) 0%, rgba(8, 30, 64, 0) 30%, rgba(8, 30, 64, 0.6) 100%);
}

.hero-inner {
  text-align: center;
}

.hero-tagline {
  font-family: "Bangers", "Inter", system-ui, sans-serif;
  letter-spacing: 0.04em;
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.05;
  margin: 0 0 28px;
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   Section base
   ============================================================ */
.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.rule {
  display: inline-block;
  width: clamp(40px, 8vw, 90px);
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}

/* ============================================================
   Features
   ============================================================ */
.section-features {
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-700) 100%);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.feature-card {
  background: linear-gradient(180deg, var(--navy-card) 0%, var(--navy-card-2) 100%);
  border-radius: var(--radius-card);
  padding: 28px 22px 26px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.32);
}

.feature-icon {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon img {
  max-height: 100%;
  width: auto;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.4));
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.feature-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================================
   Screenshots / video showcase
   ============================================================ */
.section-courses {
  background: linear-gradient(180deg, var(--navy-700) 0%, var(--navy-800) 100%);
}

.courses-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 12px;
}

.courses-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 230px;
  gap: 56px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* Generous side+vertical padding so the cards' drop shadows
     (incl. the larger hover shadow) aren't clipped at the edges
     of the scroll container. */
  padding: 32px 56px 80px;
  justify-content: start;
}
.courses-track::-webkit-scrollbar {
  display: none;
}

.shot-card {
  scroll-snap-align: center;
  margin: 0;
}

/* Portrait "phone screen" frame around the media */
.shot-frame {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  background: #07203f;
  box-shadow:
    0 0 0 4px #0a2a55,
    0 0 0 6px rgba(255, 255, 255, 0.08),
    0 20px 40px rgba(0, 0, 0, 0.45);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.shot-card:hover .shot-frame {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 4px #0a2a55,
    0 0 0 6px rgba(255, 255, 255, 0.12),
    0 26px 48px rgba(0, 0, 0, 0.55);
}

.shot-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.shot-card figcaption {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: center;
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease, transform 150ms ease;
}
.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.05);
}
.carousel-arrow svg {
  width: 22px;
  height: 22px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
.carousel-dots li {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}
.carousel-dots li.is-active {
  background: var(--white);
  transform: scale(1.2);
}

/* ============================================================
   CTA / download
   ============================================================ */
.section-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(64px, 9vw, 110px) 0;
}

.cta-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 30, 64, 0.85) 0%,
    rgba(8, 30, 64, 0.55) 45%,
    rgba(8, 30, 64, 0.05) 80%
  );
}

.cta-inner {
  display: flex;
}

.cta-copy {
  max-width: 520px;
}

.cta-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}

.cta-copy > p {
  margin: 0 0 24px;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--text-muted);
}

.store-badges {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 150ms ease, filter 150ms ease;
}
.store-badge svg {
  height: 44px;
  width: auto;
}
a.store-badge:hover {
  transform: translateY(-2px);
}

/* Disabled / coming-soon variant (e.g. Google Play before launch) */
.store-badge--soon {
  cursor: default;
  filter: grayscale(0.4) brightness(0.85);
  opacity: 0.75;
}

/* ============================================================
   About
   ============================================================ */
.section-about {
  background: var(--navy-900);
}

.about-inner {
  max-width: 760px;
  text-align: center;
}

.about-inner h2 {
  margin: 0 0 16px;
  font-size: clamp(22px, 3vw, 30px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-inner p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: #06224b;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.footer-nav ul {
  display: flex;
  gap: 24px;
}
.footer-nav a {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
}
.footer-nav a:hover {
  opacity: 1;
}

.social {
  display: flex;
  gap: 14px;
  justify-self: end;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background 150ms ease, transform 150ms ease;
}
.social a:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.social svg {
  width: 18px;
  height: 18px;
  color: var(--white);
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-soft);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .courses-track {
    grid-auto-columns: 210px;
  }
}

@media (max-width: 768px) {
  .primary-nav,
  .header-inner > .btn-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }

  .courses-carousel {
    grid-template-columns: 1fr;
  }
  .carousel-arrow {
    display: none;
  }
  .courses-track {
    grid-auto-columns: 68%;
    gap: 40px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .footer-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 18px;
    row-gap: 8px;
    max-width: 100%;
  }
  .social {
    justify-self: center;
  }
}

@media (max-width: 520px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 520px;
  }
  .hero-media img {
    object-position: center 40%;
  }

  .store-badges {
    justify-content: flex-start;
  }
}

/* ============================================================
   Legal pages (privacy, licenses)
   ============================================================ */
.legal-body {
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  min-height: 100vh;
}

.legal-page {
  padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px);
}

.legal-container {
  max-width: 760px;
}

.legal-head {
  margin-bottom: clamp(28px, 4vw, 44px);
  text-align: left;
}

.legal-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--green-500);
}

.legal-head h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.legal-updated {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-content {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

.legal-content h2 {
  margin: 36px 0 14px;
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
}

.legal-content h2:first-of-type {
  margin-top: 28px;
}

.legal-content p {
  margin: 0 0 16px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.4em;
  margin: 0 0 18px;
}

.legal-content li {
  margin: 0 0 8px;
}

.legal-content a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease;
}

.legal-content a:hover {
  text-decoration-color: var(--green-500);
}

.legal-content strong {
  color: var(--white);
}

.legal-back {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
