/* ════ GLOBAL VARIABLES & RESET ════ */
:root {
    /* Surfaces — light mode */
    --canvas: #FFFFFF;
    --canvas-alt: #F7F6F4;
    --drawer-bg: linear-gradient(150deg, #FFFFFF 0%, #F0EDE6 100%);

    /* Soft black / charcoal */
    --ink: #1A1A1A;
    --ink-soft: #2C2C2C;
    --text-muted: #5C5C5C;

    /* Brand orange */
    --gold: #E85D04;
    --gold-light: #F48C06;
    --gold-dim: rgba(232, 93, 4, 0.10);

    /* Deeper tones for gradients / badges */
    --orange-deep: #D00000;
    --orange-glow: rgba(232, 93, 4, 0.28);

    /* Lines & elevation */
    --border: rgba(26, 26, 26, 0.08);
    --border-strong: rgba(26, 26, 26, 0.14);
    --shadow-sm: 0 8px 24px rgba(26, 26, 26, 0.06);
    --shadow-lg: 0 32px 64px -12px rgba(26, 26, 26, 0.18);

    /* Type & layout */
    --font-display: 'Space Grotesk', -apple-system, sans-serif;
    --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
    --container: 1280px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    /* WhatsApp */
    --whatsapp: #25D366;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-muted);
    background: var(--canvas);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button {
    font: inherit;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 48px);
}

/* ════ ACCESSIBILITY HELPER ════ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ═══════════════════════════════════════════════
   MAMAN CINEMATIC LOADER — STRICT DEFINITION
   ═══════════════════════════════════════════════ */
.site-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0A0A0A;
    overflow: hidden;
}

.site-loader.is-done {
    pointer-events: none;
}

/* ── Geometric Lattice Backdrop ── */
.loader-geo {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.45;
    background-image:
        linear-gradient(rgba(201, 153, 46, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 153, 46, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

.loader-geo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(201, 153, 46, 0.12) 0%, transparent 55%);
}

/* ── Centered Content Stage ── */
.loader-stage {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: min(90vw, 520px);
    transform: translateY(-2vh);
}

.loader-logo-svg {
    width: min(78vw, 420px);
    height: auto;
    display: block;
    margin: 0 auto;
    overflow: visible;
}

.loader-mark {
    fill: none;
}

/* ── Typography & Readouts ── */
.loader-counter {
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-weight: 700;
    font-size: clamp(28px, 5vw, 42px);
    color: #fff;
    letter-spacing: 0.04em;
    line-height: 1;
    margin-top: 12px;
    font-variant-numeric: tabular-nums;
}

.loader-tagline {
    margin-top: 14px;
    font-family: var(--font-body, 'IBM Plex Sans', sans-serif);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #e85d04;
}

/* ── Cinematic Curtain Reveal ── */
.loader-curtain {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: #0A0A0A;
    transform: translateY(100%);
    pointer-events: none;
}

/* ── Fallback Cleanup (kills old duplicated nodes if present) ── */
.loader-logo-container,
.loader-logo,
.loader-logo-img {
    display: none !important;
}

/* ════ TYPOGRAPHY & BUTTONS ════ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.1;
}

.h-xl {
    font-size: clamp(36px, 5vw + 1rem, 72px);
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.h-lg {
    font-size: clamp(28px, 4vw, 52px);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.accent-text {
    color: var(--gold);
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    margin-bottom: 12px;
}

.lead {
    font-size: clamp(16px, 1.2vw + 0.3rem, 19px);
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    border-radius: 99px;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    border: none;
}

.btn-primary {
    background: var(--gold);
    color: #FFF;
    box-shadow: 0 4px 14px var(--orange-glow);
}

.btn-primary:hover {
    background: var(--ink);
    color: #FFF;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-dark {
    background: var(--ink);
    color: #FFF;
}

.btn-dark:hover {
    background: var(--gold);
    color: #FFF;
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--border-strong);
}

.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-full {
    width: 100%;
}

/* ═══════════════════════════════════════════════
   HEADER · TOP BAR · EDGE-TO-EDGE GLASS DOCK
   ═══════════════════════════════════════════════ */
#header-placeholder {
    display: contents;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 100000;
    padding: 12px 24px;
    background: var(--gold);
    color: #FFF;
    font-weight: 600;
    border-radius: 6px;
}

.skip-link:focus {
    top: 16px;
    outline: none;
}

/* ── ENTERPRISE TOP BAR ── */
.top-bar {
    position: relative;
    z-index: 1001;
    background: #000000;
    color: #A0A0A0;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 0.04em;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
}

.top-bar__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 48px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.top-bar__left,
.top-bar__right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.top-bar__right {
    justify-content: flex-end;
}

.top-bar__link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.top-bar__link:hover {
    color: #FFFFFF;
}

.top-bar__link svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    opacity: 0.7;
}

.top-bar__whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.2);
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 10px;
}

.top-bar__whatsapp:hover {
    background: rgba(37, 211, 102, 0.15);
    color: #25D366;
    border-color: rgba(37, 211, 102, 0.4);
}

.top-bar__whatsapp svg {
    opacity: 1;
    width: 12px;
    height: 12px;
}

.top-bar__divider {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.15);
    display: inline-block;
    flex-shrink: 0;
    margin: 0 4px;
}

.top-bar__socials {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-bar__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    height: 24px;
    min-width: 24px;
    border-radius: 999px;
    color: #A0A0A0;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    transition: color 0.25s ease, background 0.25s ease;
}

.top-bar__social-link svg {
    width: 13px;
    height: 13px;
}

.top-bar__social-link .top-bar__social-name {
    display: none;
}

.top-bar__social-link:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

/* ── EDGE-TO-EDGE GLASS DOCK ── */
.nav-container-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-header {
    width: 100%;
    height: 76px;
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s var(--ease-out);
    will-change: background, height, box-shadow;
}

.nav-header.scrolled {
    height: 64px;
    opacity: 0.6;
    background: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
    padding: 0 clamp(16px, 4vw, 48px);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-img {
    height: 44px;
    width: auto;
    max-height: 100%;
    display: block;
    object-fit: contain;
    transition: height 0.4s var(--ease-out);
}

.nav-header.scrolled .nav-logo-img {
    height: 34px;
}

.site-footer__brand .nav-logo-img {
    height: 48px;
}

.nav-right-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(24px, 3vw, 40px);
    flex: 1 1 auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    transition: transform 0.3s var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: translateX(-50%) scale(1);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-cta .btn {
    padding: 14px 28px;
    font-size: 12px;
    letter-spacing: 0.06em;
    background: var(--ink);
    color: #FFF;
    border-radius: 99px;
    box-shadow: none;
    transition: all 0.3s var(--ease-out);
}

.nav-cta .btn:hover {
    background: var(--gold);
    box-shadow: 0 8px 20px rgba(232, 93, 4, 0.25);
    transform: translateY(-1px);
}

.nav-header.scrolled .nav-cta .btn {
    padding: 10px 24px;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
}

.nav-toggle__box {
    width: 22px;
    height: 10px;
    position: relative;
}

.nav-toggle__line {
    position: absolute;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.nav-toggle__line.line-top {
    top: 0;
    right: 0;
    width: 100%;
}

.nav-toggle__line.line-bottom {
    bottom: 0;
    right: 0;
    width: 60%;
}

.nav-toggle:hover .nav-toggle__line {
    width: 100%;
    background: var(--gold);
}

/* ── DEEP-SPACE CINEMATIC DRAWER ── */
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(12, 12, 12, 0.85);
    backdrop-filter: blur(48px) saturate(150%);
    -webkit-backdrop-filter: blur(48px) saturate(150%);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    padding: 32px 40px 40px;
    opacity: 0;
    pointer-events: none;
    clip-path: circle(28px at calc(100% - 60px) 60px);
    transition: opacity 0.6s var(--ease-out), clip-path 0.75s var(--ease-out);
    overflow-y: auto;
}

.drawer.open {
    opacity: 1;
    pointer-events: auto;
    clip-path: circle(160% at calc(100% - 60px) 60px);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.drawer-close {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.4s var(--ease-out), background 0.25s ease, border-color 0.25s ease;
}

.close-box {
    width: 16px;
    height: 16px;
    position: relative;
    pointer-events: none;
}

.close-line {
    position: absolute;
    top: 7px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: #FFFFFF;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.close-line:nth-child(1) {
    transform: rotate(45deg);
}

.close-line:nth-child(2) {
    transform: rotate(-45deg);
}

.drawer-close:hover {
    transform: rotate(90deg);
    background: #FFFFFF;
    border-color: #FFFFFF;
}

.drawer-close:hover .close-line {
    background: var(--ink);
}

.drawer-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6vh 0 20px;
    gap: 48px;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.drawer-nav-item {
    overflow: hidden;
}

.drawer-nav a {
    display: inline-flex;
    align-items: flex-start;
    font-family: var(--font-display);
    font-size: clamp(36px, 7vw, 56px);
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-decoration: none;
    transform: translateY(105%) rotate(3deg);
    transform-origin: left bottom;
    transition: transform 0.6s var(--ease-out), color 0.25s ease;
}

.drawer.open .drawer-nav a {
    transform: translateY(0) rotate(0);
    transition-delay: calc(var(--i, 1) * 0.07s + 0.1s);
}

.drawer-nav a:hover,
.drawer-nav a.active {
    color: var(--gold);
}

.drawer-nav .nav-num {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    margin-right: 24px;
    margin-top: 14px;
    letter-spacing: 0.04em;
    transition: color 0.25s ease;
}

.drawer-nav a:hover .nav-num,
.drawer-nav a.active .nav-num {
    color: var(--gold);
}

.drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.drawer-actions,
.drawer-contact,
.drawer-badges {
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.6s var(--ease-out), opacity 0.6s var(--ease-out);
}

.drawer.open .drawer-actions,
.drawer.open .drawer-contact,
.drawer.open .drawer-badges {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--i, 6) * 0.06s + 0.2s);
}

.drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.drawer-actions .btn .arrow {
    margin-left: 8px;
    transition: transform 0.3s var(--ease-out);
}

.drawer-actions .btn:hover .arrow {
    transform: translateX(4px);
}

.drawer-contact {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px 28px;
}

.drawer-contact a {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.drawer-contact a:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.drawer-contact a.whatsapp:hover {
    color: var(--whatsapp);
    border-color: var(--whatsapp);
}

.drawer-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-badges svg {
    height: 40px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.drawer-badges a {
    display: inline-flex;
    line-height: 0;
}

.drawer-badges a:hover svg {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.overlay.open {
    opacity: 1;
    visibility: visible;
}

body.drawer-open {
    overflow: hidden;
}

@media (max-width: 1100px) {
    .nav-links {
        gap: 20px;
    }

    .nav-right-group {
        gap: 24px;
    }
}

@media (max-width: 900px) {
    .top-bar {
        display: none;
    }

    .nav-header {
        height: 72px;
    }

    .nav-header.scrolled {
        height: 64px;
    }

    .nav-links,
    .nav-cta .btn {
        display: none !important;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-right-group {
        flex: 0 0 auto;
        gap: 0;
    }
}

@media (max-width: 640px) {

    .nav-logo-img,
    .site-footer__brand .nav-logo-img {
        height: 36px;
    }

    .nav-header.scrolled .nav-logo-img {
        height: 30px;
    }

    .drawer {
        padding: 24px;
    }

    .drawer-contact {
        flex-direction: column;
        gap: 12px;
    }
}

/* ════ GLOBAL LAYOUT ════ */
.section {
    padding: clamp(64px, 8vw, 100px) 0;
}

.alt-bg {
    background: var(--canvas-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.sec-head {
    margin-bottom: clamp(36px, 5vw, 60px);
    max-width: 640px;
}

.sec-head.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.center-btn-wrap {
    text-align: center;
    margin-top: 48px;
}

/* ════ EXPERTISE / SERVICE CARDS ════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--canvas);
    border: 1px solid var(--border-strong);
    padding: 40px 32px;
    border-radius: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.4s var(--ease-out);
}

.service-card:hover {
    border-color: var(--gold);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(232, 93, 4, 0.12);
}

.service-card .num {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 24px;
    display: block;
}

.service-card__icon,
.lottie-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-card p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 28px;
    flex-grow: 1;
}

.card-link {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease, gap 0.2s ease;
}

.card-link:hover {
    color: var(--gold);
    gap: 10px;
}

/* ════ TESTIMONIALS ════ */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 700px;
}

.review-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-stars {
    color: var(--gold);
    font-size: 16px;
    letter-spacing: 2px;
    display: flex;
    gap: 2px;
}

.review-text {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--ink);
    line-height: 1.6;
    font-weight: 400;
}

.review-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.review-author {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
}

.review-loc {
    font-size: 14px;
    color: var(--text-muted);
}

/* ════ MASONRY / PORTFOLIO CARDS ════ */
.masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.p-item {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    height: 360px;
    box-shadow: var(--shadow-sm);
    background: var(--ink);
    text-decoration: none;
}

.p-item .img-wrap {
    overflow: hidden;
    position: relative;
    height: 100%;
    width: 100%;
    contain: paint;
}

.p-item .parallax-img {
    width: 100%;
    height: 115%;
    object-fit: cover;
    position: relative;
    top: -7.5%;
    transition: transform 0.6s var(--ease-out);
}

.p-item:hover .parallax-img {
    transform: scale(1.06);
}

.p-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.92) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    color: #FFF;
    pointer-events: none;
}

.p-overlay span {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.p-overlay h4 {
    color: #FFF;
    font-size: 20px;
    margin: 0;
}

@media (max-width: 900px) {
    .masonry {
        grid-template-columns: 1fr 1fr;
    }

    .p-item {
        height: 300px;
    }
}

@media (max-width: 640px) {

    .services-grid,
    .masonry {
        grid-template-columns: 1fr;
    }

    .p-item {
        height: 280px;
    }
}

/* Add this to services.css if it isn't there already */
@media (min-width: 992px) {
  .service-row--reverse {
    flex-direction: row-reverse;
  }
}

/* ══════════════════════════════════════════════════════════
   FOOTER — Top-tier architecture
   ══════════════════════════════════════════════════════════ */

.site-footer {
    position: relative;
    background: #0d0d0d;
    color: rgba(255, 255, 255, 0.72);
    padding: clamp(64px, 8vw, 100px) 0 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Warm ambient glow behind CTA */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(900px, 100%);
    height: 420px;
    background: radial-gradient(ellipse at 50% 0%, rgba(232, 93, 4, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.site-footer .container {
    position: relative;
    z-index: 1;
}

/* ── CTA band ── */
.site-footer__cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
    padding-bottom: clamp(48px, 6vw, 72px);
    margin-bottom: clamp(48px, 6vw, 72px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__cta-copy .eyebrow {
    color: var(--gold-light, #F48C06);
}

.site-footer__cta-copy .h-lg {
    color: #fff;
    margin: 8px 0 14px;
}

.site-footer__cta-copy .lead {
    color: rgba(255, 255, 255, 0.62);
    max-width: 36em;
    margin: 0;
}

/* Form */
.footer-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.footer-form input,
.footer-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-family: var(--font-body, 'IBM Plex Sans', sans-serif);
    font-size: 14px;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    outline: none;
    resize: vertical;
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.footer-form input:focus,
.footer-form textarea:focus {
    border-color: rgba(232, 93, 4, 0.55);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.15);
}

.footer-form .btn {
    align-self: flex-start;
    margin-top: 4px;
}

@media (max-width: 800px) {
    .site-footer__cta {
        grid-template-columns: 1fr;
    }

    .footer-form__row {
        grid-template-columns: 1fr;
    }

    .footer-form .btn {
        width: 100%;
    }
}

/* ── Brand + nav grid ── */
.site-footer__top {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    padding-bottom: clamp(40px, 5vw, 56px);
}

.site-footer__logo .nav-logo-img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.site-footer__tagline {
    margin: 18px 0 24px;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.55);
    max-width: 34em;
}

.site-footer__social-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.footer-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.12);
    color: #25D366;
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    border: 1px solid rgba(37, 211, 102, 0.25);
    transition: background 0.25s ease, transform 0.25s ease;
}

.footer-wa:hover {
    background: rgba(37, 211, 102, 0.2);
    transform: translateY(-2px);
}

.footer-socials {
    display: flex;
    gap: 8px;
}

.footer-social {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    text-decoration: none;
}

.footer-social:hover {
    color: var(--gold-light, #F48C06);
    background: rgba(232, 93, 4, 0.12);
    border-color: rgba(232, 93, 4, 0.35);
    transform: translateY(-2px);
}

.site-footer__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer__badges a {
    line-height: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-footer__badges a:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Nav columns */
.site-footer__nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.site-footer__col-title {
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 16px;
}

.site-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer__col a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.site-footer__col a:hover {
    color: var(--gold-light, #F48C06);
    transform: translateX(3px);
}

@media (max-width: 900px) {
    .site-footer__top {
        grid-template-columns: 1fr;
    }

    .site-footer__nav {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 560px) {
    .site-footer__nav {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* Bottom bar */
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__legal {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════
   BACK TO TOP — fixed, single instance, GSAP-ready
   ══════════════════════════════════════════════════════════ */

.back-to-top {
    position: fixed;
    right: max(16px, env(safe-area-inset-right, 0px) + 12px);
    bottom: max(16px, env(safe-area-inset-bottom, 0px) + 12px);
    z-index: 9000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    padding: 0;
    margin: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: var(--gold, #E85D04);
    color: #fff;
    box-shadow:
        0 4px 16px rgba(232, 93, 4, 0.35),
        0 2px 6px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px) scale(0.9);
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.25s ease,
        box-shadow 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    display: block;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    background: var(--gold-light, #F48C06);
    box-shadow:
        0 6px 22px rgba(232, 93, 4, 0.45),
        0 3px 8px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px) scale(1);
}

.back-to-top:active {
    transform: translateY(0) scale(0.96);
}

.back-to-top:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: opacity 0.2s ease, visibility 0.2s ease;
        transform: none;
    }

    .back-to-top.show {
        transform: none;
    }
}

/* ════ REVEAL / GSAP / PRO MOTION ════ */
.reveal,
.service-card,
.p-item,
.hero-content>* {
    will-change: transform, opacity;
}

.reveal.in-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.nav-header,
.site-loader,
.parallax-img,
.service-card,
.p-item {
    backface-visibility: hidden;
    transform: translateZ(0);
}

body:not(.is-loaded) .hero-content>* {
    opacity: 0;
}

.is-loaded .site-loader {
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal,
    .service-card,
    .p-item,
    .hero-content>*,
    .loader-stage,
    .loader-counter,
    .loader-tagline,
    .loader-geo {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }

    .top-bar__social-link .top-bar__social-name {
        max-width: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .top-bar__social-link {
        gap: 6px !important;
        padding: 0 10px 0 8px !important;
    }

    .drawer {
        clip-path: none !important;
    }

    .drawer-nav a {
        transform: none !important;
    }

    .site-loader {
        transition: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── Cookie Consent Banner ── */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: 16px;
    max-width: 380px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(150%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.cookie-content a {
    color: var(--gold);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 12px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

@media (max-width: 640px) {
    .cookie-banner {
        bottom: 16px;
        left: 16px;
        right: 16px;
        max-width: none;
    }
}

/* Footer App Badges */
.site-footer__apps {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__apps-label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
}

.site-footer__app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.875rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #ffffff;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.app-badge__icon {
  flex-shrink: 0;
  fill: currentColor;
}

.app-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.app-badge__subtitle {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
}

.app-badge__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
}