/* ==========================================================================
   ExpatTaxSingapore — Premium Global Mobility & Expat Tax Advisory
   ========================================================================== */

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-Variable.woff2') format('woff2-variations'),
       url('../fonts/Manrope-Variable.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette — derived from the IMC navy/gold mark */
  --color-primary: #10254a;
  --color-primary-dark: #081428;
  --color-primary-light: #1c3a6e;
  --color-accent: #ab8b53;
  --color-accent-light: #c7a76c;
  --color-accent-text: #7a5c2e; /* darkened for AA text contrast on light backgrounds */
  --color-background: #faf7f1;
  --color-surface: #ffffff;
  --color-surface-alt: #f2ede2;
  --color-text: #171b24;
  --color-text-soft: #363c48;
  --color-muted: #5c6470;
  --color-border: #e4ddcd;
  --color-border-dark: rgba(255, 255, 255, 0.14);
  --color-risk: #a6472f;

  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-width: 1350px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(16, 37, 74, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(16, 37, 74, 0.22);
  --shadow-lg: 0 24px 64px -20px rgba(16, 37, 74, 0.32);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: var(--color-accent) var(--color-background);
}
::-webkit-scrollbar { width: 10px; height: 10px; } /* Chrome / Safari / Edge */
::-webkit-scrollbar-track { background: var(--color-background); }
::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 10px;
  border: 2px solid var(--color-background);
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--color-accent-light); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-background);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01' on;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
input, textarea { font-family: inherit; font-size: inherit; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

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

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  background: rgba(171, 139, 83, 0.14);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}
.eyebrow i { font-size: 10px; }
.eyebrow.on-dark {
  color: var(--color-accent-light);
  background: rgba(171, 139, 83, 0.14);
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.16;
  color: var(--color-primary);
}
.section-head p:not(.eyebrow) {
  margin-top: 18px;
  font-size: 17px;
  color: var(--color-muted);
  line-height: 1.7;
}

/* Highlighted main wording within headings — bronze on light sections, gold on dark sections */
.highlight { color: var(--color-accent-text); }
.hero-copy h1 .highlight,
.approach-section .highlight,
.process-section .highlight,
.contact-info .highlight {
  color: var(--color-accent-light);
}

/* Longhand on purpose: some elements (e.g. .contact-section's .container.section-pad)
   combine this with .container, and a shorthand `padding` here would clobber
   .container's own left/right padding since both target the same property. */
.section-pad { padding-top: 112px; padding-bottom: 112px; }
@media (max-width: 782px) {
  .section-pad { padding-top: 76px; padding-bottom: 76px; }
  .section-head { margin-bottom: 40px; }
}

/* Keep anchor-nav targets clear of the fixed header */
section[id] { scroll-margin-top: var(--header-height); }

.divider-line {
  width: 64px;
  height: 2px;
  background: var(--color-accent);
  margin-bottom: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-accent);
  color: #201203;
}
.btn-primary:hover { background: var(--color-accent-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: inherit;
}
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent-light); }
.btn-outline.dark { border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline.dark:hover { background: var(--color-primary); color: #fff; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }
.btn i { font-size: 13px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), height 0.35s var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.site-header.is-scrolled {
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--color-border), var(--shadow-sm);
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.96);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), padding 0.35s var(--ease);
}
.brand img { height: 46px; width: auto; transition: height 0.35s var(--ease); }
.is-scrolled .brand {
  padding: 6px 14px;
  box-shadow: none;
  background: transparent;
}
.is-scrolled .brand img { height: 40px; }

.main-nav { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--color-accent-light); }
.is-scrolled .nav-links a { color: var(--color-primary); }
.is-scrolled .nav-links a:hover { color: var(--color-primary); }
.is-scrolled .nav-links a.active { color: var(--color-accent); }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}
.is-scrolled .header-phone { color: var(--color-primary); }
.header-phone i { color: var(--color-accent-light); }
.is-scrolled .header-phone i { color: var(--color-accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  color: #fff;
}
.is-scrolled .nav-toggle { color: var(--color-primary); }

@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav { gap: 0; }
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 600;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  /* contain:paint guarantees the off-canvas (translateX) panel can never affect
     layout/scroll outside this box, even while transformed — overflow:hidden
     alone doesn't reliably clip a transformed fixed-position descendant. */
  contain: paint;
}
.mobile-drawer.is-open { visibility: visible; pointer-events: auto; }
.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 40, 0.5);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.mobile-drawer.is-open .mobile-drawer-backdrop { opacity: 1; }
.mobile-drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(340px, 84vw);
  background: var(--color-primary);
  padding: 28px 28px 40px;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-drawer.is-open .mobile-drawer-panel { transform: translateX(0); }
.mobile-drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; }
.mobile-drawer-close {
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  width: 38px; height: 38px;
  border-radius: 50%;
}
.mobile-drawer-logo-chip {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.96);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}
.mobile-drawer nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-drawer nav a {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-drawer nav a.active { color: var(--color-accent-light); }
.mobile-drawer .btn { margin-top: 28px; }
.mobile-drawer-phone {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: calc(var(--header-height) + 76px) 0 100px;
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, #16305c 100%);
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  mix-blend-mode: luminosity;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(171, 139, 83, 0.22), transparent 45%),
    linear-gradient(180deg, rgba(8, 20, 40, 0.55) 0%, rgba(8, 20, 40, 0.88) 78%, var(--color-primary-dark) 100%);
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: start;
}
.hero-copy h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.1;
  color: #fff;
  max-width: 15ch;
}
.hero-copy p:not(.eyebrow) {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255,255,255,0.78);
  max-width: 54ch;
}
.hero-actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-strip {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-strip span.label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.hero-strip-items { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-strip-items div {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.hero-strip-items i { color: var(--color-accent-light); font-size: 13px; }

/* Risk nexus card */
.risk-card {
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  padding: 30px 26px 26px;
  box-shadow: var(--shadow-lg);
}
.risk-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.risk-card-head .tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.risk-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d69a7d;
}
.risk-live .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #d3714a;
  box-shadow: 0 0 0 0 rgba(211,113,74,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(211,113,74,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(211,113,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(211,113,74,0); }
}
.risk-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.risk-row:first-of-type { border-top: none; }
.risk-row .num {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  padding-top: 2px;
}
.risk-row .risk-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(171,139,83,0.16);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent-light);
  flex-shrink: 0;
}
.risk-row strong { display: block; font-size: 14.5px; font-weight: 700; color: #fff; }
.risk-row span { font-size: 12.5px; color: rgba(255,255,255,0.55); }
.risk-card-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .risk-card { max-width: 480px; }
}
@media (max-width: 560px) {
  .hero { padding-top: calc(var(--header-height) + 44px); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-strip { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* ==========================================================================
   Why IMC
   ========================================================================== */
.why-section .container {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.why-copy h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.16;
  color: var(--color-primary);
  max-width: 18ch;
}
.why-copy p:not(.eyebrow) {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-muted);
}
.why-roadmap {
  color: var(--color-primary) !important;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.why-copy .btn { margin-top: 28px; }
.why-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 900px) {
  .why-section .container { grid-template-columns: 1fr; gap: 32px; }
  .why-media { order: -1; }
  .why-media img { min-height: 220px; }
  .why-copy h2 { max-width: none; }
}

/* ==========================================================================
   Risks / pain points
   ========================================================================== */
.risks-section { background: var(--color-background); }
.risks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  /* overflow left visible on purpose: clipping would cut off lifted cards on hover */
}
.risk-tile {
  background: var(--color-surface);
  padding: 36px 32px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.risk-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.risk-tile:hover {
  background: #fffdf9;
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.risk-tile:hover::before { transform: scaleX(1); }
/* Corner rounding tracks the responsive column count so it lines up with the container radius. */
.risk-tile:nth-child(1) { border-top-left-radius: var(--radius-lg); }
.risk-tile:nth-child(3) { border-top-right-radius: var(--radius-lg); }
.risk-tile:nth-child(4) { border-bottom-left-radius: var(--radius-lg); }
.risk-tile:nth-child(6) { border-bottom-right-radius: var(--radius-lg); }
.risk-tile i {
  color: var(--color-accent);
  font-size: 22px;
  margin-bottom: 20px;
  display: block;
  transition: color 0.3s var(--ease);
}
.risk-tile:hover i { color: var(--color-accent-text); }
.risk-tile h3 { font-size: 17.5px; color: var(--color-primary); margin-bottom: 10px; line-height: 1.35; }
.risk-tile p { font-size: 14.5px; color: var(--color-muted); line-height: 1.65; }

@media (max-width: 900px) and (min-width: 621px) {
  .risks-grid { grid-template-columns: repeat(2, 1fr); }
  .risk-tile:nth-child(1) { border-top-left-radius: var(--radius-lg); border-bottom-left-radius: 0; }
  .risk-tile:nth-child(2) { border-top-right-radius: var(--radius-lg); }
  .risk-tile:nth-child(3) { border-top-right-radius: 0; border-bottom-left-radius: 0; }
  .risk-tile:nth-child(4) { border-bottom-left-radius: 0; }
  .risk-tile:nth-child(5) { border-bottom-left-radius: var(--radius-lg); border-bottom-right-radius: 0; }
  .risk-tile:nth-child(6) { border-bottom-right-radius: var(--radius-lg); }
}
@media (max-width: 620px) {
  .risks-grid { grid-template-columns: 1fr; }
  .risk-tile { border-radius: 0 !important; }
  .risk-tile:nth-child(1) { border-top-left-radius: var(--radius-lg) !important; border-top-right-radius: var(--radius-lg) !important; }
  .risk-tile:nth-child(6) { border-bottom-left-radius: var(--radius-lg) !important; border-bottom-right-radius: var(--radius-lg) !important; }
}

/* ==========================================================================
   Strategic viewpoint — layered timeline
   ========================================================================== */
.approach-section {
  background: var(--color-primary);
  color: #fff;
  position: relative;
}
.approach-section::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--color-primary-dark), var(--color-primary) 60%);
  opacity: 0.9;
}
.approach-section .container { position: relative; z-index: 1; }
.approach-section .section-head h2 { color: #fff; }
.approach-section .section-head p { color: rgba(255,255,255,0.68); }

.layers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: 20px;
}
.layers::before {
  content: '';
  position: absolute;
  top: 44px; left: 6%; right: 6%;
  height: 1px;
  background: rgba(255,255,255,0.18);
}
.layer {
  position: relative;
  padding: 0 28px 0 0;
}
.layer-num {
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--color-accent-light);
  margin-bottom: 26px;
  position: relative;
  z-index: 1;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.layer:hover .layer-num {
  transform: translateY(-4px) scale(1.06);
  border-color: var(--color-accent);
  background: rgba(171,139,83,0.12);
}
.layer .kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
  display: block;
}
.layer h3 { font-size: 19px; color: #fff; margin-bottom: 12px; }
.layer p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.65; }

@media (max-width: 940px) {
  .layers { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .layers::before { display: none; }
}
@media (max-width: 560px) {
  .layers { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Services — editorial numbered rows
   ========================================================================== */
.services-section { background: var(--color-background); }
.service-row {
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  gap: 40px;
  padding: 44px 28px;
  margin: 0 -28px;
  border-top: 1px solid var(--color-border);
  align-items: start;
  border-radius: var(--radius-md);
  transition: background 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.service-row:last-child { border-bottom: 1px solid var(--color-border); }
.service-row:hover {
  background: var(--color-surface);
  box-shadow: inset 3px 0 0 var(--color-accent);
}
.service-num { font-size: 15px; font-weight: 700; color: var(--color-accent-text); letter-spacing: 0.05em; }
.service-heading { display: flex; align-items: flex-start; gap: 16px; }
.service-heading i {
  color: var(--color-primary);
  font-size: 20px;
  margin-top: 4px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.service-row:hover .service-heading i { transform: scale(1.12); color: var(--color-accent-text); }
.service-heading h3 { font-size: 21px; color: var(--color-primary); line-height: 1.3; }
.service-body p { font-size: 15px; color: var(--color-muted); line-height: 1.7; margin-bottom: 16px; }
.service-body ul { display: flex; flex-direction: column; gap: 10px; }
.service-body li {
  font-size: 14.5px;
  color: var(--color-text-soft);
  display: flex;
  gap: 10px;
  line-height: 1.5;
}
.service-body li i { color: var(--color-accent); font-size: 11px; margin-top: 6px; flex-shrink: 0; }
.assignment-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.assignment-tags .tag-card {
  flex: 1 1 180px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  background: var(--color-surface);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.assignment-tags .tag-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}
.assignment-tags .tag-card strong { display: block; font-size: 13.5px; color: var(--color-primary); margin-bottom: 4px; }
.assignment-tags .tag-card span { font-size: 13px; color: var(--color-muted); line-height: 1.5; }

@media (max-width: 900px) {
  .service-row { grid-template-columns: 1fr; gap: 18px; }
  .service-num { font-size: 13px; }
}

/* ==========================================================================
   Scenarios — pull quotes
   ========================================================================== */
.scenarios-section { background: var(--color-surface-alt); }
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.scenario-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.scenario-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(171,139,83,0.4);
}
.scenario-card i.fa-quote-left {
  color: var(--color-accent);
  font-size: 22px;
  transition: transform 0.35s var(--ease);
}
/* .scenario-card:hover i.fa-quote-left { transform: scale(1.15) rotate(-6deg); } */
.scenario-card .statement {
  font-size: 18.5px;
  font-style: italic;
  color: var(--color-primary);
  line-height: 1.5;
}
.scenario-card .response {
  font-size: 14.5px;
  color: var(--color-muted);
  line-height: 1.7;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}
@media (max-width: 900px) {
  .scenario-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Comparison table
   ========================================================================== */
.comparison-section { background: var(--color-background); }
.comparison-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
table.comparison {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  background: var(--color-surface);
}
table.comparison thead th {
  text-align: left;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 22px 26px;
  color: var(--color-muted);
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
}
table.comparison thead th.us {
  color: #fff;
  background: var(--color-primary);
}
table.comparison tbody td {
  padding: 22px 26px;
  font-size: 14.5px;
  color: var(--color-text-soft);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  transition: background 0.25s var(--ease);
}
table.comparison tbody tr:last-child td { border-bottom: none; }
table.comparison tbody td:first-child { font-weight: 700; color: var(--color-primary); }
table.comparison tbody td.us {
  background: rgba(171,139,83,0.08);
  font-weight: 600;
  color: var(--color-primary);
  position: relative;
}
table.comparison tbody tr:hover td { background: var(--color-surface-alt); }
table.comparison tbody tr:hover td.us { background: rgba(171,139,83,0.16); }
table.comparison tbody td.us i { color: var(--color-accent); margin-right: 8px; }

/* ==========================================================================
   Process / roadmap
   ========================================================================== */
.process-section { background: var(--color-primary-dark); color: #fff; }
.process-section .section-head h2 { color: #fff; }
.process-section .section-head p { color: rgba(255,255,255,0.65); }

.timeline {
  position: relative;
  margin-top: 12px;
  padding: 8px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.22) 8%, rgba(255,255,255,0.22) 92%, transparent);
  transform: translateX(-50%);
}
.timeline-item {
  display: grid;
  grid-template-columns: 1fr 76px 1fr;
  align-items: center;
  column-gap: 44px;
  position: relative;
}
.timeline-item:not(:last-child) { margin-bottom: 12px; }
.timeline-marker {
  grid-column: 2;
  grid-row: 1;
  width: 76px; height: 76px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  background: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--color-accent-light);
  position: relative;
  z-index: 2;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.timeline-item:hover .timeline-marker {
  transform: scale(1.08);
  border-color: var(--color-accent);
  background: var(--color-primary);
}
.timeline-card {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  background: rgba(255,255,255,0.03);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.timeline-item:nth-child(odd) .timeline-card { grid-column: 1; grid-row: 1; text-align: right; }
.timeline-item:nth-child(even) .timeline-card { grid-column: 3; grid-row: 1; text-align: left; }
.timeline-card:hover {
  transform: translateY(-4px);
  border-color: rgba(171,139,83,0.5);
  background: rgba(255,255,255,0.055);
  box-shadow: var(--shadow-md);
}
.timeline-card h3 {
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 10px;
}
.timeline-card p { font-size: 14.5px; color: rgba(255,255,255,0.68); line-height: 1.65; }

@media (max-width: 780px) {
  .timeline::before { left: 27px; }
  .timeline-item, .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
    grid-template-columns: 56px 1fr;
    column-gap: 20px;
  }
  .timeline-item:nth-child(odd) .timeline-card,
  .timeline-item:nth-child(even) .timeline-card {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
  }
  .timeline-marker { grid-column: 1; grid-row: 1; width: 56px; height: 56px; font-size: 18px; }
  .timeline-item:not(:last-child) { margin-bottom: 28px; }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-section { background: var(--color-background); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(171,139,83,0.4);
}
.testimonial-card .quote-mark {
  font-size: 22px;
  color: var(--color-accent-light);
  opacity: 0.7;
}
.testimonial-card p.quote {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--color-text-soft);
  flex-grow: 1;
}
.testimonial-person { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--color-border); padding-top: 18px; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-accent-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.testimonial-person strong { display: block; font-size: 14px; color: var(--color-primary); }
.testimonial-person span { font-size: 12.5px; color: var(--color-muted); }

@media (max-width: 980px) {
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-section { background: var(--color-surface-alt); }
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:first-child { border-top: 1px solid var(--color-border); }
.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  text-align: left;
  color: var(--color-primary);
  font-size: 16.5px;
  font-weight: 700;
  transition: color 0.25s var(--ease);
}
.faq-trigger:hover { color: var(--color-accent-text); }
.faq-trigger:hover .icon-toggle { border-color: var(--color-accent); }
.faq-trigger .icon-toggle {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
  transition: all 0.25s var(--ease);
}
.faq-trigger[aria-expanded="true"] .icon-toggle {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: rotate(45deg);
}
.faq-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s var(--ease);
}
.faq-panel p {
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.75;
  padding: 0 4px 24px;
  max-width: 62ch;
}
@media (max-width: 940px) {
  .faq-layout { grid-template-columns: 1fr; gap: 24px; }
}

/* ==========================================================================
   CTA / Enquiry
   ========================================================================== */
.contact-section {
  background: var(--color-primary);
  color: #fff;
  position: relative;
}
.contact-bg {
  position: absolute; inset: 0; z-index: 0;
}
.contact-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; }
.contact-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, var(--color-primary-dark) 20%, rgba(16,37,74,0.85) 60%, rgba(16,37,74,0.6));
}
.contact-section .container { position: relative; z-index: 1; }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
/* Grid items default to min-width:auto, which lets long inline content (e.g.
   the address line, checklist text) push the track wider than the container —
   this lets them shrink and wrap normally instead. */
.contact-info, .form-card { min-width: 0; }
.contact-info h2 { font-size: clamp(28px, 3.2vw, 38px); color: #fff; line-height: 1.18; }
.contact-info > p:not(.eyebrow) { margin-top: 20px; font-size: 16px; color: rgba(255,255,255,0.7); line-height: 1.75; max-width: 48ch; }
.contact-checklist { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.contact-checklist li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: rgba(255,255,255,0.88); }
.contact-checklist i { color: var(--color-accent-light); margin-top: 3px; }

.contact-details { margin-top: 44px; display: flex; flex-direction: column; gap: 18px; }
.contact-detail { display: flex; gap: 16px; align-items: flex-start; }
.contact-detail .ic {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent-light);
  flex-shrink: 0;
}
.contact-detail strong { display: block; font-size: 14px; color: #fff; margin-bottom: 3px; }
.contact-detail span, .contact-detail a { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.5; }
.contact-detail a:hover { color: var(--color-accent-light); }

/* Form card */
.form-card {
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.form-card h3 { font-size: 20px; color: var(--color-primary); margin-bottom: 6px; }
.form-card .form-sub { font-size: 14px; color: var(--color-muted); margin-bottom: 28px; }

.field { margin-bottom: 22px; position: relative; }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 8px;
}
.field label .req { color: var(--color-risk); }
.required-note {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--color-muted);
  margin: 0 0 24px;
}
.required-note .req { color: var(--color-risk); }
.field input, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-background);
  color: var(--color-text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(171,139,83,0.18);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-error {
  display: none;
  font-size: 12.5px;
  color: #a6472f;
  margin-top: 6px;
}
.field.has-error input, .field.has-error textarea { border-color: #a6472f; }
.field.has-error .field-error { display: block; }

/* honeypot */
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; }

.form-note { font-size: 12.5px; color: var(--color-muted); margin-top: 4px; line-height: 1.6; }

.form-status {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 22px;
}
.form-status.is-visible { display: flex; }
.form-status.success { background: #eef3ea; color: #2f5c3a; border: 1px solid #cfe0c9; }
.form-status.error { background: #f7e9e5; color: #8a3521; border: 1px solid #e9c9bd; }
.form-status i { margin-top: 2px; }

@media (max-width: 940px) {
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
}
@media (max-width: 782px) {
  .contact-section .section-pad { padding-top: 120px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo-chip {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.96);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.footer-brand img { height: 44px; width: auto; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; max-width: 34ch; color: rgba(255,255,255,0.55); }
.footer-tagline {
  margin-top: 16px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-light);
}
.footer-col h4 {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col span { font-size: 14px; color: rgba(255,255,255,0.55); }
.footer-col a:hover { color: var(--color-accent-light); }
.footer-col .addr { display: flex; gap: 10px; align-items: flex-start; line-height: 1.6; }
.footer-col .addr i { margin-top: 3px; color: var(--color-accent-light); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
}

@media (max-width: 780px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   Floating contact (WhatsApp / Call)
   ========================================================================== */
.floating-contact {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.fab {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 18px 0 0;
  border-radius: 999px;
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.fab:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.fab .fab-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.fab-whatsapp { background: #1e7a4f; }
.fab-whatsapp .fab-icon { background: #17603f; }
.fab-call { background: var(--color-primary); }
.fab-call .fab-icon { background: var(--color-primary-dark); }
.fab span.fab-label {
  font-size: 13.5px;
  font-weight: 700;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.3s var(--ease), opacity 0.3s var(--ease), margin 0.3s var(--ease);
  opacity: 0;
}
.fab:hover span.fab-label, .fab:focus-visible span.fab-label {
  max-width: 140px;
  opacity: 1;
}
@media (max-width: 640px) {
  .floating-contact { right: 14px; bottom: 14px; }
  .fab { width: 52px; padding: 0; justify-content: center; }
  .fab span.fab-label { display: none; }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered entrance for grouped cards — apply .stagger to the parent grid/list */
.stagger > [data-reveal]:nth-child(1) { transition-delay: 0.02s; }
.stagger > [data-reveal]:nth-child(2) { transition-delay: 0.09s; }
.stagger > [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
.stagger > [data-reveal]:nth-child(4) { transition-delay: 0.23s; }
.stagger > [data-reveal]:nth-child(5) { transition-delay: 0.30s; }
.stagger > [data-reveal]:nth-child(6) { transition-delay: 0.37s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
