/* ==========================================================================
   STRUNG Marketing Website Stylesheet
   A clean, professional design for tennis stringing professionals
   ========================================================================== */

/* Design Tokens
   ========================================================================== */
:root {
  --primary: #014421;
  --primary-light: #026B34;
  --primary-dark: #01301A;
  --forest-dark: #002a1a;
  --forest: #003d26;
  --forest-light: #004d30;
  --player-primary: #0F5C3C;
  --bg-light: #F4F8F5;
  --surface: #FFFFFF;
  --text: #0C2C1B;
  --text-muted: #4C6B5A;
  --border: #D8E8DF;
  --shadow: rgba(15, 92, 60, 0.18);
  --radius-card: 10px;
  --radius-button: 14px;
  --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-stack);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Typography
   ========================================================================== */
h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

p {
  font-size: 1.125rem;
  line-height: 1.7;
  margin: 0;
}

/* Container
   ========================================================================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header (Sticky)
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 64px;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo img {
  height: 28px;
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--text);
}

.nav-cta {
  background: var(--primary);
  color: white;
  padding: 8px 20px;
  border-radius: var(--radius-button);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.nav-cta:hover {
  background: var(--primary-dark);
  color: white;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

/* Mobile Nav
   ========================================================================== */
.mobile-nav {
  display: none;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-nav a:hover {
  color: var(--text);
}

/* Hero Section
   ========================================================================== */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  background: linear-gradient(170deg, var(--forest-dark) 0%, var(--forest) 40%, var(--forest-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  color: white;
}

.hero-content {
  max-width: 800px;
}

.hero-logo {
  width: 200px;
  margin: 0 auto 40px;
  display: block;
}

.hero-tagline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 16px;
}

.hero h1 {
  color: white;
  margin-bottom: 24px;
}

.hero p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 540px;
  margin: 0 auto 40px;
  font-size: 1.125rem;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-short {
  min-height: auto;
  padding: 140px 24px 80px;
}

/* Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-button);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-stack);
}

.btn-primary {
  background: white;
  color: var(--forest-dark);
}

.btn-primary:hover {
  box-shadow: 0 4px 12px var(--shadow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  border-color: white;
}

.btn-green {
  background: var(--primary);
  color: white;
}

.btn-green:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Numbered Features Section
   ========================================================================== */
.features-numbered {
  background: var(--bg-light);
  padding: 100px 0;
}

.features-numbered h2 {
  margin-bottom: 48px;
}

.feature-item {
  display: flex;
  gap: 24px;
  margin-bottom: 48px;
}

.feature-item:last-child {
  margin-bottom: 0;
}

.feature-number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.2;
  line-height: 1;
  min-width: 80px;
  font-variant-numeric: tabular-nums;
}

.feature-content {
  flex: 1;
}

.feature-content h3 {
  margin-bottom: 8px;
}

.feature-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 560px;
}

.features-link {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  margin-top: 32px;
  transition: transform 0.2s ease;
}

.features-link:hover {
  transform: translateX(4px);
}

/* Two Portals Section
   ========================================================================== */
.portals {
  background: var(--forest-dark);
  padding: 100px 0;
  color: white;
}

.portals h2 {
  margin-bottom: 48px;
}

.portals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.portal:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 32px;
}

.portal:last-child {
  padding-left: 32px;
}

.portal-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
  margin-bottom: 8px;
}

.portal h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.portal p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

/* Banner Section
   ========================================================================== */
.banner-section {
  padding: 0;
  background: #1b3c2a;
}

.banner-section .container {
  max-width: 100%;
  padding: 0;
}

.banner-image {
  width: 100%;
  display: block;
}

/* Video Section
   ========================================================================== */
.video-section {
  padding: 80px 0;
  background: white;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* FAQ Section
   ========================================================================== */
.faq {
  padding: 80px 0;
  background: white;
}

.faq .container {
  max-width: 700px;
}

.faq h2 {
  text-align: center;
  margin-bottom: 48px;
}

details {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

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

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

summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

details[open] summary::after {
  content: '−';
}

details p {
  padding-top: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Feature Page Sections
   ========================================================================== */
.feature-section {
  padding: 80px 0;
}

.feature-section:nth-child(odd) {
  background: white;
}

.feature-section:nth-child(even) {
  background: var(--bg-light);
}

.feature-section h2 {
  margin-bottom: 16px;
}

.feature-section p {
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.8;
}

.feature-section p + p {
  margin-top: 12px;
}

.feature-section p + h2,
.feature-section ul + h2 {
  margin-top: 40px;
}

.feature-section a {
  color: var(--primary);
  text-decoration: underline;
}

/* CTA Section
   ========================================================================== */
.cta-section {
  background: linear-gradient(170deg, var(--forest-dark), var(--forest));
  padding: 80px 0;
  text-align: center;
  color: white;
}

.cta-section h2 {
  color: white;
  margin-bottom: 32px;
}

.cta-section .hero-buttons {
  margin-top: 32px;
}

/* Footer
   ========================================================================== */
footer {
  background: var(--forest-dark);
  padding: 48px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: white;
}

.footer-logo {
  height: 24px;
  margin-bottom: 16px;
  opacity: 0.7;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 16px 0;
}

.copyright {
  margin-top: 16px;
  font-size: 0.8rem;
}

/* Mobile Responsive
   ========================================================================== */
@media (max-width: 768px) {
  /* Container */
  .container {
    padding: 0 20px;
  }

  /* Typography */
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  p {
    font-size: 1rem;
  }

  /* Header */
  .desktop-nav {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  /* Hero */
  .hero {
    padding: 100px 20px 60px;
  }

  .hero-logo {
    width: 160px;
    margin-bottom: 32px;
  }

  .hero-short {
    padding: 120px 20px 60px;
  }

  /* Features */
  .feature-item {
    flex-direction: column;
    gap: 16px;
  }

  .feature-number {
    font-size: 3rem;
    min-width: auto;
  }

  /* Portals */
  .portals-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .portal:first-child {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 0;
    padding-bottom: 24px;
  }

  .portal:last-child {
    padding-left: 0;
  }

  /* Footer */
  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

/* Print Styles
   ========================================================================== */
@media print {
  header {
    position: static;
  }

  .hero {
    min-height: auto;
    page-break-after: always;
  }

  .btn {
    border: 1px solid var(--text);
  }
}
