/* =========================================================
   Pinpoint Soccer — Stylesheet
   ========================================================= */

:root {
  --navy-900: #14213f;
  --navy-800: #1F3864;
  --navy-700: #294a82;
  --steel-500: #6B7A99;
  --steel-300: #A9B6D1;
  --steel-100: #EEF1F7;
  --white: #FFFFFF;
  --ink: #1B2130;
  --accent-500: #E8542A;
  --accent-600: #A73C1E;
  --success-bg: #F4F7FC;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head: 'Barlow Condensed', 'Inter', sans-serif;

  --container-w: 1180px;
  --radius: 10px;
  --shadow-sm: 0 2px 8px rgba(20, 33, 63, 0.08);
  --shadow-md: 0 12px 32px rgba(20, 33, 63, 0.14);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--navy-900);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; margin-bottom: 0.35em; }

p { margin: 0 0 1em; }

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

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

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-600);
  margin-bottom: 0.75em;
}

.section { padding: 96px 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-sub { color: var(--steel-500); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent-500);
  color: var(--navy-900);
}
.btn-primary:hover { background: var(--accent-600); box-shadow: var(--shadow-sm); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-800);
}
.btn-outline:hover { background: var(--navy-800); color: var(--white); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  box-shadow: none;
  transition: box-shadow 0.3s var(--ease-out);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

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

.brand-logo { height: 40px; width: auto; }

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

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-800);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover { color: var(--accent-600); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20,33,63,0.94) 0%, rgba(20,33,63,0.82) 42%, rgba(20,33,63,0.45) 78%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero .eyebrow { color: var(--steel-300); }
.hero h1 { color: var(--white); }
.hero-sub { font-size: 1.12rem; color: var(--steel-300); max-width: 620px; }
.hero-sub strong { color: var(--white); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0 40px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-trust li {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--steel-300);
  text-transform: uppercase;
}

/* ---------- Coach section ---------- */
.coach-section { background: var(--white); }

.coach-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}

.coach-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.coach-lede { font-size: 1.1rem; color: var(--steel-500); }

.credential-list {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}
.credential-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.credential-icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--accent-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.credential-list h3 { margin-bottom: 0.15em; font-size: 1.08rem; }
.credential-list p { margin: 0; color: var(--steel-500); font-size: 0.96rem; }

/* ---------- Method / pillars ---------- */
.method-section { background: var(--steel-100); }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pillar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
}
.pillar-card:hover { box-shadow: var(--shadow-md); }

.pillar-num {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--steel-300);
  margin-bottom: 10px;
}
.pillar-card p { color: var(--steel-500); font-size: 0.95rem; margin: 0; }

/* ---------- Process ---------- */
.process-section { background: var(--white); }

.process-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}

.process-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.process-list { display: grid; gap: 24px; margin-top: 28px; }
.process-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.process-list span {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--accent-500);
  color: var(--navy-900);
  font-weight: 700;
  font-family: var(--font-head);
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-list h3 { margin-bottom: 0.15em; font-size: 1.05rem; }
.process-list p { margin: 0; color: var(--steel-500); font-size: 0.95rem; }

/* ---------- Pricing ---------- */
.pricing-section { background: var(--navy-900); }
.pricing-section .eyebrow { color: var(--accent-500); }
.pricing-section h2 { color: var(--white); }
.pricing-section .section-sub { color: var(--steel-300); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

.price-card.price-card-featured {
  background: var(--navy-800);
  color: var(--white);
  --tilt-scale: 1.04;
  border: 2px solid var(--accent-500);
}
.price-card-featured h3,
.price-card-featured .price-amount,
.price-card-featured .currency,
.price-card-featured .period { color: var(--white); }
.price-card-featured .price-cadence { color: var(--steel-300); }
.price-card-featured .price-features li { color: var(--steel-100); border-color: rgba(255,255,255,0.14); }
.price-card-featured .price-features li::before { color: var(--accent-500); }

.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-500);
  color: var(--navy-900);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 999px;
  margin: 0;
}

.price-card-head h3 { margin-bottom: 0.1em; }
.price-cadence {
  color: var(--steel-500);
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 0 20px;
}

.price-amount {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0 0 24px;
  line-height: 1;
}
.price-amount .currency { font-size: 1.6rem; vertical-align: top; position: relative; top: 6px; }
.price-amount .period { font-size: 1rem; font-weight: 500; color: var(--steel-500); }

.price-features {
  display: grid;
  gap: 14px;
  margin: 0 0 32px;
  flex-grow: 1;
}
.price-features li {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--steel-100);
  font-size: 0.95rem;
  padding-left: 26px;
  position: relative;
}
.price-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-600);
  font-weight: 700;
}

/* ---------- Sample Work ---------- */
.samples-section { background: var(--steel-100); }

.samples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sample-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.sample-tag {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-600);
  margin-bottom: 10px;
}
.sample-card h3 { font-size: 1.12rem; }
.sample-card p:not(.sample-tag) { color: var(--steel-500); font-size: 0.95rem; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonials-section { background: var(--white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--steel-100);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.stars {
  color: var(--accent-500);
  letter-spacing: 2px;
  font-size: 0.95rem;
  margin: 0 0 14px;
}
.testimonial-quote {
  font-size: 0.98rem;
  color: var(--ink);
  margin: 0 0 18px;
}
.testimonial-author {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy-800);
  margin: 0;
}
.testimonial-author span { font-weight: 500; color: var(--steel-500); }

/* ---------- Contact ---------- */
.contact-section { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact-details { margin: 24px 0 8px; display: grid; gap: 10px; }
.contact-details a { color: var(--navy-800); font-weight: 600; }
.contact-details a:hover { color: var(--accent-600); }

.contact-form {
  background: var(--success-bg);
  border-radius: 16px;
  padding: 40px;
  display: grid;
  gap: 20px;
}
.contact-form.is-sending .btn-primary { opacity: 0.7; pointer-events: none; }

.form-row { display: grid; gap: 6px; }
.form-row-split {
  grid-template-columns: 1fr 1fr;
  display: grid;
  gap: 20px;
}
.form-row-split > div { display: grid; gap: 6px; }

/* Honeypot — hidden from real visitors, left in the DOM for bots to fill */
.form-row-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status.is-success { color: #1c7a4d; }
.form-status.is-error { color: #b3261e; }

label { font-size: 0.85rem; font-weight: 600; color: var(--navy-800); }

input, select, textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--steel-300);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy-800);
  box-shadow: 0 0 0 3px rgba(31,56,100,0.12);
}
textarea { resize: vertical; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); padding: 48px 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a { color: var(--steel-300); font-size: 0.9rem; font-weight: 600; }
.footer-nav a:hover { color: var(--white); }
.footer-copy { color: var(--steel-500); font-size: 0.82rem; width: 100%; text-align: center; margin-top: 8px; }

/* =========================================================
   Effects — scroll reveals, tilt, magnetic, split text, counters
   ========================================================= */

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 1000;
  background: rgba(31, 56, 100, 0.08);
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-600), var(--accent-500));
  transform-origin: 0 0;
  transform: scaleX(0);
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
/* Tilt-enabled cards keep their tilt transform after reveal (higher specificity wins) */
[data-reveal].is-revealed.has-tilt {
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--tilt-scale));
}
[data-reveal][data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal][data-reveal-delay="5"] { transition-delay: 0.4s; }
[data-reveal][data-reveal-delay="6"] { transition-delay: 0.48s; }
[data-reveal][data-reveal-delay="7"] { transition-delay: 0.56s; }
/* Defensive: split-text elements must stay visible even if reveal JS misfires */
[data-reveal][data-split] { opacity: 1; transform: none; }

/* Split text (hero headline) */
.split-word {
  display: inline-block;
  will-change: transform, opacity;
}

/* Tilt (pillar cards, price cards) */
.has-tilt {
  --rx: 0deg;
  --ry: 0deg;
  --tilt-scale: 1;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--tilt-scale));
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-soft), box-shadow 0.3s var(--ease-out);
}
.has-tilt:hover { transition-duration: 0.15s; }

/* Magnetic buttons */
.has-magnetic { isolation: isolate; }
.magnetic-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: inherit;
  will-change: transform;
  transition: transform 0.7s var(--ease-soft);
}

/* Nav link underline */
.main-nav a {
  padding-bottom: 4px;
}
.main-nav a::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--accent-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Count-up tabular numbers */
.price-amount, [data-count-to] { font-variant-numeric: tabular-nums; }

/* Hero media parallax base */
.hero-media img { will-change: transform; }
.hero-content { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none !important; }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1000px) {
  .coach-grid, .process-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .process-media, .coach-media { max-width: 420px; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .price-card-featured { --tilt-scale: 1; }
  .samples-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.is-open {
    display: block;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 24px;
  }
  .main-nav.is-open ul { flex-direction: column; gap: 20px; }

  .header-actions .btn-sm { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { min-height: auto; padding-top: 40px; }
  .hero-content { padding-top: 48px; padding-bottom: 48px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .pillars-grid { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }
  .footer-inner { justify-content: center; text-align: center; }
}
