@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #F0C481;
    --primary-rgb: 240, 196, 129;
    --bg-dark: #F5F5F5;
    --bg-card: #FFFFFF;
    --text-main: #1A1A1A;
    --text-muted: #666666;
    --border: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-blur: 15px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --container-width: 1200px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
}

h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.2;
}

h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: clamp(1.25rem, 4vw, 1.75rem);
}

h4,
.font-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utilities */
.text-primary {
    color: var(--primary);
}

.bg-primary {
    background-color: var(--primary);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border);
}

/* Header & Nav */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: transparent;
}

#main-header.scrolled {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}


.logo img {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

#main-header.scrolled .logo img {
    height: 35px;
}


.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}


.nav-links a {
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Pages with dark hero backgrounds — nav links white when header is transparent */
body.dark-hero #main-header:not(.scrolled) .nav-links a {
    color: #ffffff;
}
body.dark-hero #main-header:not(.scrolled) .nav-links a:hover,
body.dark-hero #main-header:not(.scrolled) .nav-links a.active {
    color: var(--primary);
}
/* Get a Quote button text also white on dark hero */
body.dark-hero #main-header:not(.scrolled) .header-cta .btn-outline {
    color: #ffffff;
    border-color: rgba(255,255,255,0.6);
}
body.dark-hero #main-header:not(.scrolled) .header-cta .btn-outline:hover {
    background: #ffffff;
    color: var(--text-main);
    border-color: #ffffff;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #FFFFFF;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    /* Font size now handled by global h1 clamp */
    margin-bottom: 1.5rem;
    color: #FFFFFF;
}

.hero-content p {
    font-size: clamp(1rem, 3vw, 1.125rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.2);
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--bg-dark);
}

/* Logo - dark/light swap so it stays legible on both white and dark headers */
.logo-light {
    display: none;
}
body.dark-hero #main-header:not(.scrolled) .logo-dark {
    display: none;
}
body.dark-hero #main-header:not(.scrolled) .logo-light {
    display: block;
}

/* Footer (old dark version) */
footer {
    padding: 4rem 0 1.5rem;
    background: #304154;
    border-top: none;
    color: #e2e8f0;
}

.footer-grid-old {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.footer-logo {
    height: 110px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .footer-logo {
        height: 80px;
    }
}

.footer-social-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-icon-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    transition: var(--transition);
}
.social-icon-circle:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.footer-section h4 {
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    color: #fff;
}

.footer-section p {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.footer-section a {
    color: var(--primary);
}

.footer-nowrap {
    white-space: nowrap;
    overflow-x: auto;
}

.footer-section a:hover {
    color: #fff;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    background: #25D366;
    color: #fff !important;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
}
.whatsapp-btn:hover {
    filter: brightness(1.08);
}

.subscribe-form {
    display: flex;
    gap: 0.5rem;
}
.subscribe-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255,255,255,0.15);
    background: #fff;
    color: #1A1A1A;
    border-radius: 50px;
    outline: none;
    font-size: 0.85rem;
}
.subscribe-form button {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #1A1A1A;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.subscribe-form button:hover {
    filter: brightness(1.1);
}

.footer-bottom-old {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.75rem;
    color: #94a3b8;
}
.footer-bottom-old a {
    color: #94a3b8;
}
.footer-bottom-old a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Visualiser */
.visualiser-container {
    position: relative;
    width: 100%;
    aspect-ratio: auto;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
}

.visualiser-wall {
    position: absolute;
    top: 7.5%;
    left: 15.5%;
    width: 49.5%;
    height: 64.5%;
    background-size: cover;
    z-index: 2;
    opacity: 1;
    transition: var(--transition);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.2);
}

.visualiser-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    background: transparent;
}


/* Micro-animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeInUp 0.8s ease forwards;
}

/* Mobile Nav Toggle */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 2000;
    padding: 10px;
    margin-right: -10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-main);
    margin: 6px 0;
    transition: var(--transition);
}

/* Specific adjustments for navbar when on dark backgrounds */
#main-header:not(.scrolled) .hamburger span {
    background: #FFFFFF;
}

#main-header.scrolled .hamburger span {
    background: var(--text-main);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive */
@media (max-width: 1200px) {
    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .footer-grid-old {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1050;
        padding: 2rem;
    }

    #main-header.scrolled .nav-links {
        background: rgba(0, 0, 0, 0.92);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.25rem;
        color: #ffffff;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--primary);
    }

    /* Sticky header — black & semi-transparent on mobile */
    #main-header.scrolled {
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    }

    /* Always-on: keep header dark on mobile so logo stays visible */
    #main-header {
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    /* Header is always dark on mobile, so always show the light logo */
    .logo-dark {
        display: none !important;
    }
    .logo-light {
        display: block !important;
    }

    .hamburger {
        display: block;
    }

    /* Hamburger lines always white on mobile (header is always dark) */
    #main-header .hamburger span,
    #main-header.scrolled .hamburger span {
        background: #ffffff;
    }

    .header-cta {
        display: none;
    }
}

@media (max-width: 768px) {
    section {
        padding: 5rem 0 !important;
    }

    .footer-grid-old {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: left;
    }

    .footer-section,
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .subscribe-form {
        max-width: 320px;
        margin: 0;
    }

    .footer-bottom-old {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        text-align: left;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .btn+.btn {
        margin-left: 0 !important;
        margin-top: 1rem;
    }

    .container {
        padding: 0 1.5rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Carousel Styles Refinements for Mobile */
@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 280px;
    }

    .carousel-track {
        gap: 1rem;
    }
}

/* Carousel Styles */
.carousel-container {
    padding: 4rem 0;
    overflow: hidden;
}

.carousel-section-title {
    margin-bottom: 3rem;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
    height: 4px;
}

.carousel-track::-webkit-scrollbar-thumb {
    background: var(--primary);
}

.carousel-item {
    flex: 0 0 350px;
    scroll-snap-align: start;
    transition: var(--transition);
}

.carousel-item:hover {
    transform: translateY(-8px);
}

.carousel-image-placeholder {
    width: 100%;
    aspect-ratio: 1/1;
    background: #EAEAEA;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.carousel-item-caption {
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-main);
}
/* Newsletter state and bot-protection helpers */
.newsletter-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.newsletter-status { min-height: 1.25rem; margin-top: .55rem; font-size: .78rem; color: #cbd5e1; }
.newsletter-status[data-state="success"] { color: #86efac; }
.newsletter-status[data-state="already_subscribed"] { color: #fde68a; }
.newsletter-status[data-state="error"], .newsletter-status[data-state="invalid"], .newsletter-status[data-state="rate_limited"] { color: #fca5a5; }
.subscribe-form button:disabled { opacity: .55; cursor: wait; }
