/*
Theme Name: Amerital Advisory Theme
Author: Amerital Advisory & Partners
Description: One-page advisory / accounting firm landing page theme, built for Amerital Advisory & Partners per the WP content-flow brief. Import as a WordPress theme, then replace copy, images and legal details before launch.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.8
Tags: one-column, custom-logo, custom-menu, featured-images, translation-ready, blog
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amerital
*/

/* ==========================================================================
   Amerital Advisory & Partners - theme
   Palette follows the section-by-section design system in the client brief:
   Navy (hero / final CTA / footer) + Gold accent, alternating white / cream /
   light-grey / light-blue section backgrounds instead of stacking dark blocks.
   ========================================================================== */

:root {
  --color-navy:      #1f3864;
  --color-navy-deep: #142647;
  --color-gold:      #c9a227;
  --color-gold-dark: #a9841c;

  --color-white:      #ffffff;
  --color-cream:       #fbf7ec;
  --color-grey-light:  #f2f2f2;
  --color-blue-light:  #dce6f1;

  --color-ink:      #1f2a44;
  --color-ink-soft: #57617c;
  --color-line:     #e3e6ee;

  --color-trust:      #4d9c1f;
  --color-trust-dark: #3a7a17;
  --color-trust-tint: rgba(77,156,31,.14);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;
  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0; }
p { margin: 0; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

em { font-style: italic; color: var(--color-gold-dark); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--color-navy-deep);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.preloader__mark {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 3rem);
  line-height: 1.3; text-align: center; padding: 0 24px; max-width: 100%; text-wrap: balance; color: var(--color-gold);
  animation: pulse 1.1s ease-in-out infinite;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes pulse { 0%, 100% { opacity: .4; transform: scale(.9); } 50% { opacity: 1; transform: scale(1); } }

/* ---------- Scroll progress ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--color-gold);
  z-index: 1001;
  transition: width .1s linear;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
  white-space: nowrap;
}
.btn--primary {
  border: 0;
  background: linear-gradient(135deg, #ddb94a 0%, var(--color-gold) 55%, var(--color-gold-dark) 100%);
  color: var(--color-navy-deep);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(201,162,39,.38), 0 2px 6px rgba(20,38,71,.12);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--color-gold-dark) 0%, #b5871c 100%);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(201,162,39,.48), 0 4px 12px rgba(20,38,71,.18);
}
/* Reserved for the primary booking CTAs (hero + form submit): a gold ring
   that ripples out, a slight "breathing" scale and a light sweep across the
   face every few seconds. Everything pauses on hover / while submitting. */
.btn--pulse {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: btnPulse 2s ease-out infinite, btnBreathe 2s ease-in-out infinite;
}
.btn--pulse::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -60%;
  width: 45%;
  z-index: -1;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.65) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: btnShine 3.2s ease-in-out infinite;
  pointer-events: none;
}
.btn--pulse:hover,
.btn--pulse:focus-visible { animation: none; transform: translateY(-3px) scale(1.03); }
.btn--pulse:hover::after { animation-duration: 1s; }
.btn--pulse:disabled { animation: none; opacity: .75; cursor: progress; }
.btn--pulse:disabled::after { animation: none; }
@keyframes btnPulse {
  0%   { box-shadow: 0 10px 26px rgba(201,162,39,.45), 0 2px 6px rgba(20,38,71,.12), 0 0 0 0 rgba(221,185,74,.75); }
  70%  { box-shadow: 0 14px 32px rgba(201,162,39,.55), 0 2px 6px rgba(20,38,71,.12), 0 0 0 16px rgba(221,185,74,0); }
  100% { box-shadow: 0 10px 26px rgba(201,162,39,.45), 0 2px 6px rgba(20,38,71,.12), 0 0 0 0 rgba(221,185,74,0); }
}
@keyframes btnBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.035); }
}
@keyframes btnShine {
  0%, 55% { left: -60%; }
  85%, 100% { left: 130%; }
}
.btn--outline { border-color: var(--color-navy); color: var(--color-navy); background: transparent; }
.btn--outline:hover { background: var(--color-navy); color: #fff; }
.btn--ghost { color: #fff; }
.btn--ghost.btn--dark { color: var(--color-navy); }
.btn--ghost .arrow { transition: transform .3s var(--ease); }
.btn--ghost:hover .arrow { transform: translateX(4px); }
.btn--sm { padding: 10px 20px; font-size: .85rem; }
.btn--lg { padding: 18px 36px; font-size: 1.05rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
/* Brief: header stays a light overlay even over the hero image (~90% white),
   solidifying to full white + shadow after scroll - text stays dark navy throughout. */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 10px 0;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .98);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(20, 32, 60, .08);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-navy);
  display: flex; flex-direction: column; line-height: 1.1;
}
.logo__tag {
  font-family: var(--font-body);
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  font-weight: 600;
}
.logo__img { display: block; align-self: flex-start; height: 72px; width: auto; max-width: none; }

.nav__list { display: flex; gap: 20px; }
.nav__link {
  font-size: .9rem; font-weight: 500; color: var(--color-ink);
  position: relative; padding-bottom: 4px;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--color-gold-dark);
  transition: width .3s var(--ease);
}
.nav__link:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 14px; }

/* Language toggle (EN / 中文) - always visible, never collapses into the burger */
.lang-toggle {
  display: flex; align-items: center; border: 1px solid var(--color-line);
  border-radius: 999px; padding: 3px; background: #fff;
}
.lang-toggle__opt {
  border: none; background: none; padding: 5px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; color: var(--color-ink-soft);
  transition: background .3s, color .3s;
}
.lang-toggle__opt.is-active { background: var(--color-navy); color: #fff; }

.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px; z-index: 1100;
}
.burger span { width: 22px; height: 2px; background: var(--color-navy); transition: all .3s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 1050;
  background: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
}
.mobile-nav.is-open { transform: translateY(0); }
.mnav-close {
  position: absolute; top: 22px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--color-line); color: var(--color-navy);
}
.mnav-close svg { width: 20px; height: 20px; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 22px; text-align: center; }
.mnav-link { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-navy); }
.mnav-link { transition: color .3s; }
.mnav-link:hover, .mnav-link:active, .mnav-link.is-active { color: var(--color-gold-dark); }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  min-height: min(85vh, 880px);
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.08);
  will-change: transform;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(20,32,60,.86) 8%, rgba(31,56,100,.5) 50%, rgba(31,56,100,.22) 100%);
}
.hero__pattern {
  position: absolute; inset: 0; z-index: 1;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(200deg, rgba(0,0,0,.9) 10%, transparent 60%);
          mask-image: linear-gradient(200deg, rgba(0,0,0,.9) 10%, transparent 60%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-top: 70px; }
.hero__content { position: relative; max-width: 620px; }

.hero__badge {
  position: absolute;
  right: 24px;
  bottom: 0;
  width: max-content;
  z-index: 2;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 26px;
  border-radius: 16px;
  background: rgba(20,38,71,.55);
  border: 1px solid rgba(201,162,39,.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 45px rgba(0,0,0,.25);
}
.hero__badge-num {
  font-family: var(--font-display);
  font-size: 2.1rem; font-weight: 600; line-height: 1;
  color: var(--color-gold);
}
.hero__badge-text {
  font-size: .78rem; line-height: 1.35;
  color: rgba(255,255,255,.85);
  max-width: 160px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 18px 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(201,162,39,.35);
  background: rgba(201,162,39,.08);
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--color-gold-dark);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; flex: none;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,.18);
}
/* .eyebrow is an inline-level box, so text-align on itself never centers it -
   only text-align (or, here, auto margins) on an ancestor does. Use this
   modifier when the eyebrow isn't wrapped in a centered .section-head. */
.eyebrow--center { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }
.hero__title { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.hero__desc {
  margin-top: 22px;
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  max-width: 540px;
}
.hero__trust {
  margin-top: 22px;
  font-size: .82rem;
  letter-spacing: .02em;
  color: rgba(255,255,255,.7);
  max-width: 480px;
}
.hero__actions { display: flex; gap: 24px; align-items: center; margin-top: 34px; flex-wrap: wrap; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Section shared ---------- */
section { padding: 100px 0; }
.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-head--left { max-width: none; text-align: left; margin-bottom: 0; }
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-top: 12px; color: var(--color-navy); }
.section-sub { margin-top: 16px; color: var(--color-ink-soft); }

.bg-white  { position: relative; background: var(--color-white); overflow: hidden; }
.bg-white > .container { position: relative; z-index: 1; }
.bg-cream  { background: var(--color-cream); }
.bg-grey   { background: var(--color-grey-light); }
.bg-blue   { background: var(--color-blue-light); }
.bg-navy   { background: var(--color-navy); color: #fff; }

.bg-navy .section-title { color: #fff; }
.bg-navy .eyebrow,
.hero .eyebrow {
  color: var(--color-gold);
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
}

/* ---------- 2. Credibility / trust bar ---------- */
/* Floating card straddles the hero/trust boundary - half over the banner,
   half over the white page background - on wide viewports only; on narrow
   viewports the hero badge already drops into normal flow (see the
   max-width:1000px / max-height:820px query below) so the overlap amount
   becomes unpredictable and we fall back to a flush section instead. */
.trust { position: relative; z-index: 5; padding: 0 0 60px; }
.trust__card {
  background: var(--color-white);
  border-radius: 20px;
  padding: 34px 34px 30px;
}
@media (min-width: 861px) {
  .trust { margin-top: -86px; }
  .trust__card {
    box-shadow: 0 30px 60px rgba(20,38,71,.16), 0 4px 16px rgba(20,38,71,.06);
  }
}
.trust__label {
  text-align: center; margin-bottom: 30px;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; color: var(--color-trust);
}
.trust__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  text-align: center;
}
.trust__item { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.trust__icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--color-trust);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.trust__icon svg { width: 24px; height: 24px; }
.trust__text { font-size: .85rem; color: var(--color-ink-soft); max-width: 200px; }
.trust__count {
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem;
  color: var(--color-navy);
}

/* ---------- 3. Pain point ("We understand") ---------- */
.pain__intro { max-width: 700px; margin: 0 auto; text-align: center; }
.pain__intro p { color: var(--color-ink-soft); margin-top: 18px; }
.pain__intro p + p { margin-top: 14px; }

.fear-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.fear-card {
  background: var(--color-white); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: 0 8px 30px rgba(31,56,100,.06);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.fear-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(31,56,100,.1); }
.fear-card__fear { font-size: .92rem; color: var(--color-ink-soft); font-style: italic; }
.fear-card__arrow { color: var(--color-gold-dark); margin: 12px 0; font-size: 1rem; }
.fear-card__response { font-size: .95rem; font-weight: 600; color: var(--color-navy); }

.pain__cta { text-align: center; margin-top: 48px; }

/* ---------- 4. Services - four pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.pillar {
  background: var(--color-grey-light);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
}
.pillar:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(31,56,100,.08); background: var(--color-white); }
.pillar__icon {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201,162,39,.12); color: var(--color-gold-dark);
  transition: background .3s, color .3s;
}
.pillar__icon svg { width: 28px; height: 28px; }
.pillar:hover .pillar__icon { background: var(--color-gold); color: var(--color-navy-deep); }
.pillar h3 { font-size: 1.2rem; color: var(--color-navy); margin-bottom: 12px; }
.pillar p { color: var(--color-ink-soft); font-size: .92rem; }
.pillar__link {
  display: inline-block; margin-top: 18px; font-size: .85rem; font-weight: 600; color: var(--color-navy);
  background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0 1px;
  padding-bottom: 2px; transition: color .3s, background-size .35s var(--ease), transform .3s var(--ease);
}
.pillar__link:hover, .pillar__link:focus-visible { color: var(--color-gold-dark); background-size: 100% 1px; transform: translateX(3px); }

.section-cta { text-align: center; margin-top: 48px; }

/* ---------- 5. Why Amerital (differentiators) ---------- */
.differentiators { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.differentiator__num {
  font-family: var(--font-display); font-size: 2.6rem; color: var(--color-gold-dark);
  display: block; margin-bottom: 18px;
}
.differentiator h3 { font-size: 1.15rem; color: var(--color-navy); margin-bottom: 12px; }
.differentiator p { color: var(--color-ink-soft); font-size: .92rem; }

/* ---------- 6. Industries ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.industry-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3;
  transition: transform .5s var(--ease);
}
.industry-card:hover { transform: translateY(-6px); }
.industry-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.industry-card:hover img { transform: scale(1.08); }
.industry-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,32,60,.88) 0%, rgba(20,32,60,.15) 55%, transparent 100%);
  display: flex; align-items: flex-end; padding: 22px;
}
.industry-card__overlay h3 { color: #fff; font-size: 1.05rem; margin-bottom: 6px; }
.industry-card__overlay p { color: rgba(255,255,255,.82); font-size: .82rem; }

/* Slider dots (built by main.js, mobile only) */
.slider-dots { display: none; }
@media (max-width: 860px) {
  .slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
  .slider-dots button {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px;
    background: rgba(31,56,100,.22); cursor: pointer;
    transition: width .3s var(--ease), background .3s;
  }
  .slider-dots button.is-active { width: 22px; background: var(--color-gold); }
}

/* ---------- 7. About / brand story + team ---------- */
.about__story { max-width: 720px; margin: 0 auto; text-align: center; }
.about__story p { color: var(--color-ink-soft); margin-top: 16px; }
.about__story p + p { margin-top: 14px; }

.team-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 60px; }
.team-member {
  display: flex; gap: 20px; align-items: flex-start;
  background: rgba(255,255,255,.6); border-radius: var(--radius); padding: 24px;
}
.team-member__photo { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.team-member__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-member h3 { font-size: 1.05rem; color: var(--color-navy); }
.team-member .credential { font-size: .8rem; color: var(--color-gold-dark); font-weight: 600; display: block; margin: 2px 0 8px; }
.team-member p { font-size: .85rem; color: var(--color-ink-soft); }
.team-member__link { display: inline-block; margin-top: 12px; font-size: .85rem; }

/* ---------- 8. Process ---------- */
.process-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.process-track::before {
  content: ""; position: absolute; top: 26px; left: 12%; right: 12%; height: 1px;
  background: var(--color-line);
}
.process-step { position: relative; text-align: center; }
.process-step__num {
  width: 52px; height: 52px; border-radius: 50%; background: var(--color-gold);
  color: var(--color-navy-deep); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600;
  margin: 0 auto 20px; position: relative; z-index: 1;
}
.process-step h3 { font-size: 1.02rem; color: var(--color-navy); margin-bottom: 8px; }
.process-step p { font-size: .88rem; color: var(--color-ink-soft); }

/* ---------- 9. Testimonials ---------- */
.testimonials { background: radial-gradient(ellipse at 0% 0%, rgba(198,162,93,.12), transparent 60%), var(--color-cream); }
.testimonials > .container { max-width: 1320px; }
.testimonials .section-title::after { content: ""; display: block; width: 56px; height: 3px; margin: 24px auto 0; background: var(--color-gold); border-radius: 2px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.testimonial-card {
  position: relative; display: flex; flex-direction: column; margin: 0; min-width: 0;
  background: linear-gradient(145deg, #263f69 0%, #192f52 100%); border: 1px solid rgba(198,162,93,.25);
  border-radius: 18px; padding: 26px 22px 24px; overflow: hidden;
  box-shadow: 0 12px 32px rgba(31,56,100,.16);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.testimonial-card::after { content: ""; position: absolute; bottom: 0; left: 22px; width: 36px; height: 3px; background: var(--color-gold); }
.testimonial-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(31,56,100,.12); }
.testimonial-card__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.testimonial-logo { display: flex; flex: 0 0 104px; align-items: center; justify-content: center; width: 104px; height: 104px; padding: 0; border: 1px solid rgba(31,56,100,.1); border-radius: 50%; background: #fff; overflow: hidden; box-shadow: 0 4px 12px rgba(31,56,100,.05); }
.testimonial-logo img { display: block; width: 82%; height: 82%; max-width: 100%; max-height: 100%; object-fit: contain; }
.testimonial-logo--original { background: transparent; border: 0; box-shadow: none; }
.testimonial-logo--original img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-logo--wide img { width: 92%; height: auto; object-fit: contain; }
.testimonial-logo--placeholder { background: #fff; border-color: rgba(198,162,93,.25); }
.testimonial-logo--placeholder span { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: -.04em; color: var(--color-navy); }
.testimonial-quote-mark { font-family: var(--font-display); font-size: 5rem; line-height: 1; color: var(--color-gold); opacity: .95; align-self: flex-start; }
.testimonial-card blockquote { margin: 0; flex: 1; font-size: .9rem; line-height: 1.8; color: rgba(255,255,255,.88); }
.testimonial-card figcaption { min-height: 64px; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); }
.testimonial-card cite { display: block; font-style: normal; font-weight: 700; font-size: .83rem; line-height: 1.65; color: #fff; }
.testimonial-card cite[hidden] { display: none; }
.testimonial-card--company .testimonial-quote-mark { visibility: hidden; }
.testimonial-card--company figcaption { margin-top: auto; position: relative; }
@media (max-width: 1100px) { .testimonial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .testimonial-grid { grid-template-columns: 1fr; gap: 20px; } .testimonial-card { padding: 24px; } .testimonial-card--company { min-height: 260px; } }
@media (prefers-reduced-motion: reduce) { .testimonial-card { transition: none; } .testimonial-card:hover { transform: none; } }

/* ---------- 10. FAQ ---------- */
.faq__list { max-width: 820px; margin: 0 auto; }
.accordion__item { border-bottom: 1px solid var(--color-line); }
.accordion__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; padding: 22px 0; text-align: left;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem; color: var(--color-navy);
}
.accordion__icon { transition: transform .3s var(--ease); font-size: 1.2rem; color: var(--color-gold-dark); }
.accordion__item.is-open .accordion__icon { transform: rotate(45deg); }
.accordion__body { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.accordion__body p { padding-bottom: 22px; color: var(--color-ink-soft); font-size: .92rem; }
.accordion__item.is-open .accordion__body { max-height: 260px; }

/* ---------- 11. Knowledge centre ---------- */
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.insight-card { background: var(--color-white); border: 1px solid var(--color-line); border-radius: var(--radius); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.insight-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(31,56,100,.08); }
.insight-card img { aspect-ratio: 16/10; object-fit: cover; }
.insight-card__body { padding: 22px; }
.insight-tag { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--color-gold-dark); font-weight: 700; }
.insight-card h3 { font-size: 1.02rem; margin: 10px 0 14px; color: var(--color-navy); }
.insight-card__link { font-size: .85rem; font-weight: 600; color: var(--color-navy); }

/* ---------- 12. Final CTA / lead capture ---------- */
.final-cta { position: relative; overflow: hidden; }
.final-cta__pattern {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 55% 65% at 15% 20%, rgba(0,0,0,.85), transparent 70%);
          mask-image: radial-gradient(ellipse 55% 65% at 15% 20%, rgba(0,0,0,.85), transparent 70%);
}
.final-cta__rings {
  position: absolute; z-index: 0; pointer-events: none;
  width: 560px; height: 560px; top: -220px; right: -180px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSc0MDAnIGhlaWdodD0nNDAwJz48ZyBmaWxsPSdub25lJyBzdHJva2U9J3JnYmEoMjAxLDE2MiwzOSwwLjE2KScgc3Ryb2tlLXdpZHRoPScxJz48Y2lyY2xlIGN4PScyMDAnIGN5PScyMDAnIHI9JzUwJy8+PGNpcmNsZSBjeD0nMjAwJyBjeT0nMjAwJyByPSc5NScvPjxjaXJjbGUgY3g9JzIwMCcgY3k9JzIwMCcgcj0nMTQwJy8+PGNpcmNsZSBjeD0nMjAwJyBjeT0nMjAwJyByPScxODUnLz48L2c+PC9zdmc+Cg==");
  background-size: contain; background-repeat: no-repeat;
  animation: ringPulse 12s ease-in-out infinite;
}
@keyframes ringPulse {
  0%, 100% { opacity: .7; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.06); }
}
.final-cta__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: stretch; }
.final-cta__grid > * { min-width: 0; }
.final-cta__copy p { color: rgba(255,255,255,.82); margin-top: 16px; max-width: 420px; }
.final-cta__note { margin-top: 28px; font-size: .85rem; color: rgba(255,255,255,.65); }

.final-cta__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  border-radius: 20px;
  overflow: hidden;
  padding: 44px 40px;
  min-height: 480px;
  display: flex; flex-direction: column; justify-content: center;
  border: 1px solid rgba(201,162,39,.35);
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
}
.final-cta__copy::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(165deg, rgba(13,23,44,.92) 12%, rgba(20,38,71,.8) 55%, rgba(31,56,100,.6) 100%),
    url('assets/images/final-cta.jpg');
  background-size: cover;
  background-position: center;
}

.form-card {
  background: var(--color-white); padding: 36px;
  /* Same frame as .final-cta__copy on the left. */
  border-radius: 20px; border: 1px solid rgba(201,162,39,.35); box-shadow: 0 30px 70px rgba(0,0,0,.35);
}

/* ---------- Map / location ---------- */
.map-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(31,56,100,.16);
  border: 1px solid var(--color-line);
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 480px;
  filter: grayscale(.5) contrast(1.08) brightness(1.02);
  transition: filter .5s var(--ease);
}
.map-frame:hover iframe,
.map-frame:focus-within iframe { filter: grayscale(0); }
.map-card {
  position: absolute;
  z-index: 2;
  top: 28px;
  right: 28px;
  max-width: 270px;
  background: var(--color-white);
  border-radius: 14px;
  padding: 26px 28px;
  box-shadow: 0 20px 45px rgba(20,38,71,.18);
}
.map-card__pin {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-navy); margin-bottom: 16px;
}
.map-card__pin svg { width: 24px; height: 24px; color: var(--color-gold); }
.map-card h3 { font-size: 1.05rem; color: var(--color-navy); margin-bottom: 8px; }
.map-card p { font-size: .87rem; color: var(--color-ink-soft); margin-bottom: 16px; }
.map-card__link { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--color-navy); transition: color .3s; }
.map-card__link:hover { color: var(--color-gold-dark); }
.map-frame__pending {
  height: 480px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 24px 260px 24px 24px;
  background: repeating-linear-gradient(135deg, var(--color-grey-light) 0 14px, #ffffff 14px 28px);
  color: var(--color-ink-soft); font-size: .9rem;
}
@media (max-width: 720px) {
  .map-frame { border-radius: 14px; }
  .map-card { position: static; max-width: none; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--color-line); }
  .map-frame iframe { height: 320px; }
  .map-frame__pending { height: 320px; padding: 24px; }
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; text-align: left; font-size: .8rem; font-weight: 600; margin-bottom: 7px; color: var(--color-navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--color-line); border-radius: var(--radius);
  background: #fff; transition: border-color .3s;
}
.field input:not([type="checkbox"]):not([type="radio"]), .field select { height: 46px; line-height: 1.3; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; color: var(--color-ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f3864' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-gold-dark); }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.checkbox-grid label { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 400; color: var(--color-ink-soft); }
.checkbox-grid input { width: auto; }
.field input[aria-invalid="true"] { border-color: #c0392b; }
.checkbox-grid[aria-invalid="true"] { outline: 1px solid #c0392b; outline-offset: 6px; border-radius: 4px; }
.field-error { max-width: none; margin: 10px 0 0; font-size: .8rem; color: #c0392b; text-align: left; }
.form-note { margin-top: 12px; font-size: .84rem; color: var(--color-gold-dark); }

/* ---------- 13. Footer ---------- */
.site-footer { background: var(--color-navy-deep); color: rgba(255,255,255,.8); padding: 80px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; }
.logo--light { color: #fff; }
.logo--light .logo__tag { color: var(--color-gold); }
.logo--light .logo__img { height: 88px; max-width: 100%; object-fit: contain; }
.credential-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 18px; }
.credential-logos img { height: 64px; width: auto; }
/* Only a small bitmap exists for CPA; keep it at its native 44px so it stays sharp. */
.credential-logos .credential-logos__cpa { height: 44px; }
.footer__brand p { margin-top: 16px; font-size: .85rem; max-width: 300px; color: rgba(255,255,255,.55); }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, border-color .3s, color .3s;
}
.socials a svg { width: 18px; height: 18px; }
.socials a:hover { background: var(--color-gold); border-color: var(--color-gold); color: var(--color-navy-deep); }
.footer__col h4 { color: #fff; font-size: .88rem; margin-bottom: 18px; }
.footer__col a, .footer__col p { display: block; font-size: .87rem; margin-bottom: 11px; color: rgba(255,255,255,.6); transition: color .3s; }
.footer__col a:hover { color: #fff; }
.badge-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.badge-list span { font-size: .82rem; color: rgba(255,255,255,.7); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 24px; font-size: .8rem; color: rgba(255,255,255,.45); text-align: center; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--color-navy); color: #fff; font-size: 1.1rem;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-gold-dark); }

/* ---------- Floating social bar ---------- */
.social-float {
  position: fixed; right: 26px; bottom: 82px; z-index: 900;
  display: flex; flex-direction: column; gap: 12px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.social-float.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.social-float__item {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-navy); color: #fff;
  box-shadow: 0 10px 25px rgba(20,38,71,.28);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.social-float__item svg { width: 20px; height: 20px; }
.social-float__item:hover { background: var(--color-gold-dark); transform: translateY(-3px); }
@media (max-width: 480px) {
  .back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
  .social-float { right: 16px; bottom: 68px; gap: 10px; }
  .social-float__item { width: 42px; height: 42px; }
  .social-float__item svg { width: 18px; height: 18px; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .differentiators { grid-template-columns: 1fr; gap: 32px; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .process-track { grid-template-columns: repeat(2, 1fr); }
  .process-track::before { display: none; }
  .fear-grid { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: repeat(2, 1fr); }
  .final-cta__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__brand p { max-width: 520px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: flex; }
  section { padding: 76px 0; }
  .pillars { grid-template-columns: 1fr; }

  /* Industries + Insights: swipeable row instead of a long stack. Cards
     are 82% wide so the next one peeks in; the row bleeds to the screen
     edges (cancels .container's 24px padding) and snaps card by card. */
  .industry-grid, .insight-grid {
    display: flex; gap: 16px;
    margin: 0 -24px; padding: 4px 24px 8px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 24px;
    scrollbar-width: none;
  }
  .industry-grid::-webkit-scrollbar, .insight-grid::-webkit-scrollbar { display: none; }
  .industry-card, .insight-card { flex: 0 0 82%; max-width: 360px; scroll-snap-align: start; }
  /* Off-screen cards never cross the scroll-reveal threshold: show them. */
  .industry-grid [data-reveal], .insight-grid [data-reveal] { opacity: 1; transform: none; }
  .industry-card:hover, .insight-card:hover { transform: none; }
  .team-row { grid-template-columns: 1fr; }
  .form-row, .checkbox-grid { grid-template-columns: 1fr; }
}

/* Below ~1000px the hero copy column no longer leaves enough room beside it
   for the floating badge, and short viewports risk it colliding with the
   fixed bottom-right social-float stack - drop it into normal flow instead. */
@media (max-width: 1000px), (max-height: 820px) {
  .hero__badge { position: static; margin: 32px auto 0; width: fit-content; }
}

@media (max-width: 620px) {
  .trust__grid, .process-track { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero__actions .btn--primary { width: 100%; justify-content: center; }
  .hero__actions .btn--ghost { justify-content: center; }
  .hero__badge { padding: 14px 18px; gap: 12px; }
  .hero__badge-num { font-size: 1.7rem; }
  .form-card { padding: 24px; }
  .header__actions .btn--outline { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .btn--pulse, .btn--pulse::after { animation: none !important; }
}

/* ==========================================================================
   WordPress: inner pages, editor content, core classes
   ========================================================================== */

/* Accessibility helpers */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
  top: 8px; left: 8px; z-index: 100000; padding: 12px 18px;
  background: var(--color-white); color: var(--color-navy); font-weight: 600;
  box-shadow: 0 4px 20px rgba(20, 32, 60, .15);
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Logo uploaded via Customize → Site Identity */
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { max-height: 52px; width: auto; }

/* Inner page header - clears the fixed site header */
.page-hero { padding: 150px 0 56px; }
.page-hero .section-title { margin-top: 8px; }
.page-body { padding: 64px 0 96px; }
.container--narrow { max-width: 820px; }
.page-search { margin-top: 24px; max-width: 480px; }

.entry-meta { margin-top: 14px; font-size: .9rem; color: var(--color-ink-soft); }
.entry-meta a { color: var(--color-gold-dark); }
.entry-thumb { width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 32px; }
.page-hero--single, .page-hero--page { text-align: center; }
.page-hero--single, .page-hero--page { padding-bottom: 36px; }
.page-hero--single + .page-body, .page-hero--page + .page-body { padding-top: 24px; }
@media (max-width: 640px) {
  .page-hero--single, .page-hero--page { padding-bottom: 28px; }
  .page-hero--single + .page-body, .page-hero--page + .page-body { padding-top: 20px; }
}
.back-link {
  display: flex; align-items: center; gap: 6px; width: fit-content;
  color: var(--color-navy); font-size: .92rem; font-weight: 600;
  text-underline-offset: 4px;
}
.back-link svg { transition: transform .3s var(--ease); }
.back-link:hover, .back-link:focus-visible { text-decoration: underline; }
.back-link:hover svg { transform: translateX(-3px); }
/* Back link: its own white bar under the fixed header (92px), outside the cream title band. */
.page-back { background: var(--color-white); padding: 114px 0 20px; }
.page-back + .page-hero { padding-top: 48px; }
@media (max-width: 640px) {
  .page-back { padding: 108px 0 16px; }
  .page-back + .page-hero { padding-top: 36px; }
}
.entry-content .entry-figure { margin: 0 auto 36px; max-width: 500px; }
.entry-figure .entry-thumb { margin-bottom: 0; }
.entry-figure figcaption { margin-top: 10px; font-size: .86rem; font-style: italic; color: var(--color-ink-soft); text-align: center; }
.entry-content .entry-references { font-size: .9rem; color: var(--color-ink-soft); font-style: italic; padding-top: 1.2em; border-top: 1px solid var(--color-line); }
.entry-content .entry-disclaimer { font-size: .85rem; color: var(--color-ink-soft); background: var(--color-cream, #f7f4ee); border-left: 3px solid var(--color-gold); border-radius: 6px; padding: 16px 20px; }
.entry-content .entry-disclaimer strong { color: var(--color-navy); }
.entry-content .founder-byline { font-weight: 600; color: var(--color-gold-dark); text-align: center; margin-bottom: 2em; }
.entry-content .founder-signoff { margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--color-line); font-family: var(--font-display); color: var(--color-navy); }
.entry-tags { margin-top: 32px; font-size: .88rem; }
.entry-tags a { display: inline-block; padding: 4px 12px; margin: 0 6px 6px 0; border: 1px solid var(--color-line); border-radius: 999px; }
.entry-content > .entry-cta { margin: 48px 0; text-align: center; }
/* No pulse ring here: inside the cream box it reads as a border. Keep the breathe + shine. */
.entry-cta .btn { border: 0; }
.entry-cta .btn--pulse { animation: btnBreathe 2s ease-in-out infinite; }
.entry-cta .btn--pulse:hover, .entry-cta .btn--pulse:focus-visible { animation: none; }
@media (max-width: 640px) {
  .entry-cta .btn { white-space: normal; max-width: 100%; justify-content: center; text-align: center; padding: 16px 24px; }
}

/* Block editor / classic content */
.entry-content { font-size: 1.04rem; }
.entry-content > * + *,
.entry-content > .i18n-en > * + *,
.entry-content > .i18n-zh > * + * { margin-top: 1.2em; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--color-navy); margin-top: 1.8em; }
.entry-content h2 { font-size: 1.7rem; }
.entry-content h3 { font-size: 1.35rem; }
.entry-content a:not(.btn) { color: var(--color-gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: .4em; }
.entry-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--color-gold); font-family: var(--font-display); font-size: 1.2rem; color: var(--color-navy); }
.entry-content img { height: auto; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--color-line); text-align: left; }
.entry-content figure { margin-left: 0; margin-right: 0; }

.alignleft { float: left; margin: .4em 1.6em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.wp-caption, .wp-block-image figcaption, .gallery-caption { font-size: .86rem; color: var(--color-ink-soft); }
.wp-caption-text { margin-top: 6px; }
.sticky, .bypostauthor { position: relative; }

/* Cards in archives */
.insight-card h3 a:hover { color: var(--color-gold-dark); }
.insight-card > a img { width: 100%; height: auto; }

/* Pagination / post navigation */
.pagination, .post-navigation { margin-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
  min-width: 42px; padding: 8px 14px; text-align: center;
  border: 1px solid var(--color-line); border-radius: var(--radius); color: var(--color-navy);
}
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 24px; font-weight: 600; color: var(--color-navy); }

/* Search form */
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; padding: 12px 14px; border: 1px solid var(--color-line); border-radius: var(--radius); }
.search-form .search-submit { padding: 12px 20px; border: none; border-radius: var(--radius); background: var(--color-navy); color: #fff; font-weight: 600; }

/* Comments */
.comments-area { margin-top: 56px; }
.comments-title { color: var(--color-navy); font-size: 1.4rem; margin-bottom: 24px; }
.comment-list { padding-left: 0; list-style: none; }
.comment-list .comment { padding: 20px 0; border-top: 1px solid var(--color-line); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--color-line); border-radius: var(--radius);
}
.comment-form .submit { padding: 12px 22px; border: none; border-radius: var(--radius); background: var(--color-navy); color: #fff; font-weight: 600; }

/* Widgets */
.widget + .widget { margin-top: 32px; }
.widget__title { font-size: 1.1rem; color: var(--color-navy); margin-bottom: 12px; }

@media (max-width: 720px) {
  .page-hero { padding: 120px 0 40px; }
  .page-body { padding: 48px 0 72px; }
  .alignleft, .alignright { float: none; margin: 1em 0; }
}

/* Blog index intro (content of the Insights page) */
.page-intro { padding: 64px 0 0; }
.page-intro + .page-body { padding-top: 48px; }

/* ---------- "Enquiry sent" popup (native <dialog>) ---------- */
.enquiry-dialog {
  width: min(440px, calc(100% - 32px));
  padding: 40px 32px 32px;
  border: 0;
  border-radius: 16px;
  text-align: center;
  color: var(--color-navy);
  background: var(--color-white);
  box-shadow: 0 24px 60px rgba(20, 38, 71, .35);
}
.enquiry-dialog__close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  padding: 0; border: 0; border-radius: 50%;
  color: var(--color-ink-soft);
  background: transparent;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.enquiry-dialog__close svg { width: 20px; height: 20px; }
.enquiry-dialog__close:hover,
.enquiry-dialog__close:focus-visible { color: var(--color-navy); background: var(--color-grey-light); outline: none; }
.enquiry-dialog::backdrop { background: rgba(20, 38, 71, .6); }
.enquiry-dialog[open] { animation: enquiry-pop .25s ease-out; }
.enquiry-dialog__icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 1.9rem; font-weight: 700;
  color: var(--color-white);
  background: #2e9e5b;
  box-shadow: 0 0 0 8px rgba(46, 158, 91, .15);
}
.enquiry-dialog__title { margin: 0 0 10px; font-size: 1.4rem; }
.enquiry-dialog__text { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--color-ink-soft); }
@keyframes enquiry-pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .enquiry-dialog[open] { animation: none; } }

/* Expandable team biography. */
.team-member__details { margin-top: 12px; }
.team-member__details summary { cursor: pointer; color: var(--color-gold-dark); font-size: .85rem; font-weight: 600; }
.team-member__details summary:focus-visible { outline: 2px solid var(--color-gold-dark); outline-offset: 4px; }
.team-member__details .team-less { display: none; }
.team-member__details[open] .team-more { display: none; }
.team-member__details[open] .team-less { display: inline; }
.team-member__details > p { margin-top: 14px; line-height: 1.7; }
.team-member > div:last-child { min-width: 0; }
.team-member__photo img { object-position: center 62%; }

/* Equal-height team cards keep actions directly below their own biographies. */
.team-row { align-items: stretch; }
.team-member > div:last-child { flex: 1; }
.team-member__link { width: fit-content; max-width: 100%; padding-top: 0; }

/* Full portrait with the original Amerital logo preserved. */
.team-member__photo--portrait {
  width: clamp(110px, 12vw, 152px);
  height: auto;
  aspect-ratio: 1131 / 1391;
  border-radius: 12px;
  border: 1px solid var(--color-gold-dark);
  padding: 5px;
  background: var(--color-navy);
  box-shadow: 0 6px 18px rgba(31, 56, 100, .15);
}
.team-member__photo--portrait img {
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 7px;
}
@media (max-width: 480px) {
  .team-member:has(.team-member__photo--portrait) { flex-direction: column; }
  .team-member__photo--portrait { width: 160px; align-self: center; }
}

/* Portraits fill a softly rounded frame. */
.team-member__photo--portrait {
  aspect-ratio: 3 / 4;
  border-radius: 10%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-member__photo--portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  flex-shrink: 0;
}

.team-member__contact { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(31,56,100,.15); font-size: .82rem; line-height: 1.8; overflow-wrap: anywhere; }
.team-member__contact > div > span:first-child { color: var(--color-ink-soft); }
.team-member__contact a { color: var(--color-navy); text-decoration: none; }
.team-member__contact a:hover, .team-member__contact a:focus-visible { color: var(--color-gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.team-member__channels { margin-top: 4px; }

.team-member__portrait { flex-shrink: 0; }
.team-member__social { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; max-width: 152px; }
.team-member__social a { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(31,56,100,.2); color: var(--color-navy); background: rgba(255,255,255,.8); }
.team-member__social svg { width: 17px; height: 17px; }
.team-member__social a:hover, .team-member__social a:focus-visible { color: var(--color-gold-dark); border-color: currentColor; }
@media (max-width: 480px) { .team-member__portrait { align-self: center; } .team-member__social { max-width: 160px; } }

.team-member__social .dashicons { font-size: 18px; width: 18px; height: 18px; }
.team-member__social a[aria-label="WhatsApp"] { color: #128c7e; }
.team-member__social a[aria-label="WhatsApp"] svg { fill: currentColor; }
.team-member__social a[aria-label="Zalo"] { color: #0068ff; }
.team-member__social a:hover, .team-member__social a:focus-visible { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }

/* Unified contact buttons with consistent logo scale and brand backgrounds. */
.team-member__social { gap: 6px; }
.team-member__social a { width: 32px; height: 32px; border-radius: 9px; border: 0; color: #fff; background: #1f3864; box-shadow: 0 2px 6px rgba(0,0,0,.1); transition: transform .2s, box-shadow .2s; }
.team-member__social a[aria-label="Email"] { background: #1f3864; color: #fff; }
.team-member__social a[aria-label="Phone"] { background: #16856b; color: #fff; }
.team-member__social a[aria-label="WhatsApp"] { background: #25d366; color: #fff; }
.team-member__social a[aria-label="Zalo"] { background: #0068ff; color: #fff; }
.team-member__social svg { width: 20px; height: 20px; display: block; }
.team-member__social a[aria-label="WhatsApp"] svg, .team-member__social a[aria-label="Zalo"] svg { fill: currentColor; }
.team-member__social a:hover, .team-member__social a:focus-visible { transform: translateY(-2px); color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.18); }
.team-member__social a:focus-visible { outline: 2px solid var(--color-navy); outline-offset: 3px; }

#contactForm[aria-busy="true"] button[type="submit"] { display: flex; align-items: center; justify-content: center; gap: 10px; cursor: wait; }
.form-spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: form-spin .8s linear infinite; }
@keyframes form-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .form-spinner { animation: none; } }

/* Block interaction while the contact form navigates to its result. */
body.form-is-submitting { overflow: hidden; }
.form-loading-overlay { position: fixed; inset: 0; z-index: 2147483647; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(15, 28, 50, .78); backdrop-filter: blur(4px); cursor: wait; }
.form-loading-overlay__content { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 32px; border-radius: 16px; background: #fff; color: var(--color-navy); text-align: center; font-size: 1rem; box-shadow: 0 12px 48px rgba(0,0,0,.2); }
.form-loading-overlay .form-spinner { width: 44px; height: 44px; border-width: 4px; color: var(--color-gold-dark); }

/* Keep team photos and their contact buttons aligned across tablet sizes. */
.team-member__portrait { width: 152px; }
.team-member__photo--portrait { width: 100%; height: auto; aspect-ratio: 3 / 4; }
.team-member__social { width: 100%; max-width: none; }
.site-header .custom-logo { max-height: 72px; }
@media (max-width: 1280px) {
  .hero__badge { position: static; margin: 30px 0 0; width: fit-content; max-width: 100%; }
}
@media (min-width: 621px) and (max-width: 1280px) {
  .hero { min-height: 0; padding: 150px 0 72px; }
  .hero__inner { padding-top: 0; }
  .hero__content { max-width: 680px; }
  .hero__title { font-size: clamp(2.2rem, 4vw, 3rem); }
  .hero__bg { background-position: 60% center; }
}
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: flex; }
}
@media (max-width: 620px) {
  .site-header .logo__img { height: 62px; }
  .site-header .custom-logo { max-height: 62px; }
  .header__inner { gap: 12px; }
  .hero { min-height: 0; padding: 128px 0 56px; }
  .hero__inner { padding-top: 0; }
  .hero__badge { margin: 28px auto 0; }
}
@media (min-width: 621px) and (max-width: 1280px) and (orientation: landscape) {
  .hero { padding: 132px 0 56px; }
  .hero__content { max-width: 740px; }
  .hero__title { font-size: 2.4rem; }
}
@media (min-width: 621px) and (max-width: 1280px) {
  .hero + .trust { margin-top: 0; }
}

/* Square source portraits sit naturally within matching circular frames. */
.team-member__photo--portrait { width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; }
.team-member__photo--portrait img { border-radius: 50%; object-fit: cover; object-position: center; }

/* Swipeable testimonials on phones; desktop and tablet retain their grids. */
.testimonial-grid + .slider-dots { display: none; }
@media (max-width: 640px) {
  .testimonial-grid {
    display: flex; align-items: stretch; gap: 16px;
    margin-left: -24px; margin-right: -24px; padding: 6px 24px 20px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 24px;
    scrollbar-width: none;
  }
  .testimonial-grid::-webkit-scrollbar { display: none; }
  .testimonial-grid .testimonial-card { flex: 0 0 86%; max-width: 360px; scroll-snap-align: start; opacity: 1; transform: none; }
  .testimonial-grid .testimonial-card:hover { transform: none; }
  .testimonial-grid + .slider-dots { display: flex; margin-top: 4px; }
}

/* Clear hierarchy and generous text width for the four credibility signals. */
.trust > .container { max-width: 1320px; }
.trust__card { padding: 30px 24px 24px; border: 1px solid rgba(31,56,100,.08); background: linear-gradient(180deg, #fff, #f8fafc); }
.trust__label { color: var(--color-navy); font-size: .8rem; letter-spacing: .1em; margin-bottom: 24px; }
.trust__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; text-align: left; }
.trust__item { align-items: flex-start; gap: 18px; padding: 22px 20px; border: 1px solid rgba(31,56,100,.08); border-radius: 14px; background: #fff; box-shadow: 0 4px 16px rgba(31,56,100,.03); min-width: 0; }
.trust__icon { flex: 0 0 48px; width: 48px; height: 48px; background: rgba(77,158,38,.1); color: var(--color-trust); border-radius: 14px; }
.trust__text { flex: 1; min-width: 0; width: auto; max-width: none; }
.trust__heading { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; line-height: 1.3; color: var(--color-navy); margin-bottom: 8px; }
.trust__detail { font-size: .85rem; line-height: 1.65; color: var(--color-ink-soft); text-wrap: pretty; }
@media (max-width: 1100px) {
  .trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust__item { flex-direction: row; align-items: center; gap: 16px; }
}
@media (max-width: 620px) {
  .trust__card { padding: 28px 20px 20px; }
  .trust__label { font-size: .74rem; letter-spacing: .06em; margin-bottom: 18px; }
  .trust__grid { grid-template-columns: 1fr; gap: 10px; }
  .trust__item { padding: 20px 18px; gap: 14px; }
  .trust__heading { font-size: 1.08rem; margin-bottom: 6px; }
}

/* Swipe between team profiles on phones instead of stacking long biographies. */
.team-row + .slider-dots { display: none; }
@media (max-width: 640px) {
  .team-row {
    display: flex; align-items: stretch; gap: 16px;
    margin-left: -24px; margin-right: -24px; padding: 6px 24px 20px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 24px;
    scrollbar-width: none;
  }
  .team-row::-webkit-scrollbar { display: none; }
  .team-row .team-member { flex: 0 0 90%; max-width: 360px; min-width: 0; flex-direction: column; scroll-snap-align: start; opacity: 1; transform: none; }
  .team-row .team-member__portrait { align-self: center; }
  .team-row .team-member:hover { transform: none; }
  .team-row + .slider-dots { display: flex; margin-top: 4px; }
}
/* Separate the Trust Bar frame from the hero image on phones. */
@media (max-width: 620px) {
  .hero + .trust { margin-top: 0; padding-top: 24px; }
}
