/* CSS Custom Properties */
:root {
  --bg: #ffffff;
  --bg-secondary: #f8f9fa;
  --text: #1a1a1a;
  --text-muted: #6c757d;
  --brand: #8b7355;
  --brand-weak: #c4b5a0;
  --brand-light: #f5f3f0;
  --accent: #d4a574;
  --border: #e9ecef;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.15);
  
  /* Spacing scale (4px base) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  
  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: clamp(16px, 1vw, 18px);
  --font-size-sm: clamp(14px, 0.875vw, 16px);
  --font-size-lg: clamp(18px, 1.125vw, 20px);
  --font-size-xl: clamp(24px, 1.5vw, 28px);
  --font-size-2xl: clamp(32px, 2vw, 40px);
  --font-size-3xl: clamp(40px, 2.5vw, 56px);
  
  /* Transitions */
  --transition: 0.3s ease;
  --transition-fast: 0.15s ease;
}

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

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

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg);
  box-shadow: 0 2px 8px var(--shadow);
  transition: box-shadow var(--transition);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  position: relative;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex: 1;
  justify-content: center;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.nav__toggle-line {
  width: 100%;
  height: 3px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(2) {
  opacity: 0;
}

.nav__menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.nav__menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav__mobile-controls {
  display: none;
  align-items: center;
  gap: var(--space-md);
}

.nav__social-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
  padding: var(--space-xs);
}

.nav__social-mobile:hover,
.nav__social-mobile:focus {
  color: var(--brand);
  outline: none;
}

.nav__logo {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  transition: color var(--transition);
  z-index: 1002;
  position: relative;
}

.nav__logo:hover,
.nav__logo:focus {
  color: var(--accent);
  outline: none;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.nav__link {
  color: var(--text);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
  padding: var(--space-xs) 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link:focus {
  color: var(--brand);
  outline: none;
}

.nav__link:hover::after,
.nav__link:focus::after,
.nav__link.active::after {
  width: 100%;
}

.nav__link.active {
  color: var(--brand);
}

.nav__socials {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__social {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
  padding: var(--space-xs);
}

.nav__social:hover,
.nav__social:focus {
  color: var(--brand);
  outline: none;
}

/* Hero Section */
.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  max-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--bg);
  padding: var(--space-xl);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  color: var(--bg);
  animation: bounce 2s infinite;
  z-index: 2;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--brand);
  color: var(--bg);
}

.btn--primary:hover,
.btn--primary:focus {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-hover);
  outline: none;
}

.btn--secondary {
  background-color: transparent;
  color: var(--bg);
  border-color: var(--bg);
}

.btn--secondary:hover,
.btn--secondary:focus {
  background-color: var(--bg);
  color: var(--text);
  outline: none;
}


/* Sections */
.section {
  padding: var(--space-4xl) 0;
}

.section--classes {
  background-color: var(--bg-secondary);
}

.section--benefits {
  background-color: var(--bg);
}

.section--instructor {
  background-color: var(--bg-secondary);
}

.section--schedule {
  background-color: var(--bg);
}

.section--gallery {
  background-color: var(--bg-secondary);
}

.section--faq {
  background-color: var(--bg);
}

.section--contact {
  background-color: var(--bg-secondary);
}

.section__title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-md);
  color: var(--text);
}

.section__subtitle {
  font-size: var(--font-size-lg);
  text-align: center;
  color: var(--text-muted);
  margin-bottom: var(--space-2xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Classes Grid */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.class-card {
  background-color: var(--bg);
  border-radius: 16px;
  padding: var(--space-xl);
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
}

.class-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.class-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-hover);
}

.class-card__badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background-color: var(--brand);
  color: var(--bg);
  padding: var(--space-xs) var(--space-md);
  border-radius: 20px;
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.class-card__title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text);
}

.class-card__description {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.benefit-item {
  text-align: center;
  padding: var(--space-xl);
  opacity: 0;
  transform: translateY(20px);
}

.benefit-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.benefit-item__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-item__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.benefit-item__description {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Instructor Section */
.instructor {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-2xl);
  align-items: center;
  margin-top: var(--space-2xl);
}

.instructor__image-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.instructor__image {
  width: 100%;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1;
  box-shadow: 0 8px 24px var(--shadow);
}

.instructor__content {
  opacity: 0;
  transform: translateX(-20px);
}

.instructor__content.revealed {
  opacity: 1;
  transform: translateX(0);
}

.instructor__bio {
  margin-top: var(--space-lg);
}

.instructor__bio p {
  margin-bottom: var(--space-md);
  color: var(--text-muted);
  line-height: 1.8;
}

.instructor__bio p:last-child {
  margin-bottom: var(--space-xl);
}

/* Pricing */
.pricing__note {
  margin-top: var(--space-lg);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.pricing-card {
  background-color: var(--bg);
  border-radius: 16px;
  padding: var(--space-xl);
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  text-align: center;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-hover);
}

.pricing-card--featured {
  border: 2px solid var(--brand);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--brand);
  color: var(--bg);
  padding: var(--space-xs) var(--space-md);
  border-radius: 20px;
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.pricing-card__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text);
}

.pricing-card__price {
  margin-bottom: var(--space-lg);
}

.pricing-card__amount {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--brand);
}

.pricing-card__period {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.pricing-card__features {
  list-style: none;
  text-align: left;
}

.pricing-card__features li {
  padding: var(--space-sm) 0;
  color: var(--text-muted);
  position: relative;
  padding-left: var(--space-lg);
}

.pricing-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.gallery-item {
  position: relative;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4/3;
  opacity: 0;
  transform: scale(0.95);
}

.gallery-item.revealed {
  opacity: 1;
  transform: scale(1);
}

.gallery-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-item:hover .gallery-item__image {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.lightbox[hidden] {
  display: none;
}

.lightbox:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.lightbox__content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--bg);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition);
  z-index: 2001;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.lightbox__close {
  top: var(--space-lg);
  right: var(--space-lg);
}

.lightbox__prev {
  left: var(--space-lg);
}

.lightbox__next {
  right: var(--space-lg);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: var(--space-2xl) auto 0;
}

.faq-item {
  background-color: var(--bg);
  border-radius: 8px;
  margin-bottom: var(--space-md);
  box-shadow: 0 2px 8px var(--shadow);
  overflow: hidden;
}

.faq-item__question {
  width: 100%;
  padding: var(--space-lg);
  background: none;
  border: none;
  text-align: left;
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  transition: background-color var(--transition);
}

.faq-item__question:hover,
.faq-item__question:focus {
  background-color: var(--brand-light);
  outline: none;
}

.faq-item__icon {
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item__question[aria-expanded="true"] .faq-item__icon {
  transform: rotate(180deg);
}

.faq-item__answer {
  padding: 0 var(--space-lg);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition), padding var(--transition);
}

.faq-item__answer:not([hidden]) {
  padding: 0 var(--space-lg) var(--space-lg);
  max-height: 500px;
}

.faq-item__answer p {
  color: var(--text-muted);
  line-height: 1.8;
}

/* Contact */
.contact-quick {
  max-width: 600px;
  margin: var(--space-2xl) auto 0;
  text-align: center;
}

.contact-quick__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

/* Footer */
.footer {
  background-color: var(--text);
  color: var(--bg);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.footer__title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.footer__subtitle {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.footer__text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: var(--space-sm);
}

.footer__links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__links a:hover,
.footer__links a:focus {
  color: var(--bg);
  outline: none;
}

.footer__socials {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition);
}

.footer__social:hover,
.footer__social:focus {
  color: var(--bg);
  outline: none;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--space-lg);
  text-align: center;
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-size-sm);
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 48px;
  height: 48px;
  background-color: var(--brand);
  color: var(--bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--shadow);
  transition: all var(--transition);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
}

.scroll-top:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover,
.scroll-top:focus {
  background-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 6px 16px var(--shadow-hover);
  outline: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .instructor {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .instructor__image-wrapper {
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .nav__mobile-controls {
    display: flex;
  }
  
  .nav__toggle {
    display: flex;
  }
  
  .nav__menu-overlay {
    display: block;
  }
  
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: var(--space-3xl) var(--space-xl);
    box-shadow: -4px 0 24px var(--shadow);
    transition: right var(--transition);
    z-index: 1000;
    overflow-y: auto;
    gap: var(--space-xl);
  }
  
  .nav__menu:not([aria-hidden="true"]) {
    right: 0;
  }
  
  .nav__list {
    flex-direction: column;
    gap: var(--space-lg);
    width: 100%;
    align-items: flex-start;
  }
  
  .nav__link {
    font-size: var(--font-size-base);
    padding: var(--space-sm) 0;
    width: 100%;
    display: block;
  }
  
  .nav__link::after {
    display: none;
  }
  
  .nav__link:hover,
  .nav__link:focus {
    background-color: var(--brand-light);
    padding-left: var(--space-sm);
    border-radius: 4px;
  }
  
  .nav__socials {
    width: 100%;
    justify-content: flex-start;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
  }
  
  .hero {
    height: 60vh;
    min-height: 400px;
  }
  
  .hero__title {
    font-size: var(--font-size-2xl);
  }
  
  .hero__subtitle {
    font-size: var(--font-size-base);
  }
  
  .classes-grid {
    grid-template-columns: 1fr;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .lightbox__prev,
  .lightbox__next {
    display: none;
  }
  
  .scroll-top {
    bottom: var(--space-md);
    right: var(--space-md);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .nav__menu {
    max-width: 100%;
  }
  
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .contact-quick__actions {
    flex-direction: column;
  }
  
  .contact-quick__actions .btn {
    width: 100%;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .scroll-top,
  .hero__scroll-indicator {
    display: none;
  }
  
  .section {
    page-break-inside: avoid;
  }
}

