/* ============================================
   KYNETON PILATES STUDIO — Global Stylesheet
   Brand: #EC8F5E (terracotta) on white
   Font: Poppins
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #EC8F5E;
  --primary-dark: #d47a4a;
  --primary-light: #EFB495;
  --primary-pale: #fdf5f0;
  --accent-yellow: #EBEF95;
  --black: #1a1a1a;
  --dark: #2d2d2d;
  --gray-900: #1a1a1a;
  --gray-700: #444;
  --gray-500: #777;
  --gray-300: #bbb;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --font: 'Poppins', sans-serif;
  --max-width: 1200px;
  --nav-height: 80px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.1);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
input, textarea, select { font-family: var(--font); }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.01em; }
h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { color: var(--gray-700); }

.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .75rem;
}

.section-title { margin-bottom: 1rem; }
.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 600px;
}

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

section {
  padding: 100px 0;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: .95rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition);
  letter-spacing: .02em;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(236,143,94,.35);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
}
.btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
}

.btn-sm { padding: 10px 24px; font-size: .85rem; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,.05);
  transition: box-shadow var(--transition);
}
.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo svg {
  width: 36px;
  height: 36px;
}
.nav-logo-text {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
  line-height: 1.1;
}
.nav-logo-text small {
  display: block;
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--primary-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 16px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: 8px;
  transition: all var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-pale);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown > a::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--transition);
}
.nav-dropdown:hover > a::after {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  padding-top: 16px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: .88rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* Nav CTA */
.nav-cta {
  margin-left: 8px;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Sections --- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-home {
  background: linear-gradient(135deg, var(--white) 55%, var(--primary-pale) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  margin-bottom: 1.25rem;
}
.hero-content h1 span {
  color: var(--primary);
}

.hero-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}
.hero-image-main {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-image-main img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}
.hero-image-float {
  position: absolute;
  bottom: -30px;
  left: -40px;
  width: 200px;
  height: 200px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}
.hero-image-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Decorative shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: .06;
  pointer-events: none;
}
.hero-shape-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -100px;
  right: -100px;
}
.hero-shape-2 {
  width: 250px;
  height: 250px;
  background: var(--primary);
  bottom: 60px;
  left: -80px;
}

/* Page hero (shorter) */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + 60px) 0 60px;
  background: linear-gradient(135deg, var(--primary-pale) 0%, var(--white) 100%);
  overflow: hidden;
}
.page-hero h1 { margin-bottom: .75rem; }
.page-hero p {
  font-size: 1.1rem;
  max-width: 600px;
}
.page-hero .hero-shape {
  opacity: .08;
}

.page-hero-center {
  text-align: center;
}
.page-hero-center p {
  margin-left: auto;
  margin-right: auto;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid rgba(0,0,0,.06);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.card-image {
  height: 240px;
  overflow: hidden;
}
.card-image a {
  display: block;
  width: 100%;
  height: 100%;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.card:hover .card-image img {
  transform: scale(1.05);
}
.card-body {
  padding: 28px;
}
.card-body h3 {
  margin-bottom: .5rem;
}
.card-body p {
  font-size: .95rem;
  margin-bottom: 1.25rem;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

/* --- Feature Row --- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.feature-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.feature-content h2 { margin-bottom: 1rem; }
.feature-content p { margin-bottom: 1.5rem; }

/* --- Benefits List --- */
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 1.5rem 0;
}
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.benefit-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: var(--primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.benefit-icon svg {
  width: 20px;
  height: 20px;
}
.benefit-text h4 {
  margin-bottom: .2rem;
  color: var(--black);
}
.benefit-text p {
  font-size: .9rem;
  line-height: 1.6;
}

/* --- Stats --- */
.stats-section {
  background: var(--primary);
  padding: 60px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item h3 {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: .25rem;
}
.stat-item p {
  color: rgba(255,255,255,.8);
  font-size: .95rem;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--primary);
  border-radius: 24px;
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 {
  color: var(--white);
  margin-bottom: .75rem;
}
.cta-banner p {
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner .cta-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.cta-shape-1 { width: 300px; height: 300px; top: -80px; right: -60px; }
.cta-shape-2 { width: 200px; height: 200px; bottom: -60px; left: -40px; }

/* --- Pricing Cards --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.pricing-card {
  background: var(--white);
  border: 2px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}
.pricing-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 8px 40px rgba(236,143,94,.2);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 50px;
}
.pricing-card h3 {
  margin-bottom: .5rem;
}
.pricing-price {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .25rem;
}
.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--gray-500);
}
.pricing-desc {
  font-size: .9rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
}
.pricing-features {
  text-align: left;
  margin-bottom: 2rem;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: .9rem;
  color: var(--gray-700);
}
.pricing-features li::before {
  content: '';
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--primary-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23EC8F5E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* --- Timetable --- */
.timetable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.timetable thead th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: .85rem;
  padding: 14px 16px;
  text-align: left;
  letter-spacing: .03em;
}
.timetable tbody td {
  padding: 14px 16px;
  font-size: .9rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}
.timetable tbody tr:hover {
  background: var(--primary-pale);
}
.timetable tbody tr:last-child td {
  border-bottom: none;
}
.class-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: .75rem;
  font-weight: 600;
  border-radius: 50px;
  background: #dceefb;
  color: #2a6fb0;
}
.class-tag.yoga { background: #e8d8f0; color: #7b4a9e; }
.class-tag.hot-mat { background: #f0f4d4; color: #7a8020; }
.class-tag.yoga::after,
.class-tag.hot-mat::after { content: ' \01F525'; }

/* --- Membership Tabs --- */
.membership-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 40px auto 0;
  max-width: 680px;
  background: var(--gray-100);
  border-radius: 50px;
  padding: 5px;
}
.membership-tab {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border-radius: 50px;
  transition: all .3s ease;
}
.membership-tab:hover {
  color: var(--gray-900);
}
.membership-tab.active {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(236,143,94,.3);
}

/* Panels */
.membership-panel {
  display: none;
  margin-top: 40px;
}
.membership-panel.active {
  display: block;
}
.membership-panel-header {
  text-align: center;
  margin-bottom: 36px;
}
.membership-panel-header h3 {
  font-size: 1.6rem;
  margin-bottom: .5rem;
  color: var(--gray-900);
}
.membership-panel-header p {
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto;
}

/* Sub-headings */
.membership-sub-heading {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: .35rem;
  padding-left: 4px;
}
.membership-sub-desc {
  font-size: .88rem;
  color: var(--gray-500);
  margin-bottom: 16px;
  padding-left: 4px;
}

/* Membership Tables */
.membership-table-wrap {
  margin-bottom: 40px;
  overflow-x: auto;
}
.membership-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.membership-table thead th {
  background: var(--gray-900);
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 14px 20px;
  text-align: left;
  white-space: nowrap;
}
.membership-table thead th:last-child {
  text-align: center;
  width: 80px;
}
.membership-table tbody td {
  padding: 16px 20px;
  font-size: .92rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.membership-table tbody tr:last-child td {
  border-bottom: none;
}
.membership-table tbody td:last-child {
  text-align: center;
}
.membership-table tbody tr:hover {
  background: rgba(236,143,94,.03);
}

/* Highlight row */
.highlight-row {
  background: rgba(236,143,94,.06) !important;
}
.highlight-row td {
  font-weight: 500;
}

/* Value badge */
.value-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: var(--primary);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 50px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Per-week label */
.per-week {
  font-size: .8rem;
  font-weight: 400;
  color: var(--gray-500);
}

/* Note below table */
.membership-note {
  font-size: .78rem;
  color: var(--gray-400);
  font-style: italic;
  margin-top: 8px;
  padding-left: 4px;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 48px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-success {
  background: var(--gray-50, #fafafa);
  border-radius: var(--radius-md);
  animation: fadeIn .5s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--black);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 18px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--dark);
  transition: border-color var(--transition);
  background: var(--white);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
}
.form-group textarea {
  resize: vertical;
  min-height: 140px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: var(--primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.contact-info-icon svg {
  width: 22px;
  height: 22px;
}
.contact-info-text h4 {
  margin-bottom: .2rem;
  color: var(--black);
}
.contact-info-text p {
  font-size: .9rem;
  color: var(--gray-500);
}

.map-placeholder {
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  height: 280px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.gallery-item:hover img {
  transform: scale(1.08);
}

/* --- Instagram / Social --- */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 1rem;
}
.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
.social-link svg { width: 20px; height: 20px; }

/* --- Footer --- */
.footer {
  background: var(--black);
  color: rgba(255,255,255,.7);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}
.footer-brand h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: .5rem;
}
.footer-brand h3 small {
  display: block;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--primary-light);
}
.footer-brand p {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 1.25rem;
  max-width: 300px;
}

.footer h4 {
  color: var(--white);
  font-size: .9rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--primary-light); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

.footer .social-links .social-link {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
}
.footer .social-links .social-link:hover {
  background: var(--primary);
  color: var(--white);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger */
.stagger-1 { transition-delay: .1s; }
.stagger-2 { transition-delay: .2s; }
.stagger-3 { transition-delay: .3s; }
.stagger-4 { transition-delay: .4s; }

/* --- Info Boxes / Icon Grid --- */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.icon-box {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(0,0,0,.06);
  transition: all var(--transition);
}
.icon-box:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.icon-box-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary);
}
.icon-box-icon svg {
  width: 28px;
  height: 28px;
}
.icon-box h4 {
  margin-bottom: .5rem;
}
.icon-box p {
  font-size: .9rem;
  line-height: 1.6;
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow);
}
.testimonial-stars {
  color: var(--primary);
  margin-bottom: 16px;
  font-size: 1.1rem;
  letter-spacing: 2px;
}
.testimonial-card p {
  font-size: .95rem;
  font-style: italic;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}
.testimonial-author {
  font-weight: 600;
  font-size: .9rem;
  color: var(--black);
}

/* --- FAQ --- */
.faq-list {
  max-width: 720px;
  margin: 48px auto 0;
}
.faq-item {
  border-bottom: 1px solid var(--gray-100);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  text-align: left;
  cursor: pointer;
}
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform var(--transition);
}
.faq-item.open .faq-question::after {
  content: '−';
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.faq-answer p {
  padding-bottom: 20px;
  font-size: .95rem;
}
.faq-item.open .faq-answer {
  max-height: 300px;
}

/* --- Two-Col Content --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.rounded-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.rounded-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Class Detail Sections --- */
.class-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 48px 0;
}
.class-info-box {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius);
  background: var(--primary-pale);
}
.class-info-box .info-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .25rem;
}
.class-info-box .info-label {
  font-size: .8rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(236,143,94,.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
.back-to-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-inner,
  .feature-row,
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feature-row.reverse,
  .two-col.reverse { direction: ltr; }

  .services-grid,
  .pricing-grid,
  .icon-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

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

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

@media (max-width: 768px) {
  :root {
    --nav-height: 68px;
  }

  section { padding: 60px 0; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-height));
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 0;
    overflow-y: auto;
    z-index: 9999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; font-size: 1rem; }
  .nav-cta { margin-left: 0; margin-top: 8px; }

  .nav-dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    padding-left: 16px;
    opacity: 1 !important;
    visibility: visible !important;
    display: none;
    background: var(--primary-pale) !important;
    border-radius: var(--radius-sm);
    margin-top: 4px;
    min-width: 0;
    transition: none !important;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    display: block !important;
  }
  .nav-dropdown-menu a {
    color: var(--gray-700) !important;
    white-space: normal;
  }
  .nav {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .nav-links {
    background: var(--white);
  }

  .nav-toggle { display: flex; }

  .hero { min-height: auto; padding-top: calc(var(--nav-height) + 40px); padding-bottom: 40px; }
  .hero-image-float { display: none; }

  .services-grid,
  .pricing-grid,
  .icon-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .cta-banner {
    padding: 40px 24px;
    border-radius: 16px;
  }

  /* Membership tabs mobile */
  .membership-tabs {
    flex-direction: column;
    border-radius: 12px;
    max-width: 100%;
  }
  .membership-tab {
    border-radius: 8px;
    padding: 14px 16px;
    font-size: .88rem;
  }
  .membership-table thead {
    display: none;
  }
  .membership-table,
  .membership-table tbody,
  .membership-table tr,
  .membership-table td {
    display: block;
    width: 100%;
  }
  .membership-table tbody tr {
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
  }
  .membership-table tbody tr:last-child {
    margin-bottom: 0;
  }
  .membership-table tbody td {
    padding: 6px 0;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .membership-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--gray-400);
    margin-right: 12px;
    flex-shrink: 0;
  }
  .membership-table tbody td:first-child {
    padding-bottom: 8px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--gray-100);
  }
  .membership-table tbody td:first-child::before {
    display: none;
  }
  .membership-table tbody td:last-child {
    padding-top: 10px;
    justify-content: stretch;
  }
  .membership-table tbody td:last-child::before {
    display: none;
  }
  .membership-table tbody td:last-child .btn {
    width: 100%;
  }
  .highlight-row {
    border-color: var(--primary-light) !important;
    box-shadow: 0 2px 12px rgba(236,143,94,.12) !important;
  }

  .class-info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .timetable { font-size: .85rem; }
  .timetable thead th,
  .timetable tbody td { padding: 10px 12px; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .btn-lg { padding: 16px 32px; font-size: 1rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .class-info-grid { grid-template-columns: 1fr; }
}
