/* ============================================================
   Landing page styles
   Palette: deep navy + cyan/amber accents, light content sections
   ============================================================ */

:root {
  --navy-900: #070d1c;
  --navy-800: #0c1631;
  --navy-700: #132145;
  --navy-600: #1c2d5c;
  --ink: #101828;
  --ink-soft: #475069;
  --ink-mute: #6b7590;
  --line: #e3e7f0;
  --bg: #ffffff;
  --bg-alt: #f5f7fc;
  --accent: #2f7cff;
  --accent-dark: #1a5ad8;
  --cyan: #37d5d6;
  --amber: #ffb020;
  --green: #16a34a;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(16, 24, 40, .06);
  --shadow: 0 12px 34px rgba(16, 24, 40, .10);
  --shadow-lg: 0 28px 70px rgba(7, 13, 28, .28);
  --wrap: 1160px;
  --header-h: 72px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
          "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }

/* the hidden attribute must win over the display rules further down */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: .98rem; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; box-shadow: 0 10px 24px rgba(47, 124, 255, .32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(47, 124, 255, .42); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { background: rgba(255, 255, 255, .15); transform: translateY(-2px); }
.btn-sm { padding: .6rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* ── Header ────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(7, 13, 28, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
  transition: background .25s ease;
}
.site-header.scrolled { background: rgba(7, 13, 28, .96); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: .65rem; font-weight: 750; letter-spacing: -.01em; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--accent));
  color: #04122b; font-weight: 800; font-size: .95rem; flex: none;
}
.brand-name { font-size: 1.02rem; white-space: nowrap; }

.nav { display: flex; gap: 1.5rem; margin-left: auto; font-size: .95rem; }
.nav a { color: rgba(255, 255, 255, .78); position: relative; padding: .25rem 0; }
.nav a:hover, .nav a.active { color: #fff; }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; border-radius: 2px; background: var(--cyan);
}

.header-actions { display: flex; align-items: center; gap: .85rem; }

.lang-switch {
  display: flex; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px;
  overflow: hidden; background: rgba(255, 255, 255, .05);
}
.lang-switch button {
  border: 0; background: transparent; color: rgba(255, 255, 255, .72);
  font: inherit; font-size: .8rem; font-weight: 650; letter-spacing: .02em;
  padding: .4rem .7rem; cursor: pointer; transition: background .2s, color .2s;
}
.lang-switch button:hover { color: #fff; }
.lang-switch button[aria-pressed="true"] { background: var(--accent); color: #fff; }

.header-phone { display: flex; align-items: center; gap: .45rem; font-size: .92rem; font-weight: 600; color: #fff; }
.header-phone svg { width: 17px; height: 17px; fill: var(--cyan); }
.header-phone:hover { color: var(--cyan); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(120% 90% at 82% 0%, #1d3a80 0%, transparent 55%),
    linear-gradient(170deg, var(--navy-800) 0%, var(--navy-900) 100%);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 7vw, 6rem);
}
.hero-glow {
  position: absolute; inset: auto -20% -60% 30%; height: 520px;
  background: radial-gradient(circle at center, rgba(55, 213, 214, .22), transparent 62%);
  filter: blur(20px); pointer-events: none;
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(55, 213, 214, .12); border: 1px solid rgba(55, 213, 214, .35);
  color: #b9f4f5; border-radius: 999px; padding: .45rem 1rem;
  font-size: .88rem; font-weight: 600; margin-bottom: 1.4rem;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); flex: none; box-shadow: 0 0 0 4px rgba(55, 213, 214, .2); }
.hero h1 { margin-bottom: 1.1rem; }
.hero .lede { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: rgba(255, 255, 255, .78); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin: 1.9rem 0 1rem; }
.hero-note { font-size: .88rem; color: rgba(255, 255, 255, .55); }
.hero-art img { filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45)); }

/* stats bar - sits astride the hero and the section below it */
.stats-band { position: relative; z-index: 5; margin-top: -62px; margin-bottom: 1.5rem; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.stats li {
  background: linear-gradient(180deg, rgba(19, 33, 69, .96), rgba(9, 16, 36, .96));
  padding: 1.4rem 1.5rem; text-align: center;
}
.stat-value { font-size: clamp(1.4rem, 2.4vw, 1.95rem); font-weight: 800; color: #fff; letter-spacing: -.02em; }
.stat-label { font-size: .84rem; color: rgba(255, 255, 255, .6); }

/* ── Sections ──────────────────────────────────────────── */
.section { padding: clamp(4.5rem, 8vw, 7rem) 0; }
#services { padding-top: clamp(3.5rem, 6vw, 5rem); }   /* the stats band already adds space */
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.kicker {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  font-weight: 750; color: var(--accent); margin-bottom: .6rem;
}
.section-sub { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }
.footnote { margin-top: 2rem; font-size: .9rem; color: var(--ink-mute); font-style: italic; }

.grid { display: grid; gap: 1.4rem; }
.services-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* service cards */
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.8rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c9d8fb; }
.service-icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(47, 124, 255, .14), rgba(55, 213, 214, .18));
  margin-bottom: 1.1rem;
}
.service-icon svg { width: 25px; height: 25px; fill: none; stroke: var(--accent-dark); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service-card p { color: var(--ink-soft); font-size: .97rem; }
.service-bullets { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; }
.service-bullets li {
  font-size: .82rem; color: var(--ink-soft); background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: 999px; padding: .3rem .75rem;
}

/* ── Timeline / process ────────────────────────────────── */
.timeline { position: relative; display: grid; gap: 1.1rem; counter-reset: step; }
.timeline::before {
  content: ""; position: absolute; left: 27px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--cyan)); opacity: .3;
}
.step {
  position: relative; display: grid; grid-template-columns: 56px 1fr auto;
  gap: 1.3rem; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem; box-shadow: var(--shadow-sm);
}
.step-num {
  counter-increment: step; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 750; color: #fff; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 0 0 6px rgba(47, 124, 255, .12);
}
.step-num::before { content: counter(step); }
.step h3 { margin-bottom: .35rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.step-pay {
  align-self: center; white-space: nowrap; font-size: .85rem; font-weight: 650;
  color: #8a5a00; background: rgba(255, 176, 32, .16);
  border: 1px solid rgba(255, 176, 32, .4); border-radius: 999px; padding: .45rem .95rem;
}
.step-pay.free { color: #12693a; background: rgba(22, 163, 74, .12); border-color: rgba(22, 163, 74, .35); }
.step.highlight { border-color: rgba(47, 124, 255, .5); box-shadow: 0 14px 36px rgba(47, 124, 255, .16); }

/* ── Projects ──────────────────────────────────────────── */
.projects-grid { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.project-card {
  display: flex; flex-direction: column; overflow: hidden; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-shot {
  position: relative; aspect-ratio: 16 / 10; background: var(--navy-800);
  border: 0; padding: 0; cursor: zoom-in; display: block; width: 100%; overflow: hidden;
}
.project-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.project-card:hover .project-shot img { transform: scale(1.04); }
.project-cat {
  position: absolute; left: .85rem; top: .85rem; z-index: 2;
  font-size: .76rem; font-weight: 650; color: #04122b;
  background: rgba(255, 255, 255, .92); border-radius: 999px; padding: .28rem .7rem;
}
.project-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.project-body p { color: var(--ink-soft); font-size: .96rem; }
.project-result {
  margin-top: auto; padding-top: .9rem; border-top: 1px dashed var(--line);
  font-size: .92rem; font-weight: 600; color: var(--green);
}
.project-tech { font-size: .8rem; color: var(--ink-mute); letter-spacing: .01em; margin-bottom: .8rem; }

/* ── Support ───────────────────────────────────────────── */
.support-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.4rem; }
.support-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.support-card h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
.support-card .tick, .support-card .cross {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; flex: none;
}
.support-card .tick { background: rgba(22, 163, 74, .14); color: var(--green); }
.support-card .cross { background: rgba(220, 38, 38, .12); color: #dc2626; }
.support-card li { display: flex; gap: .7rem; padding: .55rem 0; color: var(--ink-soft); font-size: .97rem; border-bottom: 1px solid var(--line); }
.support-card li:last-child { border-bottom: 0; }
.support-card li::before { content: "—"; color: var(--ink-mute); flex: none; }
.support-card.included li::before { content: "✓"; color: var(--green); font-weight: 700; }
.support-card.excluded li::before { content: "✕"; color: #dc2626; font-weight: 700; }

/* ── Why us ────────────────────────────────────────────── */
.why-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.why-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.why-card h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.why-card p { margin: 0; font-size: .93rem; color: var(--ink-soft); }
.why-card .why-num { font-size: .78rem; font-weight: 750; color: var(--accent); letter-spacing: .1em; }

/* ── Contact ───────────────────────────────────────────── */
.contact { background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); color: #fff; }
.contact .kicker { color: var(--cyan); }
.contact .section-sub { color: rgba(255, 255, 255, .72); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 3vw, 2.4rem); align-items: start; }

.manager-card {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg); padding: 1.9rem; backdrop-filter: blur(6px);
}
.manager-photo {
  width: 116px; height: 116px; border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(55, 213, 214, .55); box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
  margin-bottom: 1.1rem; background: var(--navy-700);
}
.manager-id h3 { margin-bottom: .1rem; font-size: 1.3rem; }
.manager-title { color: var(--cyan); font-size: .92rem; font-weight: 600; margin-bottom: 1rem; }
.manager-card blockquote {
  margin: 0 0 1.4rem; padding-left: 1rem; border-left: 3px solid rgba(55, 213, 214, .5);
  color: rgba(255, 255, 255, .78); font-size: .95rem; font-style: italic;
}
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; padding: .6rem 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.contact-list li:first-child { border-top: 0; }
.contact-list .ci-label { font-size: .78rem; color: rgba(255, 255, 255, .5); text-transform: uppercase; letter-spacing: .08em; min-width: 86px; padding-top: .15rem; }
.contact-list .ci-value { font-weight: 600; word-break: break-word; }
.contact-list a.ci-value:hover { color: var(--cyan); }

.enquiry { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.2rem); box-shadow: var(--shadow-lg); }
.enquiry h3 { margin-bottom: 1.2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: block; margin-bottom: 1rem; }
.field > span { display: block; font-size: .86rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .96rem; color: var(--ink);
  padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px;
  background: #fbfcfe; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47, 124, 255, .14);
}
.field input.invalid, .field textarea.invalid { border-color: #dc2626; background: #fff5f5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: .9rem 0 0; font-size: .92rem; min-height: 1.3em; }
.form-msg.ok { color: var(--green); font-weight: 600; }
.form-msg.err { color: #dc2626; font-weight: 600; }

/* ── Footer ────────────────────────────────────────────── */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .7); padding: 3rem 0 1.6rem; font-size: .93rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand { color: #fff; font-weight: 750; font-size: 1.1rem; margin-bottom: .3rem; }
.footer-contact { text-align: right; }
.footer-contact p { margin: 0 0 .3rem; }
.footer-contact a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.4rem; font-size: .85rem; color: rgba(255, 255, 255, .45); }
.footer-bottom p { margin: 0; }
.admin-link { color: rgba(255, 255, 255, .45); }
.admin-link:hover { color: var(--cyan); }

/* ── Lightbox ──────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; place-content: center; gap: 1rem;
  background: rgba(4, 8, 20, .93); padding: 4vh 4vw; text-align: center;
}
.lightbox img { max-width: min(1100px, 92vw); max-height: 78vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox p { color: rgba(255, 255, 255, .8); margin: 0; }
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.4rem; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08);
  color: #fff; font-size: 1.1rem; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .2); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 460px; }
  .why-wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; gap: 0;
    background: rgba(7, 13, 28, .98); padding: .5rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    transform: translateY(-130%); transition: transform .25s ease; margin-left: 0;
  }
  .nav.open { transform: none; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav-toggle { display: flex; }
  .header-inner { justify-content: space-between; }
  .header-actions { margin-left: auto; }
  .header-phone, .header-actions .btn { display: none; }
  .brand-name { display: none; }
}

@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 44px 1fr; gap: .9rem; padding: 1.25rem; }
  .step-pay { grid-column: 2; justify-self: start; margin-top: .6rem; white-space: normal; }
  .timeline::before { left: 22px; }
  .step-num { width: 34px; height: 34px; font-size: .9rem; }
  .footer-inner { flex-direction: column; }
  .footer-contact { text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .stats { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .lightbox, .nav-toggle, .hero-art { display: none; }
  body { color: #000; }
}
