/* =========================================================
   Easy Learners Institute and Consultancy
   Professional website stylesheet
   ========================================================= */

:root {
  --blue-900: #0f2557;
  --blue-800: #17357a;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbe7ff;
  --blue-50:  #eef4ff;
  --red:      #e11d48;
  --amber:    #f59e0b;
  --ink:      #0d1526;
  --slate:    #475569;
  --muted:    #64748b;
  --line:     #e5eaf1;
  --bg:       #ffffff;
  --bg-soft:  #f6f9ff;
  --white:    #ffffff;
  --radius:   16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(15, 37, 87, .06);
  --shadow:    0 12px 34px rgba(15, 37, 87, .10);
  --shadow-lg: 0 24px 60px rgba(15, 37, 87, .16);
  --container: 1160px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-jp: 'Noto Sans JP', var(--font);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 82px; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ---------- Top bar ---------- */
.topbar { background: var(--blue-900); color: #cdd9f5; font-size: .84rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 40px; flex-wrap: wrap; overflow: hidden; }
.topbar a { color: #dbe7ff; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-contact { display: flex; gap: 1.2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: .95rem; line-height: 1;
  padding: .8rem 1.35rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1rem; }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .28); }
.btn-primary:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(37, 99, 235, .34); }
.btn-outline { background: #fff; color: var(--blue-700); border-color: var(--blue-100); }
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-700); background: var(--blue-50); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--blue-800); border-color: rgba(29,78,216,.18); }
.btn-ghost:hover { background: #fff; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--blue-700); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-white:hover { background: rgba(255,255,255,.14); }
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,.32); }
.btn-wa:hover { background: #1ebe5b; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(37,211,102,.4); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: flex; align-items: center; gap: .65rem; }
.brand-logo {
  width: 46px; height: 46px; border-radius: 12px; flex: none; object-fit: cover;
  background: #fff; border: 1px solid var(--line); padding: 3px;
  box-shadow: 0 4px 12px rgba(15,37,87,.12);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.08rem; color: var(--ink); letter-spacing: -.2px; }
.brand-text small { font-size: .72rem; color: var(--muted); font-weight: 600; letter-spacing: .3px; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a { font-weight: 600; font-size: .95rem; color: var(--slate); transition: color .15s; }
.main-nav a:hover { color: var(--blue-700); }
.main-nav .nav-cta { color: #fff; }
.main-nav .nav-cta:hover { color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--blue-50), #fff 78%); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .jp { position: absolute; font-family: var(--font-jp); font-weight: 700; color: rgba(37,99,235,.06); user-select: none; }
.hero-bg .jp1 { font-size: 12rem; top: -2rem; right: 2%; }
.hero-bg .jp2 { font-size: 6rem; bottom: 4%; left: -1%; color: rgba(225,29,72,.05); }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.blob1 { width: 420px; height: 420px; background: #bcd3ff; top: -120px; right: -80px; }
.blob2 { width: 360px; height: 360px; background: #ffd7e2; bottom: -140px; left: -100px; }

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center;
  padding: 4.5rem 22px 4.5rem;
}
.eyebrow { display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .6px; text-transform: uppercase; color: var(--blue-700); background: var(--blue-100); padding: .4rem .8rem; border-radius: 999px; margin-bottom: 1.1rem; }
.eyebrow.center { display: block; width: max-content; margin: 0 auto 1rem; }
.hero-copy h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); line-height: 1.05; letter-spacing: -1.2px; font-weight: 800; color: var(--ink); }
.hero-copy h1 .grad { background: linear-gradient(120deg, var(--blue-600), var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 1.3rem 0 1.9rem; font-size: 1.12rem; color: var(--slate); max-width: 34rem; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-badges { list-style: none; display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: 2.2rem; }
.hero-badges li { font-weight: 600; font-size: .92rem; color: var(--slate); }

.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.8rem;
  box-shadow: var(--shadow-lg);
}
.hero-card-head { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .82rem; letter-spacing: .4px; text-transform: uppercase; color: var(--red); }
.hero-card-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(225,29,72,.15); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(225,29,72,.15);} 50% { box-shadow: 0 0 0 8px rgba(225,29,72,0);} }
.hero-card h3 { margin: .55rem 0 1.1rem; font-size: 1.35rem; letter-spacing: -.4px; }
.mini-courses { list-style: none; margin-bottom: 1.3rem; }
.mini-courses li { display: flex; justify-content: space-between; align-items: center; padding: .7rem 0; border-bottom: 1px dashed var(--line); font-size: .96rem; }
.mini-courses li:last-child { border-bottom: 0; }
.mini-courses li span { color: var(--slate); font-weight: 600; }
.mini-courses li b { color: var(--blue-700); }
.hero-card-note { text-align: center; font-size: .82rem; color: var(--muted); margin-top: .8rem; }

/* ---------- Stats ---------- */
.stats { background: var(--blue-800); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; padding: 2.2rem 22px; text-align: center; }
.stats-grid > div { color: #fff; }
.stats-grid b { display: block; font-size: 2.1rem; font-weight: 800; letter-spacing: -.5px; }
.stats-grid span { font-size: .9rem; color: #b9c8ee; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -.8px; font-weight: 800; color: var(--ink); }
.section-sub { margin-top: .9rem; color: var(--slate); font-size: 1.05rem; }

/* ---------- Courses ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.course-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem 1.7rem;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.course-card.featured { border-color: var(--blue-500); box-shadow: 0 16px 40px rgba(37,99,235,.16); position: relative; }
.course-card.featured::after { content: "Popular"; position: absolute; top: 1.2rem; right: 1.2rem; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: .3rem .6rem; border-radius: 999px; }
.course-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 1.7rem; background: var(--blue-50); margin-bottom: 1.1rem; }
.course-card h3 { font-size: 1.22rem; letter-spacing: -.3px; margin-bottom: .55rem; }
.course-card > p { color: var(--slate); font-size: .96rem; margin-bottom: 1.1rem; }
.ticks { list-style: none; margin-bottom: 1.4rem; }
.ticks li { position: relative; padding-left: 1.5rem; font-size: .9rem; color: var(--slate); margin-bottom: .5rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--blue-600); font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.4rem; }
.chips span {
  font-size: .8rem; font-weight: 600; color: var(--blue-800);
  background: var(--blue-50); border: 1px solid var(--blue-100);
  padding: .32rem .62rem; border-radius: 8px; line-height: 1.2;
}
.course-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.price { font-size: 1.3rem; font-weight: 800; color: var(--ink); }
.tag { font-size: .78rem; font-weight: 700; color: var(--blue-700); background: var(--blue-50); padding: .35rem .7rem; border-radius: 999px; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { font-size: 1.9rem; margin-bottom: .8rem; }
.feature h4 { font-size: 1.12rem; margin-bottom: .4rem; letter-spacing: -.2px; }
.feature p { color: var(--slate); font-size: .94rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.2rem; align-items: center; }
.about-media {
  position: relative; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #fff;
}
.about-media img { width: 100%; height: auto; display: block; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.gallery-item {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-sm); cursor: zoom-in; transition: transform .2s ease, box-shadow .2s ease;
}
.gallery-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 320px; object-fit: cover; object-position: top center; display: block; background: var(--blue-50); }
.gallery-item figcaption { padding: .85rem 1rem; font-size: .9rem; font-weight: 600; color: var(--ink); text-align: center; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(6, 14, 33, .88); backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox-close {
  position: absolute; top: 18px; right: 24px; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; border: 0; font-size: 2rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background .15s;
}
.lightbox-close:hover { background: rgba(255,255,255,.28); }
.about-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); letter-spacing: -.7px; margin-bottom: 1rem; }
.about-copy p { color: var(--slate); margin-bottom: 1rem; }
.about-points { list-style: none; margin: 1.2rem 0 1.8rem; }
.about-points li { padding: .35rem 0; font-weight: 600; color: var(--ink); }

/* ---------- CTA banner ---------- */
.cta-banner { background: linear-gradient(120deg, var(--blue-700), var(--blue-900)); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 3.4rem 22px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.5px; }
.cta-inner p { color: #cdd9f5; margin-top: .4rem; }
.cta-actions { display: flex; gap: .9rem; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.4rem; align-items: start; }
.contact-info { display: grid; gap: 1rem; }
.info-card { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.2rem 1.3rem; box-shadow: var(--shadow-sm); }
.info-ic { font-size: 1.4rem; width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: var(--blue-50); border-radius: 12px; }
.info-card h4 { font-size: 1.02rem; margin-bottom: .2rem; }
.info-card p { color: var(--slate); font-size: .95rem; }
.info-card a { color: var(--blue-700); font-weight: 600; }
.info-card a:hover { text-decoration: underline; }

.map-wrap { grid-column: 1 / -1; margin-top: 2.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
.map-head h3 { font-size: 1.1rem; letter-spacing: -.2px; }
.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; filter: saturate(1.05); }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.contact-form h3 { font-size: 1.3rem; margin-bottom: 1.3rem; letter-spacing: -.3px; }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .4rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; font-family: inherit; font-size: .95rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; background: #fbfcfe; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(59,130,246,.14); background: #fff; }
.field textarea { resize: vertical; }
.form-actions { display: grid; grid-template-columns: 1.3fr 1fr; gap: .8rem; }
.form-actions .btn { width: 100%; }
.form-status { margin-top: .9rem; font-weight: 600; font-size: .92rem; text-align: center; min-height: 1.2rem; }
.form-status.ok { color: #059669; }
.form-status.err { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c7d0e0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding: 3.4rem 22px 2.6rem; }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text small { color: #8ea0c4; }
.footer-brand p { margin-top: 1rem; font-size: .92rem; color: #9fabc4; max-width: 22rem; }
.footer-brand .reg { font-size: .82rem; color: #7f8db0; margin-top: .5rem; }
.footer-brand .brand-logo { width: 44px; height: 44px; }
.muted { color: var(--muted); font-size: .82em; }
.footer-col h5 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 1rem; }
.footer-col a, .footer-col span { display: block; font-size: .92rem; color: #adb8cd; margin-bottom: .6rem; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .container { padding-top: 1.3rem; padding-bottom: 1.3rem; }
.footer-bottom p { font-size: .86rem; color: #8592ab; text-align: center; }

/* ---------- Floating call button ---------- */
.fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-600); color: #fff; font-size: 1.4rem; box-shadow: 0 12px 26px rgba(37,99,235,.42);
  transition: transform .2s;
}
.fab:hover { transform: scale(1.08); }
.fab-wa { background: #25d366; box-shadow: 0 12px 26px rgba(37,211,102,.45); }
.fab-wa:hover { background: #1ebe5b; }
.fab-wa svg { display: block; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive — tuned for all devices
   Breakpoints: 1200 / 1024 / 900 / 768 / 600 / 480 / 380
   + landscape phones + reduced-motion + very large screens
   ========================================================= */

/* Large desktops — widen container a touch */
@media (min-width: 1440px) {
  :root { --container: 1240px; }
  .hero-copy h1 { font-size: 4rem; }
}

/* Small desktops / large tablets */
@media (max-width: 1200px) {
  .container { padding-left: 26px; padding-right: 26px; }
  .hero-inner { gap: 2.4rem; }
}

/* Tablets landscape */
@media (max-width: 1024px) {
  .section { padding: 4.5rem 0; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 2rem; padding: 3.5rem 22px; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-bg .jp1 { font-size: 9rem; }
}

/* Tablets portrait */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.4rem; padding-top: 3rem; text-align: center; }
  .eyebrow.center, .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-card { max-width: 440px; margin: 0 auto; width: 100%; }
  .about-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .about-media { order: -1; max-width: 560px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile — hamburger nav kicks in */
@media (max-width: 768px) {
  html { scroll-padding-top: 72px; }
  .header-inner { height: 66px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 66px; left: 0; right: 0;
    max-height: calc(100vh - 66px); overflow-y: auto;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 22px 1.4rem; box-shadow: var(--shadow);
    transform: translateY(-150%); transition: transform .3s ease; z-index: 40;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: .95rem .2rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .main-nav .nav-cta { margin-top: .8rem; border-bottom: 0; text-align: center; }

  .section { padding: 3.6rem 0; }
  .section-head { margin-bottom: 2.2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; padding: 2rem 22px; }
  .course-grid, .feature-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem 1.4rem; }
  .cta-inner { flex-direction: column; align-items: flex-start; text-align: left; padding: 2.8rem 22px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }
  .contact-form { padding: 1.6rem; }
  .hero-bg .jp1 { font-size: 7rem; opacity: .7; }
  .topbar { display: none; }
  .gallery-item img { height: 260px; }
}

/* Large phones */
@media (max-width: 600px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .btn-lg { padding: .9rem 1.4rem; font-size: .95rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-badges { gap: 1rem; flex-direction: column; align-items: center; }
  .hero-card { padding: 1.5rem; }
  .section-sub { font-size: 1rem; }
  .about-badge { left: 1rem; right: 1rem; bottom: 1rem; padding: 1rem; }
  .info-card { padding: 1rem; }
  .fab { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  .map-wrap iframe { height: 300px; }
  .form-actions { grid-template-columns: 1fr; }
}

/* Small phones */
@media (max-width: 480px) {
  .brand-text small { display: none; }
  .brand-logo { width: 40px; height: 40px; }
  .brand-text strong { font-size: 1rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid b { font-size: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .course-card, .feature { padding: 1.4rem; }
  .course-foot { flex-direction: column; align-items: stretch; gap: .8rem; }
  .course-foot .btn { width: 100%; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item img { height: auto; }
}

/* Extra-small phones (e.g. 320px) */
@media (max-width: 380px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .hero-copy h1 { font-size: 2.1rem; letter-spacing: -.6px; }
  .lead { font-size: 1rem; }
  .section-head h2 { font-size: 1.6rem; }
  .hero-card h3 { font-size: 1.2rem; }
  .mini-courses li { font-size: .9rem; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* Landscape phones — keep hero compact */
@media (max-height: 520px) and (orientation: landscape) {
  .hero-inner { padding-top: 2rem; padding-bottom: 2rem; }
  .main-nav { max-height: calc(100vh - 66px); }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
