/* Global CSS - Sky Zone Solutions */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Funnel+Display:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    /* Color Palette */
    --color-primary-dark: #112A46;
    --color-accent-cyan: #33d9f6;
    --color-accent-soft: hsl(189, 68%, 62%);
    --color-bg-light: #eefcff;
    --color-white: #ffffff;
    --color-accent-white: #dafffd;

    /* Typography */
    --font-logo: 'Funnel Display', sans-serif;
    --font-main: 'Lexend Deca', sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-light);
    color: var(--color-primary-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    color: var(--color-primary-dark);
}

.logo-text,
.brand-font {
    font-family: var(--font-logo) !important;
}

/* Navbar Global Styles */
.navbar {
    transition: all 0.4s ease;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.nav-link {
    font-family: var(--font-main);
    font-weight: 500;
    color: var(--color-primary-dark) !important;
    font-size: 1rem;
    margin: 0 10px;
}

.nav-link:hover {
    color: var(--color-primary-dark) !important;
}

.navbar-brand {
    font-family: var(--font-logo);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-primary-dark) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Navbar Toggler (Mobile Menu Button) */
.navbar-toggler {
    background-color: rgba(255, 255, 255, 0) !important;
    border: 2px solid var(--color-primary-dark);
    border-radius: 8px;
    padding: 8px 10px;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23112A46' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile/Tablet Global Styles */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgb(255, 255, 255);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    /* Faster Collapse Animation */
    .collapsing {
        transition: height 0.2s ease !important;
    }

    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        background-color: white;
    }

    .logo-text {
        font-size: 1rem;
    }

    .navbar {
        padding: 0.5rem 1rem;
    }

    .navbar-toggler {
        margin-left: 10px;
        /* Slight gap if something is to the left */
        padding: 4px 8px;
        font-size: 0.9rem;
    }

    /* Aggressive scaling for mobile text */
    h1 {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
    }

    h2 {
        font-size: 1.35rem !important;
        line-height: 1.3 !important;
    }

    h3 {
        font-size: 1.15rem !important;
        line-height: 1.3 !important;
    }

    h4 {
        font-size: 1rem !important;
        line-height: 1.4 !important;
    }

    h5,
    h6 {
        font-size: 0.9rem !important;
    }

    p,
    li,
    .lead {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }

    .btn {
        font-size: 0.85rem !important;
        padding: 0.5rem 1rem !important;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 991px) {
    h1 {
        font-size: 2.2rem !important;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    h3 {
        font-size: 1.4rem !important;
    }

    .navbar {
        padding: 0.8rem 1.5rem;
    }
}

/* Footer Global Styles */
footer {
    background: var(--color-primary-dark);
    color: white;
    padding: 4rem 0 2rem 0;
    position: relative;
    overflow: hidden;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--color-accent-cyan);
}

.footer-logo {
    font-family: var(--font-logo);
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
    color: var(--color-accent-cyan);
}

/* Common Components */
.btn-premium,
.btn-premium2 {
    background: linear-gradient(135deg, var(--color-primary-dark), #1a3c5e);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-premium:hover,
.btn-premium2:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(17, 42, 70, 0.2);
    color: var(--color-accent-cyan);
}

.btn-outline-premium {
    background: transparent;
    color: var(--color-primary-dark);
    border: 2px solid var(--color-primary-dark);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

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

/* Background Quotes (Fixed) */
.fixed-quote-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 6rem 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

}

.fixed-quote-overlay {
    background: rgba(17, 42, 70, 0.262);
    /* Dark overlay */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.quote-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
}

.quote-content h3 {
    font-family: var(--font-logo);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary-dark);
}

.quote-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(17, 42, 70, 0.98);
    backdrop-filter: blur(10px);
    color: white;
    padding: 25px 20px;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h4 {
    color: var(--color-accent-cyan);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-banner-text a {
    color: var(--color-accent-cyan);
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--color-accent-cyan), #33d9f6);
    color: var(--color-primary-dark);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(51, 217, 246, 0.4);
}

.cookie-btn-decline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 20px 15px;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .cookie-banner-text {
        min-width: 100%;
    }

    .cookie-banner-text h4 {
        font-size: 1.1rem;
    }

    .cookie-banner-text p {
        font-size: 0.9rem;
    }

    .cookie-banner-buttons {
        justify-content: center;
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.floating-whatsapp img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 10px #666;
}

/* Ensure it stays above cookie banner */
/* Initially at bottom, but if cookie banner shows, it might overlap. */
/* Let's set a safe bottom margin */
.floating-whatsapp {
    bottom: 10px;
}

@media (max-width: 768px) {
    .floating-whatsapp {
        width: 50px;
        height: 50px;
        bottom: 10px;
        right: 10px;
    }

    .floating-whatsapp img {
        width: 28px;
        height: 28px;
    }
}
