/* ---------- CSS RESET & BASE ---------- */

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  color: #1d1d1f;
  background-color: #ffffff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  color: #111111;
  margin-top: 0;
}

p {
  margin: 0 0 0.75rem 0;
}

ul {
  padding-left: 1.2rem;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f7f5f2;
  --bg-accent: #fdf5ec;
  --text-main: #1d1d1f;
  --text-muted: #6b6b6f;
  --accent: #e36b4d;
  --accent-dark: #c5573b;
  --border-soft: #e3ded5;
  --shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.06);
  --radius: 12px;
}

/* ---------- LAYOUT HELPERS ---------- */

.section {
  padding: 2rem 1.5rem;
}

.section-accent {
  padding: 4rem 1.5rem;
  background: var(--bg-accent);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.center {
  text-align: center;
}

/* ---------- NAVBAR ---------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* right side: nav links + icons + hamburger */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* WhatsApp + phone icons */
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
}

.nav-icon:hover {
  color: var(--accent);
}

/* mobile dropdown menu */
.nav-links {
  list-style: none;
  display: flex; /* flex always; we hide via height */
  flex-direction: column;
  gap: 0.75rem;
  position: absolute;
  top: 100%;
  right: 1.5rem;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  box-shadow: var(--shadow-soft);
  margin: 0;

  /* slide-down behaviour */
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
}

.nav-links li a {
  font-size: 0.95rem;
  color: var(--text-main);
}

.nav-links li a.active,
.nav-links li a:hover {
  color: var(--accent);
}

.nav-links.open {
  max-height: 400px; /* enough for all items; adjust if needed */
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Hamburger button */

.nav-toggle {
  border: none;
  background: none;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #111111;
  border-radius: 999px;
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: left;
  padding: 4rem 1.5rem;
  background-image: url("https://picsum.photos/1600/900?blur=3&random=20");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(8, 8, 10, 0.95),
    rgba(8, 8, 10, 0.85)
  );
}
.hero-label-1 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 600;

  /* Rainbow gradient text */
  background: linear-gradient(
    90deg,
    #ff6b6b,
    #1dd1a1,
    #54a0ff,
    #5f27cd
  ) !important;

  background-clip: text !important;
  -webkit-background-clip: text !important;

  color: transparent !important;
  -webkit-text-fill-color: transparent !important;

  position: relative;
  z-index: 5; /* ensure overlay isn't covering text */
}
.hero-content {
  position: relative;
  max-width: 650px;
  z-index: 1;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.hero h1 {
  font-size: 2.1rem;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 0.98rem;
  max-width: 520px;
  color: #f3f3f5;
}

.hero-ctas {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.06s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(227, 107, 77, 0.4);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
  background: #ffffff;
  color: var(--text-main);
  border-color: #d8d3c9;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- SECTIONS ---------- */

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header p {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-muted);
}

/* About preview */

.about-preview-body {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-main);
}

/* Featured work */

.featured-work {
  background: var(--bg-soft);
}

.featured-gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 1.5rem;
}

.featured-item {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.featured-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.featured-item:hover img {
  transform: scale(1.04);
}

/* Classes CTA */

.classes-cta {
  display: grid;
  gap: 2rem;
}

.classes-cta-text p {
  color: var(--text-muted);
}

.classes-cta-list {
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.classes-cta-card {
  background: #fffaf4;
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.classes-cta-card .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

/* About page */

.about-page .about-main {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.about-photo img {
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
}

.about-text p {
  color: var(--text-muted);
}

/* Testimonials */

.testimonials {
  margin-top: 2rem;
}

.testimonial-grid {
  display: grid;
  gap: 1.5rem;
}

.testimonial {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid #ebe4d9;
}

.testimonial-author {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- GALLERY ---------- */

.gallery-page .section-header p {
  color: var(--text-muted);
}

.gallery-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  font-size: 0.9rem;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.sort {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.sort select {
  margin-left: 0.3rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  font-size: 0.9rem;
}

.gallery-grid {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: minmax(0, 1fr);
}

.gallery-item {
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid #ebe4d9;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.gallery-item h3 {
  font-size: 1rem;
  margin: 0.9rem 1rem 0.1rem 1rem;
}

.gallery-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 1rem 0.9rem 1rem;
}

/* ---------- CLASSES PAGE ---------- */

.class-section {
  margin-bottom: 3rem;
}

.class-section h2 {
  margin-bottom: 1rem;
}

.class-grid {
  display: grid;
  gap: 1.5rem;
}

.class-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.class-card h3 {
  margin-bottom: 0.5rem;
}

.class-card p {
  color: var(--text-muted);
}

.class-card ul {
  margin-top: 0.75rem;
  color: var(--text-main);
}

.schedule-section {
  margin-top: 2rem;
}

.calendar-wrapper {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

/* ---------- CONTACT PAGE ---------- */

.contact-page .contact-info {
  margin-bottom: 2.5rem;
}

.contact-info p {
  color: var(--text-main);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.social-links a {
  font-size: 0.9rem;
  color: var(--accent);
}

.contact-form-embed .form-wrapper {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

/* ---------- FOOTER ---------- */

.footer {
  padding: 1.5rem 1.5rem 2rem 1.5rem;
  background: #111111;
  color: #f5f5f5;
  margin-top: 3rem;
}

.footer-inner {
  text-align: center;
  font-size: 0.9rem;
}

.footer-sub {
  margin-top: 0.2rem;
  color: #c5c5c5;
}

/* ---------- RESPONSIVE ---------- */

@media (min-width: 640px) {
  .featured-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 1.4rem;
    padding: 0;
    box-shadow: none;
    background: transparent;

    /* override mobile dropdown behaviour */
    overflow: visible;
    max-height: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-links li a {
    font-size: 0.95rem;
  }

  .hero {
    padding: 6rem 1.5rem;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .about-page .about-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    align-items: center;
  }

  .classes-cta {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
  }

  .gallery-controls {
    flex-direction: row;
    align-items: center;
  }

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

  .class-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .featured-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hide-on-mobile {
    display: block;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }
}
