/* Avenix CPA Limited — site stylesheet */
:root {
  --navy: #0E2140;
  --navy-deep: #081C3A;
  --navy-band: #0B2A5B;
  --ink: #1A2433;
  --text: #3A4557;
  --muted: #4A5568;
  --teal: #12A5B2;
  --teal-dark: #0B7F8A;
  --teal-light: #7FE0EA;
  --teal-tint: #DCF3F5;
  --bg: #EEF6F8;
  --line: #D5E4E8;
  --white: #FFFFFF;
  --font: "Manrope", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html[lang="zh-Hant"] body { line-height: 1.8; }
img, video { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { margin: 0; color: var(--navy); line-height: 1.15; }
h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 800; }
html[lang="zh-Hant"] h1, html[lang="zh-Hant"] h2, html[lang="zh-Hant"] h3 { font-weight: 700; line-height: 1.3; }
html[lang="zh-Hant"] h2 { font-size: clamp(26px, 2.8vw, 36px); }
p { margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
@media (max-width: 720px) { .section { padding: 64px 0; } }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-dark);
}
html[lang="zh-Hant"] .eyebrow { font-size: 14px; letter-spacing: 0.2em; text-transform: none; }
.lede { font-size: 17px; line-height: 1.7; color: var(--text); }
html[lang="zh-Hant"] .lede { line-height: 1.85; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; background: var(--navy); color: var(--white);
  padding: 10px 14px; border-radius: 6px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 15px; border: 0; cursor: pointer;
  font-family: inherit; transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--teal-dark); color: var(--white); }
.btn-primary:hover { background: #096B75; color: var(--white); }
.btn-hero { background: var(--teal); color: #071B3A; }
.btn-hero:hover { background: #22B8C5; color: #071B3A; }
.btn-outline { border: 1.5px solid rgba(255,255,255,0.7); color: var(--white); background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }

/* Brand stripe + header */
.brand-stripe { height: 5px; background: linear-gradient(90deg, var(--navy) 0%, var(--teal-dark) 55%, var(--teal) 100%); }
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 14px 24px; padding: 14px 24px; max-width: var(--container); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand img { height: 52px; width: auto; }
.brand-zh {
  display: flex; align-items: center; align-self: stretch; padding-left: 18px; margin-left: 4px; border-left: 1.5px solid var(--navy);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; font-size: 21px; font-weight: 700; letter-spacing: 0.14em; color: var(--navy); line-height: 1; white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 4px 6px; margin-left: auto; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; padding: 10px 10px; line-height: 24px; }
.lang-switch { display: flex; gap: 6px; align-items: center; }
.lang-switch a, .lang-switch span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--navy); border-radius: 6px; font-weight: 700; font-size: 14px; text-decoration: none;
}
.lang-switch .current { background: var(--navy); color: var(--white); }
.lang-switch a { background: var(--white); color: var(--navy); }
.lang-switch a:hover { background: var(--bg); }
.nav-toggle {
  display: none; margin-left: auto; width: 48px; height: 44px; border: 1px solid var(--line); border-radius: 6px; background: var(--white);
  cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--navy); }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
@media (max-width: 980px) {
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; margin-left: 0; order: 10; padding-top: 8px; border-top: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; }
  .header-cta { order: 11; width: 100%; }
}
@media (max-width: 760px) {
  .brand-zh { font-size: 17px; letter-spacing: 0.1em; padding-left: 12px; }
}
@media (max-width: 520px) {
  .brand img { height: 42px; }
  .brand-zh { display: none; }
}

/* Hero */
.hero { position: relative; overflow: hidden; min-height: 700px; display: flex; align-items: flex-end; background: var(--navy); color: var(--white); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,18,40,0.82) 0%, rgba(6,18,40,0.55) 45%, rgba(6,18,40,0.12) 100%); }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 260px; background: linear-gradient(180deg, rgba(6,18,40,0) 0%, rgba(6,18,40,0.72) 100%); }
.hero-inner { position: relative; width: 100%; max-width: var(--container); margin: 0 auto; padding: 96px 24px 72px; }
.hero-copy { max-width: 660px; display: flex; flex-direction: column; gap: 22px; }
.hero .eyebrow { color: var(--teal); }
.hero h1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.08; font-weight: 800; letter-spacing: -0.01em; color: var(--white); }
html[lang="zh-Hant"] .hero h1 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.2; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--teal-light); }
.hero .lede { color: #DCE4F0; font-size: 18px; max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-reg { margin-top: 10px; font-size: 13px; line-height: 1.5; color: #B9C6DA; }
@media (max-width: 720px) { .hero { min-height: 600px; } .hero-inner { padding: 72px 24px 56px; } }

/* Credentials strip */
.strip { background: var(--bg); border-bottom: 1px solid var(--line); }
.strip-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 32px; padding: 28px 24px; max-width: var(--container); margin: 0 auto; }
.strip-item { display: flex; gap: 12px; align-items: flex-start; }
.strip-item svg { flex: none; margin-top: 2px; }
.strip-item strong { display: block; font-size: 15px; color: var(--navy); }
.strip-item span { font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (max-width: 980px) { .strip-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .strip-inner { grid-template-columns: 1fr; } }

/* About */
.about-grid { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.about-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-points { display: flex; flex-wrap: wrap; gap: 28px 40px; padding-top: 8px; }
.about-points div { display: flex; flex-direction: column; gap: 4px; }
.about-points strong { font-size: 15px; color: var(--navy); }
.about-points span { font-size: 14px; color: var(--muted); }
.partner-card { flex: 0 1 380px; min-width: 280px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.partner-visual { width: 100%; aspect-ratio: 16 / 10; background: var(--navy); border-radius: 8px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.partner-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.partner-initials { position: relative; width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--teal); display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 800; letter-spacing: 0.04em; color: var(--white); }
.partner-card .role { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-dark); }
html[lang="zh-Hant"] .partner-card .role { letter-spacing: 0.16em; text-transform: none; }
.partner-card .name { font-size: 22px; font-weight: 800; color: var(--navy); }
.partner-card .bio { font-size: 15px; color: var(--muted); line-height: 1.6; }
.partner-contact { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 15px; }
.partner-contact a { text-decoration: none; font-weight: 600; }

/* Services */
.services { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.section-head > div { flex: 1 1 420px; display: flex; flex-direction: column; gap: 14px; }
.section-head > p { flex: 1 1 360px; max-width: 480px; font-size: 16px; line-height: 1.7; color: var(--text); }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }
.service { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.service .icon { width: 48px; height: 48px; border-radius: 10px; background: var(--teal-tint); display: flex; align-items: center; justify-content: center; }
.service p { font-size: 15px; line-height: 1.65; color: var(--text); }
html[lang="zh-Hant"] .service p { line-height: 1.8; }

/* CIES band */
.cies { background: var(--navy-band); color: var(--white); position: relative; overflow: hidden; }
.cies-rings { position: absolute; right: -180px; top: -200px; width: 620px; height: 620px; opacity: 0.4; }
.cies-grid { position: relative; display: flex; flex-wrap: wrap; gap: 48px 64px; }
.cies-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.cies h2 { color: var(--white); }
.cies .eyebrow { color: var(--teal); }
.cies .lede { color: #C9D4E5; }
.cies .note { font-size: 15px; line-height: 1.7; color: #9DB0CC; }
.cies-steps { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; gap: 20px; padding: 22px 24px; background: rgba(18,165,178,0.12); border: 1px solid rgba(18,165,178,0.38); border-radius: 12px; }
.step-no { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--teal); color: var(--teal); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; }
.step div { display: flex; flex-direction: column; gap: 6px; }
.step strong { font-size: 18px; font-weight: 800; }
.step span { font-size: 15px; line-height: 1.65; color: #C9D4E5; }

/* Why */
.why-head { max-width: 720px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 40px; }
@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
.why-item { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 2px solid var(--teal); }
.why-item strong { font-size: 18px; font-weight: 800; color: var(--navy); }
.why-item span { font-size: 15px; line-height: 1.65; color: var(--text); }

/* Contact */
.contact { background: var(--bg); border-top: 1px solid var(--line); }
.contact-grid { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.contact-info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.contact-info address { font-style: normal; display: flex; flex-direction: column; gap: 18px; font-size: 16px; line-height: 1.6; }
.contact-row { display: flex; gap: 14px; }
.contact-row svg { flex: none; margin-top: 3px; }
.contact-row a { text-decoration: none; font-weight: 700; }
.contact-row .sub { color: var(--muted); }
.map-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; font-size: 15px; text-decoration: none; width: fit-content; }
.contact-note { font-size: 14px; line-height: 1.6; color: var(--muted); }
.enquiry { flex: 1 1 420px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; color: var(--navy); }
.field input, .field select, .field textarea {
  min-height: 46px; padding: 0 14px; border: 1px solid #C9D1DC; border-radius: 6px; font: inherit; font-size: 15px; color: var(--ink); background: var(--white); width: 100%;
}
.field textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal-dark); }
.form-note { font-size: 13px; line-height: 1.6; color: var(--muted); }
.form-status { font-size: 15px; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--teal-dark); }
.form-status.err { color: #B4232C; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #B9C6DA; border-top: 4px solid var(--teal); }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 48px 24px 32px; display: flex; flex-direction: column; gap: 28px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.footer-brand img { height: 56px; width: auto; align-self: flex-start; }
.footer-brand p { font-size: 14px; line-height: 1.65; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.6; }
.footer-contact strong { color: var(--white); }
.footer-contact a { color: var(--white); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; font-size: 13px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a { color: #B9C6DA; text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
