/* ============================================
   SUNDAL YOGA — SparkSite Build
   Matrix Spec: Hero C | Nav A | Services A | Section C
   Typography: Archivo + Karla | CTA: F | Footer: C
   Accents: E (divider), L (handwritten), A (rotated badge)
   Color: B (Primary + Accent)
   ============================================ */

:root {
  --primary: #6481a7;
  --primary-dark: #4a6385;
  --primary-light: #8ba1c0;
  --accent: #e4cbb2;
  --accent-dark: #c9a884;
  --support: #ccbe82;
  --bg: #f8f7f4;
  --bg-warm: #faf5ee;
  --text: #2d2d2d;
  --text-light: #666;
  --white: #ffffff;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 20px rgba(100, 129, 167, 0.08);
  --shadow-hover: 0 8px 30px rgba(100, 129, 167, 0.15);
  --transition: 0.3s ease;
  --max-width: 1140px;
  --font-heading: 'Archivo', sans-serif;
  --font-body: 'Karla', sans-serif;
  --font-hand: 'Caveat', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--alt { background: var(--bg-warm); }
.section--dark { background: var(--primary-dark); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section-label {
  font-family: var(--font-hand);
  font-size: 1.8rem;
  color: var(--accent-dark);
  display: block;
  margin-bottom: 8px;
}

/* NAVIGATION */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(248, 247, 244, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000; padding: 16px 0;
  border-bottom: 1px solid rgba(100, 129, 167, 0.1);
  transition: var(--transition);
}
.nav.scrolled { padding: 10px 0; box-shadow: var(--shadow); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__logo {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.4rem;
  color: var(--primary); display: flex; align-items: center; gap: 8px;
}
.nav__logo span { color: var(--accent-dark); }
.nav__links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav__links a { color: var(--text); font-weight: 500; font-size: 0.95rem; position: relative; }
.nav__links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--primary); transition: var(--transition);
}
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__cta {
  background: var(--primary); color: var(--white) !important;
  padding: 10px 24px; border-radius: var(--radius); font-weight: 600; font-size: 0.9rem;
  transition: var(--transition);
}
.nav__cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.nav__toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--primary); cursor: pointer; }

/* HERO */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; background: linear-gradient(160deg, var(--bg) 0%, var(--bg-warm) 100%);
  position: relative; overflow: hidden; padding: 80px 24px;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(228, 203, 178, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(100, 129, 167, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.hero__content { position: relative; z-index: 1; max-width: 700px; }
.hero__badge {
  display: inline-block; background: var(--white); padding: 8px 20px;
  border-radius: 50px; font-size: 0.85rem; font-weight: 600; color: var(--primary);
  box-shadow: var(--shadow); margin-bottom: 24px; transform: rotate(-2deg);
}
.hero__title { margin-bottom: 20px; letter-spacing: -0.5px; }
.hero__title .accent-word {
  font-family: var(--font-hand); color: var(--primary); font-weight: 400;
  font-size: 1.1em; display: inline-block;
}
.hero__subtitle {
  font-size: 1.2rem; color: var(--text-light); margin-bottom: 36px;
  max-width: 540px; margin-left: auto; margin-right: auto;
}
.hero__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius);
  font-family: var(--font-heading); font-weight: 600; font-size: 1rem;
  cursor: pointer; transition: var(--transition); border: none; text-decoration: none;
}
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); color: var(--white); }
.btn--secondary { background: var(--white); color: var(--primary); border: 2px solid var(--primary); }
.btn--secondary:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: var(--text); }
.btn--accent:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* DIVIDER */
.divider { display: block; width: 100%; height: 40px; line-height: 0; }
.divider svg { width: 100%; height: 100%; }

/* SERVICES */
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; margin-top: 48px; }
.service-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 36px 28px;
  box-shadow: var(--shadow); transition: var(--transition); text-align: center;
  border: 1px solid rgba(100, 129, 167, 0.08);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.service-card__icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-warm); border-radius: 50%; font-size: 1.8rem;
}
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--text-light); font-size: 0.95rem; }

/* GALLERY */
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 48px; }
.gallery__item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-warm); position: relative; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-light), var(--accent)); color: var(--white); font-size: 3rem;
}

/* TESTIMONIALS */
.testimonials__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 48px; }
.testimonial-card { background: var(--white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); position: relative; }
.testimonial-card::before {
  content: '\201C'; font-family: Georgia, serif; font-size: 4rem; color: var(--accent);
  position: absolute; top: 8px; left: 20px; line-height: 1; opacity: 0.5;
}
.testimonial-card__text { position: relative; z-index: 1; font-style: italic; color: var(--text); margin-bottom: 20px; }
.testimonial-card__author { display: flex; align-items: center; gap: 12px; }
.testimonial-card__avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 600;
}
.testimonial-card__name { font-weight: 600; font-size: 0.95rem; }
.testimonial-card__role { color: var(--text-light); font-size: 0.85rem; }

/* CTA BANNER */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 64px 0; text-align: center; color: var(--white); position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(228, 203, 178, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 32px; position: relative; }
.cta-banner .btn--primary { background: var(--white); color: var(--primary); }
.cta-banner .btn--primary:hover { background: var(--accent); }
.cta-banner .btn--secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.cta-banner .btn--secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.cta-banner__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* FOOTER */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.8); padding: 48px 0 24px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer__brand h3 { color: var(--white); margin-bottom: 12px; }
.footer__brand p { font-size: 0.9rem; line-height: 1.6; }
.footer__col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer__col ul { list-style: none; }
.footer__col ul li { margin-bottom: 8px; }
.footer__col ul a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer__col ul a:hover { color: var(--accent); }
.footer__social { display: flex; gap: 12px; margin-top: 16px; }
.footer__social a {
  width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--white); transition: var(--transition);
}
.footer__social a:hover { background: var(--accent); color: var(--text); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* PAGE HEADER */
.page-header { padding: 140px 0 60px; text-align: center; background: linear-gradient(160deg, var(--bg) 0%, var(--bg-warm) 100%); }
.page-header .section-label { margin-bottom: 12px; }
.page-header h1 { margin-bottom: 16px; }
.page-header p { color: var(--text-light); max-width: 540px; margin: 0 auto; }

/* ABOUT */
.about__content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about__image {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 4rem;
}
.about__text h2 { margin-bottom: 20px; }
.about__text p { margin-bottom: 16px; color: var(--text-light); }
.about__text .handwritten { font-family: var(--font-hand); font-size: 1.6rem; color: var(--primary); display: block; margin: 16px 0; }

/* PRICING */
.pricing__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin-top: 48px; }
.pricing-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 40px 32px;
  box-shadow: var(--shadow); text-align: center; border: 1px solid rgba(100, 129, 167, 0.08);
  transition: var(--transition); position: relative;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.pricing-card--featured { border: 2px solid var(--primary); box-shadow: 0 8px 40px rgba(100, 129, 167, 0.15); }
.pricing-card__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  background: var(--accent); padding: 6px 20px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 700; color: var(--text); white-space: nowrap;
}
.pricing-card h3 { margin-bottom: 8px; }
.pricing-card__price { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 700; color: var(--primary); margin: 16px 0; }
.pricing-card__price span { font-size: 1rem; color: var(--text-light); font-weight: 400; }
.pricing-card__features { list-style: none; margin: 24px 0; text-align: left; }
.pricing-card__features li {
  padding: 8px 0; display: flex; align-items: center; gap: 10px;
  font-size: 0.95rem; color: var(--text-light); border-bottom: 1px solid rgba(100, 129, 167, 0.06);
}
.pricing-card__features li::before { content: '\2713'; color: var(--primary); font-weight: 700; }

/* BOOKING */
.booking__content { max-width: 640px; margin: 0 auto; }
.booking__form { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid rgba(100, 129, 167, 0.2);
  border-radius: var(--radius); font-family: var(--font-body); font-size: 1rem;
  background: var(--bg); transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(100, 129, 167, 0.1); background: var(--white);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* CONTACT */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact__info-card { background: var(--white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); margin-bottom: 20px; }
.contact__info-item { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.contact__info-item:last-child { margin-bottom: 0; }
.contact__info-icon {
  width: 48px; height: 48px; background: var(--bg-warm); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.contact__info-label { font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }
.contact__info-value { font-weight: 600; color: var(--text); }

/* ROTATED BADGE */
.rotated-badge {
  display: inline-block; background: var(--accent); color: var(--text);
  padding: 6px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 700;
  transform: rotate(-3deg); box-shadow: var(--shadow);
}

/* RESPONSIVE */
@media (max-width: 968px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__links.mobile-open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: 24px; gap: 20px; box-shadow: var(--shadow);
  }
  .about__content { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
}

/* ANIMATIONS */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeInUp 0.6s ease forwards; }

/* FOCUS */
.btn:focus-visible, .form-group input:focus-visible, .form-group select:focus-visible, .form-group textarea:focus-visible, .nav__links a:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px;
}
