/* ─── BASE ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy:        #FFF8F0;   /* main bg — warm cream */
    --navy-light:  #FFF3E8;   /* alt section bg — slightly warmer */
    --navy-card:   #FFFFFF;   /* card bg — white */
    --red:         #D42028;
    --orange:      #FF6B00;
    --blue:        #002868;
    --green:       #138808;
    --white:       #FFFFFF;
    --border:      rgba(28,8,0,0.08);
    --text:        #1C0800;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--navy);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ─── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 10px; }

/* ─── SELECTION ──────────────────────────────────────────── */
::selection { background: rgba(204,34,41,0.20); color: #1C0800; }

/* ─── PRELOADER ──────────────────────────────────────────── */
#preloader {
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-logo {
    animation: preloaderPulse 1s ease-in-out infinite alternate;
}
@keyframes preloaderPulse {
    from { opacity: 0.5; transform: scale(0.95); }
    to   { opacity: 1;   transform: scale(1.05); }
}

/* ─── NAVBAR ─────────────────────────────────────────────── */
/* Light blush tint — distinct from cream body, ties to brand red */
#navbar {
    background: #FEF3F3;
    border-bottom: 3px solid #D42028;
}

.nav-link {
    color: rgba(28,8,0,0.55);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.25s;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}
.nav-link:hover { color: #D42028; }

/* Scrolled: add subtle shadow */
#navbar.scrolled {
    background: #FEF3F3;
    border-bottom: 3px solid #D42028;
    box-shadow: 0 4px 24px rgba(212,32,40,0.08);
}

/* Hamburger lines: always dark */
.ham-line { background: #1C0800 !important; }

/* Mobile menu: white bg, dark text */
#mobile-menu .nav-link {
    color: rgba(28,8,0,0.65);
}
#mobile-menu .nav-link:hover { color: #D42028; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn-orange {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    border-radius: 9999px;
    padding: 0.7rem 1.5rem;
    transition: background 0.25s, transform 0.2s;
    text-decoration: none;
    font-size: 0.875rem;
}
.btn-orange:hover { background: rgba(255,107,0,0.85); transform: scale(1.03); }

.btn-red {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    border-radius: 9999px;
    padding: 0.875rem 1.75rem;
    transition: background 0.25s, transform 0.2s;
    text-decoration: none;
}
.btn-red:hover { background: rgba(204,34,41,0.85); transform: scale(1.03); }

.btn-ghost {
    display: inline-block;
    border: 1px solid rgba(28,8,0,0.22);
    color: #1C0800;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    border-radius: 9999px;
    padding: 0.875rem 1.75rem;
    transition: border-color 0.25s, background 0.25s;
    text-decoration: none;
}
.btn-ghost:hover {
    border-color: rgba(28,8,0,0.4);
    background: rgba(28,8,0,0.04);
}


/* ─── CARDS ──────────────────────────────────────────────── */
.card-bordered {
    background: var(--navy-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    transition: border-color 0.4s;
}

/* ─── LABEL TAGS ─────────────────────────────────────────── */
.label-tag {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(28,8,0,0.45);
    border: 1px solid rgba(28,8,0,0.18);
    border-radius: 9999px;
    padding: 0.35rem 1rem;
}


/* ─── SECTION HEADING ────────────────────────────────────── */
.section-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.1;
}

/* ─── TICKER ─────────────────────────────────────────────── */
.ticker-wrap { position: relative; }
.ticker-track { display: flex; }
.ticker-item {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;        /* on red bg — stays white */
    white-space: nowrap;
}
.ticker-sep {
    color: rgba(255,255,255,0.45);
    font-size: 0.5rem;
}

/* ─── ARROW LINK ─────────────────────────────────────────── */
.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: gap 0.25s;
}
.arrow-link::after {
    content: '→';
    transition: transform 0.25s;
}
.arrow-link:hover::after { transform: translateX(4px); }

/* ─── VERTICAL CARDS ─────────────────────────────────────── */
.vertical-card { transition: border-color 0.4s, transform 0.3s; }
.vertical-card:hover { transform: translateY(-3px); }
.vc-glow {
    position: absolute;
    top: 0; right: 0;
    width: 260px; height: 260px;
    border-radius: 50%;
    transform: translate(50%, -50%);
    transition: background 0.5s;
    pointer-events: none;
}
.icon-box {
    width: 3rem; height: 3rem;
    border-radius: 0.75rem;
    display: flex; align-items: center; justify-content: center;
}

/* ─── SERVICE TAGS ───────────────────────────────────────── */
.service-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: rgba(28,8,0,0.50);
    background: rgba(28,8,0,0.04);
    border: 1px solid rgba(28,8,0,0.10);
    border-radius: 9999px;
    padding: 0.25rem 0.65rem;
    transition: color 0.2s, background 0.2s;
}
.service-tag:hover {
    color: rgba(28,8,0,0.80);
    background: rgba(28,8,0,0.08);
}

/* ─── SERVICE CARDS ──────────────────────────────────────── */
.svc-card {
    background: var(--navy-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: border-color 0.3s, transform 0.3s;
    cursor: default;
}
.svc-card:hover { transform: translateY(-2px); }
.svc-icon { font-size: 1.875rem; margin-bottom: 1rem; }
.svc-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #1C0800;
}
.svc-desc {
    font-size: 0.8125rem;
    color: rgba(28,8,0,0.45);
    line-height: 1.6;
}

/* ─── STATS ──────────────────────────────────────────────── */
.stat-item { padding: 0.5rem; }
.stat-label {
    font-size: 0.7rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(28,8,0,0.50);
}

/* ─── ADVANTAGE ITEMS ────────────────────────────────────── */
.adv-dot {
    width: 2rem; height: 2rem;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* ─── MARKET CARDS ───────────────────────────────────────── */
.market-card {
    transition: border-color 0.3s, transform 0.3s;
}
.market-card:hover {
    border-color: rgba(28,8,0,0.20);
    transform: translateY(-2px);
}

/* ─── MINI CARDS (problem/solution) ─────────────────────── */
.mini-card {
    background: rgba(28,8,0,0.04);
    border-radius: 0.75rem;
    padding: 1rem;
}
.mini-card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--orange);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}
.mini-card-sub {
    font-size: 0.75rem;
    color: rgba(28,8,0,0.45);
}

/* ─── VIDEO ──────────────────────────────────────────────── */
#video-container { transition: border-color 0.3s; }
#video-container:hover { border-color: rgba(28,8,0,0.20); }
.play-btn { transition: transform 0.3s; }

/* ─── TESTIMONIALS ───────────────────────────────────────── */
.testi-card {
    transition: border-color 0.3s, transform 0.3s;
}
.testi-card:hover {
    border-color: rgba(28,8,0,0.20);
    transform: translateY(-2px);
}
.avatar {
    width: 2.5rem; height: 2.5rem;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    flex-shrink: 0;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
/* Footer is brand red (#D42028) — white text */
/* Logo becomes white via filter (transparent PNG on red bg) */
footer .logo-wrapper-lg img,
footer .logo-wrapper img {
    filter: brightness(0) invert(1);
    opacity: 0.92;
}
.footer-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 1rem;
}
.footer-link {
    display: block;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-link:hover { color: #fff; }

/* ─── HERO CANVAS ────────────────────────────────────────── */
#hero-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}

/* ─── SCROLL REVEAL (initial state, GSAP takes over) ─────── */
.reveal-section { overflow: hidden; }

/* ─── LOGO WRAPPER ───────────────────────────────────────── */
.logo-wrapper {
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s;
    text-decoration: none;
}
.logo-wrapper:hover { opacity: 0.85; }
.logo-wrapper img { height: 38px; width: auto; display: block; }

.logo-wrapper-lg {
    display: inline-flex;
    align-items: center;
}
.logo-wrapper-lg img { height: 46px; width: auto; display: block; }

/* ─── NAV DROPDOWN ───────────────────────────────────────── */
.nav-dropdown-wrapper { position: relative; }

.nav-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    background: #FEF3F3;
    border: 1px solid rgba(28,8,0,0.08);
    border-top: 3px solid #D42028;
    border-radius: 0 0 12px 12px;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-6px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(28,8,0,0.10);
}
.nav-dropdown-wrapper:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(28,8,0,0.60);
    font-size: 0.8125rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.nav-dropdown-item:hover {
    background: rgba(28,8,0,0.05);
    color: #1C0800;
}
.nav-dropdown-icon { font-size: 1rem; }

/* ─── CLIENTS STRIP ──────────────────────────────────────── */
.clients-strip {
    background: #FFF3E8;
    border-top: 1px solid rgba(28,8,0,0.06);
    border-bottom: 1px solid rgba(28,8,0,0.06);
    padding: 3rem 0;
}
.client-logo-box {
    flex-shrink: 0;
    background: rgba(28,8,0,0.03);
    border: 1px solid rgba(28,8,0,0.08);
    border-radius: 10px;
    width: 160px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(28,8,0,0.30);
    letter-spacing: 0.05em;
    transition: border-color 0.2s, color 0.2s;
}
.client-logo-box:hover {
    border-color: rgba(28,8,0,0.20);
    color: rgba(28,8,0,0.55);
}

/* ─── INNER PAGE HERO ─────────────────────────────────────── */
.page-hero {
    padding: 6.8rem 0 4.25rem;
    background: linear-gradient(135deg, #FEE9D6 0%, #FFF0E4 60%, #FFF8F0 100%);
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid #D42028;
    position: relative;
    overflow: hidden;
}
/* Dark overlay so bg image doesn't overpower the text */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,248,240,0.92) 40%, rgba(255,240,228,0.75) 100%);
    z-index: 1;
    pointer-events: none;
}
.page-hero > * {
    position: relative;
    z-index: 2;
}
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(212,32,40,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* ─── CONTACT FORM ───────────────────────────────────────── */
.form-input {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid rgba(28,8,0,0.12);
    border-radius: 0.75rem;
    padding: 0.875rem 1.125rem;
    color: #1C0800;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.25s;
}
.form-input::placeholder { color: rgba(28,8,0,0.30); }
.form-input:focus { border-color: var(--orange); }

.form-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(28,8,0,0.50);
    margin-bottom: 0.5rem;
}

/* ─── BLOG / WORK CARDS ──────────────────────────────────── */
.blog-card {
    background: var(--navy-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
    text-decoration: none;
    display: block;
    color: inherit;
}
.blog-card:hover {
    border-color: rgba(28,8,0,0.18);
    transform: translateY(-3px);
}

.work-card {
    background: var(--navy-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
    text-decoration: none;
    display: block;
    color: inherit;
}
.work-card:hover {
    border-color: rgba(28,8,0,0.18);
    transform: translateY(-3px);
}

/* ─── SERVICES PAGE ──────────────────────────────────────── */
.services-tab {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(28,8,0,0.15);
    color: rgba(28,8,0,0.50);
    cursor: pointer;
    transition: all 0.25s;
    background: transparent;
}
.services-tab:hover {
    color: #1C0800;
    border-color: rgba(28,8,0,0.35);
}
.services-tab.active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* ─── SOCIAL ICONS ──────────────────────────────────────── */
/* In footer (red bg) — white icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.30);
    color: rgba(255,255,255,0.70);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    text-decoration: none;
}
.social-icon:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.80);
    background: rgba(255,255,255,0.15);
}
.social-icon svg { width: 16px; height: 16px; }

/* ─── RESPONSIVE TWEAKS ──────────────────────────────────── */
@media (max-width: 640px) {
    .section-heading { font-size: 1.75rem; }
}

/* ─── HAMBURGER ACTIVE STATE ─────────────────────────────── */
#mobile-menu-btn.open .ham-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
#mobile-menu-btn.open .ham-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#mobile-menu-btn.open .ham-line:nth-child(3) {
    width: 1.5rem;
    transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════
   LIGHT THEME OVERRIDES — applies site-wide (all on cream bg)
   Hero, page-hero, footer — all now cream/light
   ═══════════════════════════════════════════════════════════ */

/* text-white/* variants → warm dark on cream */
.text-white\/80 { color: rgba(28,8,0,0.85) !important; }
.text-white\/70 { color: rgba(28,8,0,0.75) !important; }
.text-white\/60 { color: rgba(28,8,0,0.60) !important; }
.text-white\/55 { color: rgba(28,8,0,0.55) !important; }
.text-white\/50 { color: rgba(28,8,0,0.50) !important; }
.text-white\/45 { color: rgba(28,8,0,0.50) !important; }
.text-white\/40 { color: rgba(28,8,0,0.45) !important; }
.text-white\/38 { color: rgba(28,8,0,0.42) !important; }
.text-white\/35 { color: rgba(28,8,0,0.40) !important; }
.text-white\/30 { color: rgba(28,8,0,0.35) !important; }
.text-white\/25 { color: rgba(28,8,0,0.30) !important; }
.text-white\/20 { color: rgba(28,8,0,0.25) !important; }
.text-white\/15 { color: rgba(28,8,0,0.20) !important; }
.text-white\/10 { color: rgba(28,8,0,0.15) !important; }
.text-white     { color: #1C0800 !important; }

/* EXCEPTIONS: buttons always keep white text */
.btn-orange, .btn-red,
.btn-orange:hover, .btn-red:hover,
.btn-orange .text-white, .btn-red .text-white,
.tab-btn.active-pr, .tab-btn.active-digital,
.services-tab.active { color: #fff !important; }

/* bg-white glass effects → faint dark tint on cream */
.bg-white\/30 { background-color: rgba(28,8,0,0.14) !important; }
.bg-white\/20 { background-color: rgba(28,8,0,0.10) !important; }
.bg-white\/10 { background-color: rgba(28,8,0,0.05) !important; }
.bg-white\/8  { background-color: rgba(28,8,0,0.04) !important; }
.bg-white\/6  { background-color: rgba(28,8,0,0.03) !important; }
.bg-white\/4  { background-color: rgba(28,8,0,0.02) !important; }

/* border-white/* variants → subtle dark */
.border-white\/10 { border-color: rgba(28,8,0,0.08) !important; }
.border-white\/8  { border-color: rgba(28,8,0,0.06) !important; }
.border-white\/15 { border-color: rgba(28,8,0,0.10) !important; }
.border-white\/20 { border-color: rgba(28,8,0,0.12) !important; }
.border-white\/25 { border-color: rgba(28,8,0,0.15) !important; }
.border-white\/30 { border-color: rgba(28,8,0,0.18) !important; }

/* hover variants */
.hover\:border-white\/20:hover { border-color: rgba(28,8,0,0.15) !important; }
.hover\:text-white:hover { color: #1C0800 !important; }

/* ─── FOOTER OVERRIDES — restore white text on red bg ─────── */
footer .text-white\/80 { color: rgba(255,255,255,0.85) !important; }
footer .text-white\/70 { color: rgba(255,255,255,0.80) !important; }
footer .text-white\/60 { color: rgba(255,255,255,0.68) !important; }
footer .text-white\/55 { color: rgba(255,255,255,0.62) !important; }
footer .text-white\/50 { color: rgba(255,255,255,0.58) !important; }
footer .text-white\/45 { color: rgba(255,255,255,0.55) !important; }
footer .text-white\/40 { color: rgba(255,255,255,0.55) !important; }
footer .text-white\/35 { color: rgba(255,255,255,0.50) !important; }
footer .text-white\/30 { color: rgba(255,255,255,0.45) !important; }
footer .text-white\/25 { color: rgba(255,255,255,0.40) !important; }
footer .text-white\/20 { color: rgba(255,255,255,0.35) !important; }
footer .text-white\/10 { color: rgba(255,255,255,0.25) !important; }
footer .text-white     { color: rgba(255,255,255,0.90) !important; }
footer .hover\:text-white:hover { color: #ffffff !important; }
/* border and bg overrides for red footer */
footer .border-white\/10 { border-color: rgba(255,255,255,0.18) !important; }
footer .border-white\/20 { border-color: rgba(255,255,255,0.28) !important; }
footer .bg-white\/10     { background-color: rgba(255,255,255,0.12) !important; }

/* divide-white */
.divide-white\/10 > :not([hidden]) ~ :not([hidden]) {
    border-color: rgba(28,8,0,0.08);
}
