/* ================================================
   LifeRevive.click — Main Stylesheet
   Mobile-first, responsive, CSS custom properties
   ================================================ */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; }
ul { list-style: none; }

/* ============================
   CUSTOM PROPERTIES
   ============================ */
:root {
  --primary:       #2D6A4F;
  --primary-dark:  #1B4332;
  --accent:        #52B788;
  --accent-light:  #95D5B2;
  --light:         #F8F9FA;
  --light-2:       #E9ECEF;
  --dark:          #1B1B2F;
  --dark-2:        #343A40;
  --gold:          #E9C46A;
  --white:         #FFFFFF;
  --text:          #343A40;
  --text-muted:    #6C757D;

  --font-body:     'Inter', sans-serif;
  --font-heading:  'Playfair Display', serif;

  --container:     1200px;
  --radius:        12px;
  --radius-sm:     8px;
  --shadow:        0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.14);
  --transition:    0.3s ease;
}

/* ============================
   UTILITIES
   ============================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* Scroll reveal */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(45,106,79,0.35); }
.btn-accent  { background: var(--accent); color: var(--white); }
.btn-accent:hover  { background: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(82,183,136,0.35); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-ghost   { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.5); }
.btn-ghost:hover { border-color: white; background: rgba(255,255,255,0.1); }

/* ============================
   COOKIE BANNER
   ============================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--dark);
  color: white;
  padding: 1.25rem 1.5rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
}
.cookie-banner.show { transform: translateY(0); }

.cookie-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.cookie-text { flex: 1; min-width: 240px; }
.cookie-text p { font-size: 0.84rem; color: rgba(255,255,255,0.8); line-height: 1.55; }
.cookie-text a { color: var(--accent-light); text-decoration: underline; }

.cookie-actions { display: flex; gap: 0.65rem; flex-wrap: wrap; align-items: center; }

.btn-cookie-accept {
  background: var(--accent); color: white;
  border: none; padding: 0.55rem 1.2rem;
  border-radius: 50px; font-size: 0.85rem;
  font-weight: 600; cursor: pointer;
  transition: background var(--transition);
  font-family: inherit;
}
.btn-cookie-accept:hover { background: var(--primary); }

.btn-cookie-decline {
  background: transparent; color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.55rem 1.2rem; border-radius: 50px;
  font-size: 0.85rem; cursor: pointer;
  transition: all var(--transition); font-family: inherit;
}
.btn-cookie-decline:hover { border-color: rgba(255,255,255,0.6); color: white; }

/* ============================
   HEADER
   ============================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light-2);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}
.logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem;
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { font-size: 0.95rem; font-weight: 500; color: var(--dark-2); transition: color var(--transition); }
.nav a:hover { color: var(--primary); }
.nav-cta { background: var(--primary) !important; color: white !important; padding: 0.6rem 1.5rem; border-radius: 50px; }
.nav-cta:hover { background: var(--primary-dark) !important; }

.burger {
  display: none;
  background: none; border: none;
  padding: 0.5rem;
  flex-direction: column; gap: 5px;
  cursor: pointer;
}
.burger span { display: block; width: 24px; height: 2px; background: var(--dark); transition: var(--transition); border-radius: 2px; }
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: white;
  padding: 1.25rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  flex-direction: column; gap: 0;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 1.05rem; font-weight: 500; color: var(--dark); padding: 0.85rem 0; border-bottom: 1px solid var(--light-2); }
.mobile-nav a:last-child { border-bottom: none; color: var(--primary); font-weight: 600; padding-top: 1.25rem; }

/* ============================
   HERO
   ============================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 45%, #40916C 75%, #52B788 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}

/* Subtle dot pattern overlay */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Decorative circle */
.hero::after {
  content: '';
  position: absolute;
  top: -20%;  right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; padding: 4rem 1.5rem; }

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.14);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  color: white;
  line-height: 1.13;
  margin-bottom: 1.25rem;
}
.hero h1 em { font-style: italic; color: var(--gold); }

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.83);
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 1.65;
}

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

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.18);
  flex-wrap: wrap;
}
.stat-num { font-size: 1.8rem; font-weight: 700; color: white; font-family: var(--font-heading); line-height: 1; }
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.65); margin-top: 0.2rem; }

/* Hero image placeholder (right side, desktop only) */
.hero-visual {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 42%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.25);
  font-size: 0.75rem; letter-spacing: 0.1em;
  background: rgba(255,255,255,0.04);
  border-left: 1px dashed rgba(255,255,255,0.12);
}
.img-placeholder-icon { font-size: 3rem; opacity: 0.35; margin-bottom: 0.25rem; }

/* Course card image placeholders */
.course-img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.7rem; letter-spacing: 0.08em;
}
.course-img-placeholder .img-placeholder-icon { font-size: 2.2rem; opacity: 0.6; margin-bottom: 0; }

/* ============================
   ABOUT / BENEFITS
   ============================ */
.about { background: var(--light); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}

.benefit-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.benefit-icon {
  width: 58px; height: 58px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}
.benefit-card h3 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--dark); margin-bottom: 0.65rem; }
.benefit-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; }

/* ============================
   COURSES
   ============================ */
.courses { background: var(--white); }

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
  align-items: start;
}

.course-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: white;
  border: 1.5px solid var(--light-2);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.course-card.featured { border: 2px solid var(--accent); transform: scale(1.04); }
.course-card.featured:hover { transform: scale(1.04) translateY(-6px); }

.featured-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--gold); color: #5a3a00;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.28rem 0.75rem; border-radius: 50px; z-index: 2;
}

.course-img-wrap { height: 210px; position: relative; overflow: hidden; }
.course-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.course-img-bg-beginners { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.course-img-bg-daily     { background: linear-gradient(135deg, #2D6A4F 0%, #52B788 100%); }
.course-img-bg-seniors   { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }

.course-body { padding: 1.5rem; }
.course-tag { font-size: 0.73rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.45rem; }
.course-body h3 { font-family: var(--font-heading); font-size: 1.25rem; color: var(--dark); margin-bottom: 0.65rem; line-height: 1.3; }
.course-body p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; margin-bottom: 1.15rem; }

.course-meta { display: flex; gap: 1rem; margin-bottom: 1.15rem; font-size: 0.82rem; color: var(--text-muted); }
.course-meta span { display: flex; align-items: center; gap: 0.25rem; }

.course-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.15rem; border-top: 1px solid var(--light-2);
}
.course-price { font-size: 1.9rem; font-weight: 700; color: var(--primary); font-family: var(--font-heading); line-height: 1; }
.course-price sup { font-size: 0.95rem; vertical-align: super; }

/* ============================
   HOW IT WORKS
   ============================ */
.how { background: var(--light); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}
/* Horizontal connector line */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 38px;
  left: calc(16.67% + 1rem);
  right: calc(16.67% + 1rem);
  height: 2px;
  background: linear-gradient(90deg, var(--accent-light), var(--accent), var(--accent-light));
}

.step { text-align: center; }
.step-num {
  width: 76px; height: 76px;
  background: white;
  border: 3px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.55rem; font-weight: 700;
  color: var(--primary); font-family: var(--font-heading);
  margin: 0 auto 1.5rem;
  position: relative; z-index: 1;
  box-shadow: 0 0 0 8px var(--light);
}
.step h3 { font-family: var(--font-heading); font-size: 1.15rem; color: var(--dark); margin-bottom: 0.65rem; }
.step p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; max-width: 220px; margin: 0 auto; }

/* ============================
   ENROLLMENT FORM
   ============================ */
.enroll { background: var(--white); }

.enroll-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.enroll-info .section-tag { display: block; margin-bottom: 0.65rem; }
.enroll-info h2 { font-family: var(--font-heading); font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--dark); margin-bottom: 1rem; line-height: 1.2; }
.enroll-info > p { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.7; }

.enroll-points { display: flex; flex-direction: column; gap: 0.7rem; }
.enroll-points li { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.93rem; color: var(--text); }
.enroll-points li::before {
  content: '✓';
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; min-width: 20px;
  background: var(--accent); color: white;
  border-radius: 50%; font-size: 0.65rem; font-weight: 700;
  margin-top: 2px;
}

/* Form box */
.form-box {
  background: var(--light);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow);
}
.form-box h3 { font-family: var(--font-heading); font-size: 1.35rem; color: var(--dark); margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.15rem; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--dark-2); margin-bottom: 0.35rem; }
.form-group label .optional { font-weight: 400; color: var(--text-muted); font-size: 0.78rem; }

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.825rem 1rem;
  border: 1.5px solid var(--light-2);
  border-radius: var(--radius-sm);
  font-size: 0.98rem; font-family: var(--font-body);
  color: var(--dark); background: white;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none; appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236C757D' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(82,183,136,0.15); }
.form-group input.error,
.form-group select.error { border-color: #dc3545; }

.field-error { display: none; color: #dc3545; font-size: 0.78rem; margin-top: 0.3rem; }
.field-error.show { display: block; }

.form-check {
  display: flex; align-items: flex-start; gap: 0.7rem;
  margin-bottom: 1.4rem; padding: 1rem;
  background: white; border-radius: var(--radius-sm);
  border: 1.5px solid var(--light-2);
}
.form-check input[type="checkbox"] {
  width: 17px; height: 17px; min-width: 17px;
  accent-color: var(--primary); cursor: pointer; margin-top: 2px;
}
.form-check label { font-size: 0.82rem; color: var(--text-muted); cursor: pointer; line-height: 1.5; }
.form-check label a { color: var(--primary); text-decoration: underline; }

.btn-submit { width: 100%; padding: 1rem; font-size: 1rem; }
.btn-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none !important; }

/* Success state */
.form-success { display: none; text-align: center; padding: 2rem 1rem; }
.form-success.show { display: block; }
.success-icon { font-size: 3rem; margin-bottom: 1rem; }
.form-success h4 { font-family: var(--font-heading); font-size: 1.3rem; color: var(--primary); margin-bottom: 0.5rem; }
.form-success p { color: var(--text-muted); font-size: 0.95rem; }

/* ============================
   FOOTER
   ============================ */
.footer { background: var(--dark); color: rgba(255,255,255,0.65); padding: 3.5rem 0 1.5rem; }

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo { color: white; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.65; }
.footer-brand .contact-link { display: inline-block; margin-top: 1rem; color: var(--accent-light); font-size: 0.9rem; }
.footer-brand .contact-link:hover { color: white; }

.footer-col h4 { color: white; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.87rem; color: rgba(255,255,255,0.55); margin-bottom: 0.55rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--accent-light); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.75rem; font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: var(--accent-light); text-decoration: underline; }
.footer-bottom a:hover { color: white; }

/* ============================
   RESPONSIVE — Tablet (≤1024px)
   ============================ */
@media (max-width: 1024px) {
  .hero-visual { display: none; }
  .enroll-wrap { gap: 2.5rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ============================
   RESPONSIVE — Mobile (≤768px)
   ============================ */
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }

  .nav { display: none; }
  .burger { display: flex; }

  .benefits-grid,
  .courses-grid,
  .steps-grid { grid-template-columns: 1fr; }

  .course-card.featured { transform: none; }
  .course-card.featured:hover { transform: translateY(-6px); }

  .steps-grid::before { display: none; }

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

  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }

  .hero-stats { gap: 1.5rem; }
  .cookie-inner { gap: 1rem; }
}

/* ============================
   RESPONSIVE — Small (≤480px)
   ============================ */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hero-stats { gap: 1rem; }
  .form-box { padding: 1.5rem; }
  .cookie-banner { padding: 1rem; }
  .cookie-actions { width: 100%; }
  .btn-cookie-accept,
  .btn-cookie-decline { flex: 1; text-align: center; }
}
