/* ============================================================
   DHANRAJ & SONS — shadcn/ui-Inspired Component System
   Premium SaaS aesthetic, light mode
   ============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --primary: #1e3a5f;
    --primary-light: #2d5a8e;
    --primary-dark: #152a45;
    --accent: #c8102e;
    --accent-hover: #a00d24;
    --accent-soft: #e84c2b;
    --accent-warm: #f59e0b;
    --bg: #ffffff;
    --surface: #f8fafc;
    --surface-hover: #f1f5f9;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgb(30 58 95 / 0.15);
    --shadow-accent-glow: 0 0 20px rgb(232 76 43 / 0.2);
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   BROWSER COMPATIBILITY FALLBACKS
   Ensures critical rendering works on Safari/iOS/legacy browsers
   even if Tailwind or AOS fail to initialize.
   ============================================================ */

/* Gradient text — Safari/iOS need -webkit-text-fill-color explicitly */
.bg-clip-text.text-transparent,
[class*="bg-clip-text"][class*="text-transparent"] {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Mobile viewport height fallback — Safari < 15.4 doesn't support dvh */
@supports not (height: 100dvh) {
    .h-dvh { height: 100vh; }
    .min-h-dvh { min-height: 100vh; }
}

/* ============================================================
   BASE RESETS
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ============================================================
   BUTTONS — shadcn/ui inspired
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    min-height: 44px;
    user-select: none;
}

@media (max-width: 768px) {
    .btn { min-height: 48px; font-size: 0.9375rem; }
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff;
    box-shadow: var(--shadow-md), var(--shadow-glow);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    box-shadow: var(--shadow-lg), 0 0 30px rgb(30 58 95 / 0.25);
    transform: translateY(-1px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #f06030);
    color: #ffffff;
    box-shadow: var(--shadow-md), var(--shadow-accent-glow);
}
.btn-accent:hover {
    background: linear-gradient(135deg, #f06030, var(--accent));
    box-shadow: var(--shadow-lg), 0 0 30px rgb(232 76 43 / 0.3);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--border);
}
.btn-outline:hover {
    background: var(--surface);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid transparent;
}
.btn-ghost:hover {
    background: var(--surface);
    color: var(--text);
}

.btn-white {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}
.btn-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-full);
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius);
}

/* Button loading state */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}
.btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   CARDS — Premium depth and hover effects
   ============================================================ */
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.card-gradient {
    background: var(--bg);
    border: 1px solid transparent;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    background-clip: padding-box;
}
.card-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--border), transparent, var(--primary-light));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}
.card-gradient:hover::before {
    opacity: 1;
}
.card-gradient:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

/* Glass card for dark/gradient backgrounds */
.card-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}

/* ============================================================
   INPUTS — Clean, modern form elements
   ============================================================ */
.input {
    display: block;
    width: 100%;
    height: 2.75rem;
    padding: 0 0.875rem;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    outline: none;
}
.input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgb(30 58 95 / 0.08);
}
.input::placeholder {
    color: var(--text-muted);
}

.textarea {
    display: block;
    width: 100%;
    min-height: 6rem;
    padding: 0.75rem 0.875rem;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    outline: none;
    resize: vertical;
}
.textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgb(30 58 95 / 0.08);
}

.label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.375rem;
}

.input-group {
    margin-bottom: 1rem;
}

/* Prevent zoom on iOS when focusing inputs */
@media (max-width: 768px) {
    .input, .textarea, select {
        font-size: 16px !important;
    }
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    line-height: 1.4;
}
.badge-primary {
    background: rgb(30 58 95 / 0.1);
    color: var(--primary);
}
.badge-accent {
    background: rgb(232 76 43 / 0.1);
    color: var(--accent);
}
.badge-success {
    background: rgb(5 150 105 / 0.1);
    color: #059669;
}

/* ============================================================
   SECTION STYLES
   ============================================================ */
.section {
    padding: 5rem 0;
}
@media (max-width: 768px) {
    .section { padding: 3rem 0; }
}


.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.025em;
}
@media (max-width: 768px) {
    .section-title { font-size: 1.75rem; }
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 40rem;
    line-height: 1.7;
}

.section-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

/* Gradient divider line */
.divider-gradient {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), var(--primary-light), var(--border), transparent);
    border: none;
    margin: 0;
}

/* ============================================================
   NAVIGATION ACTIVE STATE
   ============================================================ */
/* ============================================================
   MODERN SITE HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    transition: transform 0.3s ease;
}
.site-header-spacer {
    /* Reserves space for the fixed header so page content starts below */
    height: calc(36px + 76px);
}
@media (max-width: 1023px) {
    .site-header-spacer { height: 64px; }
}

/* Utility strip */
.site-utility {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #ffffff;
    font-size: 0.78rem;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    max-height: 40px;
    overflow: hidden;
}
.site-header.is-scrolled .site-utility {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}
.util-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 3px 11px;
    background: rgba(245, 222, 179, 0.08);
    color: #f5cf7a;
    border: 1px solid rgba(245, 207, 122, 0.3);
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.06em;
    font-size: 0.7rem;
}
.util-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: #f5cf7a;
    box-shadow: 0 0 0 3px rgba(245, 207, 122, 0.22);
}
.util-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease, opacity 0.18s ease;
    white-space: nowrap;
}
.util-link:hover { color: #ffffff; opacity: 1; }
.util-sep {
    width: 1px; height: 14px;
    background: rgba(255,255,255,0.18);
}

/* Primary nav shell */
.site-nav-shell {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled .site-nav-shell {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: rgba(15, 23, 42, 0.06);
    box-shadow: 0 8px 28px -14px rgba(15, 23, 42, 0.12);
}
.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 76px;
    transition: height 0.3s ease;
}
.site-header.is-scrolled .site-nav { height: 64px; }
@media (max-width: 1023px) {
    .site-nav { height: 64px; }
    .site-header.is-scrolled .site-nav { height: 60px; }
}

/* Brand lockup */
.brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    text-decoration: none;
}
.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    transition: height 0.3s ease;
}
.brand-mark img { height: 100%; width: auto; display: block; }
.site-header.is-scrolled .brand-mark { height: 46px; }
@media (max-width: 1023px) {
    .brand-mark { height: 44px; }
    .site-header.is-scrolled .brand-mark { height: 42px; }
}
.brand-meta {
    display: none;
    flex-direction: column;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(15, 23, 42, 0.1);
    line-height: 1.15;
}
@media (min-width: 768px) {
    .brand-meta { display: flex; }
}
.brand-tagline {
    font-size: 0.95rem;
    color: #475569;
    font-weight: 600;
    letter-spacing: 0.01em;
    font-style: italic;
}
.brand-est {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.14em;
    margin-top: 2px;
}

/* Nav links — modernized */
.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.55rem 0.9rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    letter-spacing: -0.005em;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}
.nav-link::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: calc(100% - 1.2rem);
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #f59e0b);
    border-radius: 2px;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover {
    color: var(--primary);
    background: rgba(30, 58, 95, 0.045);
}
.nav-link:hover::before { transform: translateX(-50%) scaleX(0.4); }
.nav-link.active,
.nav-link.is-open {
    color: var(--primary);
    font-weight: 600;
}
.nav-link.active::before,
.nav-link.is-open::before { transform: translateX(-50%) scaleX(0.65); }
.nav-link.active:hover::before { transform: translateX(-50%) scaleX(0.85); }
.nav-chevron {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.65;
}
.nav-link:hover .nav-chevron,
.nav-link.active .nav-chevron,
.nav-link.is-open .nav-chevron { opacity: 1; }

/* Mega dropdown */
.nav-group { position: relative; }
.mega-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 640px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.04);
    display: grid;
    grid-template-columns: 220px 1fr;
    overflow: hidden;
    z-index: 60;
}
.mega-panel::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px; height: 12px;
    background: #ffffff;
    border-top: 1px solid rgba(15, 23, 42, 0.04);
    border-left: 1px solid rgba(15, 23, 42, 0.04);
}
.mega-featured {
    padding: 1.25rem;
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}
.mega-featured::after {
    content: "";
    position: absolute;
    right: -30%; bottom: -40%;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(232, 76, 43, 0.4), transparent 70%);
    pointer-events: none;
}
.mega-eyebrow {
    display: inline-block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: #fcbba8;
    margin-bottom: 0.5rem;
}
.mega-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.5rem;
    letter-spacing: -0.015em;
}
.mega-sub {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
    margin-bottom: 1rem;
}
.mega-actions { display: flex; flex-direction: column; gap: 0.5rem; position: relative; z-index: 1; }
.mega-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: var(--accent);
    color: #ffffff;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.18s ease;
}
.mega-cta:hover { background: #f06030; transform: translateY(-1px); }
.mega-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    transition: background 0.18s ease, border-color 0.18s ease;
}
.mega-call:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }

.mega-grid {
    padding: 0.75rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.2rem;
    background: #ffffff;
}
.mega-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.625rem 0.75rem;
    border-radius: 10px;
    color: #334155;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    position: relative;
}
.mega-item:hover {
    background: rgba(30, 58, 95, 0.05);
    color: var(--primary);
}
.mega-icon {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.08), rgba(232, 76, 43, 0.08));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.18s ease, color 0.18s ease;
}
.mega-icon i { width: 16px; height: 16px; }
.mega-item:hover .mega-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #ffffff;
}
.mega-item-text { flex: 1; font-size: 0.83rem; font-weight: 500; }
.mega-arrow { color: #cbd5e1; transition: transform 0.2s ease, color 0.2s ease; flex-shrink: 0; }
.mega-item:hover .mega-arrow { color: var(--accent); transform: translateX(3px); }

/* Desktop CTA button */
.cta-quote {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.15rem;
    background: linear-gradient(135deg, var(--accent) 0%, #f06030 100%);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 22px -6px rgba(232, 76, 43, 0.55), inset 0 -1px 0 rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta-quote::after {
    content: "";
    position: absolute;
    top: 0; left: -80%;
    width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.35) 50%, transparent 80%);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
}
.cta-quote:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -6px rgba(232, 76, 43, 0.65);
}
.cta-quote:hover::after { left: 120%; }
.cta-quote svg { transition: transform 0.2s ease; position: relative; z-index: 1; }
.cta-quote:hover svg { transform: translateX(2px); }
.cta-quote > span { position: relative; z-index: 1; }

/* Mobile icon button + hamburger */
.nav-iconbtn {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--primary);
    background: rgba(30, 58, 95, 0.06);
    text-decoration: none;
    transition: background 0.18s ease;
}
.nav-iconbtn:hover { background: rgba(30, 58, 95, 0.12); }
.nav-hamburger {
    width: 44px; height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    border-radius: 12px;
    transition: background 0.18s ease;
}
.nav-hamburger:hover { background: rgba(30, 58, 95, 0.06); }
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay + sheet */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 55;
}
.mobile-sheet {
    position: fixed;
    top: 0; right: 0;
    /* Cap at calc(100vw - 40px) on narrow phones so a slice of the page is still visible — reinforces "this is a sheet" */
    width: min(420px, calc(100vw - 40px));
    height: 100vh; /* fallback for Safari < 15.4 */
    height: 100dvh;
    background: #ffffff;
    z-index: 60;
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px -20px rgba(15, 23, 42, 0.35);
    padding-top: env(safe-area-inset-top);
    padding-right: env(safe-area-inset-right);
}
.mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.125rem;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}
.mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}
.mobile-brand img { height: 40px; width: auto; display: block; }
.mobile-brand-name { font-weight: 700; color: var(--primary); font-size: 1rem; line-height: 1.1; }
.mobile-brand-est { font-size: 0.6rem; color: var(--accent); font-weight: 700; letter-spacing: 0.14em; margin-top: 2px; }
.mobile-close {
    width: 40px; height: 40px;
    border: 0; background: #f8fafc;
    border-radius: 10px;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.mobile-close:hover { background: #f1f5f9; color: var(--primary); }

.mobile-trust {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 1.125rem;
    background: linear-gradient(90deg, rgba(30, 58, 95, 0.04), rgba(232, 76, 43, 0.04));
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.72rem;
    color: #475569;
    font-weight: 500;
    flex-shrink: 0;
}
.mobile-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.mobile-trust svg { color: var(--accent); }

.mobile-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0.625rem;
    -webkit-overflow-scrolling: touch;
}
.mobile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 0.875rem;
    min-height: 56px;
    border-radius: 12px;
    color: #1e293b;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    background: transparent;
    border: 0;
    width: 100%;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.mobile-row:hover { background: #f8fafc; }
.mobile-row.is-active {
    color: var(--primary);
    background: rgba(30, 58, 95, 0.06);
    font-weight: 600;
}
.mobile-row.is-active::before {
    content: "";
    display: block;
    width: 3px; height: 18px;
    background: var(--accent);
    border-radius: 3px;
    margin-right: 0.625rem;
    margin-left: -0.625rem;
}
.mobile-row-label { flex: 1; text-align: left; }
.mobile-row-chev {
    color: #94a3b8;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
.mobile-group-head.is-open {
    color: var(--primary);
    background: rgba(30, 58, 95, 0.05);
    font-weight: 600;
}
.mobile-service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.5rem 0.25rem 0.875rem;
}
.mobile-service-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 0.75rem 0.875rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #334155;
    text-decoration: none;
    min-height: 78px;
    transition: all 0.18s ease;
}
.mobile-service-tile:active { transform: scale(0.98); }
.mobile-service-tile:hover {
    background: #ffffff;
    border-color: var(--primary-light);
    color: var(--primary);
    box-shadow: 0 6px 14px -4px rgba(30, 58, 95, 0.12);
}
.mobile-service-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.1), rgba(232, 76, 43, 0.1));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-service-icon i { width: 16px; height: 16px; }
.mobile-service-title {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.005em;
}

.mobile-foot {
    flex-shrink: 0;
    padding: 0.875rem 1.125rem calc(0.875rem + env(safe-area-inset-bottom));
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.mobile-foot-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.mobile-foot-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    font-size: 0.8rem;
    text-decoration: none;
}
.mobile-foot-link svg { color: var(--accent); flex-shrink: 0; }
.mobile-foot-ctas {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 0.5rem;
}
.mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    min-height: 48px;
    transition: all 0.18s ease;
}
.mobile-btn-ghost {
    background: #f1f5f9;
    color: var(--primary);
    border: 1px solid #e2e8f0;
}
.mobile-btn-ghost:active { background: #e2e8f0; }
.mobile-btn-primary {
    background: linear-gradient(135deg, var(--accent), #f06030);
    color: #ffffff;
    box-shadow: 0 8px 18px -6px rgba(232, 76, 43, 0.55);
}
.mobile-btn-primary:active { transform: scale(0.98); }

/* ============================================================
   COUNTER ANIMATION
   ============================================================ */
.counter-value {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
@media (max-width: 768px) {
    .counter-value { font-size: 2.25rem; }
}

/* ============================================================
   ACCORDION (FAQ)
   ============================================================ */
.accordion-item {
    border-bottom: 1px solid var(--border);
}
.accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    text-align: left;
    min-height: 48px;
}
.accordion-trigger:hover {
    color: var(--primary);
}
.accordion-icon {
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 1rem;
}
.accordion-trigger[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}
.accordion-content {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: #ffffff;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    max-width: 90vw;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.toast-success { background: #059669; }
.toast-error { background: #dc2626; }

/* ============================================================
   SCROLL ANIMATIONS (complement AOS)
   ============================================================ */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   PULSE ANIMATION (for CTA buttons, chatbot launcher)
   ============================================================ */
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

.pulse-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    animation: pulse-ring 2s ease-out infinite;
    z-index: -1;
}

/* ============================================================
   WHATSAPP & FLOATING BUTTONS
   ============================================================ */
.float-btn {
    position: fixed;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    z-index: 9998;
    box-shadow: var(--shadow-lg);
}
.float-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.whatsapp-btn {
    background: #25d366;
    color: #ffffff;
    right: 1.5rem;
    bottom: 6rem;
}

/* Brand chat widget */
.wa-widget {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 9998;
}
/* Chatbot launcher stacks above the WhatsApp widget so they never collide */
.chatbot-launcher {
    right: 1.5rem;
    bottom: 6rem;
    z-index: 9998;
}
/* When the cookie bar is visible, lift the floating widgets so they don't overlap */
body.cookie-bar-visible .wa-widget    { bottom: 6rem; }
body.cookie-bar-visible .chatbot-launcher { bottom: 10.5rem; }
@media (max-width: 640px) {
    .chatbot-launcher { right: 1rem; bottom: 5.5rem; }
    body.cookie-bar-visible .wa-widget    { bottom: 9.5rem; }
    body.cookie-bar-visible .chatbot-launcher { bottom: 14rem; }
}
.chat-toggle-btn {
    position: relative;
    right: auto;
    bottom: auto;
    margin-left: auto;
    display: flex;
    background: linear-gradient(135deg, var(--accent) 0%, #f06030 100%);
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(232, 76, 43, 0.45), 0 4px 10px rgba(15, 23, 42, 0.15);
}
.chat-toggle-btn:hover {
    box-shadow: 0 14px 36px rgba(232, 76, 43, 0.55), 0 6px 14px rgba(15, 23, 42, 0.2);
}
.chat-toggle-btn.is-open {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    box-shadow: 0 10px 28px rgba(30, 58, 95, 0.4);
}
.chat-toggle-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: chat-pulse 2s ease-out infinite;
    z-index: -1;
    opacity: 0.55;
}
.chat-toggle-btn.is-open .chat-toggle-pulse { display: none; }
@keyframes chat-pulse {
    0%   { transform: scale(1); opacity: 0.55; }
    70%  { transform: scale(1.45); opacity: 0; }
    100% { transform: scale(1.45); opacity: 0; }
}
.wa-panel {
    position: absolute;
    bottom: calc(100% + 0.75rem);
    right: 0;
    width: min(360px, calc(100vw - 2rem));
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22), 0 8px 18px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform-origin: bottom right;
    border: 1px solid rgba(30, 58, 95, 0.06);
}
.wa-panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 1rem 1rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}
.wa-panel-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% -10%, rgba(232, 76, 43, 0.35), transparent 55%);
    pointer-events: none;
}
.wa-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #f06030);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(232, 76, 43, 0.4), inset 0 0 0 2px rgba(255,255,255,0.2);
    position: relative;
    z-index: 1;
}
.wa-avatar-mark {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}
.wa-panel-title { flex: 1; min-width: 0; position: relative; z-index: 1; }
.wa-panel-name { font-weight: 600; font-size: 0.98rem; line-height: 1.2; letter-spacing: -0.01em; }
.wa-panel-status {
    font-size: 0.73rem;
    opacity: 0.92;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.wa-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    animation: wa-pulse 1.8s infinite;
}
@keyframes wa-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
    70%  { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.wa-close {
    background: transparent;
    border: 0;
    color: #ffffff;
    opacity: 0.8;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    position: relative;
    z-index: 1;
    transition: background 0.15s ease, opacity 0.15s ease;
}
.wa-close:hover { opacity: 1; background: rgba(255,255,255,0.14); }

.wa-panel-body {
    padding: 1.125rem 1rem 1rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    max-height: 360px;
    overflow-y: auto;
}
.wa-bubble {
    background: #ffffff;
    border-radius: 4px 16px 16px 16px;
    padding: 0.875rem 1rem;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    margin-bottom: 1rem;
    position: relative;
    border-left: 3px solid var(--accent);
}
.wa-bubble-text {
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.55;
    margin: 0;
}
.wa-faqs { display: flex; flex-direction: column; gap: 0.375rem; }
.wa-faqs-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    font-weight: 700;
    margin: 0.25rem 0 0.375rem;
    opacity: 0.7;
}
.wa-faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.wa-faq-item:hover { border-color: #cbd5e1; }
.wa-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: transparent;
    border: 0;
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s ease;
}
.wa-faq-q:hover { color: var(--primary); }
.wa-faq-q.is-open { color: var(--primary); font-weight: 600; }
.wa-faq-chev {
    color: var(--accent);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}
.wa-faq-a {
    padding: 0 0.9rem 0.85rem;
    border-top: 1px solid #f1f5f9;
}
.wa-faq-a p {
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.55;
    margin: 0.65rem 0 0.7rem;
}
.wa-faq-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    background: rgba(200, 16, 46, 0.08);
    color: var(--accent);
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}
.wa-faq-more:hover {
    background: rgba(200, 16, 46, 0.14);
    transform: translateX(2px);
}
.wa-faq-more svg { transition: transform 0.15s ease; }
.wa-faq-more:hover svg { transform: translateX(1px); }

.wa-panel-footer {
    padding: 0.875rem 1rem 1rem;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}
.wa-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, #f06030 100%);
    color: #ffffff;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(232, 76, 43, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.wa-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(232, 76, 43, 0.45);
}
.wa-cta-note {
    margin: 0.5rem 0 0;
    text-align: center;
    font-size: 0.7rem;
    color: #64748b;
    letter-spacing: 0.01em;
}

/* Alpine transitions */
.wa-enter       { transition: transform 0.22s ease, opacity 0.22s ease; }
.wa-enter-start { opacity: 0; transform: translateY(8px) scale(0.96); }
.wa-enter-end   { opacity: 1; transform: translateY(0) scale(1); }
.wa-leave       { transition: transform 0.18s ease, opacity 0.18s ease; }
.wa-leave-start { opacity: 1; transform: translateY(0) scale(1); }
.wa-leave-end   { opacity: 0; transform: translateY(8px) scale(0.96); }

@media (max-width: 480px) {
    .wa-widget { right: 1rem; bottom: 5.5rem; }
    .wa-panel { width: calc(100vw - 2rem); }
}

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
@media (max-width: 640px) {
    .container { padding: 0 1.25rem; }
}
/* Explicit padding on hero-kb-content overrides .container, which would otherwise
   zero-out vertical padding via its shorthand. Sets all four sides. */
.hero-kb-content {
    padding-top:    clamp(3rem, 7vw, 5rem);
    padding-bottom: clamp(2.5rem, 6vw, 4rem);
    padding-left:   clamp(1.25rem, 4vw, 2rem);
    padding-right:  clamp(1.25rem, 4vw, 2rem);
}

.hide-mobile { display: block; }
.show-mobile { display: none; }

/* ============================================================
   PAN-ZOOM (KEN BURNS) HERO
   ============================================================ */
.hero-kb {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    /* dvh > vh — accounts for iOS URL-bar collapse without cutting CTAs */
    min-height: clamp(380px, 48dvh, 520px);
    color: #ffffff;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1e3a5f 0%, #152a45 50%, #0f172a 100%);
}
.hero-kb-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-kb-image::after {
    content: "";
    position: absolute;
    inset: 0;
    /* Directional overlay — dark where text sits (bottom-left), lighter on the right
       so the photograph is visible but text stays legible on any source image. */
    background:
        radial-gradient(ellipse at 90% 12%, rgba(200, 16, 46, 0.18), transparent 55%),
        linear-gradient(100deg, rgba(11, 20, 35, 0.74) 0%, rgba(15, 23, 42, 0.52) 45%, rgba(15, 23, 42, 0.32) 100%);
    z-index: 2;
}
.hero-kb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    animation: kb-pan 28s ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes kb-pan {
    0%   { transform: scale(1.08) translate(-1.5%,  1%);   }
    50%  { transform: scale(1.15) translate( 1%,   -1.5%); }
    100% { transform: scale(1.10) translate( 1.5%,  1%);   }
}
.hero-kb-content {
    position: relative;
    z-index: 3;
    width: 100%;
    /* Padding set again later with explicit sides — see the mobile polish block */
}
.hero-kb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 5px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fcbba8;
    margin-bottom: 1rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.hero-kb-eyebrow::before {
    content: "";
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(200,16,46,0.25);
}
.hero-kb-title {
    font-size: clamp(1.8rem, 4.5vw, 3.1rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.9rem;
    max-width: 900px;
    text-shadow: 0 2px 24px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.35);
}
.hero-kb-title em {
    font-style: normal;
    background: linear-gradient(135deg, #fcbba8, #f5cf7a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-kb-sub {
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    line-height: 1.55;
    color: rgba(255,255,255,0.88);
    max-width: 640px;
    margin: 0 0 1.5rem;
    text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}
.hero-kb-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    align-items: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1rem;
}
.hero-kb-crumbs a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.15s ease;
}
.hero-kb-crumbs a:hover { color: #fcbba8; }
.hero-kb-crumbs svg { opacity: 0.5; }
.hero-kb-ctas {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
@media (prefers-reduced-motion: reduce) {
    .hero-kb-image img { animation: none; transform: scale(1.05); }
}

/* ============================================================
   COOKIE CONSENT
   ============================================================ */
.cookie-bar {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    box-shadow: 0 18px 50px -10px rgba(15, 23, 42, 0.28), 0 6px 14px rgba(15, 23, 42, 0.08);
    padding: 1rem 1.125rem;
    z-index: 9997;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}
.cookie-bar-icon {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.1), rgba(245, 207, 122, 0.15));
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cookie-bar-text {
    flex: 1;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #334155;
}
.cookie-bar-text a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(30,58,95,0.25);
    text-underline-offset: 2px;
}
.cookie-bar-text a:hover { text-decoration-color: var(--primary); }
.cookie-bar-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}
.cookie-btn {
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 0;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
}
.cookie-btn-ghost {
    background: #f1f5f9;
    color: #475569;
}
.cookie-btn-ghost:hover { background: #e2e8f0; color: var(--primary); }
.cookie-btn-primary {
    background: var(--primary);
    color: #ffffff;
}
.cookie-btn-primary:hover { background: var(--primary-dark); }
@media (max-width: 640px) {
    .cookie-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.875rem;
    }
    .cookie-bar-actions { justify-content: flex-end; }
}

/* ============================================================
   BRAND MARQUEE (trust bar)
   ============================================================ */
.brand-marquee {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.brand-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: brand-scroll 48s linear infinite;
}
.brand-marquee:hover .brand-track { animation-play-state: paused; }
.brand-item {
    flex-shrink: 0;
    padding: 0.5rem 2.25rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-item img {
    max-height: 54px;
    min-width: 120px;
    width: auto;
    object-fit: contain;
    filter: grayscale(15%);
    opacity: 0.92;
    transition: filter 0.25s ease, opacity 0.25s ease;
}
.brand-item:hover img { filter: grayscale(0%); opacity: 1; }
.brand-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    letter-spacing: -0.005em;
}
@keyframes brand-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (max-width: 640px) {
    .brand-item { padding: 0.5rem 1.25rem; height: 60px; }
    .brand-item img { max-height: 36px; }
    .brand-track { animation-duration: 36s; }
}
@media (prefers-reduced-motion: reduce) {
    .brand-track { animation: none; transform: translateX(0); }
}

/* ============================================================
   CAROUSEL NAV BUTTONS (services & similar swipers)
   ============================================================ */
.carousel-nav {
    position: absolute;
    top: calc(50% - 1.5rem);
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--primary);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.06);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    padding: 0;
}
@media (min-width: 768px) { .carousel-nav { display: inline-flex; } }
.carousel-nav:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 14px 30px -8px rgba(30, 58, 95, 0.4);
}
.carousel-nav:active { transform: translateY(-50%) scale(0.96); }
.carousel-nav.swiper-button-disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.carousel-nav-prev { left: 8px; }
.carousel-nav-next { right: 8px; }
@media (min-width: 1024px) {
    .carousel-nav-prev { left: 12px; }
    .carousel-nav-next { right: 12px; }
}
/* Services carousel — equal-height cards across all slides */
.services-swiper .swiper-wrapper { align-items: stretch; }
.services-swiper .swiper-slide {
    height: auto;
    display: flex;
}
.services-swiper .swiper-slide > a { width: 100%; }
/* Small internal padding so shadows aren't clipped by swiper overflow */
.services-swiper { padding: 4px 4px 0; }

/* ============================================================
   SITE-WIDE MOBILE POLISH
   ============================================================ */
html, body { overflow-x: clip; }
body { -webkit-tap-highlight-color: transparent; }

/* Prevent fixed elements from sitting beneath iOS home indicator */
.wa-widget { padding-bottom: env(safe-area-inset-bottom); }

/* Min touch target for links rendered as pills/buttons in mobile menu & CTAs */
@media (max-width: 640px) {
    .btn { min-height: 44px; }
    .cta-quote { padding: 0.6rem 0.95rem; font-size: 0.8rem; }
    /* Tighten hero headings on very small viewports */
    .section-title { font-size: clamp(1.5rem, 6vw, 2rem) !important; line-height: 1.2; }
    /* Chat widget sits a bit lower to avoid conflicting with thumb navigation */
    .wa-widget { right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom) + 0.5rem); }
}

/* Reduced motion — disable heavy animations */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .chat-toggle-pulse { display: none; }
}

@media (max-width: 1024px) {
    .hide-mobile { display: none; }
    .show-mobile { display: block; }
}
