/* ========================================
   Coach Kevin AI — Landing Page Styles
   Design: Clean & Professional
   Fonts: Sora (headings) + DM Sans (body)
   ======================================== */

/* --- CSS Variables --- */
:root {
  /* Primary — Deep Teal */
  --color-primary: #0D4F4F;
  --color-primary-light: #1A7A7A;
  --color-primary-dark: #093939;

  /* Accent — Warm Amber */
  --color-accent: #E8A317;
  --color-accent-light: #F5C04A;
  --color-accent-dark: #C48A0F;

  /* Neutrals */
  --color-bg: #FAFAF8;
  --color-bg-alt: #F0EFEB;
  --color-surface: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-secondary: #5A5A5A;
  --color-text-muted: #8A8A8A;
  --color-border: #E0DED8;

  /* WhatsApp */
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #128C7E;

  /* Layout */
  --container-max: 1120px;
  --container-padding: clamp(1.25rem, 4vw, 2rem);
  --section-padding: clamp(3rem, 8vw, 6rem);

  /* Typography */
  --font-heading: 'Sora', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
}

.text-accent {
  color: var(--color-accent);
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.section-title em {
  color: var(--color-accent);
  font-style: normal;
}

.section-title--left {
  text-align: left;
}

.section-title--light {
  color: #FFFFFF;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto 3rem;
}

/* --- Layout --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.btn--whatsapp {
  background-color: var(--color-whatsapp);
  color: #FFFFFF;
  animation: ctaPulse 3s ease-in-out infinite;
}

.btn--whatsapp:hover {
  background-color: var(--color-whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.btn--whatsapp:active {
  transform: translateY(0);
}

.btn--large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

@keyframes ctaPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   SECTIONS
   ======================================== */

/* --- Hero --- */
.hero {
  padding: clamp(5rem, 14vw, 10rem) 0 var(--section-padding);
  background: linear-gradient(168deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  text-align: center;
}

.hero__label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.hero__headline {
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.hero__subheadline {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: var(--color-text-secondary);
  font-size: clamp(1rem, 2vw, 1.1875rem);
  line-height: 1.8;
}

.hero__trust {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* --- Problems --- */
.problems {
  padding: var(--section-padding) 0;
  background-color: var(--color-bg-alt);
}

.problems__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.problem-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.problem-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-md);
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.problem-card__title {
  margin-bottom: 0.5rem;
}

.problem-card__desc {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* --- Curriculum --- */
.curriculum {
  padding: var(--section-padding) 0;
  background-color: var(--color-bg);
}

.curriculum__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.curriculum__item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.75rem 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.curriculum__item:hover {
  transform: translateX(4px);
  box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.06);
}

.curriculum__number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.3;
  flex-shrink: 0;
  min-width: 3rem;
}

.curriculum__content h3 {
  margin-bottom: 0.375rem;
}

.curriculum__content p {
  color: var(--color-text-secondary);
}

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

.about__bio--center {
  text-align: center;
  max-width: 640px;
  margin: 1rem auto 3rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

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

.about__credential-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.about__credential-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.about__credential-card svg {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.about__credential-card h3 {
  margin-bottom: 0.5rem;
}

.about__credential-card p {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

/* --- Details --- */
.details {
  padding: var(--section-padding) 0;
  background-color: var(--color-bg);
}

.details__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.details__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.details__card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.details__card svg {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.details__card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.details__card p {
  color: var(--color-text-secondary);
}

.details__card small {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}

/* --- Testimonials --- */
.testimonials {
  padding: var(--section-padding) 0;
  background: linear-gradient(160deg, var(--color-primary-dark), var(--color-primary));
}

.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.testimonial {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}

.testimonial::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.6;
  position: absolute;
  top: 0.75rem;
  left: 1.25rem;
}

.testimonial__text {
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.8;
  padding-top: 1.5rem;
  font-size: 0.9375rem;
}

.testimonial__author {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  margin-top: 1.25rem;
  font-style: normal;
}

.testimonial__name {
  color: #FFFFFF;
  font-weight: 700;
}

.testimonial__role {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8125rem;
}

/* --- Final CTA --- */
.final-cta {
  padding: var(--section-padding) 0;
  background-color: var(--color-bg-alt);
  text-align: center;
}

.final-cta__headline {
  margin-bottom: 1rem;
}

.final-cta__text {
  color: var(--color-text-secondary);
  font-size: clamp(1rem, 2vw, 1.125rem);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta__note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* --- Footer --- */
.footer {
  padding: 3rem 0 2rem;
  background-color: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
}

.footer__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: #FFFFFF;
}

.footer__tagline {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.footer__contact p {
  font-size: 0.875rem;
}

.footer__bottom {
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --- Floating WhatsApp --- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  animation: ctaPulse 3s ease-in-out infinite;
  opacity: 0;
  pointer-events: none;
}

.whatsapp-float--visible {
  opacity: 1;
  pointer-events: auto;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (min-width: 768px) {
  .problems__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .details__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__credentials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .problems__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .details__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .curriculum__number {
    font-size: 2.5rem;
  }

}

/* Mobile CTA full-width */
@media (max-width: 767px) {
  .btn {
    width: 100%;
    justify-content: center;
  }

  .about__credentials {
    align-items: flex-start;
  }

  .hero {
    padding-top: clamp(4rem, 10vw, 5rem);
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
@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;
  }

  .reveal,
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Focus styles for keyboard navigation */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* Skip link for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
