/*
Theme Name: ICPA Accounting
Theme URI: https://icpaaccounting.ca
Author: ICPA Accounting Inc
Author URI: https://icpaaccounting.ca
Description: Custom theme for ICPA Accounting Inc — Toronto CPA for small and growing businesses.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: icpa
*/

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Geist', 'DM Sans', system-ui, -apple-system, sans-serif;
  background: #F7F5F0;
  color: #181614;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Geist', system-ui, sans-serif;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.035em;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; height: auto; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── CSS VARIABLES ── */
:root {
  --navy:       #08111F;
  --navy-mid:   #0E1E33;
  --navy-card:  #111E30;
  --navy-light: #162840;
  --gold:       #F0A500;
  --gold-h:     #FFB61E;
  --gold-pale:  #FFF7E0;
  --cream:      #F7F5F0;
  --white:      #FFFFFF;
  --g100:       #F0EEE9;
  --g200:       #E2DED6;
  --g400:       #9A9690;
  --g600:       #5C5955;
  --g800:       #2A2826;
  --text:       #181614;
  --rsm:  3px;
  --rmd:  8px;
  --rlg:  14px;
  --rxl:  22px;
  --container: 1200px;
}

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 5%;
}

/* ── TYPOGRAPHY ── */
.s-tag {
  display: block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.s-h {
  font-size: clamp(26px, 3.5vw, 42px);
  color: var(--navy); margin-bottom: 16px;
}
.s-h.on-dark { color: #fff; }
.s-sub {
  font-size: 17px; font-weight: 300;
  color: var(--g600); line-height: 1.75; max-width: 580px;
}
.s-sub.on-dark { color: rgba(255,255,255,0.52); }
.s-head { margin-bottom: 56px; }
.s-head-center { text-align: center; max-width: 560px; margin: 0 auto 60px; }
.s-head-center .s-sub { margin: 0 auto; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--gold); color: var(--navy);
  font-size: 14px; font-weight: 800; letter-spacing: -0.01em;
  padding: 13px 26px; border-radius: var(--rsm);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none; cursor: pointer;
}
.btn-primary:hover {
  background: var(--gold-h); transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(240,165,0,0.35);
}
.btn-ghost {
  display: inline-block;
  background: transparent; color: rgba(255,255,255,0.8);
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  padding: 13px 26px; border-radius: var(--rsm);
  border: 1px solid rgba(255,255,255,0.16);
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  cursor: pointer;
}
.btn-ghost:hover {
  border-color: rgba(240,165,0,0.5);
  color: var(--gold); transform: translateY(-2px);
}
.btn-outline {
  display: inline-block;
  background: transparent; color: var(--navy);
  font-size: 13px; font-weight: 700;
  padding: 9px 22px; border-radius: 100px;
  border: 1px solid var(--g200);
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ── NAV ── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(8,17,31,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(240,165,0,0.12);
  height: 66px;
  transition: box-shadow 0.3s;
}
.nav-inner {
  height: 66px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
}
.nav-left { display: flex; align-items: center; gap: 44px; }
.site-logo img { height: 30px; width: auto; display: block; }
.site-logo .logo-text {
  font-size: 20px; font-weight: 900; color: #fff;
  letter-spacing: -0.03em; display: none;
}
.site-logo .logo-text span { color: var(--gold); }
#primary-menu {
  display: flex; gap: 26px; list-style: none;
}
#primary-menu a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
  color: rgba(255,255,255,0.6); transition: color 0.2s;
}
#primary-menu a:hover,
#primary-menu .current-menu-item > a { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-phone {
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.7);
  display: flex; align-items: center; gap: 7px;
}
.nav-phone a { color: inherit; }
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.4; transform:scale(1.4); }
}
.btn-nav {
  display: inline-block;
  background: var(--gold); color: var(--navy);
  font-size: 13px; font-weight: 700;
  padding: 8px 18px; border-radius: var(--rsm);
  transition: background 0.2s, transform 0.15s;
}
.btn-nav:hover { background: var(--gold-h); transform: translateY(-1px); }

/* ── REAL ICPA LOGO ── */
.site-logo-link { display: flex; align-items: center; text-decoration: none; }
.nav-logo-real {
  height: 36px;
  width: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  opacity: 0.95;
}
.site-logo-link .custom-logo-link img,
.site-logo-link .custom-logo {
  height: 36px !important;
  width: auto !important;
  display: block;
}
.f-logo-real {
  height: 28px;
  width: auto;
  display: block;
  opacity: 0.85;
  margin-bottom: 14px;
}
.footer-brand .site-logo-link .custom-logo-link img {
  height: 28px !important;
  width: auto !important;
  margin-bottom: 14px;
}


/* ── PROMO BANNER ── */
.promo-banner {
  background: var(--gold);
  padding: 11px 5%;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-top: 66px;
  position: relative; z-index: 10;
}
.promo-banner p {
  font-size: 13px; font-weight: 700;
  color: var(--navy); letter-spacing: -0.01em;
}
.promo-cta {
  display: inline-block;
  font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  background: rgba(8,17,31,0.14); color: var(--navy);
  padding: 5px 13px; border-radius: 100px; white-space: nowrap;
  transition: background 0.2s;
}
.promo-cta:hover { background: rgba(8,17,31,0.24); }

/* ── HERO ── */
.hero {
  background: var(--navy);
  min-height: calc(100vh - 88px);
  padding: 80px 5%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute; top: -160px; right: -160px;
  width: 680px; height: 680px;
  background: radial-gradient(circle, rgba(240,165,0,0.09) 0%, transparent 68%);
  pointer-events: none;
}
.hero-glow2 {
  position: absolute; bottom: -200px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(240,165,0,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero-line {
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(240,165,0,0.35) 50%, transparent 100%);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(240,165,0,0.1);
  border: 1px solid rgba(240,165,0,0.22);
  color: var(--gold); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 26px;
}
.eyebrow-dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.hero-content h1 {
  font-size: clamp(36px, 4.5vw, 58px);
  color: #fff; margin-bottom: 22px; line-height: 1.07;
}
.hero-content h1 em { font-style: normal; color: var(--gold); }
.hero-sub {
  font-size: 17px; font-weight: 300; letter-spacing: -0.01em;
  color: rgba(255,255,255,0.58); line-height: 1.75;
  margin-bottom: 38px; max-width: 500px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 54px; }
.trust-bar {
  display: flex; gap: 32px; flex-wrap: wrap;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.07);
}
.trust-num { display: block; font-size: 21px; font-weight: 800; color: var(--gold); letter-spacing: -0.03em; }
.trust-lbl { font-size: 12px; color: rgba(255,255,255,0.38); font-weight: 400; }

/* Hero right cards */
.hero-right { display: flex; align-items: center; justify-content: center; padding: 20px 0; }
.card-stack { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 12px; }
.hc {
  background: var(--navy-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--rlg);
  padding: 20px 22px;
  transition: transform 0.25s, border-color 0.25s;
}
.hc:hover { transform: translateY(-3px); border-color: rgba(240,165,0,0.2); }
.hc-accent { border-color: rgba(240,165,0,0.25); background: linear-gradient(135deg, rgba(240,165,0,0.07), rgba(240,165,0,0.02)); }
.hc-lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.hc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hc-title { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: -0.02em; margin-bottom: 4px; }
.hc-sub { font-size: 12px; color: rgba(255,255,255,0.42); }
.hc-badge { font-size: 10px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; background: rgba(240,165,0,0.14); color: var(--gold); padding: 4px 10px; border-radius: 100px; white-space: nowrap; flex-shrink: 0; }
.hc-green { background: rgba(52,199,89,0.14); color: #34C759; }

/* ── SECTION BACKGROUNDS ── */
.section { padding: 96px 0; }
.section .container { }
.bg-white  { background: var(--white); }
.bg-cream  { background: var(--cream); }
.bg-navy   { background: var(--navy); }
.bg-gray   { background: var(--g100); }

/* ── SERVICES ── */
.svc-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 2px; background: var(--g200);
  border-radius: var(--rlg); border: 2px solid var(--g200);
  overflow: hidden;
}
.svc {
  background: var(--white); padding: 36px 30px;
  position: relative; transition: background 0.25s; cursor: default;
}
.svc:hover { background: var(--navy); }
.svc:hover .svc-icon { background: rgba(240,165,0,0.13); }
.svc:hover .svc-ico { color: var(--gold); }
.svc:hover .svc-sub { color: var(--gold); }
.svc:hover .svc-title { color: #fff; }
.svc:hover .svc-body { color: rgba(255,255,255,0.5); }
.svc:hover .svc-arrow { opacity: 1; color: var(--gold); }
.svc-icon { width: 42px; height: 42px; border-radius: var(--rsm); background: var(--gold-pale); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: background 0.25s; }
.svc-ico { font-size: 18px; transition: color 0.25s; }
.svc-sub { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; transition: color 0.25s; }
.svc-title { font-size: 18px; font-weight: 800; color: var(--navy); letter-spacing: -0.025em; margin-bottom: 10px; transition: color 0.25s; }
.svc-body { font-size: 14px; font-weight: 300; color: var(--g600); line-height: 1.7; transition: color 0.25s; }
.svc-arrow { position: absolute; bottom: 24px; right: 24px; font-size: 18px; color: var(--g200); opacity: 0; transition: opacity 0.25s, color 0.25s; }

/* ── WHY ── */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.why-list { list-style: none; margin-top: 40px; }
.why-item { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--g200); }
.why-item:last-child { border-bottom: none; }
.why-n { font-size: 12px; font-weight: 800; color: var(--gold); letter-spacing: 0.04em; min-width: 26px; padding-top: 2px; }
.why-c h4 { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); margin-bottom: 5px; }
.why-c p { font-size: 14px; font-weight: 300; color: var(--g600); line-height: 1.7; }
.why-panel { background: var(--navy); border-radius: var(--rxl); padding: 36px; position: sticky; top: 86px; }
.why-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-bottom: 2px; }
.why-stat { background: var(--navy-mid); padding: 26px 22px; }
.why-stat:first-child { border-radius: var(--rlg) 0 0 0; }
.why-stat:nth-child(2) { border-radius: 0 var(--rlg) 0 0; }
.why-stat-n { font-size: 30px; font-weight: 800; color: var(--gold); letter-spacing: -0.04em; display: block; margin-bottom: 4px; }
.why-stat-l { font-size: 12px; color: rgba(255,255,255,0.42); line-height: 1.4; }
.why-creds { background: var(--navy-mid); padding: 22px; border-radius: 0 0 var(--rlg) var(--rlg); display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.wcl { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.3); width: 100%; margin-bottom: 4px; }
.cbadge { background: rgba(240,165,0,0.1); border: 1px solid rgba(240,165,0,0.18); color: var(--gold); font-size: 11px; font-weight: 600; padding: 5px 12px; border-radius: 100px; }

/* ── STEPS ── */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; position: relative; }
.steps::before { content: ''; position: absolute; top: 26px; left: calc(12.5% + 26px); right: calc(12.5% + 26px); height: 1px; background: var(--gold); opacity: 0.22; z-index: 0; }
.step { text-align: center; padding: 0 16px; position: relative; z-index: 1; }
.step-n { width: 52px; height: 52px; border-radius: 50%; background: var(--cream); border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; font-size: 17px; font-weight: 800; color: var(--gold); }
.step h4 { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 13px; font-weight: 300; color: var(--g600); line-height: 1.7; }

/* ── STORY ── */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.story-photo-wrap { position: relative; }
.story-frame { border-radius: var(--rxl); overflow: hidden; background: linear-gradient(145deg, var(--navy-light), var(--navy)); aspect-ratio: 4/5; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(240,165,0,0.12); }
.story-frame img { width: 100%; height: 100%; object-fit: cover; }
.story-frame .placeholder { color: rgba(255,255,255,0.3); text-align: center; padding: 40px; }
.story-badge { position: absolute; bottom: -18px; right: -18px; background: var(--gold); color: var(--navy); font-size: 13px; font-weight: 800; letter-spacing: -0.02em; padding: 14px 18px; border-radius: var(--rlg); line-height: 1.25; }
.story-body { font-size: 15px; font-weight: 300; color: var(--g600); line-height: 1.85; margin: 22px 0 28px; }
.story-body p { margin-bottom: 14px; }
.story-body p:last-child { margin-bottom: 0; }
.story-creds { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 28px; }
.sc { background: var(--gold-pale); border: 1px solid rgba(240,165,0,0.2); color: var(--g800); font-size: 12px; font-weight: 600; padding: 5px 13px; border-radius: 100px; }
.vals { border: 1px solid var(--g200); border-radius: var(--rlg); overflow: hidden; }
.val { display: flex; gap: 14px; padding: 15px 18px; border-bottom: 1px solid var(--g200); align-items: flex-start; }
.val:last-child { border-bottom: none; }
.val-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: 6px; }
.val strong { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; color: var(--navy); display: block; margin-bottom: 2px; }
.val span { font-size: 13px; font-weight: 300; color: var(--g600); line-height: 1.6; }

/* ── INDUSTRIES ── */
.ind-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.ind { background: var(--navy-card); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--rlg); padding: 26px 22px; transition: border-color 0.2s, transform 0.2s; cursor: default; }
.ind:hover { border-color: rgba(240,165,0,0.35); transform: translateY(-3px); }
.ind-ico { font-size: 22px; margin-bottom: 12px; display: block; }
.ind-name { font-size: 14px; font-weight: 700; letter-spacing: -0.02em; color: #fff; margin-bottom: 5px; }
.ind-desc { font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.4); line-height: 1.6; }

/* ── REVIEWS ── */
.rev-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.rev { background: var(--white); border: 1px solid var(--g200); border-radius: var(--rlg); padding: 26px 22px; position: relative; }
.rev-stars { color: var(--gold); font-size: 13px; letter-spacing: 2px; margin-bottom: 12px; display: block; }
.rev-text { font-size: 14px; font-weight: 300; color: var(--g600); line-height: 1.75; margin-bottom: 18px; font-style: italic; }
.rev-author { display: flex; align-items: center; gap: 11px; }
.rev-av { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; background: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: var(--gold); }
.rev-name { font-size: 14px; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); display: block; }
.rev-role { font-size: 12px; color: var(--g400); }
.g-badge { position: absolute; top: 22px; right: 22px; width: 20px; height: 20px; background: #4285F4; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; }
.rev-center { text-align: center; margin-top: 28px; }

/* ── CTA SECTION ── */
.cta-section { background: var(--navy); padding: 100px 0; text-align: center; position: relative; overflow: hidden; }
.cta-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 640px; height: 640px; background: radial-gradient(circle, rgba(240,165,0,0.1) 0%, transparent 65%); pointer-events: none; }
.cta-section h2 { font-size: clamp(30px,5vw,54px); color: #fff; margin-bottom: 14px; position: relative; }
.cta-section h2 em { font-style: normal; color: var(--gold); }
.cta-section .cta-sub { font-size: 17px; font-weight: 300; color: rgba(255,255,255,0.55); max-width: 540px; margin: 0 auto 36px; line-height: 1.75; position: relative; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; margin-bottom: 18px; }
.cta-note { font-size: 12px; color: rgba(255,255,255,0.28); position: relative; }

/* Calendly embed */
.calendly-wrap { max-width: 900px; margin: 0 auto; position: relative; }
.calendly-inline-widget { min-width: 320px; height: 700px; }

/* ── CONTACT PAGE ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info h2 { color: var(--navy); margin-bottom: 16px; }
.contact-info p { font-size: 15px; font-weight: 300; color: var(--g600); line-height: 1.8; margin-bottom: 32px; }
.contact-detail { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
.contact-detail-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.contact-detail-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.contact-detail-value { font-size: 15px; font-weight: 500; color: var(--navy); }
.contact-detail-value a { color: var(--navy); transition: color 0.2s; }
.contact-detail-value a:hover { color: var(--gold); }

/* WP contact form overrides */
.wpcf7-form { display: flex; flex-direction: column; gap: 16px; }
.wpcf7-form label { font-size: 13px; font-weight: 600; color: var(--navy); display: block; margin-bottom: 6px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--g200); border-radius: var(--rsm);
  font-family: inherit; font-size: 14px; color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240,165,0,0.12);
}
.wpcf7-form textarea { min-height: 120px; resize: vertical; }
.wpcf7-form .wpcf7-submit {
  background: var(--gold); color: var(--navy);
  font-size: 15px; font-weight: 800;
  padding: 14px 28px; border-radius: var(--rsm);
  cursor: pointer; border: none;
  transition: background 0.2s, transform 0.15s;
  align-self: flex-start;
}
.wpcf7-form .wpcf7-submit:hover { background: var(--gold-h); transform: translateY(-1px); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--navy);
  padding: 80px 0 64px;
  position: relative; overflow: hidden;
  margin-top: 66px;
}
.page-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent 0%, rgba(240,165,0,0.35) 50%, transparent 100%); }
.page-hero-glow { position: absolute; top: -100px; right: -100px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(240,165,0,0.08) 0%, transparent 70%); pointer-events: none; }
.page-hero h1 { font-size: clamp(32px,4vw,52px); color: #fff; margin-bottom: 16px; }
.page-hero h1 em { font-style: normal; color: var(--gold); }
.page-hero p { font-size: 17px; font-weight: 300; color: rgba(255,255,255,0.6); line-height: 1.75; max-width: 560px; }
.breadcrumb { font-size: 12px; color: rgba(255,255,255,0.35); margin-bottom: 20px; display: flex; gap: 8px; align-items: center; }
.breadcrumb a { color: rgba(255,255,255,0.35); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }

/* ── SERVICE/INDUSTRY SINGLE PAGE ── */
.page-content { padding: 72px 0; }
.page-content-grid { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.page-main h2 { font-size: clamp(22px,3vw,32px); color: var(--navy); margin: 32px 0 14px; }
.page-main h2:first-child { margin-top: 0; }
.page-main p { font-size: 15px; font-weight: 300; color: var(--g600); line-height: 1.85; margin-bottom: 16px; }
.page-main ul { margin: 16px 0 24px; padding-left: 0; }
.page-main ul li { font-size: 15px; font-weight: 300; color: var(--g600); padding: 8px 0 8px 24px; border-bottom: 1px solid var(--g100); position: relative; line-height: 1.6; }
.page-main ul li::before { content: '→'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.page-main ul li:last-child { border-bottom: none; }

/* Sidebar */
.page-sidebar { position: sticky; top: 86px; }
.sidebar-card { background: var(--navy); border-radius: var(--rlg); padding: 28px; margin-bottom: 16px; }
.sidebar-card h4 { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: -0.02em; margin-bottom: 14px; }
.sidebar-card p { font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 20px; }
.sidebar-card .btn-primary { display: block; text-align: center; }
.sidebar-services h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--g400); margin-bottom: 12px; }
.sidebar-services ul { list-style: none; }
.sidebar-services ul li { border-bottom: 1px solid var(--g200); }
.sidebar-services ul a { display: block; padding: 10px 0; font-size: 14px; font-weight: 500; color: var(--navy); transition: color 0.2s; }
.sidebar-services ul a:hover { color: var(--gold); }
.sidebar-services ul .current-service { color: var(--gold); }

/* ── BLOG / FAQ ── */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.post-card { background: var(--white); border: 1px solid var(--g200); border-radius: var(--rlg); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.post-card-body { padding: 24px; }
.post-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; display: block; }
.post-title { font-size: 18px; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; margin-bottom: 10px; line-height: 1.3; }
.post-title a { color: inherit; transition: color 0.2s; }
.post-title a:hover { color: var(--gold); }
.post-excerpt { font-size: 14px; font-weight: 300; color: var(--g600); line-height: 1.7; }
.post-meta { font-size: 12px; color: var(--g400); margin-top: 16px; }

/* FAQ accordion */
.faq-list { border: 1px solid var(--g200); border-radius: var(--rlg); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--g200); }
.faq-item:last-child { border-bottom: none; }
.faq-q { width: 100%; text-align: left; padding: 18px 20px; font-size: 15px; font-weight: 600; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--white); transition: background 0.2s; }
.faq-q:hover { background: var(--g100); }
.faq-q.open { color: var(--gold); background: var(--g100); }
.faq-icon { font-size: 18px; font-weight: 300; flex-shrink: 0; transition: transform 0.3s; }
.faq-q.open .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 20px 18px; font-size: 14px; font-weight: 300; color: var(--g600); line-height: 1.75; }
.faq-a.open { display: block; }

/* ── FOOTER ── */
#site-footer { background: #050D18; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 44px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.footer-brand .f-logo img { height: 28px; width: auto; }
.footer-brand .f-logo-text { font-size: 18px; font-weight: 900; color: #fff; letter-spacing: -0.03em; }
.footer-brand .f-logo-text span { color: var(--gold); }
.f-tagline { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.38); line-height: 1.7; max-width: 240px; margin: 14px 0 18px; }
.f-contact-item { font-size: 13px; color: rgba(255,255,255,0.42); margin-bottom: 5px; display: flex; gap: 6px; }
.f-contact-item strong { color: rgba(255,255,255,0.6); font-weight: 600; }
.f-contact-item a { color: rgba(255,255,255,0.42); transition: color 0.2s; }
.f-contact-item a:hover { color: var(--gold); }
.footer-col h5 { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.38); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.f-copy { font-size: 12px; color: rgba(255,255,255,0.2); }
.f-socials { display: flex; gap: 10px; }
.f-social { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.35); transition: border-color 0.2s, color 0.2s; }
.f-social:hover { border-color: var(--gold); color: var(--gold); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
.hero-content > * { animation: fadeUp 0.65s ease both; }
.hero-eyebrow    { animation-delay: 0.05s; }
.hero-content h1 { animation-delay: 0.15s; }
.hero-sub        { animation-delay: 0.25s; }
.hero-ctas       { animation-delay: 0.35s; }
.trust-bar       { animation-delay: 0.45s; }
.hero-right      { animation: fadeUp 0.8s 0.25s ease both; }

/* ── RESPONSIVE ── */


/* ── WHITE SPACE FIX ── */
body { margin-top: 0 !important; padding-top: 0 !important; }
.promo-banner { margin-top: 66px; }
.hero { margin-top: 0; }

/* ── MOBILE MENU FIX ── */
.mobile-menu { display: none !important; }
.mobile-menu.open { display: block !important; }

/* ── FULL MOBILE & TABLET FIXES ── */
/* Tablet (768px - 960px) */
@media (max-width: 960px) {
  /* Nav */
  #site-header { height: 60px; }
  .nav-inner { height: 60px; padding: 0 4%; }
  .promo-banner { margin-top: 60px; flex-direction: column; gap: 6px; text-align: center; padding: 10px 4%; }
  .promo-banner p { font-size: 12px; }
  
  /* Hero */
  .hero { min-height: auto; padding: 48px 4% 56px; }
  .hero-content h1 { font-size: clamp(28px, 6vw, 42px); }
  .hero-sub { font-size: 15px; }
  .hero-ctas { gap: 10px; }
  .trust-bar { gap: 20px; padding-top: 24px; }
  .trust-num { font-size: 18px; }
  
  /* Sections */
  .section { padding: 64px 0; }
  .section-inner { padding: 0 4%; }
  .container { padding: 0 4%; }
  .s-h { font-size: clamp(22px, 4vw, 32px); }
  .s-sub { font-size: 15px; }
  .s-head { margin-bottom: 36px; }
  .s-head-center { margin-bottom: 40px; }
  
  /* Services */
  .svc-grid { grid-template-columns: 1fr 1fr; gap: 2px; }
  .svc { padding: 28px 22px; }
  
  /* Steps */  
  .steps { grid-template-columns: 1fr 1fr; gap: 36px; padding: 0 4%; }
  
  /* Story */
  .story-grid { grid-template-columns: 1fr; gap: 48px; }
  .story-frame { aspect-ratio: 16/9; }
  .story-badge { bottom: -14px; right: -10px; font-size: 11px; padding: 10px 14px; }
  
  /* Industries */
  .ind-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .ind { padding: 20px 16px; }
  
  /* Reviews */
  .rev-grid { grid-template-columns: 1fr; gap: 12px; }
  
  /* Why */
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-panel { position: static; }
  
  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  
  /* Nav */
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .nav-toggle { display: flex; }
}

/* Mobile (max 600px) */
@media (max-width: 600px) {
  /* Nav */
  #site-header { height: 56px; }
  .nav-inner { height: 56px; padding: 0 4%; }
  .site-logo-link img, .site-logo-link .custom-logo { height: 36px !important; width: 36px !important; }
  .nav-logo-name { font-size: 14px; }
  .nav-logo-sub { display: none; }
  .btn-nav { font-size: 12px; padding: 7px 14px; }
  .promo-banner { margin-top: 56px; display: none; } /* Hide on very small screens */
  
  /* Hero */
  .hero { padding: 40px 4% 48px; }
  .hero-content h1 { font-size: clamp(26px, 7vw, 36px); line-height: 1.1; }
  .hero-sub { font-size: 14px; margin-bottom: 28px; }
  .hero-eyebrow { font-size: 10px; padding: 5px 12px; margin-bottom: 20px; }
  .hero-ctas { flex-direction: column; gap: 10px; margin-bottom: 36px; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; padding: 14px 20px; font-size: 14px; }
  .trust-bar { gap: 16px; flex-wrap: wrap; padding-top: 24px; }
  .trust-num { font-size: 16px; }
  .trust-lbl { font-size: 10px; }
  
  /* Sections */
  .section { padding: 48px 0; }
  .container { padding: 0 4%; }
  .s-head { margin-bottom: 28px; }
  .s-head-center { margin-bottom: 32px; }
  
  /* Services */
  .svc-grid { grid-template-columns: 1fr; }
  .svc { padding: 24px 20px; }
  .svc-title { font-size: 16px; }
  
  /* Why */
  .why-stats { grid-template-columns: 1fr 1fr; }
  .why-stat-n { font-size: 24px; }
  
  /* Steps */
  .steps { grid-template-columns: 1fr; gap: 32px; padding: 0; }
  .steps::before { display: none; }
  .step { padding: 0; }
  
  /* Story */
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .story-frame { aspect-ratio: 4/3; }
  .story-badge { bottom: -12px; right: -8px; }
  .story-body p { font-size: 14px; }
  
  /* Industries */
  .ind-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ind { padding: 18px 14px; }
  .ind-name { font-size: 13px; }
  .ind-desc { font-size: 11px; }
  
  /* Reviews */
  .rev-grid { grid-template-columns: 1fr; }
  .rev { padding: 20px 16px; }
  .rev-text { font-size: 13px; }
  
  /* CTA */
  .cta-section { padding: 64px 0; }
  .cta-section h2 { font-size: clamp(26px, 6vw, 38px); }
  .cta-sub { font-size: 15px; }
  .cta-btns { flex-direction: column; align-items: center; gap: 10px; }
  .cta-btns .btn-primary,
  .cta-btns .btn-ghost { width: 100%; max-width: 300px; text-align: center; }
  
  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  #site-footer { padding: 48px 0 24px; }
  .footer-bot { flex-direction: column; align-items: flex-start; gap: 16px; }
  
  /* Story creds */
  .story-creds { gap: 6px; }
  .sc { font-size: 11px; padding: 4px 10px; }
}

/* Small phones (max 380px) */
@media (max-width: 380px) {
  .ind-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 24px; }
  .trust-bar { gap: 12px; }
}

/* ── PAGE TEMPLATES ── */
.page-hero { background:var(--navy); padding:72px 0 56px; position:relative; overflow:hidden; }
.page-hero-glow { position:absolute; top:-100px; right:-100px; width:500px; height:500px; background:radial-gradient(circle,rgba(240,165,0,.08) 0%,transparent 70%); pointer-events:none; }
.page-hero::after { content:''; position:absolute; bottom:0; left:0; right:0; height:1px; background:linear-gradient(90deg,transparent 0%,rgba(240,165,0,.3) 50%,transparent 100%); }
.page-hero .container { position:relative; z-index:1; }
.page-hero h1 { font-size:clamp(28px,4vw,48px); color:#fff; margin-bottom:14px; line-height:1.1; }
.page-hero h1 em { font-style:normal; color:var(--gold); }
.page-hero p { font-size:16px; font-weight:300; color:rgba(255,255,255,.6); line-height:1.75; max-width:560px; }
.ph-eyebrow { font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--gold); margin-bottom:14px; display:block; }
.breadcrumb { display:flex; gap:8px; align-items:center; font-size:12px; color:rgba(255,255,255,.35); margin-bottom:20px; flex-wrap:wrap; }
.breadcrumb a { color:rgba(255,255,255,.35); transition:color .2s; }
.breadcrumb a:hover { color:var(--gold); }
.breadcrumb span { color:var(--gold); }
.breadcrumb span:not(:last-child) { color:rgba(255,255,255,.35); }

/* Page Content Grid */
.page-content-grid { display:grid; grid-template-columns:1fr 300px; gap:56px; align-items:start; }
.page-main h2 { font-size:clamp(20px,2.5vw,28px); color:var(--navy); margin:32px 0 12px; letter-spacing:-.025em; }
.page-main h2:first-child { margin-top:0; }
.page-main h3 { font-size:17px; font-weight:700; color:var(--navy); margin:24px 0 10px; }
.page-main p { font-size:15px; font-weight:300; color:var(--g600); line-height:1.85; margin-bottom:16px; }
.page-main ul { margin:16px 0 24px; padding:0; }
.page-main ul li { font-size:15px; font-weight:300; color:var(--g600); padding:9px 0 9px 24px; border-bottom:1px solid var(--g100); position:relative; line-height:1.6; }
.page-main ul li::before { content:'→'; position:absolute; left:0; color:var(--gold); font-weight:700; }
.page-main ul li:last-child { border-bottom:none; }
.page-main strong { font-weight:700; color:var(--navy); }
.page-main a { color:var(--gold); }

/* Sidebar */
.page-sidebar { position:sticky; top:86px; }
.sidebar-cta { background:var(--navy); border-radius:var(--rlg); padding:28px; margin-bottom:16px; }
.sidebar-cta h4 { font-size:16px; font-weight:700; color:#fff; letter-spacing:-.02em; margin-bottom:10px; }
.sidebar-cta p { font-size:14px; font-weight:300; color:rgba(255,255,255,.55); line-height:1.65; }
.sidebar-services { background:var(--g100); border-radius:var(--rlg); padding:22px; }
.sidebar-services h5 { font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--g400); margin-bottom:14px; }
.sidebar-services ul li { border-bottom:1px solid var(--g200); }
.sidebar-services ul li:last-child { border-bottom:none; }
.sidebar-services ul a { display:block; padding:10px 0; font-size:14px; font-weight:500; color:var(--navy); transition:color .2s; }
.sidebar-services ul a:hover { color:var(--gold); }

/* Contact */
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:start; }
.contact-detail { display:flex; gap:14px; align-items:flex-start; margin-bottom:24px; }
.contact-detail-icon { font-size:20px; flex-shrink:0; margin-top:2px; }
.contact-label { font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--gold); margin-bottom:3px; }
.contact-value { font-size:15px; font-weight:500; color:var(--navy); line-height:1.5; }
.contact-value a { color:var(--navy); transition:color .2s; }
.contact-value a:hover { color:var(--gold); }

/* Forms */
.wpcf7-form { display:flex; flex-direction:column; gap:16px; }
.wpcf7-form label { font-size:13px; font-weight:600; color:var(--navy); display:block; margin-bottom:5px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea { width:100%; padding:12px 14px; border:1px solid var(--g200); border-radius:var(--rsm); font-family:inherit; font-size:14px; color:var(--text); background:var(--white); transition:border-color .2s,box-shadow .2s; outline:none; }
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus { border-color:var(--gold); box-shadow:0 0 0 3px rgba(240,165,0,.1); }
.wpcf7-form textarea { min-height:130px; resize:vertical; }
.wpcf7-form .wpcf7-submit { background:var(--gold); color:var(--navy); font-size:15px; font-weight:800; padding:14px 28px; border-radius:var(--rsm); cursor:pointer; border:none; transition:background .2s,transform .15s; align-self:flex-start; }
.wpcf7-form .wpcf7-submit:hover { background:var(--gold-h); transform:translateY(-1px); }

/* FAQ */
.faq-list { border:1px solid var(--g200); border-radius:var(--rlg); overflow:hidden; }
.faq-item { border-bottom:1px solid var(--g200); }
.faq-item:last-child { border-bottom:none; }
.faq-q { width:100%; text-align:left; padding:18px 20px; font-size:15px; font-weight:600; color:var(--navy); cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:12px; background:var(--white); transition:background .2s; border:none; font-family:inherit; }
.faq-q:hover { background:var(--g100); }
.faq-q.open { color:var(--gold); background:var(--g100); }
.faq-icon { font-size:20px; font-weight:300; flex-shrink:0; transition:transform .3s; }
.faq-q.open .faq-icon { transform:rotate(45deg); }
.faq-a { display:none; padding:4px 20px 18px; font-size:14px; font-weight:300; color:var(--g600); line-height:1.75; }
.faq-a.open { display:block; }

/* Blog */
.blog-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.post-card { background:var(--white); border:1px solid var(--g200); border-radius:var(--rlg); overflow:hidden; transition:transform .2s,box-shadow .2s; }
.post-card:hover { transform:translateY(-4px); box-shadow:0 12px 32px rgba(0,0,0,.08); }
.post-card-body { padding:24px; }
.post-cat { font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--gold); margin-bottom:10px; display:block; }
.post-title { font-size:18px; font-weight:700; color:var(--navy); letter-spacing:-.02em; margin-bottom:10px; line-height:1.3; }
.post-title a { color:inherit; transition:color .2s; }
.post-title a:hover { color:var(--gold); }
.post-excerpt { font-size:14px; font-weight:300; color:var(--g600); line-height:1.7; }
.post-meta { font-size:12px; color:var(--g400); margin-top:16px; }

/* btn-outline */
.btn-outline { display:inline-block; font-size:13px; font-weight:700; color:var(--navy); border:1px solid var(--g200); padding:9px 22px; border-radius:100px; transition:border-color .2s,color .2s; }
.btn-outline:hover { border-color:var(--gold); color:var(--gold); }

/* Page template responsive */
@media (max-width: 960px) {
  .page-content-grid { grid-template-columns:1fr; gap:36px; }
  .page-sidebar { position:static; }
  .contact-grid { grid-template-columns:1fr; gap:40px; }
  .blog-grid { grid-template-columns:1fr 1fr; }
  .page-hero { padding:56px 0 44px; }
}
@media (max-width: 600px) {
  .page-hero { padding:40px 0 36px; }
  .page-hero h1 { font-size:clamp(24px,6vw,32px); }
  .page-hero p { font-size:14px; }
  .page-hero > .container > div[style] { flex-direction:column; }
  .page-hero .btn-primary,
  .page-hero .btn-ghost { width:100%; text-align:center; }
  .blog-grid { grid-template-columns:1fr; }
  .faq-q { font-size:14px; padding:14px 16px; }
  .wpcf7-form .wpcf7-submit { width:100%; }
}

/* Page hero whitespace fix */
.page-hero { margin-top: 0 !important; }
/* Contact form */
.icpa-contact-form { display:flex; flex-direction:column; gap:16px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-group { display:flex; flex-direction:column; gap:6px; }
.form-group label { font-size:13px; font-weight:600; color:var(--navy); }
.form-group input,.form-group select,.form-group textarea { width:100%; padding:12px 14px; border:1.5px solid var(--g200); border-radius:var(--rsm); font-family:inherit; font-size:14px; color:var(--text); background:var(--white); transition:border-color .2s,box-shadow .2s; outline:none; }
.form-group input:focus,.form-group select:focus,.form-group textarea:focus { border-color:var(--gold); box-shadow:0 0 0 3px rgba(240,165,0,.12); }
.form-group textarea { min-height:130px; resize:vertical; }
.form-submit { background:var(--gold); color:var(--navy); font-size:15px; font-weight:800; padding:14px 32px; border-radius:var(--rsm); border:none; cursor:pointer; transition:background .2s,transform .15s; align-self:flex-start; font-family:inherit; }
.form-submit:hover { background:var(--gold-h); transform:translateY(-1px); }
.form-submit:disabled { opacity:.6; cursor:not-allowed; transform:none; }
.form-success { background:#EAF3DE; border:1px solid #3B6D11; border-radius:var(--rsm); padding:14px 18px; font-size:14px; font-weight:500; color:#27500A; margin-top:8px; }
.form-error { background:#FCEBEB; border:1px solid #A32D2D; border-radius:var(--rsm); padding:14px 18px; font-size:14px; color:#A32D2D; margin-top:8px; }
@media(max-width:600px) { .form-row { grid-template-columns:1fr; } .form-submit { width:100%; text-align:center; } }

/* ── NAV MOBILE/TABLET COMPREHENSIVE FIX ── */

/* Tablet: hide full menu, show hamburger */
@media (max-width: 1024px) {
    #primary-menu { display: none !important; }
    .nav-toggle { display: flex !important; }
    .nav-phone { display: none; }
}

/* Mobile nav layout */
@media (max-width: 768px) {
    .nav-inner { padding: 0 4%; }
    .site-logo-link { gap: 8px; }
    .site-logo-link img,
    .site-logo-link .custom-logo { height: 36px !important; width: 36px !important; }
    .nav-logo-name { font-size: 14px; }
    .nav-logo-sub { display: none; }
    .btn-nav { font-size: 12px; padding: 7px 12px; white-space: nowrap; }
    .nav-right { gap: 10px; }
}

/* Mobile menu - properly styled */
.mobile-menu { display: none !important; }
.mobile-menu.open {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 32px 5%;
    text-align: center;
}
.mobile-menu ul { width: 100%; }
.mobile-menu ul li { border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-menu ul a {
    display: block;
    padding: 16px 0;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.02em;
    text-align: center;
    transition: color .2s;
}
.mobile-menu ul a:hover { color: var(--gold); }
.mobile-menu-phone {
    font-size: 16px;
    font-weight: 600;
    color: var(--gold);
    margin: 24px 0 16px;
    text-align: center;
}
.mobile-menu .btn-primary {
    display: block;
    text-align: center;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

/* Promo banner mobile */
@media (max-width: 600px) {
    .promo-banner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 12px 4%;
    }
    .promo-banner p { font-size: 12px; }
}

/* Hero mobile */
@media (max-width: 600px) {
    .hero { padding: 36px 4% 48px; }
    .hero-eyebrow { font-size: 10px; padding: 5px 12px; margin-bottom: 18px; }
    .hero-content h1 { font-size: clamp(24px, 7vw, 34px); }
    .hero-sub { font-size: 14px; margin-bottom: 28px; }
    .hero-ctas { flex-direction: column; gap: 10px; margin-bottom: 32px; }
    .hero-ctas .btn-primary,
    .hero-ctas .btn-ghost { width: 100%; text-align: center; padding: 14px 20px; }
    .trust-bar { gap: 14px; padding-top: 24px; }
    .trust-num { font-size: 18px; }
    .trust-lbl { font-size: 10px; }
}

/* Sections mobile */
@media (max-width: 600px) {
    .section { padding: 48px 0; }
    .container { padding: 0 4%; }
    .s-head { margin-bottom: 28px; }
    .s-head-center { margin-bottom: 32px; }
    .svc-grid { grid-template-columns: 1fr; }
    .ind-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .ind { padding: 18px 14px; }
    .ind-name { font-size: 13px; }
    .rev-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; gap: 28px; }
    .steps::before { display: none; }
    .why-grid { grid-template-columns: 1fr; gap: 32px; }
    .story-grid { grid-template-columns: 1fr; gap: 32px; }
    .story-frame { aspect-ratio: 4/3; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .cta-section { padding: 56px 0; }
    .cta-btns { flex-direction: column; align-items: center; gap: 10px; }
    .cta-btns a { width: 100%; max-width: 300px; text-align: center; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .form-row { grid-template-columns: 1fr; }
    .form-submit { width: 100%; text-align: center; }
}

/* Small phones */
@media (max-width: 380px) {
    .ind-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 22px; }
}

/* ── NAV COMPLETE FIX ── */

/* Desktop: full nav visible */
@media (min-width: 1025px) {
    #primary-menu { display: flex !important; }
    .nav-toggle { display: none !important; }
    .nav-phone { display: flex !important; }
}

/* Tablet (769px - 1024px): hamburger, hide links, show logo properly */
@media (max-width: 1024px) and (min-width: 601px) {
    #primary-menu { display: none !important; }
    .nav-toggle { display: flex !important; }
    .nav-phone { display: none !important; }
    .site-logo-link { gap: 10px; }
    .site-logo-link img,
    .site-logo-link .custom-logo { height: 38px !important; width: 38px !important; }
    .nav-logo-name { font-size: 15px; }
    .nav-logo-sub { font-size: 8px; }
    .btn-nav { font-size: 13px; padding: 8px 16px; }
}

/* Mobile (max 600px): compact nav */
@media (max-width: 600px) {
    #site-header { height: 58px; }
    .nav-inner { height: 58px; padding: 0 4%; }
    #primary-menu { display: none !important; }
    .nav-toggle { display: flex !important; }
    .nav-phone { display: none !important; }
    .site-logo-link { gap: 8px; }
    .site-logo-link img,
    .site-logo-link .custom-logo { height: 32px !important; width: 32px !important; }
    .nav-logo-name { font-size: 13px; }
    .nav-logo-sub { display: none; }
    .btn-nav { font-size: 11px; padding: 6px 12px; }
    .promo-banner { margin-top: 58px; }
    .mobile-menu { top: 58px; }
}

/* Mobile menu styling */
.mobile-menu {
    display: none !important;
    position: fixed;
    top: 66px; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    z-index: 9998;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
}
.mobile-menu.open { display: flex !important; }
.mobile-menu > ul { padding: 16px 0; }
.mobile-menu ul li { border-bottom: 1px solid rgba(255,255,255,.07); }
.mobile-menu ul a {
    display: block;
    padding: 18px 5%;
    font-size: 18px;
    font-weight: 700;
    color: rgba(255,255,255,.85);
    letter-spacing: -.01em;
    transition: color .2s, background .2s;
}
.mobile-menu ul a:hover {
    color: var(--gold);
    background: rgba(255,255,255,.03);
}
.mobile-menu-phone {
    padding: 20px 5% 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--gold);
}
.mobile-menu-phone a { color: var(--gold); }
.mobile-menu .btn-primary {
    display: block;
    margin: 8px 5% 32px;
    text-align: center;
    border-radius: 4px;
}

/* Hero mobile - single column, hide cards */
@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr !important;
        min-height: auto;
        padding: 48px 4% 56px;
    }
    .hero-right { display: none !important; }
    .hero-ctas { flex-direction: column; gap: 10px; }
    .hero-ctas .btn-primary,
    .hero-ctas .btn-ghost { width: 100%; text-align: center; }
    .trust-bar { gap: 16px; flex-wrap: wrap; }
}

/* Services grid mobile */
@media (max-width: 960px) {
    .svc-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 500px) {
    .svc-grid { grid-template-columns: 1fr !important; }
}

/* Industries mobile */
@media (max-width: 960px) {
    .ind-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 400px) {
    .ind-grid { grid-template-columns: 1fr !important; }
}

/* Footer mobile */
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr !important; }
    .footer-bot { flex-direction: column; gap: 12px; }
}

/* CTA mobile */
@media (max-width: 600px) {
    .cta-btns { flex-direction: column; align-items: center; }
    .cta-btns a { width: 100%; max-width: 280px; text-align: center; }
}

/* Contact form mobile */
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr !important; gap: 40px; }
}
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr !important; }
    .form-submit { width: 100%; text-align: center; }
}

/* Page content mobile */
@media (max-width: 960px) {
    .page-content-grid { grid-template-columns: 1fr !important; gap: 32px; }
    .page-sidebar { position: static !important; }
}
@media (max-width: 600px) {
    .page-hero { padding: 40px 0 36px; }
    .page-hero h1 { font-size: clamp(24px, 6vw, 32px); }
}


/* ════════════════════════════════════════
   MOBILE FIX — complete overhaul
   ════════════════════════════════════════ */

/* 1. Nav height variables */
:root {
    --nav-h: 66px;
}
@media (max-width: 600px) { :root { --nav-h: 56px; } }

/* 2. Header */
#site-header {
    height: var(--nav-h);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    background: rgba(8,17,31,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(240,165,0,0.12);
}
.nav-inner {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
}

/* 3. Promo banner — sits right below nav */
.promo-banner {
    margin-top: var(--nav-h) !important;
    position: relative;
    z-index: 1;
}

/* 4. Desktop nav */
@media (min-width: 1025px) {
    #primary-menu { display: flex !important; }
    .nav-toggle { display: none !important; }
    .nav-phone { display: flex !important; }
    .btn-nav { display: inline-block !important; }
}

/* 5. Tablet nav (601px - 1024px) */
@media (max-width: 1024px) and (min-width: 601px) {
    #primary-menu { display: none !important; }
    .nav-toggle { display: flex !important; }
    .nav-phone { display: none !important; }
    .nav-logo-name { font-size: 15px; }
    .btn-nav { font-size: 12px; padding: 7px 14px; }
    .site-logo-link img,
    .site-logo-link .custom-logo { height: 38px !important; width: 38px !important; }
}

/* 6. Mobile nav (max 600px) */
@media (max-width: 600px) {
    #site-header { height: 56px !important; }
    .nav-inner { height: 56px !important; padding: 0 4%; }
    #primary-menu { display: none !important; }
    .nav-toggle { display: flex !important; }
    .nav-phone { display: none !important; }
    .site-logo-link img,
    .site-logo-link .custom-logo { height: 34px !important; width: 34px !important; }
    .nav-logo-name { font-size: 13px !important; }
    .nav-logo-sub { display: none !important; }
    .btn-nav { font-size: 11px !important; padding: 7px 12px !important; }
    .nav-right { gap: 8px; }
}

/* 7. Mobile menu overlay */
.mobile-menu {
    display: none !important;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0; bottom: 0;
    background: var(--navy);
    z-index: 9998;
    overflow-y: auto;
    flex-direction: column;
    padding: 0;
}
.mobile-menu.open { display: flex !important; }
.mobile-menu > ul { padding: 8px 0; flex: 1; }
.mobile-menu ul li {
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mobile-menu ul a {
    display: block;
    padding: 17px 5%;
    font-size: 18px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    letter-spacing: -0.01em;
    transition: color 0.2s, background 0.2s;
}
.mobile-menu ul a:hover { color: var(--gold); background: rgba(255,255,255,0.03); }
.mobile-menu-phone {
    padding: 20px 5% 8px;
    font-size: 15px; font-weight: 600; color: var(--gold);
}
.mobile-menu-phone a { color: var(--gold); }
.mobile-menu > .btn-primary {
    display: block !important;
    margin: 8px 5% 28px;
    text-align: center;
    border-radius: 4px;
}

/* 8. Hero — hide right panel on mobile/tablet */
@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
        padding: 48px 4% 56px !important;
    }
    .hero-right { display: none !important; }
    .hero-glow, .hero-glow2 { display: none; }
    .hero-ctas {
        flex-direction: column !important;
        gap: 10px !important;
        margin-bottom: 36px !important;
    }
    .hero-ctas .btn-primary,
    .hero-ctas .btn-ghost {
        width: 100% !important;
        text-align: center !important;
        display: block !important;
    }
    .trust-bar { gap: 16px; flex-wrap: wrap; padding-top: 24px; }
}

/* 9. Promo banner mobile */
@media (max-width: 600px) {
    .promo-banner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 12px 4%;
    }
    .promo-banner p { font-size: 12px; }
}

/* 10. Sections mobile */
@media (max-width: 600px) {
    .section { padding: 48px 0 !important; }
    .container { padding: 0 4% !important; }
    .s-head { margin-bottom: 28px; }
    .s-head-center { margin-bottom: 32px; }
    .s-h { font-size: clamp(22px, 5vw, 32px); }

    /* Services */
    .svc-grid { grid-template-columns: 1fr !important; }
    .svc { padding: 24px 20px !important; }

    /* Why */
    .why-grid { grid-template-columns: 1fr !important; gap: 32px; }
    .why-panel { position: static !important; }
    .why-stats { grid-template-columns: 1fr 1fr; }
    .why-stat-n { font-size: 24px; }

    /* Steps */
    .steps { grid-template-columns: 1fr !important; gap: 28px !important; }
    .steps::before { display: none !important; }

    /* Story */
    .story-grid { grid-template-columns: 1fr !important; gap: 32px; }
    .story-frame { aspect-ratio: 4/3 !important; }
    .story-badge { display: none; }

    /* Industries */
    .ind-grid { grid-template-columns: 1fr 1fr !important; gap: 8px; }
    .ind { padding: 18px 14px !important; }
    .ind-name { font-size: 13px; }
    .ind-desc { font-size: 11px; }

    /* Reviews */
    .rev-grid { grid-template-columns: 1fr !important; }

    /* CTA */
    .cta-section { padding: 56px 0 !important; }
    .cta-section h2 { font-size: clamp(24px, 6vw, 36px); }
    .cta-btns { flex-direction: column !important; align-items: center; gap: 10px; }
    .cta-btns a { width: 100% !important; max-width: 300px !important; text-align: center !important; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr !important; gap: 28px; }
    #site-footer { padding: 40px 0 24px; }
    .footer-bot { flex-direction: column; gap: 12px; }

    /* Page templates */
    .page-content-grid { grid-template-columns: 1fr !important; gap: 32px; }
    .page-sidebar { position: static !important; }
    .contact-grid { grid-template-columns: 1fr !important; gap: 36px; }
    .form-row { grid-template-columns: 1fr !important; }
    .form-submit { width: 100% !important; text-align: center !important; }
    .page-hero h1 { font-size: clamp(24px, 6vw, 32px) !important; }
}

/* 11. Very small phones */
@media (max-width: 380px) {
    .ind-grid { grid-template-columns: 1fr !important; }
    .trust-bar { gap: 12px; }
    .hero-content h1 { font-size: 22px !important; }
    .btn-nav { display: none !important; }
}

/* ── MOBILE NAV OVERLAP FINAL FIX ── */
.promo-banner {
    margin-top: 66px !important;
}
@media (max-width: 600px) {
    .promo-banner {
        margin-top: 56px !important;
    }
}
.hero {
    padding-top: 80px !important;
}
@media (max-width: 960px) {
    .hero {
        padding-top: 56px !important;
    }
}
