/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0d0d0d;
  --ink-soft: #444;
  --cream: #faf8f3;
  --warm-white: #ffffff;
  --gold: #c9973a;
  --gold-light: #e8c06a;
  --gold-pale: #fdf3de;
  --teal: #1a6b6b;
  --teal-light: #2d9898;
  --teal-pale: #e6f5f5;
  --accent: #d4502a;
  --border: rgba(0,0,0,0.1);
  --shadow: 0 4px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --nav-h: 72px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 500; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

/* ===== LAYOUT ===== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 100px 0; }
section:first-of-type { padding-top: 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header.light h2,
.section-header.light p { color: var(--warm-white); }
.section-header.light .section-tag { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }
.section-header p { font-size: 1.1rem; color: var(--ink-soft); margin-top: 12px; max-width: 540px; margin-left: auto; margin-right: auto; }

.section-tag {
  display: inline-block;
  background: var(--gold-pale);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* ===== NAV ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: var(--shadow); }

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

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 38px;
  width: auto;
  display: block;
}
.logo-cc {
  width: 38px; height: 38px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  line-height: 1.3;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 400;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink-soft);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--ink); background: rgba(0,0,0,0.05); }
.nav-links .nav-cta {
  background: var(--ink);
  color: var(--warm-white);
  padding: 8px 20px;
}
.nav-links .nav-cta:hover { background: var(--teal); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switcher {
  display: flex;
  background: rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  background: none;
  border: none;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: 5px;
  color: var(--ink-soft);
  transition: all var(--transition);
}
.lang-btn.active {
  background: var(--warm-white);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.lang-btn:hover:not(.active) { color: var(--ink); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
}
.c1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  top: -200px; right: -100px;
  animation: float1 8s ease-in-out infinite;
}
.c2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--teal) 0%, transparent 70%);
  bottom: -100px; left: -150px;
  animation: float2 10s ease-in-out infinite;
}
.c3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: float3 7s ease-in-out infinite;
}

@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, 20px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(20px,-30px); } }
@keyframes float3 { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.1); } }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 20px;
  background: var(--gold-pale);
  padding: 6px 18px;
  border-radius: 100px;
  animation: fadeUp 0.6s ease both;
}
.hero-title {
  display: block;
  margin-bottom: 24px;
  animation: fadeUp 0.6s 0.15s ease both;
}
.hero-title .line1 {
  display: block;
  font-weight: 900;
}
.hero-title .line2 {
  display: block;
  font-style: italic;
  color: var(--teal);
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 40px;
  animation: fadeUp 0.6s 0.3s ease both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.45s ease both;
}

.hero-langs {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 56px;
  position: relative;
  z-index: 2;
  animation: fadeUp 0.6s 0.6s ease both;
}
.hero-lang {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-lang img {
  width: 30px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.hero-lang span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}
.lang-div {
  color: var(--border);
  font-size: 1.4rem;
  line-height: 1;
  user-select: none;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--warm-white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 8px;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--teal);
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,107,107,0.25);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 8px;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--warm-white);
  transform: translateY(-2px);
}

/* ===== SERVICES ===== */
#services { background: var(--warm-white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
  background: var(--warm-white);
}
.service-flag img {
  width: 56px; height: 36px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.service-icon { font-size: 2.2rem; line-height: 1; }
.service-body h3 { margin-bottom: 10px; }
.service-body p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.6; }
.service-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--teal);
  transition: gap var(--transition), opacity var(--transition);
}
.service-card:hover .service-link { opacity: 0.8; }

/* ===== DETAIL SECTIONS ===== */
.detail-section { background: var(--cream); }
.detail-section.alt-bg { background: var(--warm-white); }

.detail-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.detail-inner.reverse { direction: rtl; }
.detail-inner.reverse > * { direction: ltr; }

.detail-visual {
  border-radius: var(--radius-lg);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--gold-pale);
}
.tr-bg { background: linear-gradient(135deg, #f0f0e8 0%, #e8f0e8 100%); }
.ex-bg { background: linear-gradient(135deg, #e8e8f5 0%, #f0e8f5 100%); }

.tr-doc-visual {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 40px 32px;
}
.tr-doc {
  background: #fff;
  border-radius: 10px;
  padding: 24px 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 110px;
}
.tr-doc-line {
  height: 8px;
  border-radius: 4px;
  background: #e0ddd5;
}
.tr-doc-line.w90 { width: 90%; }
.tr-doc-line.w85 { width: 85%; }
.tr-doc-line.w75 { width: 75%; }
.tr-doc-line.w70 { width: 70%; }
.tr-doc-line.w60 { width: 60%; }
.tr-doc-line.w50 { width: 50%; }
.tr-doc-divider {
  height: 1px;
  background: #ece9e1;
  margin: 4px 0;
}
.tr-arrow {
  font-size: 1.8rem;
  color: var(--gold);
  flex-shrink: 0;
  font-weight: 700;
}

.detail-text { display: flex; flex-direction: column; gap: 16px; }
.detail-text h2 { margin-bottom: 4px; }
.detail-text p { color: var(--ink-soft); font-size: 1.02rem; }

/* ===== TEACHERS ===== */
#teachers { background: var(--gold-pale); }

.teachers-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.teachers-photo { position: relative; }
.photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  max-width: 380px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gold-pale), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--gold);
  font-weight: 700;
  min-height: 400px;
}
.photo-accent {
  position: absolute;
  width: 200px; height: 200px;
  background: var(--gold);
  border-radius: var(--radius-lg);
  bottom: -20px; right: -20px;
  opacity: 0.15;
  z-index: 0;
}

.bio-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin-bottom: 24px;
  line-height: 1.6;
}
.teachers-bio p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 32px; }

.bio-stats {
  display: flex;
  gap: 40px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.stat-label { font-size: 0.8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; }

/* ===== LOCATION ===== */
#location { background: var(--warm-white); }

.location-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.location-text h2 { margin-bottom: 16px; }
.location-text p { color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 32px; }
.location-details { display: flex; flex-direction: column; gap: 14px; }
.loc-item { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; }
.loc-icon { flex-shrink: 0; font-size: 1.1rem; }
.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.location-map iframe { display: block; }

/* ===== CONTACT ===== */
#contact {
  background: var(--ink);
}
#contact .section-tag { background: rgba(201,151,58,0.15); color: var(--gold-light); }
#contact .section-header h2 { color: var(--warm-white); }
#contact .section-header p { color: rgba(255,255,255,0.65); }

.contact-inner {
  max-width: 680px;
  margin: 0 auto;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--warm-white);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.09);
}

.btn-submit {
  background: var(--gold);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 16px 40px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  align-self: flex-start;
  transition: all var(--transition);
}
.btn-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,151,58,0.3);
}
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-success {
  color: #5de0a0;
  font-size: 0.95rem;
  font-weight: 500;
}
.form-error { color: #ff7e7e; font-size: 0.95rem; }

/* ===== FOOTER ===== */
footer {
  background: #080808;
  padding: 48px 0;
  color: rgba(255,255,255,0.6);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.footer-brand strong { color: var(--warm-white); display: block; font-family: 'Playfair Display', serif; }
.footer-brand p { font-size: 0.8rem; margin: 0; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.85rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.78rem; }

/* ===== MOBILE NAV ===== */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    pointer-events: none;
    align-items: flex-start;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; font-size: 1rem; }
  .nav-links .nav-cta { background: none; color: var(--ink); padding: 12px 0; }

  .detail-inner,
  .detail-inner.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }
  .detail-visual { min-height: 240px; }
  .detail-flag { width: 100px; height: 66px; }

  .teachers-inner,
  .location-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .photo-frame { max-width: 100%; }
  .bio-stats { gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-langs { gap: 16px; }
}

@media (max-width: 480px) {
  section { padding: 72px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-langs { gap: 12px; }
  .hero-lang span { font-size: 0.82rem; }
}

/* ===== SEND OVERLAY ===== */
.send-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9000;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* ===== TOAST ===== */
.send-toast {
  position: fixed;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: #fff;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  z-index: 9001;
  opacity: 1;
  transition: opacity 0.7s ease;
  white-space: nowrap;
  pointer-events: none;
}
.send-toast.fading { opacity: 0; }

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
