/* =========================================================================
   International Study Abroad Services (Hong Kong) Limited
   國際留學服務(香港)有限公司 — site styles
   Design language v1.0 (institutional / anti-slop). Flat fills only.
   ========================================================================= */

:root {
  /* Brand core (sampled from emblem) */
  --primary:      #0E71AC;
  --primary-dark: #005B96;
  --navy:         #0B2E52;
  --navy-2:       #0A2647;   /* deeper navy for footer */
  --gold:         #E1C65B;
  --gold-light:   #F5D97B;
  --gold-deep:    #C79A3B;
  --gold-ink:     #8C6A1F;   /* only gold allowed as text on white (5.0:1) */

  /* Neutrals (cool, navy-cast) */
  --ink:      #152535;
  --slate:    #3E5468;
  --muted:    #64788C;
  --hairline: #D9E1E8;
  --bg:       #FFFFFF;
  --bg-soft:  #F4F7FA;
  --blue-soft:#EAF4FA;

  /* Functional */
  --success: #1E7A46;
  --danger:  #B3312D;

  --container: 1120px;
  --radius-sm: 2px;
  --radius:    4px;

  --line-navy: rgba(255,255,255,0.15);
}

/* ---------- reset-ish ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Noto Sans SC","PingFang SC","Microsoft YaHei",Inter,system-ui,sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="en"] body {
  font-family: Inter,"Helvetica Neue",Arial,"Noto Sans TC",system-ui,sans-serif;
  line-height: 1.6;
}
html[lang="zh-Hant"] body {
  font-family: "Noto Sans TC","PingFang TC","Microsoft JhengHei",Inter,system-ui,sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4,p,ul,figure { margin: 0; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section__intro { max-width: 640px; margin-top: 16px; color: var(--slate); }
@media (min-width: 960px) { .section { padding: 96px 0; } }

.eyebrow {
  font-size: 13px; font-weight: 500; line-height: 1.4;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-ink);
}
html:lang(zh-Hans) .eyebrow, html:lang(zh-Hant) .eyebrow { letter-spacing: 0.25em; text-transform: none; }

.h1 { font-size: 32px; font-weight: 700; line-height: 1.2; color: var(--navy); letter-spacing: -0.01em; }
.h2 { font-size: 26px; font-weight: 700; line-height: 1.25; color: var(--navy); letter-spacing: -0.01em; }
.h3 { font-size: 21px; font-weight: 700; line-height: 1.35; color: var(--navy); }
.h4 { font-size: 18px; font-weight: 500; line-height: 1.45; color: var(--navy); }
.lead { font-size: 18px; line-height: 1.7; color: var(--slate); }
.small { font-size: 14px; line-height: 1.55; }
@media (min-width: 960px) {
  .h1 { font-size: 44px; }
  .h2 { font-size: 32px; }
  .h3 { font-size: 24px; }
  .lead { font-size: 19px; }
}
/* section signature rule under every h2 */
.h2--rule::after {
  content: ""; display: block; width: 32px; height: 3px;
  background: var(--gold-deep); margin-top: 16px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 16px; font-weight: 500; line-height: 1; text-decoration: none;
  padding: 14px 28px; border-radius: var(--radius-sm); border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  min-height: 44px;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--gold); color: var(--navy); }
.btn--primary:hover { background: var(--gold-deep); color: var(--navy); }
.btn--secondary { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn--secondary:hover { color: var(--primary-dark); border-color: var(--primary-dark); }
.btn--onnavy { background: var(--gold); color: var(--navy); }
.btn--onnavy:hover { background: var(--gold-light); color: var(--navy); }
.btn--block { width: 100%; }
.textlink { color: var(--primary); font-weight: 500; }
.textlink:hover { color: var(--primary-dark); }

/* =========================================================================
   Header / nav
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--hairline);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--hairline); }
.nav { display: flex; align-items: center; gap: 20px; height: 56px; }
@media (min-width: 960px) { .nav { height: 64px; } }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 36px; height: 36px; flex: 0 0 36px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__t1 { font-size: 14px; font-weight: 700; color: var(--navy); }
.brand__t2 { font-size: 12px; font-weight: 400; color: var(--muted); }

.nav__links { display: none; align-items: center; gap: 26px; }
.nav__links a {
  font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav__links a:hover { color: var(--primary); }
.nav__links a.is-active { color: var(--primary); border-bottom-color: var(--primary); }

.lang { display: flex; align-items: center; gap: 0; }
.lang button {
  background: none; border: none; padding: 4px 10px; font-size: 14px; color: var(--slate);
  border-left: 1px solid var(--hairline); line-height: 1;
}
.lang button:first-child { border-left: none; }
.lang button:hover { color: var(--primary); }
.lang button.is-active { color: var(--navy); font-weight: 500; }

.nav__cta { display: none; }
.nav__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: none; border: none; color: var(--navy);
}
/* mobile header: only Chinese wordmark; language lives in the menu + footer */
@media (max-width: 959px) {
  .nav { gap: 12px; }
  .brand__t2 { display: none; }
  .nav > .lang { display: none; }
}
@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
}

/* mobile menu panel */
.mobile-menu {
  position: fixed; inset: 56px 0 auto 0; z-index: 49; background: #fff;
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 8px 24px rgba(11,46,82,0.10);
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.mobile-menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu__inner { padding: 8px 24px 24px; }
.mobile-menu .lang { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.mobile-menu a.m-link {
  display: block; font-size: 18px; color: var(--ink); text-decoration: none;
  padding: 16px 0; border-bottom: 1px solid var(--hairline);
}
.mobile-menu a.m-link:hover { color: var(--primary); }
.mobile-menu .btn { margin-top: 20px; }
@media (min-width: 960px) { .mobile-menu { display: none; } }
body.menu-open { overflow: hidden; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero { border-bottom: 1px solid var(--hairline); }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.hero__eyebrow { margin-bottom: 16px; }
.hero__title { margin-bottom: 20px; }
.hero__lead { margin-bottom: 28px; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero__cta .btn--primary { width: 100%; }
@media (min-width: 560px) { .hero__cta .btn--primary { width: auto; } }

/* destination card in hero */
.destcard { border: 1px solid var(--hairline); border-radius: var(--radius); background: #fff; }
.destcard__head { padding: 20px 24px; border-bottom: 1px solid var(--hairline); }
.destcard__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid var(--hairline);
  color: var(--ink); text-decoration: none;
}
.destcard__row:last-of-type { border-bottom: none; }
.destcard__row:hover { background: var(--bg-soft); text-decoration: none; }
.destcard__row .zh { font-size: 16px; font-weight: 500; color: var(--ink); }
.destcard__row .en { font-size: 14px; color: var(--muted); }
.destcard__foot { padding: 12px 24px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--hairline); }

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 7fr 5fr; gap: 56px; }
}

/* =========================================================================
   Fact band (navy)
   ========================================================================= */
.band { background: var(--navy); color: #fff; }
.factband { padding: 40px 0; }
.factband__grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.fact { text-align: center; padding: 20px 0; border-bottom: 1px solid var(--line-navy); }
.fact:last-child { border-bottom: none; }
.fact__num {
  font-size: 40px; font-weight: 700; line-height: 1.1; color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.fact__label { font-size: 14px; color: rgba(255,255,255,0.8); margin-top: 6px; }
@media (min-width: 720px) {
  .factband { padding: 48px 0; }
  .factband__grid { grid-template-columns: repeat(3,1fr); }
  .fact { border-bottom: none; border-left: 1px solid var(--line-navy); }
  .fact:first-child { border-left: none; }
}

/* =========================================================================
   Cards grids
   ========================================================================= */
.grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3,1fr); }
  .grid--4 { grid-template-columns: repeat(4,1fr); }
  .grid--2 { grid-template-columns: repeat(2,1fr); }
}

.card {
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 24px; transition: border-color .15s ease;
}
@media (min-width:960px){ .card { padding: 32px; } }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--blue-soft); color: var(--primary-dark); margin-bottom: 20px;
}
.card__title { margin-bottom: 10px; }
.card__desc { color: var(--slate); font-size: 16px; }
.card--hover:hover { border-color: var(--primary); }
.card--hover:hover .card__title { color: var(--primary-dark); }

/* destination cards */
.dcard { display: flex; flex-direction: column; background:#fff; border:1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.dcard__head { padding: 24px; border-bottom: 1px solid var(--hairline); }
.dcard__en { font-size: 13px; color: var(--muted); margin-top: 4px; }
.dcard__body { padding: 24px; color: var(--slate); font-size: 16px; flex: 1; }
.dcard__foot { padding: 16px 24px; border-top: 1px solid var(--hairline); }
.dcard__foot a { font-size: 15px; font-weight: 500; color: var(--primary); }
.dest-note { margin-top: 24px; font-size: 14px; color: var(--muted); }

/* =========================================================================
   Process timeline
   ========================================================================= */
.steps { margin-top: 40px; display: grid; grid-template-columns: 1fr; gap: 0; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px;
  padding: 24px 0; border-bottom: 1px solid var(--hairline);
}
.step:last-child { border-bottom: none; }
.step__num { font-size: 32px; font-weight: 700; color: var(--gold-deep); font-variant-numeric: tabular-nums; line-height: 1; }
.step__title { margin-bottom: 6px; }
.step__desc { font-size: 14px; color: var(--slate); }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(6,1fr); gap: 24px; }
  .step { grid-template-columns: 1fr; border-bottom: none; padding: 0; position: relative; }
  .step__num { margin-bottom: 12px; }
}

/* =========================================================================
   About
   ========================================================================= */
.about__body { max-width: 720px; margin-top: 24px; display: grid; gap: 20px; color: var(--slate); }
.about__body p { font-size: 16px; }

/* =========================================================================
   CTA band
   ========================================================================= */
.ctaband { padding: 64px 0; }
@media (min-width:960px){ .ctaband { padding: 96px 0; } }
.ctaband__grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: end; }
.ctaband__title { color: #fff; }
.ctaband__sub { color: rgba(255,255,255,0.8); margin-top: 12px; font-size: 16px; }
.ctaband__actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.ctaband__phone { color: var(--gold-light); font-size: 17px; font-weight: 500; }
.ctaband__phone:hover { color: var(--gold-light); }
.ctaband__actions .btn { width: 100%; }
@media (min-width: 720px) {
  .ctaband__grid { grid-template-columns: 3fr 2fr; }
  .ctaband__actions { align-items: flex-end; }
  .ctaband__actions .btn { width: auto; }
}

/* =========================================================================
   Contact + form + payment
   ========================================================================= */
.contact__grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 5fr 6fr; gap: 56px; } }

.dl { border-top: 1px solid var(--hairline); }
.dl__row { padding: 16px 0; border-bottom: 1px solid var(--hairline); display: grid; grid-template-columns: 88px 1fr; gap: 16px; }
.dl__k { font-size: 14px; font-weight: 500; color: var(--slate); }
.dl__v { font-size: 15px; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.dl__v a { color: var(--primary); }
.dl__v .en { color: var(--muted); font-size: 14px; display: block; margin-top: 2px; }

.form__row { margin-bottom: 18px; }
.form__label { display: block; font-size: 14px; font-weight: 500; color: var(--slate); margin-bottom: 6px; }
.form__req { color: var(--danger); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s ease;
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--primary); outline: 2px solid var(--primary); outline-offset: 1px; }
.form .is-error { border-color: var(--danger); }
.form__err { color: var(--danger); font-size: 13px; margin-top: 6px; display: none; }
.form .is-error ~ .form__err { display: block; }
.form__note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.form__success { color: var(--success); font-size: 15px; }

/* payment card */
.pay { margin-top: 40px; }
.paycard { border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; max-width: 720px; }
.paycard__head { padding: 20px 24px; background: var(--bg-soft); border-bottom: 1px solid var(--hairline); }
.paytable { width: 100%; border-collapse: collapse; }
.paytable th, .paytable td { text-align: left; padding: 14px 24px; border-bottom: 1px solid var(--hairline); font-size: 15px; vertical-align: top; }
.paytable tr:last-child th, .paytable tr:last-child td { border-bottom: none; }
.paytable th { font-weight: 500; color: var(--slate); width: 40%; }
.paytable td { color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
/* stack the two columns on narrow screens (no horizontal overflow) */
@media (max-width: 560px) {
  .paytable, .paytable tbody, .paytable tr { display: block; }
  .paytable th, .paytable td { display: block; width: auto; padding: 14px 20px; border-bottom: none; }
  .paytable th { padding-bottom: 2px; font-size: 13px; }
  .paytable td { padding-top: 0; padding-bottom: 14px; }
  .paytable tr { border-bottom: 1px solid var(--hairline); }
  .paytable tr:last-child { border-bottom: none; }
}
.pay__note { font-size: 13px; color: var(--muted); margin-top: 12px; max-width: 720px; }

/* =========================================================================
   Footer
   ========================================================================= */
.footer { background: var(--navy-2); color: #fff; border-top: 3px solid var(--gold-deep); padding: 48px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.footer__brand { display: flex; gap: 12px; align-items: flex-start; }
.footer__brand img { width: 48px; height: 48px; flex: 0 0 48px; }
.footer__names .n1 { font-size: 14px; color: #fff; }
.footer__names .n2 { font-size: 13px; color: rgba(255,255,255,0.7); }
.footer__names .tag { font-size: 13px; color: var(--gold-light); margin-top: 8px; }
.footer h4 { font-size: 14px; color: #fff; margin-bottom: 14px; font-weight: 700; }
.footer__col a, .footer__col p { color: rgba(255,255,255,0.8); font-size: 14px; text-decoration: none; }
.footer__col li { margin-bottom: 10px; }
.footer__col a:hover { color: #fff; text-decoration: underline; }
.footer__bottom {
  margin-top: 40px; border-top: 1px solid var(--line-navy); padding: 24px 0;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,0.6);
}
.footer__bottom .lang button { color: rgba(255,255,255,0.6); border-color: var(--line-navy); }
.footer__bottom .lang button.is-active { color: #fff; }
@media (min-width: 720px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; }
  .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* utilities */
.arrow::after { content: " \2192"; }
.nowrap { white-space: nowrap; }

/* skip link (visible on focus) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; text-decoration: none; }

/* sticky nav should not hide anchored headings */
section[id] { scroll-margin-top: 80px; }
@media (min-width: 960px) { section[id] { scroll-margin-top: 96px; } }
.pay[id] { scroll-margin-top: 80px; }

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