/* English Tutor HK — shared styles */

/* FONTS: pick fonts at fonts.google.com, paste the new link here,
   then change --font-main below to the new font name. */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&family=Noto+Sans+TC:wght@700&display=swap');

/* COLOURS: change the codes below to restyle the whole site. */
:root {
  --ink: #0F2A44;
  --text: #334155;
  --muted: #475569;
  --line: #E2E8F0;
  --soft: #F4F7FB;
  --accent: #C8102E;
  --accent-dark: #A00D25;
  --white: #FFFFFF;
  --radius: 20px;
  --font-main: 'Plus Jakarta Sans';
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-main), 'Noto Sans TC', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section.soft { background: var(--soft); }
.section.dark { background: var(--ink); color: var(--white); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.lead { font-size: 20px; color: var(--text); max-width: 640px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.zh { font-family: 'Noto Sans TC', sans-serif; }

/* Header */
.site-header { border-bottom: 1px solid #E6EAF0; background: var(--white); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.logo { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.logo b { font-size: 20px; font-weight: 800; }
.logo span { font-size: 15px; font-weight: 600; color: var(--muted); }
.logo .zh { color: var(--accent); font-weight: 700; font-size: 16px; }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 8px 0 4px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav a.btn { border-bottom: 0; margin-top: 8px; justify-content: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; border: 2px solid transparent; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: var(--white); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-ghost { border-color: var(--white); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.nav .btn { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Layout helpers */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > .main { flex: 999 1 480px; min-width: 0; }
.split > .side { flex: 1 1 320px; min-width: 0; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.small { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: var(--white); display: flex; flex-direction: column; gap: 14px; }
.card.dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.card.dark p, .card.dark li { color: #E2E8F0; }
.card.dark .eyebrow { color: #C7D2E0; }
.card.featured { outline: 2px solid var(--accent); border-color: var(--accent); }
.tile { background: var(--soft); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.section.soft .tile { background: var(--white); }
.card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
a.card { text-decoration: none; color: var(--ink); }
a.card:hover { border-color: var(--ink); }

.photo { border-radius: 24px; overflow: hidden; background: #DCE4EE; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.facts { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; font-weight: 600; color: var(--text); }
.facts span::before { content: "✓"; color: var(--accent); margin-right: 8px; }

.stat { font-size: 32px; font-weight: 800; color: var(--accent); }
.step-num { width: 48px; height: 48px; border-radius: 999px; background: var(--accent); color: var(--white); font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; }

.price { font-size: 36px; font-weight: 800; }
.pill-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-nav a { text-decoration: none; background: var(--white); border: 1px solid #CBD5E1; border-radius: 999px; padding: 10px 18px; font-size: 15px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

.service { border: 1px solid var(--line); border-radius: 24px; padding: 40px; display: flex; flex-wrap: wrap; gap: 40px; scroll-margin-top: 90px; }
.service.dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.service.dark p, .service.dark li { color: #E2E8F0; }
.service.dark .eyebrow { color: #C7D2E0; }
.service > .intro { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.service > .detail { flex: 1 1 420px; min-width: 0; }
.service ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 600px) { .service, .card { padding: 26px; } }

table.prices { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 16px; overflow: hidden; }
table.prices th, table.prices td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
table.prices th { background: var(--soft); font-size: 15px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }

.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; }
.contact-list b { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

.center { text-align: center; align-items: center; }
.center .lead { margin: 0 auto; }
.section.dark .lead { color: #CBD5E1; }

/* Footer */
.site-footer { border-top: 1px solid #E6EAF0; padding: 40px 0; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }

/* Currency switch (Prices and Book pages) */
[hidden] { display: none !important; }
.currency { display: inline-flex; gap: 2px; padding: 3px; border: 2px solid var(--ink); border-radius: 999px; margin-left: auto; }
.currency button { font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); background: transparent; border: 0; border-radius: 999px; padding: 8px 12px; min-height: 40px; cursor: pointer; }
.currency button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.site-header .currency + .menu-toggle, .site-header .currency + .nav { margin-left: 0; }

/* Pay by FPS pop-up */
.pay-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.card-link, .card-link-row { font-size: 15px; font-weight: 600; color: var(--muted); }
.card-link-row a, a.card-link { color: var(--ink); }
button.btn { font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; }
.fps-dialog { width: min(480px, calc(100vw - 32px)); border: 0; border-radius: var(--radius); padding: 28px; color: var(--ink); box-shadow: 0 24px 60px rgba(15, 42, 68, 0.25); }
.fps-dialog::backdrop { background: rgba(15, 42, 68, 0.55); }
.fps-dialog > * + * { margin-top: 16px; }
.fps-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fps-head h2 { font-size: 26px; }
.fps-close { font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); background: var(--soft); border: 0; border-radius: 999px; padding: 10px 16px; min-height: 44px; cursor: pointer; }
.fps-amount { font-size: 20px; color: var(--ink); }
.fps-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 14px; }
.fps-details { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 10px 0 0; padding: 14px 16px; background: var(--soft); border-radius: 12px; }
.fps-details dt { font-weight: 600; color: var(--muted); }
.fps-details dd { margin: 0; font-weight: 700; }
.fps-qr { margin-top: 12px; border-radius: 12px; }
.fps-link { display: block; margin-top: 6px; font-weight: 700; word-break: break-all; }
.fps-dialog .btn { width: 100%; }

.copy-btn { font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--white); border: 1px solid #CBD5E1; border-radius: 999px; padding: 6px 12px; margin-left: 6px; cursor: pointer; min-height: 32px; }
.copy-btn:hover { border-color: var(--ink); }

/* Gallery */
.gallery-group { display: flex; flex-direction: column; gap: 24px; scroll-margin-top: 90px; }
.gallery { columns: 4 220px; column-gap: 20px; }
.gallery-item { break-inside: avoid; margin: 0 0 20px; display: flex; flex-direction: column; gap: 8px; }
.gallery-item img { width: 100%; height: auto; border-radius: 16px; background: #DCE4EE; }
.gallery-item figcaption { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* Logo image */
.logo img { display: block; height: 44px; width: auto; }
@media (max-width: 420px) { .logo img { height: 36px; } }

/* WhatsApp button */
.btn-whatsapp { background: #25D366; color: #0B2E1A; gap: 10px; }
.btn-whatsapp:hover { background: #1EBE5A; color: #0B2E1A; }
.btn-whatsapp svg { width: 22px; height: 22px; flex: none; }

/* Remove the 2px black frame baked into the old photos */
.photo img.trim, .gallery-frame img { transform: scale(1.03); }
.gallery-frame { overflow: hidden; border-radius: 16px; background: #DCE4EE; }
.gallery-frame img { border-radius: 0 !important; }

/* Video introduction */
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: var(--ink); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #E2E8F0; text-align: center; padding: 24px; }
.video-placeholder .play { width: 72px; height: 72px; border-radius: 999px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.video-placeholder .play svg { width: 28px; height: 28px; margin-left: 4px; }

/* Coloured category buttons (Services and Gallery) */
.pill-nav a { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pill-nav a:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* Services: keep each section's two columns vertically centred so there is no empty gap */
.service { align-items: center; }

/* Small highlight badge */
.badge { align-self: flex-start; background: #FDE8EB; color: var(--accent-dark); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }

/* FAQ */
.faq-list { max-width: 820px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 700; font-size: 18px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 600; color: var(--accent); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0; padding: 0 24px 22px; color: var(--text); }

/* Footer brand */
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand img { height: 36px; width: auto; display: block; margin-bottom: 4px; }
.site-footer nav { max-width: 620px; justify-content: flex-end; }
@media (max-width: 760px) { .site-footer nav { justify-content: flex-start; } }

/* Header layout with language switch */
.site-header .wrap { justify-content: flex-start; column-gap: 14px; }
.site-header .logo { margin-right: auto; }
.site-header .currency { margin-left: 0; }
.site-header .nav { margin-left: 10px; }
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid #CBD5E1; border-radius: 999px; }
.lang-switch a { min-width: 36px; min-height: 36px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ink); }
.lang-switch a:hover { background: var(--soft); color: var(--ink); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--white); }
@media (max-width: 860px) {
  .site-header .nav { margin-left: 0; }
}
@media (max-width: 420px) {
  .site-header .wrap { column-gap: 8px; }
  .logo img { height: 30px; }
  .lang-switch a { min-width: 32px; padding: 0 6px; }
  .menu-toggle { padding: 8px 12px; }
}

/* Chinese pages: system Chinese fonts keep the pages fast */
:lang(zh-Hant) body, body:lang(zh-Hant) { font-family: 'Plus Jakarta Sans', 'PingFang HK', 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif; }
:lang(zh-Hans) body, body:lang(zh-Hans) { font-family: 'Plus Jakarta Sans', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif; }
html:lang(zh-Hant) h1, html:lang(zh-Hans) h1, html:lang(zh-Hant) h2, html:lang(zh-Hans) h2 { letter-spacing: 0; line-height: 1.3; }
html:lang(zh-Hant) .eyebrow, html:lang(zh-Hans) .eyebrow { letter-spacing: 0.04em; }

/* Phone header: logo, language switch and menu icon on one line */
.menu-icon { display: none; width: 18px; height: 2px; background: currentColor; border-radius: 2px; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
@media (max-width: 480px) {
  .logo img { height: 26px; }
  .lang-switch a { min-width: 30px; min-height: 34px; padding: 0 5px; font-size: 13px; }
  .menu-toggle { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .menu-icon { display: block; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
