/* ================================================================
   SWIFT ACCOUNTING — Main Stylesheet
   Design System: Inter, Navy #0f2a44, Teal #2ca6a4
   ================================================================ */

/* ── RESET ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }

/* ── TOKENS ─────────────────────────────────────────────────────── */
:root {
    --navy:         #0f2a44;
    --navy-light:   #1a3a5c;
    --teal:         #2ca6a4;
    --teal-dark:    #228f8d;
    --teal-rgb:     44, 166, 164;
    --white:        #ffffff;
    --gray-50:      #f5f7fa;
    --gray-100:     #eef1f5;
    --gray-200:     #dde3ea;
    --gray-400:     #9ca3af;
    --gray-500:     #6b7a8d;
    --gray-700:     #374151;
    --gray-900:     #111827;
    --shadow-xs: 0 1px 2px rgba(0,0,0,.06);
    --shadow-sm: 0 2px 6px rgba(0,0,0,.08);
    --shadow-md: 0 4px 18px rgba(0,0,0,.10);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.14);
    --shadow-xl: 0 24px 64px rgba(0,0,0,.18);
    --radius-sm: 6px;
    --radius:    12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 100px;
    --transition: .22s cubic-bezier(.4,0,.2,1);
    --header-h: 72px;
    --topbar-h: 36px;
}

/* ── BASE ────────────────────────────────────────────────────────── */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.page-body { padding-top: calc(var(--header-h) + var(--topbar-h)); }

/* ── TYPOGRAPHY ──────────────────────────────────────────────────── */
h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; line-height: 1.12; color: var(--navy); letter-spacing: -.025em; }
h2 { font-size: clamp(26px, 3.5vw, 42px); font-weight: 700; line-height: 1.2;  color: var(--navy); letter-spacing: -.015em; margin-bottom: 14px; }
h3 { font-size: clamp(17px, 2vw, 21px);   font-weight: 600; line-height: 1.35; color: var(--navy); margin-bottom: 8px; }
h4 { font-size: 15px; font-weight: 600; color: var(--navy); }
p  { color: var(--gray-500); line-height: 1.75; }
strong { color: var(--gray-700); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
    color: var(--teal);
    background: rgba(var(--teal-rgb), .10);
    padding: 5px 14px; border-radius: var(--radius-full);
    margin-bottom: 16px;
}

/* ── LAYOUT ──────────────────────────────────────────────────────── */
.container    { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 780px;  margin: 0 auto; padding: 0 24px; }
.text-center  { text-align: center; }

section       { padding: 48px 0; }
section.sm    { padding: 32px 0; }
section {
    position: relative;
}
section.light {
    background: linear-gradient(180deg, var(--gray-50) 0%, rgba(236,244,247,.6) 100%);
    position: relative;
}
section.light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(44,166,164,.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}
section.light > * {
    position: relative;
    z-index: 1;
}
section.dark {
    background: linear-gradient(135deg, var(--navy) 0%, rgba(15,42,68,.95) 100%);
    position: relative;
}
section.dark::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}
section.dark > * {
    position: relative;
    z-index: 1;
}

.section-hd {
    text-align: center;
    margin-bottom: 28px;
    animation: fadeInUp 0.6s ease-out;
}
.section-hd h2 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.section-hd p {
    max-width: 620px;
    margin: 12px auto 0;
    font-size: 17px;
    color: var(--gray-500);
    line-height: 1.6;
}
.section-hd.light-hd h2,
.section-hd.light-hd p { color: var(--white); }
.section-hd.light-hd p { color: rgba(255,255,255,.65); }

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: -.01em;
    padding: 13px 26px; border-radius: 8px;
    text-decoration: none; border: 2px solid transparent;
    cursor: pointer; transition: transform 0.3s cubic-bezier(0.22,1,.36,1), box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    white-space: nowrap; box-shadow: 0 2px 8px rgba(15,42,68,.1);
}
.btn-primary  { background: var(--teal);  color: var(--white); border-color: var(--teal); }
.btn-primary:hover { background: #1e8a8a; border-color: #1e8a8a; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(44,166,164,.35); }
.btn-navy     { background: var(--navy);  color: var(--white); border-color: var(--navy); }
.btn-navy:hover    { background: var(--navy-light); transform: translateY(-1px); }
.btn-outline-w { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline-w:hover { background: rgba(255,255,255,.1); border-color: var(--white); transform: translateY(-1px); }
.btn-outline-teal { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline-teal:hover { background: rgba(44,166,164,.12); border-color: var(--teal); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(44,166,164,.2); }
.btn-outline   { background: transparent; color: var(--navy); border-color: var(--gray-200); }
.btn-outline:hover  { border-color: var(--teal); color: var(--teal); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ── CARDS ────────────────────────────────────────────────────────── */
.card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition), background-color var(--transition), opacity var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); border-color: var(--gray-200); transform: translateY(-3px); }

.card-icon {
    width: 36px; height: 36px;
    background: rgba(var(--teal-rgb),.08);
    border: 1px solid rgba(var(--teal-rgb),.15);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; margin-bottom: 10px;
}

/* ── UNIFIED ICON SYSTEM (Lucide-based) ──────────────────────────── */
.icon-xs {
    width: 16px; height: 16px; flex-shrink: 0;
    color: currentColor; display: inline-flex; align-items: center; justify-content: center;
}
.icon-sm {
    width: 24px; height: 24px; flex-shrink: 0;
    color: currentColor; display: inline-flex; align-items: center; justify-content: center;
}
.icon-md {
    width: 36px; height: 36px; flex-shrink: 0;
    color: currentColor; display: flex; align-items: center; justify-content: center;
}
.icon-lg {
    width: 48px; height: 48px; flex-shrink: 0;
    color: currentColor; display: flex; align-items: center; justify-content: center;
}

/* Icon SVG styling */
.icon-xs svg, .icon-sm svg, .icon-md svg, .icon-lg svg {
    width: 100%; height: 100%; stroke: currentColor;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none;
}

/* Color variants */
.icon-teal { color: var(--teal); }
.icon-navy { color: var(--navy); }
.icon-gray { color: var(--gray-400); }
.icon-white { color: rgba(255,255,255,.8); }

/* Icon + text alignment */
.icon-with-text { display: flex; align-items: center; gap: 8px; }
.icon-with-text svg { flex-shrink: 0; }

/* ── GRIDS ────────────────────────────────────────────────────────── */
.grid   { display: grid; gap: 24px; }
.g-2    { grid-template-columns: repeat(2, 1fr); }
.g-3    { grid-template-columns: repeat(3, 1fr); }
.g-4    { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g-3 { grid-template-columns: repeat(2, 1fr); } .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g-2,.g-3,.g-4 { grid-template-columns: 1fr; } }

/* ================================================================
   TOPBAR
   ================================================================ */
.topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
    height: var(--topbar-h);
    background: var(--navy);
    border-bottom: 1px solid rgba(255,255,255,.08);
    overflow: hidden;
}
.topbar-inner {
    max-width: 1160px; margin: 0 auto; padding: 0 24px;
    height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    overflow: hidden;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.topbar-left { min-width: 0; overflow: hidden; flex-shrink: 1; }
.topbar-item { font-size: 11px; color: rgba(255,255,255,.55); white-space: nowrap; }
.topbar-link { font-size: 11px; color: rgba(255,255,255,.7); text-decoration: none; white-space: nowrap; transition: color var(--transition); }
.topbar-link:hover { color: var(--teal); }
.topbar-divider { color: rgba(255,255,255,.18); font-size: 10px; flex-shrink: 0; }
.topbar-dot { display: inline-block; width: 6px; height: 6px; background: var(--teal); border-radius: 50%; margin-right: 5px; vertical-align: middle; animation: pulse 2.5s ease infinite; }
@media (max-width: 760px) { .topbar-left { display: none; } .topbar-hours { display: none; } }
@media (max-width: 500px) { .topbar { display: none; } .page-body { padding-top: var(--header-h); } .site-header { top: 0; } .mobile-menu { top: var(--header-h); } }

/* ================================================================
   HEADER / NAV
   ================================================================ */
.site-header {
    position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 1000;
    height: var(--header-h);
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: box-shadow var(--transition);
}
.site-header::after {
    content: ''; position: absolute; bottom: -6px; left: 0; right: 0;
    height: 6px; pointer-events: none; z-index: -1;
    background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
}
.site-header.scrolled { box-shadow: 0 2px 24px rgba(15,42,68,.14), 0 1px 0 rgba(44,166,164,.18); border-bottom: 1px solid rgba(44,166,164,.15); }


.header-inner {
    max-width: 1160px; margin: 0 auto; padding: 0 24px;
    height: 100%; display: flex; align-items: center; gap: 28px;
}

/* Logo */
.logo, .footer-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; flex-shrink: 0;
}
.logo-img {
    height: 36px; width: auto;
    display: block;
    object-fit: contain;
}
.logo-img--footer {
    height: 34px; width: auto;
    opacity: .9;
}

/* Nav */
.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list  { display: flex; align-items: center; gap: 2px; }
.nav-link {
    display: flex; align-items: center; gap: 4px;
    padding: 8px 11px;
    font-size: 14px; font-weight: 500; color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition), background-color var(--transition), opacity var(--transition); white-space: nowrap;
    background: none; border: none; cursor: pointer;
}
.nav-link:hover { color: var(--navy); background: var(--gray-50); }
.nav-link.active { color: var(--navy); font-weight: 600; background: var(--gray-50); }

.chevron { transition: transform var(--transition); flex-shrink: 0; opacity: .6; }
.nav-item.is-open .nav-link .chevron { transform: rotate(180deg); opacity: 1; }

/* Dropdown */
.nav-item { position: relative; }
/* Invisible bridge fills the gap between nav button and dropdown — prevents mouseleave */
.nav-item::after {
    content: ''; position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%); width: 560px; height: 12px;
    pointer-events: none;
}
.nav-item.is-open::after { pointer-events: auto; }
.dropdown {
    position: absolute; top: calc(100% + 10px);
    left: 50%; transform: translateX(-50%) translateY(-8px);
    width: 260px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 10px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.dropdown::before {
    content: ''; position: absolute;
    top: -5px; left: 50%; transform: translateX(-50%);
    width: 10px; height: 10px; background: var(--white);
    border-left: 1px solid var(--gray-100); border-top: 1px solid var(--gray-100);
    rotate: 45deg;
}
.nav-item.is-open .dropdown {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-grid { display: flex; flex-direction: column; gap: 2px; }
.dropdown-item {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 11px 12px; border-radius: var(--radius-sm);
    text-decoration: none; transition: background var(--transition);
}
.dropdown-item:hover { background: var(--gray-50); }
.di-icon {
    width: 34px; height: 34px; flex-shrink: 0;
    background: var(--gray-100); border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.di-content { display: flex; flex-direction: column; }
.di-content strong { font-size: 12px; font-weight: 600; color: var(--navy); display: block; margin-bottom: 1px; }
.di-content span   { font-size: 11px; color: var(--gray-500); line-height: 1.4; }
.dropdown-footer {
    border-top: 1px solid var(--gray-100); margin-top: 8px;
    padding: 10px 12px 4px;
}
.dropdown-footer a { font-size: 12px; font-weight: 600; color: var(--teal); }
.dropdown-footer a:hover { text-decoration: underline; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Mobile toggle */
.mobile-toggle {
    display: none; flex-direction: column; gap: 5px;
    width: 36px; height: 36px; align-items: center; justify-content: center;
    border-radius: var(--radius-sm); padding: 6px;
}
.mobile-toggle span {
    display: block; width: 20px; height: 2px;
    background: var(--navy); border-radius: 2px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition), background-color var(--transition), opacity var(--transition); transform-origin: center;
}
.mobile-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    position: fixed; top: calc(var(--header-h) + var(--topbar-h)); left: 0; right: 0;
    background: var(--white);
    max-height: 0; overflow: hidden;
    transition: max-height .35s cubic-bezier(.4,0,.2,1);
    z-index: 998;
}
.mobile-menu.is-open { max-height: calc(100dvh - var(--header-h)); overflow-y: auto; border-bottom: 1px solid var(--gray-100); box-shadow: var(--shadow-lg); }
.mobile-nav-list { padding: 8px 16px 28px; }
.mobile-nav-item { border-bottom: 1px solid var(--gray-100); }
.mobile-nav-link {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 15px 6px;
    font-size: 15px; font-weight: 500; color: var(--navy);
    background: none; border: none; cursor: pointer; text-decoration: none; text-align: left;
}
.mobile-dropdown {
    max-height: 0; overflow: hidden; padding: 0 8px;
    transition: max-height .28s ease;
}
.mobile-dropdown.is-open { max-height: 420px; }
.mobile-dropdown a {
    display: block; padding: 10px 14px; font-size: 14px; color: var(--gray-700);
    border-radius: var(--radius-sm); text-decoration: none;
}
.mobile-dropdown a:hover { background: var(--gray-50); color: var(--navy); }
.mobile-cta { margin: 20px 6px 4px; width: calc(100% - 12px); justify-content: center; }

/* Compact nav at medium widths — keep bar visible, squeeze spacing */
@media (max-width: 1060px) {
    .header-inner { gap: 16px; }
    .nav-link { padding: 7px 8px; font-size: 13px; }
    .header-actions .btn { padding: 9px 14px; font-size: 13px; }
    .logo-img { height: 30px; }
}

/* Mobile header contact — hidden on desktop */
.mobile-header-contact { display: none; }

/* Hamburger only below 768px (phones / small tablets) */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-toggle { display: flex; }
    .header-actions .btn { display: none; }
    .logo-img { height: 32px; }
}
/* Mobile header contact — only shown when topbar is hidden (≤500px) */
@media (max-width: 500px) {
    .mobile-header-contact {
        display: flex; flex-direction: column; align-items: center;
        flex: 1; gap: 2px; text-align: center;
    }
    .mhc-phone {
        font-size: 13px; font-weight: 700; color: var(--navy);
        text-decoration: none; white-space: nowrap;
    }
    .mhc-phone:hover { color: var(--teal); }
    .mhc-address {
        font-size: 10.5px; color: #888; white-space: nowrap;
        overflow: hidden; text-overflow: ellipsis; max-width: 200px;
    }
}
@media (max-width: 400px) {
    .mhc-phone { font-size: 12px; }
    .mhc-address { font-size: 9.5px; max-width: 160px; }
}

/* ================================================================
   HERO — HOME
   ================================================================ */
.hero {
    position: relative; min-height: 620px;
    display: flex; align-items: center;
    padding: 60px 0 60px; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background: url('../images/hero-section.png') center / cover no-repeat;
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(110deg,
        rgba(8,20,35,.94) 0%,
        rgba(12,30,50,.85) 45%,
        rgba(20,60,80,.55) 100%);
}
.hero-content { position: relative; z-index: 1; width: 100%; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(var(--teal-rgb),.18); border: 1px solid rgba(var(--teal-rgb),.35);
    backdrop-filter: blur(8px); color: rgba(255,255,255,.9);
    font-size: 12px; font-weight: 500;
    padding: 7px 16px; border-radius: var(--radius-full); margin-bottom: 24px;
}
.hero-dot { width: 6px; height: 6px; background: var(--teal); border-radius: 50%; animation: pulse 2s ease infinite; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(var(--teal-rgb),.5)} 50%{box-shadow:0 0 0 6px rgba(var(--teal-rgb),0)} }

.hero h1 { color: var(--white); margin-bottom: 22px; max-width: 720px; }
.hero h1 em { color: var(--teal); font-style: normal; }
.hero-sub {
    font-size: clamp(15px, 2vw, 18px); color: rgba(255,255,255,.72);
    max-width: 580px; margin-bottom: 38px; line-height: 1.7;
}
.hero-stats {
    display: flex; flex-wrap: nowrap; gap: 0;
    margin-top: 52px; padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,.1);
    align-items: center;
}
.hero-stats > div {
    padding: 0 40px 0 0;
    margin-right: 40px;
    border-right: 1px solid rgba(255,255,255,.14);
}
.hero-stats > div:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.stat-val   { font-size: 30px; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 5px; }
.stat-val span { color: var(--teal); }
.stat-label { font-size: 11px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .8px; }

/* ── PAGE HERO (interior) ─────────────────────────────────────── */
.page-hero {
    position: relative; padding: 80px 0 64px;
    background: var(--navy); overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(15,42,68,1) 0%, rgba(var(--teal-rgb),.12) 100%);
}
.page-hero-dots {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.04) 1px, transparent 0);
    background-size: 30px 30px;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(28px, 4vw, 46px); color: var(--white); margin-bottom: 14px; }
.page-hero h1 em { color: var(--teal); font-style: normal; }
.page-hero p  { color: rgba(255,255,255,.62); font-size: 17px; max-width: 540px; }
.breadcrumb {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: rgba(255,255,255,.45); margin-bottom: 18px;
}
.breadcrumb a { color: var(--teal); }
.breadcrumb-sep { opacity: .4; }

/* ================================================================
   TRUST BAR
   ================================================================ */
.trust-bar { background: var(--navy); }
.trust-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255,255,255,.07);
}
.trust-item {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 10px;
    padding: 28px 20px;
    border-right: 1px solid rgba(255,255,255,.07);
}
.trust-item:last-child { border-right: none; }
.trust-icon { font-size: 26px; line-height: 1; display: block; }
.trust-item strong { display: block; font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 3px; }
.trust-item .trust-desc { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.5; }
@media (max-width: 760px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-item:nth-child(2) { border-right: none; }
    .trust-item:nth-child(3) { border-bottom: none; }
}
@media (max-width: 440px) { .trust-grid { grid-template-columns: 1fr; } .trust-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); } .trust-item:last-child { border-bottom: none; } }

/* ================================================================
   SERVICES GRID (homepage)
   ================================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card {
    background: var(--white); border: 1px solid rgba(var(--teal-rgb),.08);
    border-radius: 12px; padding: 28px 24px;
    display: flex; flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.22,1,.36,1), box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 12px rgba(15,42,68,.08);
    position: relative;
    overflow: hidden;
}
.svc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.svc-card:hover {
    box-shadow: 0 12px 32px rgba(44,166,164,.15);
    border-color: rgba(var(--teal-rgb),.25);
    transform: translateY(-6px);
    background: rgba(var(--teal-rgb),.02);
}
.svc-card:hover::before { opacity: 1; }
.svc-card h3 { font-size: 16px; margin-bottom: 10px; font-weight: 700; color: var(--navy); }
.svc-card p { font-size: 13px; line-height: 1.65; flex: 1; margin-bottom: 14px; color: var(--gray-500); }
.svc-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--teal);
    transition: gap 0.3s ease, color 0.3s ease;
    position: relative;
}
.svc-link::after {
    content: '→';
    position: relative;
    transition: transform 0.3s cubic-bezier(0.22,1,.36,1);
}
.svc-link:hover {
    color: var(--navy);
    gap: 12px;
}
.svc-link:hover::after {
    transform: translateX(4px);
}
/* Dark card variant removed — all svc-cards now use consistent white style */
.svc-card-dark { background: var(--white); border-color: rgba(44,166,164,.08); }
.svc-card-dark h3 { color: var(--navy); }
.svc-card-dark p  { color: var(--gray-500); }
.svc-card-dark .svc-link { color: var(--teal); }
.svc-card-dark .card-icon { background: rgba(44,166,164,.08); border-color: rgba(44,166,164,.12); color: var(--navy); }
@media (max-width: 900px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    /* Lone last card spans both columns so no empty gap */
    .services-grid > *:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 580px) { .services-grid { grid-template-columns: 1fr; } }

/* ================================================================
   WHY CHOOSE US
   ================================================================ */
.why-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-card {
    background: var(--white); border: 1px solid rgba(var(--teal-rgb),.1);
    border-radius: 12px; padding: 32px;
    transition: transform 0.3s cubic-bezier(0.22,1,.36,1), box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 16px rgba(15,42,68,.06);
    position: relative;
}
.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(44,166,164,.12);
    border-color: rgba(var(--teal-rgb),.3);
    background: rgba(var(--teal-rgb),.01);
}
.why-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; background: linear-gradient(135deg, var(--navy) 0%, rgba(15,42,68,.8) 100%);
    color: var(--white); border-radius: 10px; font-size: 18px; font-weight: 700; margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(15,42,68,.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-card:hover .why-num {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 16px rgba(44,166,164,.2);
}
.why-card h3 { font-size: 15px; margin-bottom: 6px; }
.why-card p  { font-size: 13px; line-height: 1.6; }
.why-img-wrap { border-radius: var(--radius-lg); overflow: hidden; position: relative; align-self: center; }
.why-img-wrap img { width: 100%; height: 320px; object-fit: cover; display: block; }
.why-badge {
    position: absolute; bottom: 22px; left: 22px;
    background: var(--teal); color: var(--white);
    padding: 11px 18px; border-radius: var(--radius); font-weight: 700; font-size: 13px;
}
@media (max-width: 880px) {
  .why-layout { grid-template-columns: 1fr; gap: 40px; }
  .why-layout > div:last-child { order: -1; }
  .why-img-wrap { height: 360px; margin-bottom: 20px; }
  .why-img-wrap img { height: 360px; }
  .why-feat-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .why-feat-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
  .why-layout { gap: 32px; }
  .why-img-wrap { height: 280px; margin-bottom: 16px; }
  .why-img-wrap img { height: 280px; }
  .why-feat-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   INDUSTRIES
   ================================================================ */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ind-card {
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--gray-100);
    background: var(--white);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition), background-color var(--transition), opacity var(--transition);
    display: block; text-decoration: none;
}
.ind-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.ind-img { width: 100%; height: 155px; object-fit: cover; background: var(--gray-100); display: block; }
.ind-label {
    padding: 14px 18px; display: flex; align-items: center; justify-content: space-between;
    font-size: 14px; font-weight: 600; color: var(--navy);
}
.ind-arrow { color: var(--teal); font-size: 15px; transition: transform var(--transition); }
.ind-card:hover .ind-arrow { transform: translateX(3px); }
@media (max-width: 900px) { .ind-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .ind-grid { grid-template-columns: 1fr; } }

/* ================================================================
   TESTIMONIALS
   ================================================================ */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.testi-card {
    background: #fff; border: 1px solid rgba(44,166,164,.15);
    border-radius: var(--radius); padding: 26px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.testi-stars { color: #fbbf24; letter-spacing: 2px; font-size: 13px; margin-bottom: 14px; }
.testi-quote { font-size: 14px; color: #374151; line-height: 1.75; font-style: italic; margin-bottom: 20px; font-weight: 500; }
.testi-author { display: flex; align-items: center; gap: 11px; }
.t-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--teal); display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.t-name { font-size: 13px; font-weight: 700; color: var(--navy); display: block; }
.t-role { font-size: 11px; color: #6b7280; font-weight: 500; }
/* Google reviewer photo support */
.t-avatar-photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; }
/* "View on Google" micro-link on each review card */
.testi-g-link {
    display: inline-flex; align-items: center; gap: 5px;
    margin-top: 14px; font-size: 11px; color: #9ca3af;
    text-decoration: none; transition: color .2s;
}
.testi-g-link:hover { color: var(--teal); }
.g-icon { width: 13px; height: 13px; }
.rating-card {
    background: var(--teal); border-radius: var(--radius); padding: 28px; text-align: center;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
/* Google badge inside rating summary card */
.rating-google-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,.15); border-radius: 20px;
    padding: 4px 12px; font-size: 11px; font-weight: 600;
    color: rgba(255,255,255,.9); letter-spacing: .5px;
    text-transform: uppercase; margin-bottom: 16px;
}
.rating-score { font-size: 50px; font-weight: 800; color: var(--white); line-height: 1; }
.rating-star  { font-size: 22px; color: rgba(255,255,255,.65); }
.rating-lbl   { font-size: 13px; color: rgba(255,255,255,.8); margin-top: 6px; }
.rating-sub   { font-size: 11px; color: rgba(255,255,255,.55); margin-top: 4px; }
@media (max-width: 900px) { .testi-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .testi-grid { grid-template-columns: 1fr; } }

/* ================================================================
   BLOG / RESOURCES
   ================================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.blog-card {
    border-radius: var(--radius); border: 1px solid var(--gray-100);
    overflow: hidden; background: var(--white);
    display: flex; flex-direction: column; text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition), background-color var(--transition), opacity var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-card img   { width: 100%; height: 196px; object-fit: cover; display: block; }
.blog-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-date { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--teal); margin-bottom: 8px; }
.blog-title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 10px; line-height: 1.4; }
.blog-excerpt { font-size: 13px; color: var(--gray-500); flex: 1; margin-bottom: 14px; }
.blog-more { font-size: 12px; font-weight: 600; color: var(--teal); display: flex; align-items: center; gap: 5px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }

/* ================================================================
   CTA BAND
   ================================================================ */
.cta-band {
    background: linear-gradient(130deg, var(--navy) 0%, #1e4a72 55%, rgba(var(--teal-rgb),.7) 100%);
    padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.04) 1px, transparent 0);
    background-size: 26px 26px;
}
.cta-band-content { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); max-width: 640px; margin: 0 auto 16px; }
.cta-band p  { color: rgba(255,255,255,.68); max-width: 500px; margin: 0 auto 36px; font-size: 17px; }

/* ================================================================
   CONTACT BAR
   ================================================================ */
.contact-bar { background: var(--gray-50); border-top: 1px solid var(--gray-100); padding: 22px 0; }
.contact-bar-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: center; }
.cbar-item { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--gray-700); text-decoration: none; }
.cbar-item:hover { color: var(--teal); }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer { background: var(--navy); }
.footer-main { padding: 60px 0 44px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-logo { margin-bottom: 14px; justify-content: center; }
.footer-brand { text-align: center; }
.footer-logo-img { max-width: 190px; width: 100%; height: auto; margin: 0 auto 20px; display: block; background: #fff; border-radius: 8px; padding: 10px 16px; box-sizing: content-box; }
.footer-contact { align-items: center; justify-content: center; }
.footer-desc {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,.82);
    margin-bottom: 20px;
    line-height: 1.9;
    letter-spacing: 0.01em;
}
.footer-contact a {
    display: flex; align-items: center; gap: 7px;
    font-size: 14px; font-weight: 500;
    color: rgba(255,255,255,.75);
    text-decoration: none; margin-bottom: 8px;
    transition: color var(--transition);
}
.footer-contact a:hover { color: var(--teal); }
.footer-col h4 {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: rgba(255,255,255,.3); margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,.58); text-decoration: none; transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-info li { font-size: 13px; color: rgba(255,255,255,.48); line-height: 1.6; }
.footer-info a  { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-info a:hover { color: var(--teal); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0;
}
.footer-bottom-inner {
    max-width: 1160px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.28); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: span 2; } }
@media (max-width: 500px)  { .footer-grid { grid-template-columns: 1fr; } .footer-brand { grid-column: span 1; } }

/* ================================================================
   SERVICES PAGE
   ================================================================ */
.svc-nav { background: var(--white); border-bottom: 1px solid var(--gray-100); position: sticky; top: calc(var(--header-h) + var(--topbar-h)); z-index: 99; }
.svc-nav-inner { display: flex; gap: 4px; overflow-x: auto; padding: 10px 0; max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.svc-nav-inner::-webkit-scrollbar { display: none; }
.svc-tab {
    display: flex; align-items: center; gap: 7px;
    padding: 8px 16px; border-radius: var(--radius-full);
    font-size: 13px; font-weight: 500; color: var(--gray-700);
    text-decoration: none; white-space: nowrap;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition), background-color var(--transition), opacity var(--transition); border: 1px solid var(--gray-100);
    background: var(--white);
}
.svc-tab:hover { background: var(--gray-50); color: var(--navy); }
.svc-tab.active { background: var(--teal); color: var(--white); border-color: var(--teal); }

.svc-section { padding: 80px 0; scroll-margin-top: calc(var(--header-h) + var(--topbar-h) + 52px); }
.svc-section:nth-child(even) { background: var(--gray-50); }
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.svc-detail.rev { direction: rtl; }
.svc-detail.rev > * { direction: ltr; }
.svc-detail img { width: 100%; border-radius: var(--radius-lg); height: 360px; object-fit: cover; box-shadow: var(--shadow-lg); }
.svc-detail-content h2 { margin-bottom: 14px; }
.svc-detail-content > p { margin-bottom: 22px; font-size: 16px; }
.svc-features { display: flex; flex-direction: column; gap: 9px; margin-bottom: 28px; }
.svc-feat {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 14px; color: var(--gray-700);
}
.feat-check {
    width: 20px; height: 20px; flex-shrink: 0;
    background: rgba(var(--teal-rgb),.12); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--teal); font-size: 10px; margin-top: 2px;
}
.svc-price {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--gray-50); border: 1px solid var(--gray-100);
    border-radius: var(--radius-sm); padding: 12px 18px; margin-bottom: 20px;
}
.svc-price-label { font-size: 12px; color: var(--gray-500); }
.svc-price-val   { font-size: 20px; font-weight: 700; color: var(--navy); }
.svc-price-note  { font-size: 11px; color: var(--gray-400); }
@media (max-width: 820px) { .svc-detail, .svc-detail.rev { grid-template-columns: 1fr; direction: ltr; } .svc-detail img { height: 250px; } }

/* ================================================================
   ABOUT PAGE
   ================================================================ */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-split img { border-radius: var(--radius-lg); width: 100%; height: 440px; object-fit: cover; box-shadow: var(--shadow-lg); }
.about-split p { margin-bottom: 16px; font-size: 16px; }
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.val-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 28px; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition), background-color var(--transition), opacity var(--transition); }
.val-card:hover { box-shadow: var(--shadow-md); border-color: rgba(var(--teal-rgb),.2); }
.val-icon { font-size: 28px; margin-bottom: 14px; }
.val-card h3 { font-size: 17px; margin-bottom: 8px; }
.val-card p  { font-size: 14px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-block { text-align: center; padding: 28px 20px; background: rgba(var(--teal-rgb),.08); border-radius: var(--radius); border: 1px solid rgba(var(--teal-rgb),.15); }
.stat-block .stat-val { font-size: 34px; font-weight: 800; color: var(--navy); }
.stat-block .stat-lbl { font-size: 13px; color: var(--gray-500); margin-top: 4px; }
@media (max-width: 820px) { .about-split { grid-template-columns: 1fr; } .about-split img { height: 280px; } }
@media (max-width: 600px) { .values-grid { grid-template-columns: 1fr; } .stats-row { grid-template-columns: repeat(2,1fr); } }

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); }
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .4px; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 11px 14px;
    font-size: 14px; font-family: inherit; color: var(--gray-700);
    background: var(--white); border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm); outline: none;
    transition: border-color var(--transition); appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--teal); box-shadow: 0 0 0 3px rgba(var(--teal-rgb),.1);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 12px; color: var(--gray-400); margin-top: 6px; }
.contact-info-card { padding-top: 6px; }
.ci-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.ci-icon {
    width: 42px; height: 42px; flex-shrink: 0;
    background: rgba(var(--teal-rgb),.1); border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.ci-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--gray-400); margin-bottom: 4px; }
.ci-val { font-size: 14px; color: var(--navy); font-weight: 500; line-height: 1.5; }
.ci-val a { color: var(--teal); text-decoration: none; }
.ci-val a:hover { text-decoration: underline; }
.success-msg {
    display: none; background: #ecfdf5; border: 1px solid #6ee7b7;
    border-radius: var(--radius-sm); padding: 14px 18px;
    color: #065f46; font-size: 14px; align-items: center; gap: 8px; margin-top: 14px;
}
.success-msg.show { display: flex; }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* ================================================================
   CONSULTATION PAGE
   ================================================================ */
.consult-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.consult-sidebar { position: sticky; top: calc(var(--header-h) + var(--topbar-h) + 24px); }
.expect-list { display: flex; flex-direction: column; gap: 20px; margin-top: 22px; }
.expect-item { display: flex; align-items: flex-start; gap: 14px; }
.expect-num {
    width: 26px; height: 26px; flex-shrink: 0; background: var(--teal); color: var(--white);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
}
.expect-item h4 { font-size: 14px; margin-bottom: 4px; }
.expect-item p  { font-size: 13px; }
@media (max-width: 880px) { .consult-layout { grid-template-columns: 1fr; } .consult-sidebar { position: static; } }

/* ================================================================
   INDUSTRIES PAGE DETAIL
   ================================================================ */
.ind-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ind-detail-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius); overflow: hidden; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition), background-color var(--transition), opacity var(--transition); }
.ind-detail-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.ind-detail-card img { width: 100%; height: 170px; object-fit: cover; display: block; }
.ind-detail-body { padding: 22px; }
.ind-detail-body h3 { font-size: 17px; margin-bottom: 10px; }
.ind-detail-body p  { font-size: 13px; margin-bottom: 14px; }
.ind-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ind-tag { font-size: 11px; font-weight: 600; background: rgba(var(--teal-rgb),.1); color: var(--teal); padding: 3px 10px; border-radius: var(--radius-full); }
@media (max-width: 900px) { .ind-detail-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .ind-detail-grid { grid-template-columns: 1fr; } }

/* ================================================================
   ANIMATIONS
   ================================================================ */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; will-change: transform, opacity; }
.fade-up.visible { opacity: 1; transform: translateY(0); will-change: auto; }

/* ================================================================
   PROCESS / STEPS
   ================================================================ */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process-steps::before {
    content: ''; position: absolute;
    top: 28px; left: 10%; right: 10%;
    height: 2px; background: var(--gray-100); z-index: 0;
}
.process-step { text-align: center; padding: 0 16px; position: relative; z-index: 1; }
.process-num {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--white); border: 2px solid var(--gray-200);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; color: var(--navy);
    margin: 0 auto 18px;
}
.process-step.active .process-num { background: var(--teal); border-color: var(--teal); color: var(--white); }
.process-step h4 { font-size: 14px; margin-bottom: 6px; }
.process-step p  { font-size: 13px; }
@media (max-width: 700px) { .process-steps { grid-template-columns: repeat(2,1fr); gap: 24px; } .process-steps::before { display: none; } }
@media (max-width: 440px) { .process-steps { grid-template-columns: 1fr; } }

/* ================================================================
   CALLOUT BAND (Late Filing / CRA)
   ================================================================ */
.callout-band { background: var(--gray-50); border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); padding: 32px 0; }
.callout-inner {
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
    background: var(--white); border: 1.5px solid rgba(var(--teal-rgb),.22);
    border-radius: var(--radius-lg); padding: 28px 36px;
    box-shadow: 0 4px 28px rgba(var(--teal-rgb),.1);
}
.callout-icon { font-size: 42px; flex-shrink: 0; }
.callout-text { flex: 1; min-width: 220px; }
.callout-text h3 { font-size: 19px; margin-bottom: 7px; }
.callout-text p  { font-size: 14px; margin: 0; line-height: 1.65; }
@media (max-width: 700px) { .callout-inner { flex-direction: column; text-align: center; padding: 24px 20px; } }

/* ================================================================
   SERVICE INDIVIDUAL PAGES
   ================================================================ */
.svc-hero-page {
    padding: 56px 0;
    background: var(--navy); color: var(--white);
}
.svc-hero-page .eyebrow { background: rgba(255,255,255,.12); color: rgba(255,255,255,.8); }
.svc-hero-page h1 { color: var(--white); font-size: clamp(30px,4.5vw,50px); }
.svc-hero-page h1 em { color: var(--teal); font-style: normal; }
.svc-hero-page p  { color: rgba(255,255,255,.7); font-size: 17px; max-width: 640px; margin-top: 16px; }
.svc-hero-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; }
.svc-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
    padding: 7px 16px; border-radius: var(--radius-full);
    font-size: 13px; color: rgba(255,255,255,.85);
}
.svc-hero-badge .icon { font-size: 14px; }
.svc-content-section { padding: 80px 0; }
.svc-content-section.alt { background: var(--gray-50); }
.svc-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.svc-two-col.rev { direction: rtl; }
.svc-two-col.rev > * { direction: ltr; }
.svc-two-col > div:first-child { padding-top: 43px; }
.svc-two-col.rev > div:last-child { padding-top: 43px; }
.svc-two-col img { border-radius: var(--radius-lg); width: 100%; height: 380px; object-fit: cover; box-shadow: var(--shadow-lg); }
.svc-two-col h2 { font-size: clamp(22px,3vw,34px); margin-bottom: 16px; }
.svc-two-col p  { font-size: 15px; margin-bottom: 14px; }
.svc-check-list { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.svc-check-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--gray-700); }
.svc-check-item::before { content: '✓'; color: var(--teal); font-weight: 700; margin-top: 1px; flex-shrink: 0; }
.svc-features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.svc-feat-card {
    background: var(--white); border: 1px solid var(--gray-100);
    border-radius: var(--radius); padding: 16px 18px;
    font-size: 14px; color: var(--gray-700); line-height: 1.5;
    display: flex; align-items: flex-start; gap: 10px;
}
.svc-feat-card::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.svc-feature-card {
    background: var(--white); border: 1px solid var(--gray-100);
    border-radius: var(--radius); padding: 24px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition), background-color var(--transition), opacity var(--transition);
}
.svc-feature-card:hover { box-shadow: var(--shadow-md); border-color: rgba(var(--teal-rgb),.2); transform: translateY(-2px); }
.sfc-icon { font-size: 26px; margin-bottom: 12px; }
.svc-feature-card h3 { font-size: 15px; margin-bottom: 8px; }
.svc-feature-card p  { font-size: 13px; }
.svc-process-box { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 36px 40px; }
.svc-process-box h2 { font-size: clamp(20px,2.5vw,30px); margin-bottom: 28px; }
.svc-steps { display: flex; flex-direction: column; gap: 20px; }
.svc-step { display: flex; gap: 18px; align-items: flex-start; }
.svc-step-num {
    width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%;
    background: var(--teal); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
}
.svc-step-body h4 { font-size: 15px; margin-bottom: 5px; }
.svc-step-body p  { font-size: 13px; margin: 0; }
@media (max-width: 860px) { .svc-two-col, .svc-two-col.rev { grid-template-columns: 1fr; direction: ltr; } .svc-two-col img { height: 260px; } }
@media (max-width: 700px) { .svc-features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .svc-features-grid { grid-template-columns: 1fr; } }

/* ================================================================
   TAX RATES PAGE
   ================================================================ */
.rates-hero {
    padding: 56px 0;
    background: var(--navy); color: var(--white);
}
.rates-hero h1 { color: var(--white); font-size: clamp(28px,4vw,46px); }
.rates-hero p  { color: rgba(255,255,255,.65); font-size: 16px; margin-top: 14px; max-width: 600px; }
.rates-hero .eyebrow { background: rgba(255,255,255,.12); color: rgba(255,255,255,.78); }

/* Year tab switcher */
.rates-tabs-wrap { background: var(--white); border-bottom: 1px solid var(--gray-100); position: sticky; top: calc(var(--header-h) + var(--topbar-h)); z-index: 50; }
.rates-tabs { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.rates-tabs::-webkit-scrollbar { display: none; }
.rates-tab {
    flex-shrink: 0; padding: 14px 22px;
    font-size: 14px; font-weight: 600; color: var(--gray-500);
    border-bottom: 2.5px solid transparent;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition), background-color var(--transition), opacity var(--transition); cursor: pointer;
    background: none; border-top: none; border-left: none; border-right: none;
}
.rates-tab:hover { color: var(--navy); }
.rates-tab.active { color: var(--teal); border-bottom-color: var(--teal); }
.rates-tab--alt { margin-left: auto; border-left: 1px solid var(--gray-100); color: var(--navy); font-size: 13px; }
.rates-tab--alt.active { color: var(--teal); border-bottom-color: var(--teal); }

/* Rate year panels */
.rates-content { padding: 48px 0 80px; }
.rate-panel { display: none; }
.rate-panel.active { display: block; }

.rate-section-title { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.rate-section-sub   { font-size: 13px; color: var(--gray-500); margin-bottom: 20px; }

/* BPA info box */
.bpa-box { background: rgba(var(--teal-rgb),.07); border: 1px solid rgba(var(--teal-rgb),.2); border-radius: var(--radius); padding: 14px 20px; margin-bottom: 24px; }
.bpa-box h4 { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.bpa-box p  { font-size: 12.5px; margin: 0; line-height: 1.6; }

/* Consolidated single table */
.rate-table-wrap { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); overflow-x: auto; }

.rate-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

/* Top header row — solid navy like the reference */
.rate-table .rate-thead-top th {
    background: var(--navy); color: var(--white);
    padding: 11px 16px; font-size: 12px; font-weight: 700;
    text-align: center; white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,.12);
}
.rate-table .rate-thead-top th:first-child { text-align: left; }
.rate-table .rate-thead-top th:last-child { border-right: none; }

/* Merged "Canadian Dividends" group header */
.rate-div-group {
    background: #1e4a6e !important;
    border-left: 2px solid rgba(255,255,255,.2) !important;
    border-right: none !important;
}

/* Sub-header row */
.rate-table .rate-thead-sub th {
    background: #163b59; color: rgba(255,255,255,.75);
    padding: 8px 16px; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .4px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,.1);
    border-bottom: 2px solid rgba(255,255,255,.15);
}
.rate-table .rate-thead-sub th:last-child { border-right: none; }

/* Data rows */
.rate-table td {
    padding: 10px 16px; border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700); vertical-align: middle; white-space: nowrap;
    border-right: 1px solid var(--gray-100);
}
.rate-table td:last-child { border-right: none; }
.rate-table tr:last-child td { border-bottom: none; }
.rate-table tr:nth-child(even) td { background: var(--gray-50); }
.rate-table tr:hover td { background: rgba(var(--teal-rgb),.04); }

/* Rate value cells */
.rate-pct { font-weight: 700; color: var(--navy); text-align: center; }
.rate-hi   { color: var(--teal); }
.rate-neg  { color: #2e7d32; }  /* green for negative (tax benefit) rates */

/* Top bracket row accent */
.rate-table tr.rate-top td { border-top: 2px solid var(--gray-200); }

.rates-disclaimer { background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 16px 20px; margin-top: 32px; font-size: 12px; color: var(--gray-500); line-height: 1.65; }
.rates-disclaimer a { color: var(--teal); text-decoration: underline; }

/* ================================================================
   TAX LIBRARY — tax-library.html
   ================================================================ */

/* Hero */
.lib-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1a4a7a 100%);
    color: var(--white);
    padding: 52px 0;
    text-align: center;
}
.lib-hero .eyebrow { color: var(--teal); background: transparent; }
.lib-hero h1 { color: var(--white); margin: 10px 0 14px; font-size: clamp(32px,5vw,52px); }
.lib-hero-sub { color: rgba(255,255,255,.75); font-size: 17px; max-width: 560px; margin: 0 auto 24px; line-height: 1.6; }
.lib-hero-pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.lib-pill { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 20px; padding: 5px 14px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.88); }

/* Sticky section nav */
.lib-nav-wrap {
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    position: sticky;
    top: calc(var(--header-h) + var(--topbar-h));
    z-index: 50;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.lib-nav {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.lib-nav::-webkit-scrollbar { display: none; }
.lib-nav-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 14px 18px; font-size: 13.5px; font-weight: 600;
    color: var(--gray-500); background: none; border: none;
    border-bottom: 2px solid transparent; cursor: pointer;
    white-space: nowrap; transition: color .2s, border-color .2s;
}
.lib-nav-btn svg { opacity: .6; transition: opacity .2s; }
.lib-nav-btn:hover { color: var(--navy); }
.lib-nav-btn:hover svg { opacity: 1; }
.lib-nav-btn.active { color: var(--teal); border-bottom-color: var(--teal); }
.lib-nav-btn.active svg { opacity: 1; }

/* Section visibility */
.lib-section { display: none; padding-top: 36px; }
.lib-section.active { display: block; }

/* Controls bar */
.lib-controls {
    display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap;
    padding: 22px 24px; background: var(--gray-50);
    border: 1px solid var(--gray-100); border-radius: var(--radius);
    margin-bottom: 28px;
}
.lib-ctrl-group { display: flex; flex-direction: column; gap: 6px; }
.lib-ctrl-label {
    font-size: 10.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .7px; color: var(--gray-400);
}
.lib-ctrl-note {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--gray-400); margin-top: 4px;
    align-self: flex-end;
}

/* Custom select */
.lib-select-wrap { position: relative; display: inline-block; }
.lib-select {
    appearance: none; -webkit-appearance: none;
    padding: 9px 38px 9px 14px;
    border: 1.5px solid var(--gray-200); border-radius: 8px;
    font-size: 14px; font-weight: 600; color: var(--navy);
    background: var(--white); cursor: pointer; min-width: 200px;
    transition: border-color .2s, box-shadow .2s;
}
.lib-select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(44,166,164,.12); }
.lib-select-chevron {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    pointer-events: none; color: var(--gray-400);
}

/* Toggle button group */
.lib-toggle-group {
    display: inline-flex; border: 1.5px solid var(--gray-200);
    border-radius: 8px; overflow: hidden;
}
.lib-toggle-btn {
    padding: 9px 16px; font-size: 13px; font-weight: 600;
    background: var(--white); border: none; border-right: 1px solid var(--gray-200);
    color: var(--gray-500); cursor: pointer; transition: background .15s, color .15s;
    white-space: nowrap;
}
.lib-toggle-btn:last-child { border-right: none; }
.lib-toggle-btn:hover { background: var(--gray-50); color: var(--navy); }
.lib-toggle-btn.active { background: var(--navy); color: var(--white); }

/* Province badge in tables */
.lib-prov-badge {
    display: inline-block; padding: 1px 7px; border-radius: 4px;
    background: var(--navy); color: var(--white);
    font-size: 10.5px; font-weight: 700; letter-spacing: .4px;
    margin-right: 4px; vertical-align: middle;
}

/* Subsection label */
.lib-subsection-label {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .7px; color: var(--gray-400);
    margin-bottom: 12px; margin-top: 28px;
}

/* CPP stat blocks */
.lib-stat-block { display: flex; flex-direction: column; gap: 2px; }
.lib-stat-label { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--teal); }
.lib-stat-value { font-size: 22px; font-weight: 800; color: var(--navy); }

/* Responsive */
@media (max-width: 768px) {
    .lib-hero { padding: 48px 0 36px; }
    .lib-controls { gap: 16px; }
    .lib-select { min-width: 160px; }
    .lib-toggle-btn { padding: 8px 12px; font-size: 12px; }
}

/* Form enhancements */
.form-honeypot { display:none !important; }
.success-msg-inner { display:flex; gap:12px; align-items:flex-start; }
.success-icon { font-size:22px; flex-shrink:0; margin-top:1px; }
.success-msg { background:#e8f5e9; border:1px solid #a5d6a7; border-radius:var(--radius); padding:16px 18px; font-size:14px; line-height:1.6; }
.error-msg { background:#fdecea; border:1px solid #f5c6cb; border-radius:var(--radius); padding:14px 18px; font-size:13.5px; }

/* ── 10-SECOND BOOKING POP-IN ─────────────────────────────── */
.booking-popin-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(15,42,68,.45); backdrop-filter: blur(3px);
    display: flex; align-items: flex-end; justify-content: flex-end;
    padding: 24px; opacity: 0; visibility: hidden;
    transition: opacity .35s ease, visibility .35s;
    pointer-events: none;
}
.booking-popin-overlay.visible {
    opacity: 1; visibility: visible; pointer-events: all;
}
.booking-popin {
    background: var(--white); border-radius: 16px;
    box-shadow: 0 20px 60px rgba(15,42,68,.22);
    padding: 28px 28px 24px; max-width: 360px; width: 100%;
    transform: translateY(24px); transition: transform .38s cubic-bezier(.22,1,.36,1);
    position: relative;
}
.booking-popin-overlay.visible .booking-popin { transform: translateY(0); }
.booking-popin-close {
    position: absolute; top: 12px; right: 14px;
    background: none; border: none; cursor: pointer;
    color: var(--gray-400); font-size: 20px; line-height: 1;
    padding: 4px 8px; border-radius: 6px; transition: color .15s, background .15s;
}
.booking-popin-close:hover { color: var(--navy); background: var(--gray-50); }
.booking-popin-logo { display: block; height: 30px; width: auto; margin: 0 0 16px; }
.booking-popin p { font-size: 13.5px; color: var(--gray-500); line-height: 1.55; margin: 0 0 6px; }
.booking-popin p:last-of-type { margin-bottom: 20px; }
.booking-popin-tagline { font-weight: 600; color: var(--navy) !important; }
.booking-popin .btn { width: 100%; justify-content: center; font-size: 14px; }
.booking-popin-sub { display: block; text-align: center; margin-top: 10px; font-size: 11.5px; color: var(--gray-400); }

@media (max-width: 480px) {
    .booking-popin-overlay { padding: 0; align-items: flex-end; justify-content: center; }
    .booking-popin { border-radius: 16px 16px 0 0; max-width: 100%; }
}

/* ================================================================
   HERO — MOBILE & TABLET RESPONSIVE
   ================================================================ */

/* Tablet (≤ 900px) */
@media (max-width: 900px) {
    /* Home hero */
    .hero { min-height: auto; padding: 80px 0 60px; }
    .hero-stats { gap: 24px; margin-top: 40px; padding-top: 32px; }
    /* Service individual hero */
    .svc-hero-page { padding: 48px 0; }
}

/* Small tablet (≤ 768px) */
@media (max-width: 768px) {
    section { padding: 44px 0; }
    section.sm { padding: 28px 0; }
    .callout-band { padding: 44px 0 !important; }
    /* Home hero */
    .hero { padding: 70px 0 52px; }
    .hero h1 { max-width: 100%; }
    .hero-sub { max-width: 100%; font-size: 16px; }
    .hero-stats { gap: 0; margin-top: 36px; padding-top: 28px; }
    .hero-stats > div { padding-right: 28px; margin-right: 28px; }
    .stat-val { font-size: 26px; }
    /* Interior page hero */
    .page-hero { padding: 54px 0 40px; }
    .page-hero p { font-size: 16px; }
    /* Service individual hero */
    .svc-hero-page { padding: 40px 0; }
    .svc-hero-page p { font-size: 16px; }
    .svc-hero-meta { gap: 12px; }
}

/* Mobile (≤ 600px) */
@media (max-width: 600px) {
    section { padding: 48px 0; }
    section.sm { padding: 36px 0; }
    .callout-band { padding: 36px 0 !important; }
    /* Home hero */
    .hero { padding: 60px 0 48px; }
    .hero-content { text-align: center; }
    .hero h1 { margin-left: auto; margin-right: auto; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-badge { white-space: nowrap; text-align: center; justify-content: center; font-size: 11px; padding: 5px 12px; }
    .hero-sub { font-size: 15px; margin-bottom: 28px; }
    .btn-group { justify-content: center; }
    .hero-stats { gap: 0; margin-top: 30px; padding-top: 24px; flex-wrap: nowrap; }
    .hero-stats > div { flex: 1 1 0; min-width: 0; padding-right: 12px; margin-right: 12px; border-right: 1px solid rgba(255,255,255,.14); }
    .stat-val { font-size: 24px; }
    .stat-label { font-size: 11px; }
    /* Interior page hero */
    .page-hero { padding: 44px 0 34px; }
    .page-hero h1 { font-size: clamp(24px, 6vw, 38px); }
    .page-hero p { font-size: 15px; max-width: 100%; }
    /* Service individual hero */
    .svc-hero-page { padding: 36px 0; }
    .svc-hero-page p { font-size: 15px; max-width: 100%; }
    .svc-hero-meta { gap: 10px; }
    .svc-hero-badge { font-size: 12px; padding: 6px 12px; }
    /* Blog / article hero — overrides inline styles */
    .art-hero { padding: 48px 0 36px !important; }
    .art-hero h1 { font-size: clamp(22px, 5.5vw, 36px) !important; max-width: 100% !important; }
    .art-hero-meta { gap: 10px !important; }
    .art-meta-item { font-size: 12px !important; }
    .art-body { padding: 24px 20px !important; }
    /* Rates hero */
    .rates-hero { padding: 44px 0; }
}

/* Small mobile (≤ 480px) */
@media (max-width: 480px) {
    section { padding: 40px 0; }
    section.sm { padding: 28px 0; }
    .callout-band { padding: 28px 0 !important; }
    /* Home hero */
    .hero { padding: 52px 0 44px; }
    .hero-badge { font-size: 11px; padding: 5px 12px; }
    .hero-sub { font-size: 14.5px; margin-bottom: 24px; }
    .btn-group { flex-direction: column; width: 100%; }
    .btn-group .btn { width: 100%; justify-content: center; }
    .hero-stats { gap: 0; margin-top: 28px; padding-top: 22px; flex-wrap: nowrap; }
    .hero-stats > div { flex: 1 1 0; min-width: 0; padding-right: 8px; margin-right: 8px; border-right: 1px solid rgba(255,255,255,.14); }
    .stat-val { font-size: 22px; }
    /* Interior page hero */
    .page-hero { padding: 40px 0 30px; }
    .page-hero h1 { font-size: clamp(22px, 6vw, 34px); }
    /* Service individual hero */
    .svc-hero-page { padding: 32px 0; }
    .svc-hero-meta { flex-wrap: wrap; gap: 8px; }
    .svc-hero-badge { font-size: 11.5px; padding: 5px 11px; }
    /* Blog / article hero */
    .art-hero { padding: 40px 0 30px !important; }
    .art-body { padding: 18px 14px !important; }
}

/* Rates + Library hero responsive */
@media (max-width: 600px) {
    .rates-hero { padding: 44px 0 32px; }
    .rates-hero p { font-size: 14px; max-width: 100%; }
    .lib-hero { padding: 40px 0 28px; }
    .lib-hero-sub { font-size: 15px; max-width: 100%; }
    .lib-hero-pills { gap: 7px; }
}
@media (max-width: 480px) {
    .rates-hero { padding: 36px 0 26px; }
    .lib-hero { padding: 34px 0 24px; }
}

/* Extra small (≤ 390px) */
@media (max-width: 390px) {
    .hero { padding: 48px 0 40px; }
    .hero-stats > div { flex: 1 1 0; min-width: 0; text-align: left; }
    .stat-val { font-size: 20px; }
    .btn-group .btn { font-size: 15px; padding: 14px 20px; }
    .art-hero { padding: 36px 0 28px !important; }
}
