/* ===== Yataka Academy — Stylesheet ===== */
/* Palette: Navy / Gold / White */

:root {
  --navy: #0E2A4A;
  --navy-deep: #081A33;
  --navy-soft: #16385F;
  --gold: #C9A227;
  --gold-light: #E3C767;
  --gold-soft: #F4E9C1;
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --cream: #F6F4EF;
  --text: #1A2238;
  --text-muted: #5A6B85;
  --border: #E4E7EC;
  --shadow: 0 10px 40px rgba(8, 26, 51, 0.10);
  --shadow-lg: 0 20px 60px rgba(8, 26, 51, 0.18);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
section { scroll-margin-top: 80px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.gold { color: var(--gold); }
.muted { color: var(--text-muted); font-size: 0.9em; }

/* ===== Typography ===== */
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; color: var(--navy); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.section-eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-lead { color: var(--text-muted); font-size: 1.05rem; max-width: 680px; margin-bottom: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, color 0.3s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(201, 162, 39, 0.4); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); transform: translateY(-3px); }

/* ===== Header ===== */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(8, 26, 51, 0.0);
  backdrop-filter: blur(0);
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}
#header.scrolled {
  background: rgba(8, 26, 51, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 58px; width: auto; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--white); letter-spacing: 0.02em; }

.nav-desktop { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  font-weight: 500; font-size: 0.95rem; color: var(--white);
  position: relative; padding: 0.3rem 0;
  transition: color 0.3s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav-link:hover { color: var(--gold-light); }
.nav-link:hover::after { width: 100%; }
.nav-cta {
  border: 1.5px solid var(--gold); border-radius: 50px; padding: 0.5rem 1.4rem;
  color: var(--gold);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }

/* Mobile toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--white); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-mobile {
  display: none; flex-direction: column; gap: 0.5rem;
  background: var(--navy-deep); padding: 1rem 24px 1.5rem;
  max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease);
}
.nav-mobile.open { max-height: 320px; }
.nav-mobile .nav-link { padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-mobile .nav-link::after { display: none; }
.nav-mobile .nav-cta { border: none; padding: 0.7rem 0; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: url("../images/hero.jpg") center/cover no-repeat;
  color: var(--white); padding: 120px 0 80px;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(8,26,51,0.92) 0%, rgba(8,26,51,0.72) 50%, rgba(14,42,74,0.65) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.8rem; font-weight: 600;
  color: var(--gold-light); margin-bottom: 1.2rem;
}
.hero-title { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.05; margin-bottom: 1.5rem; color: var(--white); }
.hero-subtitle { font-size: 1.1rem; max-width: 580px; color: rgba(255,255,255,0.88); margin-bottom: 2rem; line-height: 1.8; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.8rem; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat .num { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--gold); }
.hero-stat .lbl { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.7); }

/* ===== Section base ===== */
.section { padding: 6rem 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 3.5rem; }
.section-head .section-lead { margin: 0 auto; }

/* ===== About ===== */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3.5rem; align-items: center; }
.about-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-media::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(201,162,39,0.2); border-radius: var(--radius); pointer-events: none; }
.about-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); min-height: 420px; }
.about-media:hover img { transform: scale(1.05); }
.about-text p { margin-bottom: 1.1rem; color: var(--text-muted); }
.about-stats { display: flex; gap: 2.5rem; margin-top: 2rem; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.about-stat .num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--navy); display: block; }
.about-stat .lbl { font-size: 0.82rem; color: var(--text-muted); }

/* ===== Services ===== */
.services { background: var(--cream); }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-bottom: 4rem; }
.cards-grid--3 { grid-template-columns: repeat(3, 1fr); margin-bottom: 2.5rem; }

.card {
  background: var(--white); border-radius: var(--radius); padding: 2rem 1.75rem;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border: 1px solid var(--border);
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card:hover::before { transform: scaleX(1); }

.card-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--navy); color: var(--gold);
  font-family: var(--font-head); font-weight: 700; font-size: 1.25rem;
  margin-bottom: 1rem;
  transition: background 0.35s, color 0.35s;
}
.card:hover .card-badge { background: var(--gold); color: var(--navy-deep); }
.card-title { font-size: 1.35rem; margin-bottom: 0.3rem; }
.card-tag { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; font-weight: 600; color: var(--gold); margin-bottom: 0.9rem; }
.card-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.2rem; min-height: 3em; }
.card-meta { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--text-muted); padding-top: 1rem; border-top: 1px solid var(--border); }
.card-meta strong { color: var(--navy); }
.card-reg { margin-top: 0.6rem; font-size: 0.82rem; color: var(--gold); font-weight: 600; }

/* IELTS cards */
.ielts { margin-top: 5rem; }
.ielts-head { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.ielts-head .section-lead { margin: 0 auto; }
.card--ielts { display: flex; flex-direction: column; }
.card--ielts .card-title { color: var(--navy); }
.card-from { font-size: 0.85rem; font-weight: 600; color: var(--gold); margin-bottom: 1.2rem; }
.card-list { margin: 0 0 1.5rem; flex: 1; }
.card-list li { position: relative; padding-left: 1.5rem; margin-bottom: 0.6rem; font-size: 0.92rem; color: var(--text-muted); }
.card-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.card-price { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--border); }
.card-price strong { color: var(--navy); }
.card-price .price { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--gold); }
.card-flag {
  position: absolute; top: 16px; right: -34px;
  background: var(--gold); color: var(--navy-deep);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.35rem 2.5rem; transform: rotate(35deg);
}
.ielts-stats { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.ielts-stat { text-align: center; }
.ielts-stat .num { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--navy); display: block; }
.ielts-stat .lbl { font-size: 0.82rem; color: var(--text-muted); }

/* ===== Contact ===== */
.contact { background: var(--navy); color: rgba(255,255,255,0.85); padding-bottom: 0; }
.contact .section-title { color: var(--white); }
.contact .section-lead { color: rgba(255,255,255,0.7); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.contact-block { margin-bottom: 1.6rem; }
.contact-label { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.75rem; font-weight: 600; color: var(--gold); margin-bottom: 0.4rem; }
.contact-value { color: rgba(255,255,255,0.82); font-size: 0.98rem; line-height: 1.7; }
.contact-value a { transition: color 0.3s; }
.contact-value a:hover { color: var(--gold-light); }
.contact-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); min-height: 420px; border: 1px solid rgba(201,162,39,0.2); }
.contact-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

.contact-qr { margin-top: 0.5rem; }
.qr-img {
  width: 180px; height: 180px; object-fit: cover;
  background: var(--white); padding: 12px; border-radius: var(--radius-sm);
  border: 1px solid rgba(201,162,39,0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.qr-img:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,0.35); }

/* ===== Footer ===== */
.footer { background: var(--navy-deep); color: rgba(255,255,255,0.6); padding: 3rem 0 2rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { height: 54px; width: auto; }
.footer-name { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--white); }
.footer-tag { font-size: 0.82rem; color: var(--gold); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-meta { text-align: right; font-size: 0.82rem; }
.footer-meta p { line-height: 1.5; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-media img { min-height: 320px; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-map { min-height: 340px; }
  .contact-map iframe { min-height: 340px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-meta { text-align: center; }
}

@media (max-width: 820px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: flex; }
  .cards-grid, .cards-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 4rem 0; }
  .hero-stats { gap: 1.5rem; }
}

@media (max-width: 600px) {
  .cards-grid, .cards-grid--3 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
  .hero-stats { gap: 1.2rem; }
  .hero-stat .num { font-size: 1.5rem; }
  .about-stats, .ielts-stats { gap: 1.5rem; }
  .brand-name { font-size: 1.05rem; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
  .about-media:hover img { transform: none; }
}
