/* ============================================
   Bridge & Breathe Yoga Studio — Pontypridd, Wales
   Design System & Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --primary: #7B8F6B;
  --primary-light: #9BAF8B;
  --primary-dark: #5B6F4B;
  --secondary: #D4A574;
  --secondary-light: #E8C9A8;
  --cream: #F8F5F0;
  --dark: #2C2C2C;
  --light: #FAFAF8;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --border: #E8E4DE;
  --shadow: 0 2px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
}

/* --- Reset & Base --- */
*, *::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(--light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary); }

h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--dark); line-height: 1.3; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Header & Navigation --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(250,250,248,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.nav-wrapper {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto; padding: 16px 24px;
}

.logo {
  font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700;
  color: var(--primary-dark); letter-spacing: -0.5px;
}
.logo span { color: var(--secondary); }

.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.95rem; font-weight: 500; color: var(--text);
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--primary); transition: width var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--primary-dark); }

.nav-cta {
  background: var(--primary); color: white !important; padding: 10px 24px;
  border-radius: 50px; font-weight: 600; font-size: 0.9rem;
  transition: all var(--transition);
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span {
  display: block; width: 24px; height: 2px; background: var(--dark);
  margin: 6px 0; transition: all var(--transition);
}

/* --- Hero Section --- */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--light) 50%, #EDE8E0 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(123,143,107,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content { max-width: 640px; position: relative; z-index: 1; }
.hero-tag {
  display: inline-block; background: var(--primary); color: white;
  padding: 6px 16px; border-radius: 50px; font-size: 0.85rem;
  font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 { margin-bottom: 20px; }
.hero p { font-size: 1.15rem; color: var(--text-light); margin-bottom: 36px; max-width: 520px; }

/* --- Buttons --- */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 50px;
  font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: all var(--transition); border: 2px solid transparent; text-align: center;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(123,143,107,0.3); }
.btn-secondary { background: transparent; color: var(--primary-dark); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary); color: white; }
.btn-accent { background: var(--secondary); color: white; }
.btn-accent:hover { background: #C09060; color: white; transform: translateY(-2px); }
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- Section Styles --- */
.section { padding: 100px 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--dark); color: white; }
.section-dark h2, .section-dark h3 { color: white; }
.section-dark p { color: rgba(255,255,255,0.8); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-header p { color: var(--text-light); margin-top: 16px; font-size: 1.1rem; }
.section-tag {
  display: inline-block; color: var(--primary); font-weight: 600;
  font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 12px;
}

/* --- Card Grid --- */
.card-grid { display: grid; gap: 28px; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: white; border-radius: var(--radius); padding: 36px;
  box-shadow: var(--shadow); transition: all var(--transition);
  border: 1px solid var(--border);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-icon {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  background: var(--cream); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-light); font-size: 0.95rem; }

/* --- Pricing Cards --- */
.pricing-card {
  background: white; border-radius: var(--radius); padding: 40px 32px;
  text-align: center; box-shadow: var(--shadow); border: 2px solid var(--border);
  transition: all var(--transition); position: relative;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured { border-color: var(--primary); }
.pricing-card.featured::before {
  content: 'Most Popular'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white; padding: 4px 20px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.pricing-amount {
  font-family: var(--font-heading); font-size: 3rem; font-weight: 700;
  color: var(--dark); margin: 20px 0 8px;
}
.pricing-amount span { font-size: 1.2rem; color: var(--text-light); font-weight: 400; }
.pricing-features { list-style: none; margin: 28px 0; text-align: left; }
.pricing-features li {
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 0.95rem; color: var(--text-light); display: flex; align-items: center; gap: 10px;
}
.pricing-features li::before { content: '✓'; color: var(--primary); font-weight: 700; }

/* --- Schedule / Timetable --- */
.schedule-table {
  width: 100%; border-collapse: collapse; background: white;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.schedule-table th {
  background: var(--primary); color: white; padding: 16px 20px;
  text-align: left; font-weight: 600; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.schedule-table td {
  padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 0.95rem;
}
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:hover td { background: var(--cream); }
.class-tag {
  display: inline-block; padding: 3px 10px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 600;
}
.class-tag-vinyasa { background: #E8F0E4; color: var(--primary-dark); }
.class-tag-hot { background: #FDE8D8; color: #B8632A; }
.class-tag-yin { background: #E4E8F0; color: #4A5B8A; }
.class-tag-pilates { background: #F0E4EC; color: #8A4A6B; }
.class-tag-power { background: #F0EDE4; color: #6B5B3A; }
.class-tag-restorative { background: #E4F0EE; color: #3A6B5B; }

/* --- Testimonials --- */
.testimonial {
  background: white; border-radius: var(--radius); padding: 36px;
  box-shadow: var(--shadow); position: relative; border: 1px solid var(--border);
}
.testimonial::before {
  content: '"'; font-family: var(--font-heading); font-size: 4rem;
  color: var(--primary-light); position: absolute; top: 16px; left: 28px; line-height: 1;
}
.testimonial p { font-style: italic; color: var(--text-light); margin-top: 16px; padding-left: 8px; }
.testimonial-author { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 1rem;
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }

/* --- Stats Bar --- */
.stats-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px; padding: 48px 0;
}
.stat { text-align: center; }
.stat-number {
  font-family: var(--font-heading); font-size: 2.8rem;
  font-weight: 700; color: var(--primary);
}
.stat-label { font-size: 0.9rem; color: var(--text-light); margin-top: 4px; }

/* --- Blog Cards --- */
.blog-card {
  background: white; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: all var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-image {
  height: 200px; background: linear-gradient(135deg, var(--primary-light), var(--cream));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.blog-card-body { padding: 28px; }
.blog-card-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; }
.blog-card-body h3 { font-size: 1.2rem; margin-bottom: 10px; }
.blog-card-body p { font-size: 0.9rem; color: var(--text-light); }
.blog-card-link {
  display: inline-block; margin-top: 16px; font-weight: 600;
  color: var(--primary); font-size: 0.9rem;
}

/* --- Contact / Map Section --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--cream); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 14px 18px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-family: var(--font-body);
  font-size: 0.95rem; transition: border-color var(--transition);
  background: white;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--primary);
}
.contact-form label {
  display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 6px;
}
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 80px 0; text-align: center; color: white;
}
.cta-banner h2 { color: white; margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 500px; margin: 0 auto 32px; }

/* --- Footer --- */
.site-footer {
  background: var(--dark); color: rgba(255,255,255,0.7); padding: 80px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px;
}
.footer-brand .logo { color: white; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.8; max-width: 300px; }
.footer-heading {
  color: white; font-family: var(--font-body); font-weight: 600;
  font-size: 0.95rem; margin-bottom: 20px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-links a:hover { color: var(--secondary-light); }
.footer-bottom {
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem;
}
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08); display: flex;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); color: white; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: white;
    padding: 24px; gap: 16px; box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
  }
  .mobile-toggle { display: block; }
  .hero { padding: 130px 0 70px; }
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
}

/* --- Utilities --- */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* --- Animations --- */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 120px 0 20px; font-size: 0.85rem; color: var(--text-muted);
}
.breadcrumbs a { color: var(--primary); }
.breadcrumbs span { margin: 0 8px; }

/* --- Page Header (for inner pages) --- */
.page-header {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--light) 100%);
  text-align: center;
}
.page-header p { color: var(--text-light); font-size: 1.1rem; margin-top: 12px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* --- FAQ Accordion --- */
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 12px; overflow: hidden; background: white;
}
.faq-question {
  width: 100%; padding: 20px 24px; background: none; border: none;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  text-align: left; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center; color: var(--dark);
}
.faq-question:hover { background: var(--cream); }
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--primary); transition: transform var(--transition); }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: 0 24px 20px; color: var(--text-light); display: none; font-size: 0.95rem; }
.faq-item.open .faq-answer { display: block; }

/* --- Blog Article --- */
.blog-article { max-width: 720px; margin: 0 auto; }
.blog-article h1 { margin-bottom: 16px; }
.blog-article-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 32px; }
.blog-article-content p { margin-bottom: 20px; }
.blog-article-content h2 { margin: 40px 0 16px; font-size: 1.6rem; }
.blog-article-content h3 { margin: 32px 0 12px; font-size: 1.3rem; }
.blog-article-content ul, .blog-article-content ol { margin: 16px 0; padding-left: 24px; }
.blog-article-content li { margin-bottom: 8px; color: var(--text-light); }
