:root {
    --surface: #f9faf5;
    --primary: #051125;
    --secondary: #904d00;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100vw;
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
    background-color: var(--surface);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1a1c1a;
}

section {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

h1,
h2,
h3,
.font-headline {
    font-family: 'Manrope', sans-serif;
    letter-spacing: -0.02em;
}

/* Typography Scale - Refined for better balance */
.display-lg {
    font-size: 2.75rem;
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.headline-md {
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
}

.body-md {
    font-size: 0.9375rem;
    /* 15px for better legibility */
    line-height: 1.6;
}

/* Kinetic Overlap: Bleeding across layers */
.kinetic-overlap {
    transform: translateY(4rem);
    z-index: 20;
    margin-bottom: -4rem;
    /* Compensate for the bleed */
}

/* Monolithic Input Refinement */
.input-monolithic {
    background-color: var(--surface-container-highest) !important;
    border: 1px solid rgba(117, 119, 125, 0.15) !important;
    border-radius: 0.5rem;
    padding: 1.5rem 1rem 0.6rem 1rem;
    /* Adjusted for label overlap */
    transition: all 0.3s ease;
    font-size: 1rem;
    line-height: normal;
}

.input-monolithic:focus {
    background-color: #ffffff !important;
    border-color: var(--secondary) !important;
    outline: none;
}

@media (max-width: 768px) {
    .input-monolithic {
        padding: 1.25rem 0.75rem 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Glassmorphism Refinement */
.glass-morphism {
    background: rgba(249, 250, 245, 0.4);
    /* Much more transparent */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Kinetic Gradient 135deg */
.kinetic-gradient {
    background: linear-gradient(135deg, #051125 0%, #1b263b 100%);
}

.safety-orange-gradient {
    background: linear-gradient(135deg, #fd8b00 0%, #904d00 100%);
}

/* No-Line Rule utility */
.no-line {
    border: none !important;
}

/* Custom Animations */
@keyframes pulse-soft {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

.animate-pulse-soft {
    animation: pulse-soft 3s infinite ease-in-out;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

/* Dual Path Hero Expansion - Full Width Fix */
.hero-side {
    width: 50%;
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

section:has(.hero-side:hover) .hero-side:hover {
    width: 60%;
}

section:has(.hero-side:hover) .hero-side:not(:hover) {
    width: 40%;
}

@media (max-width: 768px) {
    .hero-side {
        width: 100% !important;
        height: 60vh !important;
    }
}

/* Navbar Nav Links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Partner Marquee */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    display: flex;
    width: 200%;
    animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* WhatsApp Floating Button with Bounce Animation */
@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 3s infinite ease-in-out;
}

#whatsapp-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Process Line Connector */
.process-line {
    position: relative;
}

.process-line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 100%;
    height: 1px;
    background: repeating-linear-gradient(to right, var(--outline-variant) 0, var(--outline-variant) 5px, transparent 5px, transparent 10px);
    z-index: -1;
}

@media (max-width: 768px) {
    #whatsapp-btn {
        bottom: 85px;
        right: 20px;
    }

    .process-line::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .display-lg {
        font-size: 1.875rem;
        line-height: 1.2;
    }

    .headline-md {
        font-size: 1.25rem;
    }

    .body-md {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .hero-side {
        width: 100% !important;
        height: 60vh !important;
        /* Increased height for content */
    }

    .hero-side:hover {
        width: 100% !important;
    }

    .kinetic-overlap {
        transform: none !important;
        margin-bottom: 0 !important;
    }

    /* Padding adjustments for mobile */
    .py-32 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .py-24 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .px-8 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    /* Stats adjustment */
    .text-5xl {
        font-size: 2.5rem !important;
    }

    .text-6xl {
        font-size: 3rem !important;
    }

    /* Back to Top smaller on mobile */
    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 3.5rem;
        height: 3.5rem;
    }
}

/* Fix for spacing classes not working in CDN if not specifically used */
.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* CSS-Only Branding Logo */
.branding-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Manrope', sans-serif;
    text-decoration: none;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.branding-logo .logo-main {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.branding-logo .logo-accent {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fd8b00 0%, #904d00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.05em;
    position: relative;
    padding-right: 2px;
}

/* Kinetic underline for the accent */
.branding-logo .logo-accent::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary);
    opacity: 0.3;
    z-index: -1;
    transform: skewX(-15deg);
    transition: width 0.3s ease;
}

.branding-logo:hover {
    transform: translateX(4px);
}

.branding-logo:hover .logo-accent::after {
    width: 60%;
}

@media (max-width: 640px) {

    .branding-logo .logo-main,
    .branding-logo .logo-accent {
        font-size: 1.125rem;
    }
}