/* ============================================================
   English Mastery Center — styles
   Light educational theme. Mobile-first, no frameworks.
   ============================================================ */

:root {
  /* Palette */
  --white:        #ffffff;
  --primary:      #3F7FD0;   /* soft blue */
  --primary-dark: #2E6BB8;
  --primary-soft: #EAF2FC;   /* light blue tint */
  --cream:        #FBF7EF;   /* light cream */
  --green:        #2E9E6A;   /* pastel/calm green */
  --green-dark:   #25804F;
  --green-soft:   #E9F6EE;
  --lavender:     #EFEDFA;   /* light lavender */
  --lavender-ink: #7C6FD8;
  --grey:         #F4F6F9;   /* light grey section */
  --wa:           #25D366;   /* WhatsApp brand */
  --wa-dark:      #1FB457;

  --text:         #1F2A37;
  --muted:        #5B6675;
  --border:       #E5E9F0;
  --shadow:       0 8px 24px rgba(31, 42, 55, 0.07);
  --shadow-sm:    0 3px 10px rgba(31, 42, 55, 0.06);

  --radius:       16px;
  --radius-sm:    10px;
  --container:    1140px;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Poppins", var(--font-body);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--primary-dark); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--text); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* filled icons */
#i-whatsapp path:first-child, #i-star polygon { }
.ic use { }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 40px, 800px); }
.hide-sm { }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  text-align: center; line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn .ic { stroke: currentColor; }
.btn-sm  { padding: 9px 16px; font-size: .92rem; }
.btn-lg  { padding: 15px 28px; font-size: 1.06rem; }
.btn-block { width: 100%; }

.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover  { background: var(--primary-dark); }
.btn-success  { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(46,158,106,.25); }
.btn-success:hover  { background: var(--green-dark); }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: var(--wa-dark); }
.btn-whatsapp .ic { fill: #fff; stroke: #fff; }
.btn-outline  { background: #fff; color: var(--primary-dark); border-color: var(--primary); }
.btn-outline:hover  { background: var(--primary-soft); }

/* WhatsApp glyph is a filled shape — keep it filled wherever it appears */
.fab-whatsapp .ic, .header-wa .ic, .btn-whatsapp .ic { fill: currentColor; }
.contact-row .ic { }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand-mark { display: flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; }
.brand-tag  { font-size: .72rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav a { color: var(--text); font-weight: 500; padding: 8px 10px; border-radius: 8px; font-size: .92rem; white-space: nowrap; }
.main-nav a:hover { background: var(--primary-soft); color: var(--primary-dark); }
.main-nav .nav-cta-item a:hover { background: var(--green-dark); color: #fff; }
.nav-close { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 6px; }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section-cream { background: var(--cream); }
.section-lav   { background: var(--lavender); }
.section-grey  { background: var(--grey); }
.section-green { background: var(--green-soft); }
.section-blue  { background: var(--primary-soft); }

.section-head { max-width: 760px; margin: 0 auto clamp(28px, 4vw, 44px); text-align: center; }
.section-head h2 { margin-bottom: .4rem; }
.section-lead { color: var(--muted); font-size: 1.05rem; margin: 0; }
.center-cta { text-align: center; margin-top: 32px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% -5%, var(--green-soft), transparent 60%),
    radial-gradient(900px 460px at 0% 0%, var(--primary-soft), transparent 55%),
    var(--white);
  padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 7vw, 80px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.eyebrow {
  display: inline-block; background: var(--white); border: 1px solid var(--border);
  color: var(--primary-dark); font-weight: 600; font-size: .82rem;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.hero h1 { margin-bottom: .5rem; }
.hero-sub { font-size: 1.18rem; font-weight: 500; color: var(--text); margin-bottom: 1rem; }
.hero-para { color: var(--muted); margin-bottom: 1.6rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-badges li { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .92rem; font-weight: 500; }
.hero-badges .ic { color: var(--green); }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { filter: drop-shadow(0 18px 30px rgba(63,127,208,.12)); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card, .mv-card, .level-card, .course, .step-card, .result-card, .testi-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card { padding: 26px; display: flex; flex-direction: column; align-items: flex-start; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.program-card h3 { margin-bottom: .4rem; }
.program-card p { color: var(--muted); font-size: .96rem; margin-bottom: 18px; }
.program-card .btn { margin-top: auto; }

.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 16px;
}
.card-icon .ic { stroke-width: 2; }
.ic-blue  { background: var(--primary-soft); color: var(--primary); }
.ic-green { background: var(--green-soft);  color: var(--green); }
.ic-lav   { background: var(--lavender);    color: var(--lavender-ink); }
.ic-cream { background: var(--cream);       color: #C58A2E; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.about-text p { color: var(--muted); font-size: 1.04rem; }
.about-cards { display: grid; gap: 18px; }
.mv-card { padding: 24px; }
.mv-card h3 { margin-bottom: .3rem; }
.mv-card p { color: var(--muted); margin: 0; }

.why-head { margin-top: 64px; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.why-grid li {
  display: flex; align-items: center; gap: 12px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px;
  font-weight: 500; box-shadow: var(--shadow-sm);
}
.why-grid .ic { color: var(--primary); }
.soft-grid li .ic { color: var(--green); }

/* ---------- Faculty ---------- */
.faculty-card {
  display: grid; grid-template-columns: 280px 1fr; gap: clamp(24px, 4vw, 44px);
  align-items: start; max-width: 960px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: clamp(24px, 4vw, 40px);
}
.faculty-photo {
  position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-soft), var(--lavender));
}
.faculty-initials { font-family: var(--font-head); font-weight: 700; font-size: 3.6rem; color: var(--primary); }
.faculty-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.faculty-info h3 { margin-bottom: .1rem; font-size: 1.5rem; }
.faculty-title { color: var(--primary-dark); font-weight: 600; font-family: var(--font-head); margin: 0 0 12px; }
.faculty-exp {
  display: inline-block; background: var(--green-soft); color: var(--green-dark);
  font-weight: 600; font-size: .85rem; padding: 5px 14px; border-radius: 999px; margin-bottom: 16px;
}
.faculty-info > p { color: var(--muted); }
.faculty-info h4 { margin: 18px 0 12px; font-size: 1.05rem; }
.faculty-expertise { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.faculty-quote {
  border-left: 3px solid var(--primary); padding-left: 16px; font-style: italic;
  color: var(--text); margin: 20px 0 22px;
}
@media (max-width: 720px) {
  .faculty-card { grid-template-columns: 1fr; }
  .faculty-photo { max-width: 220px; margin: 0 auto; }
  .faculty-expertise { grid-template-columns: 1fr; }
}

/* ---------- Courses ---------- */
.course { padding: clamp(24px, 3vw, 36px); margin-bottom: 26px; }
.course:last-child { margin-bottom: 0; }
.course-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.course-head .card-icon { margin-bottom: 0; }
.course-head h3 { margin-bottom: .15rem; }
.course-sub { color: var(--primary-dark); font-weight: 500; margin: 0; font-size: .96rem; }
.course-desc { color: var(--muted); }
.course-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 20px 0 24px; }
.course-cols-3 { grid-template-columns: repeat(3, 1fr); }
.course-cols h4 { font-size: 1rem; margin-bottom: 12px; color: var(--text); }

.ticks li { position: relative; padding-left: 28px; margin-bottom: 8px; color: var(--text); font-size: .96rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--green-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E9E6A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}

/* ---------- Spoken English levels ---------- */
.level-card { padding: 26px; }
.level-badge {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  padding: 6px 16px; border-radius: 999px; margin-bottom: 12px; font-size: .95rem;
}
.level-1 { background: var(--primary-soft); color: var(--primary-dark); }
.level-2 { background: var(--green-soft);  color: var(--green-dark); }
.level-3 { background: var(--lavender);    color: var(--lavender-ink); }
.level-for { color: var(--muted); font-size: .96rem; margin-bottom: 16px; }
.level-card .btn { margin-top: 18px; }

/* ---------- Methodology ---------- */
.method-line {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--primary); margin: .2rem 0 .8rem;
}
.method-line span { color: var(--green); margin: 0 6px; }
.method-steps { margin-top: 8px; }
.step-card { padding: 30px 26px; text-align: center; position: relative; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%; background: var(--primary); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step-card:nth-child(2) .step-num { background: var(--green); }
.step-card:nth-child(3) .step-num { background: var(--lavender-ink); }
.step-card p { color: var(--muted); margin: 0; }

/* ---------- Results ---------- */
.result-grid { gap: 18px; }
.result-card { padding: 26px 22px; display: flex; align-items: center; gap: 16px; }
.result-card .ic { color: var(--green); flex: none; }
.result-card p { margin: 0; font-weight: 600; font-family: var(--font-head); }

/* ---------- Testimonials ---------- */
.testi-card { padding: 26px; }
.stars { display: flex; gap: 3px; margin-bottom: 12px; color: #F4B740; }
.stars .ic { fill: #F4B740; stroke: #F4B740; }
.testi-card blockquote { margin: 0 0 14px; font-size: 1.05rem; color: var(--text); }
.testi-card figcaption { color: var(--muted); font-weight: 600; font-family: var(--font-head); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 4px 20px; box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none; cursor: pointer; font-family: var(--font-head); font-weight: 600;
  padding: 16px 30px 16px 0; position: relative; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--primary); line-height: 1; transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--muted); margin: 0 0 16px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-details { display: grid; gap: 14px; }
.contact-row {
  display: flex; align-items: center; gap: 16px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px;
  color: var(--text); box-shadow: var(--shadow-sm);
}
.contact-row .card-icon { margin-bottom: 0; width: 44px; height: 44px; }
.contact-row span span, .contact-row > span { display: block; }
.contact-row strong { display: block; font-family: var(--font-head); font-size: .95rem; }
.contact-row span:not(.card-icon) { color: var(--muted); font-size: .95rem; }
a.contact-row:hover { border-color: var(--primary); }

.contact-visual { display: flex; flex-direction: column; gap: 16px; }
.centre-photo { width: 100%; height: auto; max-height: 300px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); display: block; }
.contact-map { min-height: 320px; }
.map-placeholder, .contact-map iframe {
  width: 100%; height: 100%; min-height: 320px; border: 0; border-radius: var(--radius);
}
.map-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center; background: var(--white); border: 2px dashed var(--border); color: var(--muted); padding: 24px;
}
.map-placeholder .ic { color: var(--primary); }
.map-placeholder p { margin: 0; max-width: 260px; }

/* ---------- Demo form ---------- */
.demo-form {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow);
}
.form-row { margin-bottom: 16px; display: flex; flex-direction: column; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.demo-form label { font-weight: 600; font-family: var(--font-head); font-size: .94rem; margin-bottom: 6px; }
.req { color: #E0564B; }
.demo-form input, .demo-form select, .demo-form textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--text);
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.demo-form input:focus, .demo-form select:focus, .demo-form textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.demo-form input:invalid:not(:placeholder-shown) { border-color: #E0937B; }
.demo-form textarea { resize: vertical; }
.demo-form .btn-block { margin-top: 6px; }
.form-note { font-size: .85rem; color: var(--muted); text-align: center; margin: 14px 0 0; }

.form-success {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(28px, 5vw, 44px); text-align: center; box-shadow: var(--shadow);
}
.success-mark {
  width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); color: var(--green);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.form-success h3 { margin-bottom: .3rem; }
.form-success p { color: var(--muted); }
.form-success .btn { margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: #1E2A3A; color: #C7D2E0; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.site-footer .brand-name { color: #fff; font-size: 1.2rem; }
.footer-slogan { color: #93A3B8; margin: 8px 0 18px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-links ul, .footer-contact ul { display: grid; gap: 10px; }
.footer-links a { color: #C7D2E0; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: center; gap: 10px; color: #C7D2E0; font-size: .95rem; }
.footer-contact a { color: #C7D2E0; }
.footer-contact .ic { color: #6F91C9; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; }
.footer-bottom p { margin: 0; text-align: center; color: #93A3B8; font-size: .9rem; }

/* ---------- Floating WhatsApp ---------- */
.fab-whatsapp {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa); color: #fff; padding: 12px; border-radius: 999px;
  box-shadow: 0 10px 24px rgba(37,211,102,.4); font-weight: 600; font-family: var(--font-head);
}
.fab-whatsapp .ic { fill: #fff; stroke: #fff; }
.fab-whatsapp .fab-label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .25s ease, padding .25s ease; }
.fab-whatsapp:hover { background: var(--wa-dark); }
.fab-whatsapp:hover .fab-label { max-width: 140px; padding-right: 6px; }

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .course-cols-3 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1080px) {
  /* Collapse the menu to a drawer early so the full nav never crowds or wraps */
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; top: 0; right: 0; left: auto; width: min(82%, 320px);
    height: 100vh; height: 100dvh; overflow-y: auto;
    background: #ffffff; box-shadow: -8px 0 30px rgba(0,0,0,.18);
    transform: translateX(100%); transition: transform .25s ease; padding: 70px 18px 24px; z-index: 130;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { padding: 13px 14px; font-size: 1.05rem; white-space: normal; }
  .nav-cta-item { margin-top: 8px; }
  .nav-cta-item a { width: 100%; }
  .nav-close { display: inline-flex; position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text); cursor: pointer; padding: 6px; }
  body.nav-open { overflow: hidden; }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(20,28,40,.55); z-index: 95;
    opacity: 0; visibility: hidden; transition: opacity .25s ease;
  }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
}

@media (max-width: 760px) {

  .grid-3, .grid-2, .why-grid, .course-cols, .course-cols-3,
  .form-two, .footer-grid, .testi-grid { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .header-inner { height: 64px; }
  .brand-tag { display: none; }
  .section-head { text-align: left; }
  .fab-whatsapp .fab-label { display: none; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 1rem; }
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
