/* ==========================================================
   Theme — change colors and fonts here
   ========================================================== */
:root {
  --cream: #f7f1e8;
  --cream-dark: #efe5d6;
  --paper: #fffbf5;
  --ink: #2b1d14;
  --ink-soft: #5c4a3d;
  --gold: #b08a4f;
  --gold-dark: #8c6a35;
  --espresso: #22160f;
  --line: #e2d5c2;
  --whatsapp: #25d366;

  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 29, 20, 0.08);
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .container { padding: 0 32px; }
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.8em;
}

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.6em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--gold-dark); }

.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

.btn-whatsapp { background: var(--whatsapp); color: #0b2e17; }
.btn-whatsapp svg { width: 22px; height: 22px; }

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(247, 241, 232, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 4px 20px rgba(43, 29, 20, 0.05);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 1.35rem;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-size: 1.1rem;
}

@media (max-width: 480px) {
  .logo { font-size: 1.05rem; line-height: 1.15; gap: 8px; }
  .logo-mark { width: 32px; height: 32px; flex-shrink: 0; }
}

.nav { display: flex; gap: 32px; }

.nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: flex;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 700 0.8rem var(--font-body);
  letter-spacing: 0.05em;
  padding: 6px 12px;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 24px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform 0.3s, visibility 0.3s;
  }

  .nav.open { transform: translateY(0); visibility: visible; }

  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a::after { display: none; }
}

/* ==========================================================
   Hero
   ========================================================== */
.hero { padding: 48px 0 72px; overflow: hidden; }

.hero-inner {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }

.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-image img {
  width: 100%;
  max-height: 75vh;
  object-fit: cover;
  border-radius: 200px 200px var(--radius) var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .hero { padding: 72px 0 110px; }
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
}

/* ==========================================================
   Sections
   ========================================================== */
.section { padding: 80px 0; }
.section-alt { background: var(--cream-dark); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head p:last-child { color: var(--ink-soft); }

@media (min-width: 900px) {
  .section { padding: 110px 0; }
}

/* About */
.about-grid { display: grid; gap: 48px; align-items: center; }

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

.about-text > p { color: var(--ink-soft); }

.highlights {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 16px;
}

.highlights li {
  display: grid;
  gap: 2px;
  padding-left: 18px;
  border-left: 2px solid var(--gold);
}

.highlights strong { font-family: var(--font-head); font-size: 1.1rem; font-weight: 500; }
.highlights span { color: var(--ink-soft); font-size: 0.95rem; }

@media (min-width: 900px) {
  .about-grid { grid-template-columns: 0.85fr 1.15fr; gap: 80px; }
}

/* Lessons */
.formats {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}

.format {
  padding: 20px 24px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 251, 245, 0.6);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.format h3 { font-size: 1.2rem; margin-bottom: 0.2em; }
.format p { margin: 0; color: var(--ink-soft); }

.cards {
  display: grid;
  gap: 24px;
}

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

@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .card-body { padding: 28px 22px; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 32px 28px;
}

.card-body > p { color: var(--ink-soft); }

.card-media img { width: 100%; height: 100%; object-fit: cover; }

.lesson-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--cream-dark);
  font-size: 1.6rem;
}

.levels { color: var(--gold-dark); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.8em; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-dark);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 4px 12px;
}

/* Card design "ust": photo across the top */
.cards--ust .card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.cards--ust .card-media img { transition: transform 0.6s ease; }
.cards--ust .card:hover .card-media img { transform: scale(1.05); }

.cards--ust .card-media + .card-body { padding-top: 0; }

.cards--ust .card-media + .card-body .lesson-icon {
  margin-top: -28px;
  background: var(--paper);
  box-shadow: 0 0 0 4px var(--paper), 0 6px 16px rgba(43, 29, 20, 0.15);
}

/* Card design "arka": blurred photo behind the text */
.cards--arka .card {
  border: 0;
  background: var(--espresso);
  color: var(--cream);
}

.cards--arka .card-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cards--arka .card-media img {
  filter: blur(6px) saturate(1.1);
  transform: scale(1.15);
  transition: filter 0.5s ease;
}

.cards--arka .card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(34, 22, 15, 0.35) 0%, rgba(34, 22, 15, 0.85) 65%, rgba(34, 22, 15, 0.95) 100%);
}

.cards--arka .card:hover .card-media img { filter: blur(3px) saturate(1.1); }

.cards--arka .card-body { padding-top: 120px; }
.cards--arka .card-body > p { color: #e6dacb; }
.cards--arka .levels { color: #d9b77e; }

.cards--arka .lesson-icon {
  background: rgba(247, 241, 232, 0.15);
  border: 1px solid rgba(247, 241, 232, 0.3);
  backdrop-filter: blur(4px);
}

.cards--arka .tags { border-top-color: rgba(247, 241, 232, 0.2); }
.cards--arka .tag { color: var(--cream); border-color: rgba(247, 241, 232, 0.5); }

.price-box {
  margin: 48px auto 0;
  max-width: 720px;
  text-align: center;
  background: var(--paper);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 40px 24px;
  box-shadow: var(--shadow);
}

.price-box p { color: var(--ink-soft); }

.price-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.price-actions svg { width: 20px; height: 20px; }

@media (min-width: 700px) {
  .formats { grid-template-columns: 1fr 1fr; }
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery-item {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.videos { display: grid; gap: 24px; margin-top: 48px; }
.videos[hidden] { display: none; }

.video {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--espresso);
  box-shadow: var(--shadow);
}

.video iframe { width: 100%; height: 100%; border: 0; }

@media (min-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .videos { grid-template-columns: 1fr 1fr; }
}

/* Contact */
.section-dark { background: var(--espresso); color: var(--cream); }
.section-dark .eyebrow { color: var(--gold); }
.section-dark p { color: #d8cbb8; }

.contact-grid { display: grid; gap: 48px; align-items: center; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }

.contact-list li {
  display: grid;
  gap: 2px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(247, 241, 232, 0.15);
}

.contact-list .label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-list a { text-decoration: none; font-size: 1.15rem; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--gold); }

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.1fr 0.9fr; gap: 80px; }
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { background: var(--espresso); color: #a8998a; border-top: 1px solid rgba(247, 241, 232, 0.1); }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 0.9rem;
}

.footer-inner p { margin: 0; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--gold); }

/* ==========================================================
   Lightbox
   ========================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(20, 13, 9, 0.92);
  cursor: zoom-out;
}

.lightbox[hidden] { display: none; }

.lightbox img { max-height: 90vh; border-radius: 8px; }

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: none;
  color: var(--cream);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
}

/* ==========================================================
   Scroll reveal
   ========================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Keyboard focus */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
