/* ==========================================================================
   CourtStream.online — Master Stylesheet
   Architecture: Lightweight, Responsive, Mobile-First, Framework-Free
   Color Palette:
     - Navy: #0B1F3A (Primary Structure & Headers)
     - Navy Deep: #07162B (Hero & Footer Backgrounds)
     - Lime: #DFFF00 (Tennis Accent / Highlights)
     - Mint: #46E0B7 (Secondary Brand CTA & Accents)
     - Off-White: #F7F9FC (Page Background)
     - Text Dark: #10213A (High-Contrast Body)
     - Muted Text: #536175 (Secondary Copy)
     - Soft Border: #DCE4EE (Clean Card Outlines)
   ========================================================================== */

:root {
  --navy: #0B1F3A;
  --navy-deep: #07162B;
  --navy-surface: #122B4E;
  --lime: #DFFF00;
  --lime-hover: #CCE600;
  --mint: #46E0B7;
  --mint-hover: #38CA9F;
  --white: #FFFFFF;
  --bg-light: #F7F9FC;
  --bg-alt: #EDF2F7;
  --text-dark: #10213A;
  --text-muted: #536175;
  --text-light: #F8FAFC;
  --text-dim: #94A3B8;
  --border-soft: #DCE4EE;
  --border-dark: #1E3A5F;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 6px rgba(11, 31, 58, 0.04);
  --shadow-md: 0 4px 18px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 10px 30px rgba(11, 31, 58, 0.14);
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: all 0.2s ease-in-out;
}

/* --------------------------------------------------------------------------
   1. Reset & Global Baseline
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--navy);
  text-decoration: none;
  transition: var(--transition);
}

a:hover, a:focus-visible {
  color: var(--mint-hover);
}

/* Accessible Focus Ring */
:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   2. Accessibility Skip Link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  background: var(--lime);
  color: var(--navy);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: top 0.2s ease-in-out;
}

.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   3. Layout Containers & Sections
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section {
  padding: 3.75rem 0;
}

.section-alt {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 3.75rem 0;
}

.section-title-wrap {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 2.5rem;
}

.section-title-wrap h2 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
  font-weight: 800;
}

.section-title-wrap p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   4. Site Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  background-color: var(--navy-deep);
  border-bottom: 1px solid var(--border-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.brand-name {
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-name span {
  color: var(--lime);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.35rem 0.45rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--lime);
  background-color: rgba(255, 255, 255, 0.05);
}

.main-nav a.nav-highlight {
  color: var(--mint);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-email {
  color: var(--text-dim);
  font-size: 0.85rem;
  text-decoration: none;
}

.header-email:hover {
  color: var(--lime);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
  min-height: 44px;
}

.btn-primary {
  background-color: var(--mint);
  color: var(--navy-deep);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background-color: var(--mint-hover);
  color: var(--navy-deep);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--navy);
  border-color: var(--border-soft);
}

.btn-secondary:hover, .btn-secondary:focus-visible {
  background-color: #EBF1F6;
  border-color: #CBD5E1;
}

.btn-accent {
  background-color: var(--lime);
  color: var(--navy-deep);
}

.btn-accent:hover, .btn-accent:focus-visible {
  background-color: var(--lime-hover);
  color: var(--navy-deep);
  transform: translateY(-1px);
}

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

.btn-outline:hover, .btn-outline:focus-visible {
  background-color: var(--navy);
  color: var(--white);
}

.btn-whatsapp {
  background-color: #25D366;
  color: var(--white);
}

.btn-whatsapp:hover, .btn-whatsapp:focus-visible {
  background-color: #1EBE5B;
  color: var(--white);
}

.btn-whatsapp-nav {
  background-color: #25D366;
  color: var(--white);
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  min-height: 36px;
}

.btn-whatsapp-nav:hover {
  background-color: #1EBE5B;
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  background-color: var(--navy-deep);
  color: var(--white);
  padding: 3.5rem 0 3.75rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(70, 224, 183, 0.12) 0%, rgba(7, 22, 43, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.25px;
  color: var(--lime);
  margin-bottom: 0.6rem;
}

.hero-text h1 {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.75px;
  color: var(--white);
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-dim);
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 1.25rem;
}

.hero-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-dark);
  background-color: var(--navy-surface);
  aspect-ratio: 16 / 9;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   7. Key Fit Facts Strip
   -------------------------------------------------------------------------- */
.facts-strip {
  background-color: var(--navy);
  border-bottom: 1px solid var(--border-dark);
  padding: 1.25rem 0;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.fact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fact-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  color: var(--lime);
}

.fact-value {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   8. AI Summary Block
   -------------------------------------------------------------------------- */
.ai-summary-card {
  background-color: #EBF8F4;
  border-left: 4px solid var(--mint);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
}

.ai-summary-card h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.ai-summary-card p {
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   9. Featured Verdict Section
   -------------------------------------------------------------------------- */
.verdict-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.verdict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2.25rem;
}

.verdict-col h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  letter-spacing: -0.25px;
}

.verdict-pro h3 {
  color: #0D7A5F;
}

.verdict-con h3 {
  color: #B91C1C;
}

.verdict-col ul {
  list-style: none;
}

.verdict-col li {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
}

.verdict-pro li::before {
  content: "✔";
  color: var(--mint-hover);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.verdict-con li::before {
  content: "✖";
  color: #E11D48;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.verdict-footer {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-soft);
  padding: 1.5rem 2.25rem;
  text-align: center;
}

.verdict-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.affiliate-inline-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   10. Card Grids & Feature Cards
   -------------------------------------------------------------------------- */
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--mint);
}

.card-tag {
  display: inline-block;
  background-color: var(--bg-alt);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.feature-card h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.card-link {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: underline;
}

.card-link:hover {
  color: var(--mint-hover);
}

/* --------------------------------------------------------------------------
   11. Process Steps & Methodology
   -------------------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.process-step {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.step-badge {
  width: 32px;
  height: 32px;
  background: var(--navy);
  color: var(--lime);
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}

.process-step h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.process-step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.methodology-note {
  background-color: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
}

/* --------------------------------------------------------------------------
   12. Info Box (USA Buying Guidance)
   -------------------------------------------------------------------------- */
.info-box {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  max-width: 860px;
  margin: 0 auto;
}

.info-box p {
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.info-box p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   13. Lead CTA Banner
   -------------------------------------------------------------------------- */
.cta-banner {
  background: var(--navy-deep);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--lime), var(--mint));
}

.cta-banner h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 660px;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   14. FAQ Accordions (details / summary)
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

details {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

details[open] {
  border-color: var(--mint);
}

summary {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--mint-hover);
  transition: transform 0.2s ease;
}

details[open] summary::after {
  content: "−";
  color: var(--navy);
}

details p {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--navy-deep);
  color: var(--text-dim);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-dark);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.footer-brand span {
  color: var(--lime);
}

.footer-about {
  margin: 0.75rem 0 1.25rem;
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-contacts p {
  margin: 0.25rem 0;
  font-size: 0.85rem;
}

.footer-contacts a {
  color: var(--text-light);
  text-decoration: none;
}

.footer-contacts a:hover {
  color: var(--lime);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.25px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--lime);
}

.footer-social-desc {
  font-size: 0.825rem;
  margin-bottom: 0.75rem;
}

.social-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--navy-surface);
  border: 1px solid var(--border-dark);
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.social-btn:hover,
.social-btn:focus-visible {
  background: var(--mint);
  color: var(--navy-deep);
  border-color: var(--mint);
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #64748B;
}

.ftc-text {
  max-width: 820px;
  margin: 0 auto 0.75rem;
  line-height: 1.5;
}

.copyright-text {
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   16. Floating WhatsApp Button
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  min-height: 44px;
  min-width: 44px;
  transition: var(--transition);
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background-color: #1EBE5B;
  color: var(--white);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   17. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .verdict-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .main-nav {
    width: 100%;
    gap: 0.6rem;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero-text h1 {
    font-size: 1.85rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .verdict-actions {
    flex-direction: column;
  }

  .verdict-actions .btn {
    width: 100%;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-float span {
    display: none;
  }

  .whatsapp-float {
    padding: 0.75rem;
    border-radius: 50%;
  }
}

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