@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #F5EFEB; /* Warm sand/cream background */
  --bg-secondary: #3D2F28; /* Deep espresso / chocolate brown */
  --text-primary: #2C221E; /* Dark charcoal */
  --text-secondary: #8C786E; /* Muted bronze */
  --accent-primary: #DCCBB5; /* Soft warm gold / beige */
  --accent-secondary: #C5B29B; /* Deeper warm gold */
  
  --glass-bg: rgba(245, 239, 235, 0.7);
  --glass-border: rgba(61, 47, 40, 0.08); /* Espresso border */
  --glass-shadow: 0 8px 32px 0 rgba(61, 47, 40, 0.05); /* very soft shadow */
  
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Glassmorphism Navbar */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--bg-secondary); /* Elegant espresso */
  position: relative;
  display: inline-block;
}

.logo::before, .logo::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--bg-secondary);
  left: 0;
}

.logo::before {
    top: -4px;
}
.logo::after {
    bottom: -4px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    margin-left: auto; /* align right */
    width: 30px;
    height: 24px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--bg-secondary);
    display: block;
}

/* Show hamburger on mobile */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    nav ul {
        display: none; /* hide by default */
    }
    .nav-open nav ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--glass-bg);
        padding: 1rem;
        gap: 1rem;
        z-index: 10;
    }
    .desktop-only {
        display: none;
    }
}

@media (min-width: 769px) {
  nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
  }
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: var(--bg-secondary);
  transition: var(--transition-smooth);
}

nav a:hover, nav a.active {
  color: var(--bg-secondary);
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

.btn-primary {
  background: var(--bg-secondary);
  color: var(--bg-primary);
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 5px; /* Chic square-ish boutique style */
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(61, 47, 40, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #2D221D; /* Even darker espresso */
  box-shadow: 0 6px 20px rgba(61, 47, 40, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--bg-secondary);
  border: 1px solid var(--bg-secondary);
  padding: 0.8rem 1.8rem;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-outline:hover {
  background: rgba(61, 47, 40, 0.05); /* Slight espresso tint */
}

/* Sections */
section {
  padding: 6rem 5%;
  position: relative;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.hero-bg-blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.7;
  animation: float 10s infinite alternate ease-in-out;
}

.blob-1 {
  top: 10%;
  left: 15%;
  width: 450px;
  height: 450px;
  background: var(--accent-primary); /* Soft gold */
}

.blob-2 {
  bottom: 10%;
  right: 15%;
  width: 550px;
  height: 550px;
  background: #EBE0D2; /* Very light subtle contrast */
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(25px, 40px) scale(1.05); }
}

.hero-content {
  max-width: 650px;
  z-index: 1;
}

h1 {
  font-size: 4.2rem;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: var(--bg-secondary);
}

.gradient-text {
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

/* Classes Section */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.class-card {
  background: #FFFFFF;
  border: 1px solid var(--glass-border);
  border-radius: 5px; /* Chic square */
  padding: 2.5rem 2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(61, 47, 40, 0.03);
}

.class-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-secondary);
  transform: translateX(-100%);
  transition: var(--transition-smooth);
}

.class-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(61, 47, 40, 0.08);
}

.class-card:hover::before {
  transform: translateX(0);
}

.class-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--bg-secondary);
}

.class-desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

/* Read More */
.more-text {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--bg-secondary);
  font-weight: 600;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  padding: 0;
  text-decoration: underline;
  transition: var(--transition-fast);
}

.read-more-btn:hover {
  color: var(--text-primary);
}

/* Scheduling Section */
.schedule-container {
  background: #FFFFFF;
  border: 1px solid var(--glass-border);
  border-radius: 5px;
  padding: 3rem;
  margin-top: 3rem;
  box-shadow: 0 10px 30px rgba(61, 47, 40, 0.05);
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
}

.date-selector {
  display: flex;
  gap: 1rem;
}

.date-btn {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: var(--transition-fast);
  font-weight: 500;
}

.date-btn.active, .date-btn:hover {
  background: rgba(61, 47, 40, 0.05);
  color: var(--bg-secondary);
}

.session-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.session-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: var(--bg-primary);
  border-radius: 5px;
  border: 1px solid var(--glass-border);
  transition: var(--transition-fast);
}

.session-item:hover {
  border-color: var(--bg-secondary);
  background: #FFFFFF;
  box-shadow: 0 4px 15px rgba(61, 47, 40, 0.04);
}

.session-time {
  font-weight: 600;
  color: var(--bg-secondary);
  font-size: 1.2rem;
  width: 100px;
}

.session-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.session-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.session-action .btn-primary {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}

/* API integration state hints */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Instagram Carousel */
.carousel-container {
  position: relative;
  max-width: 1050px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 10px 30px rgba(61, 47, 40, 0.08);
  background: var(--bg-primary);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .carousel-slide {
    min-width: 33.3333%; /* 3 items side-by-side on desktop */
  }
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.carousel-slide:hover img {
  transform: scale(1.05); /* Slight zoom hover */
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--bg-secondary);
  font-size: 1.2rem;
  width: 45px;
  height: 45px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  backdrop-filter: blur(5px);
}

.carousel-btn:hover {
  background: var(--bg-secondary);
  color: var(--bg-primary);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 3.2rem; }
  nav ul { display: none; }
  .session-item { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .session-time { width: auto; }
}
