/* Pioneer English Centre — static rebuild
   Design faithfully mirrors the Wix original:
   white background, navy text (#2C3E50), navy buttons (#34495E). */

:root {
  --navy: #2C3E50;
  --navy-dark: #1f2d3d;
  --btn: #34495E;
  --btn-hover: #4A6274;
  --grey: #5d6d7e;
  --light: #f4f6f8;
  --border: #dde3e8;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--navy);
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
}

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

a { color: var(--btn); text-decoration: none; }
a:hover { color: var(--navy-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 56px; height: 56px; border-radius: 8px; }
.brand-name { font-weight: 700; font-size: 18px; color: var(--navy); }

.nav { display: flex; align-items: center; gap: 20px; }
.nav a {
  color: var(--navy); font-weight: 500; font-size: 15px;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.active { border-bottom-color: var(--btn); }

/* Courses dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,.08); min-width: 240px;
  padding: 8px 0; z-index: 50;
}
.dropdown a { display: block; padding: 8px 16px; font-weight: 400; border: none; }
.has-dropdown:hover .dropdown { display: block; }

/* Language switcher */
.lang {
  display: inline-block; border: 1px solid var(--border);
  border-radius: 4px; padding: 4px 10px; font-size: 13px;
  color: var(--navy); margin-left: 8px; background: #fff;
}
.lang:hover { background: var(--light); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--navy); }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; padding: 16px 24px; gap: 12px;
  }
  .nav.open { display: flex; }
  .dropdown { position: static; box-shadow: none; border: none; padding-left: 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: url("../images/hero.jpg") center/cover no-repeat;
  min-height: 520px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 60px 24px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(255,255,255,.72);
}
.hero-inner { position: relative; max-width: 760px; }
.hero h1 { font-size: 44px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.hero h2 { font-size: 22px; font-weight: 700; color: var(--navy-dark); margin-bottom: 16px; letter-spacing: 1px; }
.hero p { font-size: 17px; color: var(--navy); margin-bottom: 12px; }

.btn {
  display: inline-block; background: var(--btn); color: #fff;
  padding: 12px 28px; font-size: 15px; font-weight: 600;
  border: none; border-radius: 0; cursor: pointer; margin-top: 8px;
  transition: background .2s;
}
.btn:hover { background: var(--btn-hover); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 56px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-heading {
  font-size: 28px; font-weight: 700; color: var(--navy);
  text-align: center; margin-bottom: 32px;
}
.section-sub { text-align: center; color: var(--grey); margin: -20px auto 32px; max-width: 640px; }

/* Course cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden;
  transition: box-shadow .2s;
}
.card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.10); }
.card img { height: 200px; object-fit: cover; width: 100%; }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 19px; margin-bottom: 8px; color: var(--navy); }
.card p { color: var(--grey); font-size: 15px; flex: 1; }
.card .learn {
  margin-top: 14px; font-weight: 600; font-size: 14px;
  border-bottom: 2px solid var(--btn); padding-bottom: 2px; align-self: flex-start;
}

/* Two-column intro (tutor) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: 8px; }
.split h2 { font-size: 26px; margin-bottom: 12px; }
.split p { color: var(--grey); margin-bottom: 12px; }
@media (max-width: 800px) {
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
}

/* ---------- Generic content page ---------- */
.page { max-width: 860px; margin: 0 auto; padding: 56px 24px; }
.page h1 { font-size: 34px; margin-bottom: 24px; }
.page h2 { font-size: 22px; margin: 28px 0 12px; }
.page p { margin-bottom: 14px; color: var(--navy); }
.page ul { margin: 0 0 16px 22px; }
.page li { margin-bottom: 8px; }
.page img.lead { margin: 8px 0 24px; border-radius: 8px; }

/* Price box */
.pricebox {
  background: var(--light); border: 1px solid var(--border);
  padding: 24px; margin: 24px 0; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.pricebox .price { font-size: 24px; font-weight: 800; color: var(--navy); }
.pricebox .dur { color: var(--grey); font-size: 15px; }

/* ---------- Testimonials ---------- */
.tlist { max-width: 820px; margin: 0 auto; }
.titem {
  background: var(--light); border-left: 4px solid var(--btn);
  padding: 22px 26px; margin-bottom: 20px;
}
.titem p { font-size: 15px; }
.titem .who { margin-top: 10px; font-weight: 700; font-size: 14px; color: var(--navy-dark); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info p { margin-bottom: 10px; }
.contact-form label { display: block; font-weight: 600; margin: 14px 0 4px; font-size: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  font-size: 15px; font-family: inherit; background: #fff;
}
.contact-form textarea { min-height: 120px; }
.contact-form .btn { width: auto; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.hours { margin-top: 24px; background: var(--light); padding: 20px 24px; }
.hours h3 { margin-bottom: 8px; }

/* ---------- Q-chan corner ---------- */
.tips .tip {
  background: var(--light); border: 1px solid var(--border);
  padding: 20px 24px; margin-bottom: 16px;
}
.tips .tip h3 { margin-bottom: 8px; font-size: 18px; }
.tips .tip p { margin-bottom: 6px; }
.qchan-hero { text-align: center; margin-bottom: 24px; }
.qchan-hero img { max-width: 360px; margin: 0 auto 16px; border-radius: 8px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy); color: #dbe2ea;
  padding: 32px 24px; margin-top: 40px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #a9c3d8; }
.footer-social { margin: 12px 0; display: flex; justify-content: center; gap: 14px; }
.footer-social img { width: 30px; height: 30px; }
.footer-copy { font-size: 13px; color: #9fb0c0; margin-top: 10px; }
