/* Self-hosted fonts (SIL Open Font License): Bricolage Grotesque for headings, Figtree for text */
@font-face { font-family: "Bricolage Grotesque"; src: url("assets/fonts/bricolage-grotesque-latin.woff2") format("woff2"); font-weight: 700 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("assets/fonts/figtree-latin.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --wa: #2563EB;
  --wa-dark: #1D4ED8;
  --sky: #93C5FD;
  --ink: #172554;
  --muted: #52617A;
  --line: #D6E5F5;
  --bg: #F5F9FF;
  --surface: #FFFFFF;
  --surface-soft: #F5F9FF;
  --input-border: #C9D8EA;
  --danger: #B91C1C;
  --tint: rgba(219, 234, 254, .38);
  --glass: rgba(248, 251, 255, .9);
  --radius: 16px;
  --shadow: 0 14px 34px -16px rgba(30, 64, 175, .16);
  --font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang HK", "Noto Sans HK", "Microsoft JhengHei", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --blue: #60A5FA;
  --blue-dark: #93C5FD;
  --wa: #2563EB;
  --wa-dark: #1D4ED8;
  --sky: #BFDBFE;
  --ink: #E5EDF7;
  --muted: #AEBBD0;
  --line: #2D3C53;
  --bg: #0B1220;
  --surface: #131E30;
  --surface-soft: #18263B;
  --input-border: #3B4B64;
  --danger: #FCA5A5;
  --tint: rgba(30, 41, 59, .72);
  --glass: rgba(15, 23, 42, .92);
  --shadow: 0 14px 34px -16px rgba(0, 0, 0, .5);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; padding-bottom: 76px; }
/* Subtle white-and-blue backdrop */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' fill='none' stroke='%233B82F6' stroke-opacity='.08' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M30 62c0-22 16-36 38-38-2 22-16 38-38 38zM30 62 58 32'/%3E%3Cpath d='M118 140c-4-20 6-38 26-46 4 20-6 38-26 46zm0 0 18-36'/%3E%3C/svg%3E"),
    radial-gradient(90% 55% at 100% 0%, rgba(59, 130, 246, .10) 0%, transparent 70%),
    radial-gradient(80% 50% at 0% 100%, rgba(59, 130, 246, .055) 0%, transparent 70%),
    linear-gradient(180deg, #FFFFFF 0%, #EEF5FF 100%);
}
:root[data-theme="dark"] body::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' fill='none' stroke='%2393C5FD' stroke-opacity='.055' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M30 62c0-22 16-36 38-38-2 22-16 38-38 38zM30 62 58 32'/%3E%3Cpath d='M118 140c-4-20 6-38 26-46 4 20-6 38-26 46zm0 0 18-36'/%3E%3C/svg%3E"),
    radial-gradient(90% 55% at 100% 0%, rgba(37, 99, 235, .12) 0%, transparent 70%),
    radial-gradient(80% 50% at 0% 100%, rgba(15, 23, 42, .7) 0%, transparent 70%),
    linear-gradient(180deg, #0F172A 0%, #0B1220 100%);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: "Bricolage Grotesque", var(--font); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 7vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: 8px; }
.eyebrow { color: var(--blue-dark); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .6em; }
.muted { color: var(--muted); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 36em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa::before { content: ""; width: 20px; height: 20px; flex: none; background: currentColor; -webkit-mask: var(--wa-icon) center / contain no-repeat; mask: var(--wa-icon) center / contain no-repeat; }
.btn--wa:hover { background: #1D4ED8; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: .9rem; }
:root { --wa-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.3 14.1c-.2.6-1.3 1.2-1.8 1.3-.5 0-1 .2-3.3-.7-2.8-1.1-4.5-4-4.7-4.2-.1-.2-1.1-1.5-1.1-2.8 0-1.4.7-2 1-2.3.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.9 2.1c.1.2.1.4 0 .5l-.3.5-.4.4c-.1.2-.3.3-.1.6.1.3.6 1.1 1.4 1.8 1 .9 1.8 1.1 2 1.3.3.1.4.1.6-.1l.8-1c.2-.3.4-.2.6-.1l2 1c.3.1.5.2.5.3.1.1.1.6-.1 1.2z'/%3E%3C/svg%3E"); }

/* Header */
/* Translucent navy glass; overlaps the hero so the first screen stays cohesive */
.header { position: sticky; top: 0; z-index: 50; color: #fff; background: rgba(18,45,88,.76); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid rgba(147,197,253,.3); transition: background-color .25s; }
.header.is-scrolled { background: rgba(18,45,88,.97); }
.header .brand__name { color: #fff; }
.header .brand__name b { color: var(--sky); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; flex: 0 0 auto; }
.brand img { flex: none; border-radius: 8px; }
.brand__name { font-family: "Bricolage Grotesque", var(--font); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; white-space: nowrap; flex: none; }
.brand__name b { color: var(--blue); }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__name b { color: var(--sky); }
.header__actions { display: flex; align-items: center; gap: 8px; }
.header__actions .btn--wa { display: none; }
.lang { display: inline-flex; padding: 0; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }
.lang button { min-width: 48px; height: 44px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: .85rem; font-weight: 700; color: rgba(255,255,255,.8); cursor: pointer; transition: background-color .15s, color .15s; }
.lang button[aria-pressed="true"] { background: var(--blue-dark); color: #fff; box-shadow: 0 2px 8px rgba(59,130,246,.22); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 78px; height: 44px; padding: 0 11px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: #fff; background: rgba(255,255,255,.1); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; transition: background-color .15s, border-color .15s; }
.theme-toggle:hover { background: rgba(255,255,255,.18); }
.theme-toggle[aria-pressed="true"] { background: rgba(37,99,235,.4); border-color: rgba(191,219,254,.72); }
.theme-toggle__icon { font-size: 1.2rem; line-height: 1; }
.menu { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.menu span, .menu span::before, .menu span::after { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: transform .2s; }
.menu span::before, .menu span::after { content: ""; position: absolute; left: 0; }
.menu span::before { top: -6px; } .menu span::after { top: 6px; }
.menu[aria-expanded="true"] span { background: transparent; }
.menu[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.nav { position: fixed; inset: 65px 0 auto 0; background: #16345C; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(147,197,253,.3); display: flex; flex-direction: column; padding: 8px 16px 16px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
.nav.is-open { opacity: 1; transform: none; visibility: visible; }
.nav a { padding: 14px 4px; font-weight: 600; text-decoration: none; color: #fff; border-bottom: 1px solid rgba(255,255,255,.12); }
.nav a:last-child { border-bottom: 0; }

/* Hero */
.hero { position: relative; isolation: isolate; margin-top: -65px; padding: 105px 0 56px; overflow: hidden; color: #fff; background: #16345C; }
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* Cool navy wash keeps text readable and ties the photo to the brand */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,35,72,.48) 0%, rgba(12,35,72,.70) 45%, rgba(12,35,72,.9) 100%); }
.hero .eyebrow { color: var(--sky); }
.hero .lead { color: rgba(255,255,255,.88); }
.hero .trust { color: rgba(255,255,255,.92); }
.hero .trust li::before { color: var(--sky); }
.hero .btn--ghost { background: rgba(15,35,73,.54); color: #fff; border-color: rgba(191,219,254,.72); }
.hero .btn--ghost:hover { background: rgba(59,130,246,.24); border-color: var(--sky); }
.hero__inner { display: grid; gap: 40px; }
.hero__inner--single { grid-template-columns: minmax(0, 1fr); }
.hero__inner--single .hero__copy { max-width: 760px; }
.hero__ctas { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.trust li::before { content: "✓"; color: var(--blue); font-weight: 800; margin-right: 6px; }

/* Sections */
.section { padding: 64px 0; }
.section--tint { background: var(--tint); border-block: 1px solid rgba(59,130,246,.12); }

/* Service blocks */
.svc-grid { display: grid; gap: 16px; margin-top: 24px; }
.svc { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.svc--photo > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-soft); }
.svc__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 20px; }
.svc h3 { font-size: 1.35rem; margin-bottom: .25em; }
.svc .btn { margin-top: auto; }
.svc__body > p { margin-bottom: 20px; }
.ticks { list-style: none; padding: 0; margin: 4px 0 24px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; font-weight: 600; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: rgba(59,130,246,.13); color: var(--blue-dark); font-size: .75rem; font-weight: 800; display: grid; place-items: center; }

/* Chips */
.chip { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.chip--sm { padding: 6px 12px; font-size: .85rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 4px 60px; min-height: 48px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps p { color: var(--muted); margin: 0; }

/* Clear service terms and community giving */
.safety { display: grid; gap: 28px; align-items: start; }
.safety__card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.safety__card h3 { margin-bottom: 18px; }
.safety__card .ticks { margin: 0; }
.community { display: grid; gap: 28px; align-items: center; }
.community__image { position: relative; overflow: hidden; border-radius: 20px; background: var(--surface-soft); box-shadow: var(--shadow); }
.community__image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.community__image span { position: absolute; left: 14px; bottom: 14px; padding: 5px 10px; border-radius: 999px; color: #fff; background: rgba(23,37,84,.76); font-size: .8rem; }
.community__copy > p:not(.eyebrow) { max-width: 42em; }
.community__rate { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 0 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.community__rate span { font-weight: 700; }
.community__rate strong { color: var(--blue-dark); font: 800 2rem/1 "Bricolage Grotesque", var(--font); }
.footer__legal a { color: var(--sky); text-decoration: underline; text-underline-offset: 2px; }

/* FAQ */
details { background: var(--surface); border-radius: 12px; margin-top: 10px; border: 1px solid var(--line); }
summary { padding: 18px 48px 18px 20px; font-weight: 700; cursor: pointer; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--blue); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* Form */
.quote { display: grid; gap: 24px; }
.form { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 1rem; }
input, select, textarea { font: inherit; font-size: 16px; /* prevents iOS zoom */ padding: 12px 14px; border: 1px solid var(--input-border); border-radius: 10px; background: var(--surface); color: var(--ink); width: 100%; min-height: 48px; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.2); }
.is-invalid { border-color: var(--danger); }
.form__error, .field__error { color: var(--danger); margin: 0; font-weight: 600; font-size: .95rem; }
.field__error:empty { display: none; }
:focus-visible { outline: 3px solid rgba(59,130,246,.6); outline-offset: 2px; }

/* Footer */
.footer { background: linear-gradient(180deg, #173B70 0%, #102B53 100%); color: rgba(255,255,255,.82); padding: 48px 0 24px; border-top: 1px solid rgba(147,197,253,.3); }
.footer__inner { display: grid; gap: 28px; }
.footer h3 { color: #fff; font-size: 1rem; }
.footer p { margin: 0 0 .4em; }
.footer a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer a:hover { color: #fff; }
.footer .brand { margin-bottom: 12px; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; font-size: .85rem; color: rgba(255,255,255,.55); }

/* Mobile dock */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 2fr; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(18,45,88,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid rgba(147,197,253,.3); }
.dock .btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(191,219,254,.65); }

/* Tablet+ */
@media (min-width: 640px) {
  .hero__ctas { flex-direction: row; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .form { grid-template-columns: 1fr 1fr; padding: 28px; }
  .field--full { grid-column: 1 / -1; }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .svc-grid.svc-grid--2x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .header__inner { gap: 8px; }
  .brand__name { font-size: 1rem; }
  .header__actions { gap: 6px; }
  .lang button { min-width: 42px; padding-inline: 8px; }
  .theme-toggle { width: 44px; min-width: 44px; padding: 0; }
  .theme-toggle__label { display: none; }
}

@media (max-width: 360px) {
  .header__inner { gap: 4px; }
  .brand { gap: 6px; }
  .brand img { width: 34px; height: 34px; }
  .brand__name { font-size: .9rem; }
  .header__actions { gap: 4px; }
  .lang button { min-width: 36px; height: 40px; padding-inline: 6px; }
  .theme-toggle { width: 40px; min-width: 40px; height: 40px; }
}

/* Desktop */
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
  .header__actions .btn--wa { display: inline-flex; }
  /* Fill the whole first screen on laptops (the header floats over the hero) */
  .hero { display: flex; align-items: center; min-height: 100vh; min-height: 100svh; padding: 129px 0 64px; }
  .hero__inner { width: 100%; }
  .hero::before { background: linear-gradient(90deg, rgba(12,35,72,.92) 0%, rgba(12,35,72,.74) 50%, rgba(12,35,72,.42) 100%); }
  .hero__inner:not(.hero__inner--single) { grid-template-columns: 1.15fr .85fr; align-items: center; }
  .section { padding: 96px 0; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps li { padding: 64px 0 0; }
  .quote { grid-template-columns: .8fr 1.2fr; align-items: start; gap: 56px; }
  .safety { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .community { grid-template-columns: 1fr 1fr; gap: 56px; }
  .hero__bg { object-position: 50% 45%; }
}

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

/* Legal and 404 pages */
.subpage { padding-bottom: 0; }
.subpage .header .btn--wa { display: inline-flex; }
.subpage main { min-height: 60vh; }
.prose h1 { font-size: clamp(2rem, 6vw, 3rem); }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose p, .prose li { font-size: 1.0625rem; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: .4em; }
.prose a:not(.btn) { color: var(--blue-dark); }
.actions-404 { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.note { margin-top: 24px; font-size: 1rem; }

/* Full inline menu only where it fits on one line */
@media (min-width: 1200px) {
  .header__inner { padding-left: 8px; }
  .nav { gap: 20px; }
  .menu { display: none; }
  .nav { position: static; flex-direction: row; gap: 28px; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 0; border: 0; font-size: .95rem; color: rgba(255,255,255,.82); white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
  .nav a:hover { color: #fff; }
}

