/* ===== Complete Golf Coach – 2026 ===== */
:root {
  --color-bg: #faf9f6;
  --color-surface: #ffffff;
  --color-green: #1a3c34;
  --color-green-light: #2d5a4a;
  --color-accent: #4da38d;
  --color-text: #1a1a1a;
  --color-text-muted: #5c5c5c;
  --color-border: #e8e6e1;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --container: min(1120px, 100% - 2rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* ----- Header ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.logo {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.logo-img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 768px) {
  .logo-img {
    height: 48px;
    max-width: 240px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav a {
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: 500;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231a3c34'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E") center no-repeat;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    gap: 0;
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.2s ease, visibility 0.2s;
  }

  .nav.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .nav a {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav a:last-of-type {
    border-bottom: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle[aria-expanded="true"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231a3c34'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 18L18 6M6 6l12 12'/%3E%3C/svg%3E");
  }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  margin-top: 64px;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: var(--space-2xl) 0;
  background: linear-gradient(to top, rgba(26, 60, 52, 0.92) 0%, rgba(26, 60, 52, 0.6) 40%, transparent 100%);
  color: #fff;
}

.hero-content .container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  margin: 0 0 var(--space-md);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0;
  max-width: 42ch;
  font-size: clamp(1rem, 2vw, 1.125rem);
  opacity: 0.95;
  line-height: 1.65;
}

.hero-content .store-badges {
  margin-top: var(--space-lg);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.store-badge {
  display: block;
  line-height: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.store-badge:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.store-badge img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

@media (min-width: 520px) {
  .store-badge img {
    height: 50px;
    max-width: 180px;
  }
}

@media (min-width: 768px) {
  .store-badge img {
    height: 56px;
    max-width: 200px;
  }
}

/* ----- Sections ----- */
.section {
  padding: var(--space-2xl) 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-green);
  margin: 0 0 var(--space-xl);
  text-align: center;
}

/* ----- Features ----- */
.features {
  background: var(--color-surface);
}

.features-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 900px) {
  .features-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-green);
  color: #fff;
  border-radius: 10px;
  font-size: 1.125rem;
}

.feature-text h3 {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-green);
  margin: 0 0 var(--space-xs);
}

.feature-text p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.features-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
}

.features-rotator {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
  aspect-ratio: 9 / 19;
  background: var(--color-bg);
}

.features-rotator .rotator-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.features-rotator .rotator-img.is-visible {
  opacity: 1;
  z-index: 1;
}

/* ----- About ----- */
.about {
  background: var(--color-bg);
}

.about-content {
  margin-inline: 0;
}

.about-content p {
  margin: 0 0 var(--space-md);
  color: var(--color-text);
}

.about-content p:last-child {
  margin-bottom: 0;
}

.players {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.players h3 {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-green);
  margin: 0 0 var(--space-sm);
}

.players-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-xs);
}

.players-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.players-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* ----- CTA ----- */
.cta {
  background: var(--color-green);
  color: #fff;
  text-align: center;
}

.cta-inner {
  max-width: 36rem;
  margin-inline: auto;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 var(--space-sm);
}

.cta-lead {
  margin: 0 0 var(--space-lg);
  font-size: 1.125rem;
  opacity: 0.9;
}

.cta-badges {
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.cta-badges .store-badge img {
  height: 52px;
  max-width: 185px;
}

@media (min-width: 520px) {
  .cta-badges .store-badge img {
    height: 58px;
    max-width: 210px;
  }
}

.cta-support {
  margin: 0;
  font-size: 0.9375rem;
  opacity: 0.9;
}

.cta-support a {
  color: #fff;
  text-decoration: underline;
}

.cta-support a:hover {
  text-decoration: none;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.footer-nav {
  display: flex;
  gap: var(--space-lg);
}

.footer-nav a {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
