/* Essential Pilates - Unique Visual Identity */
/* Color Palette: Deep Sage, Warm Sand, Charcoal */

:root {
  --primary: #4a6741;
  --primary-dark: #2d3f28;
  --primary-light: #6b8f5e;
  --secondary: #d4a574;
  --secondary-light: #e8c9a0;
  --accent: #8b6f47;
  --bg: #faf8f5;
  --bg-alt: #f0ece6;
  --text: #2c2c2c;
  --text-light: #6b6b6b;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: 0.8rem; }
p { margin-bottom: 1rem; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary); }
img { max-width: 100%; height: auto; display: block; }

/* Utility */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Fade-in animation */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Navigation */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74, 103, 65, 0.1);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo img { height: 48px; width: auto; }
.nav-logo span {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-left: 0.5rem;
}
.nav-links { display: flex; list-style: none; gap: 1.8rem; align-items: center; }
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.3rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle { cursor: pointer; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.8rem 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 100;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; }
.dropdown-menu a {
  display: block;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
}
.dropdown-menu a:hover { background: var(--bg-alt); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 0.5rem; }
.hamburger span { width: 28px; height: 2px; background: var(--text); transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Video Hero */
.hero-video {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-video video, .hero-video .hero-fallback {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-video .hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(45, 63, 40, 0.85) 0%, rgba(74, 103, 65, 0.80) 50%, rgba(139, 111, 71, 0.75) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 1.5rem;
  max-width: 800px;
}
.hero-content h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero-content p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Page Hero (non-video) */
.page-hero {
  position: relative;
  padding: 10rem 0 5rem;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero .hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(45, 63, 40, 0.85);
}
.page-hero .hero-content { position: relative; z-index: 2; color: var(--white); }
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.9); font-size: 1.15rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--secondary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 165, 116, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary-dark);
}
.btn-dark {
  background: var(--primary-dark);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-img { height: 220px; background-size: cover; background-position: center; }
.card-body { padding: 1.5rem; }
.card-body h3 { font-size: 1.2rem; }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* Features section */
.feature-icon {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.8rem;
  color: var(--white);
}
.section-subtitle {
  color: var(--secondary);
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.section-desc {
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Testimonials */
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--primary-light);
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial p { padding-top: 1.5rem; font-style: italic; }
.testimonial .author { font-weight: 600; color: var(--primary-dark); margin-top: 1rem; font-style: normal; }

/* Stats */
.stats { display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; padding: 3rem 0; }
.stat-item { text-align: center; }
.stat-number { font-size: 3rem; font-weight: 700; color: var(--primary); font-family: 'Playfair Display', serif; }
.stat-label { color: var(--text-light); font-size: 0.95rem; margin-top: 0.3rem; }

/* Blog list */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 2rem; }
.blog-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.blog-card img { width: 100%; height: 220px; object-fit: cover; }
.blog-card .blog-card-body { padding: 1.5rem; }
.blog-card .blog-date { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.5rem; }
.blog-card h3 a { color: var(--primary-dark); }
.blog-card h3 a:hover { color: var(--primary); }

/* Blog article */
.article-content { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem; }
.article-content h2 { margin-top: 2.5rem; }
.article-content h3 { margin-top: 2rem; }
.article-content img { border-radius: var(--radius); margin: 2rem 0; width: 100%; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
.article-meta { display: flex; gap: 1.5rem; color: var(--text-light); font-size: 0.9rem; margin-bottom: 2rem; }

/* Contact form */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--primary-dark); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid rgba(74, 103, 65, 0.15);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 103, 65, 0.1);
}
.form-group textarea { resize: vertical; min-height: 150px; }

/* Footer */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 2rem;
}
.footer h4 { color: var(--white); margin-bottom: 1rem; font-size: 1.1rem; }
.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: var(--secondary-light); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.85rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.9); margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Pricing / schedule table */
.schedule-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.schedule-table th { background: var(--primary-dark); color: var(--white); padding: 1rem; text-align: left; font-family: 'Playfair Display', serif; }
.schedule-table td { padding: 0.9rem 1rem; border-bottom: 1px solid var(--bg-alt); }
.schedule-table tr:hover { background: var(--bg-alt); }

/* Responsive */
@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { gap: 2rem; }
}
@media (max-width: 768px) {
  .nav-links { 
    position: fixed;
    top: 0; right: -100%;
    height: 100vh;
    width: 280px;
    flex-direction: column;
    background: var(--white);
    padding: 5rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    transition: right 0.4s ease;
    z-index: 999;
  }
  .nav-links.active { right: 0; }
  .hamburger { display: flex; z-index: 1001; }
  .dropdown-menu { position: static; transform: none; box-shadow: none; opacity: 1; visibility: visible; padding-left: 1rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-content h1 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .stats { gap: 1.5rem; }
  .stat-number { font-size: 2.2rem; }
}
