:root {
    --primary: hsl(215, 65%, 45%);
    --primary-light: hsl(215, 65%, 95%);
    --secondary: hsl(190, 40%, 98%);
    --accent: hsl(35, 95%, 55%);
    --text-main: hsl(220, 30%, 15%);
    --text-muted: hsl(220, 15%, 45%);
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.82);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background: var(--secondary);
    background-image: radial-gradient(var(--text-muted) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    background-attachment: fixed;
    background-color: var(--secondary);
    opacity: 1;
    line-height: 1.6;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Page Loader */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-text {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    from {
        opacity: 0.5;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Top Ads Banner */
.top-ads-banner {
    background: var(--primary-light);
    color: var(--primary);
    text-align: center;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

/* Navigation */
.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.desktop-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item-link {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
}

.menu-item-link:hover {
    color: var(--primary);
}

.header-cta-btn {
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 52, 120, 0.15);
}

.header-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 52, 120, 0.25);
    background: hsl(215, 70%, 40%);
}

/* Hamburger Menu */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: var(--white);
    z-index: 2001;
    transition: var(--transition);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-menu-container.active {
    right: 0;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-menu-btn {
    align-self: flex-end;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.close-svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
    stroke-width: 2;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu-link {
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Sections General */
.section-wrapper {
    padding: 100px 0;
}

.container-wide {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: -1px;
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, hsl(215, 65%, 98%) 0%, hsl(190, 40%, 95%) 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-img-container {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.hero-img {
    width: 100%;
    display: block;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon-svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.feature-h3 {
    font-size: 1.35rem;
    margin-bottom: 16px;
}

/* Why Us Section */
.why-section {
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.why-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.check-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* Testimonials */
.testi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.testi-card {
    background: var(--secondary);
    padding: 40px;
    border-radius: 24px;
    position: relative;
}

.testi-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.testi-author {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stars-box {
    color: var(--accent);
    display: flex;
    gap: 2px;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 16px;
    border-radius: 12px;
    background: var(--white);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-trigger {
    width: 100%;
    padding: 24px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-content {
    padding: 0 24px 24px;
    display: none;
    color: var(--text-muted);
}

.faq-item.active .faq-content {
    display: block;
}

.faq-chevron {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

/* Footer */
.footer-wrapper {
    background: #111827;
    color: #f3f4f6;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-h4 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: var(--white);
}

.footer-text {
    color: #9ca3af;
    margin-bottom: 15px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-item {
    margin-bottom: 12px;
}

.footer-link {
    text-decoration: none;
    color: #9ca3af;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--white);
}

.footer-ad-note {
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 30px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright-box {
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
}

/* Cookie Popup */
.cookie-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 30px 40px;
    z-index: 5000;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-overlay.active {
    transform: translateY(0);
}

.cookie-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.cookie-btn-group {
    display: flex;
    gap: 12px;
}

.cookie-btn {
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-reject {
    background: #f3f4f6;
    color: #4b5563;
}

.btn-accept {
    background: var(--primary);
    color: var(--white);
}

/* Modal for Legal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 6000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    border-radius: 24px;
    overflow-y: auto;
    padding: 60px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

/* --- Responsive Design Improvements --- */

@media (max-width: 1200px) {
    .hero-h1 {
        font-size: 3.5rem;
    }

    .container-wide {
        width: 92%;
    }
}

@media (max-width: 1024px) {
    .section-wrapper {
        padding: 80px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        order: 2;
    }

    .hero-img-container {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-h1 {
        font-size: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .why-image-box {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {

    .desktop-menu,
    .header-cta-btn-desktop {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .header-wrapper {
        height: 70px;
    }

    .hero-h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .testi-grid {
        grid-template-columns: 1fr;
    }

    /* Footer adjustments */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Modal adjustments */
    .modal-content {
        padding: 40px 20px;
        margin: 20px;
        width: 90%;
    }

    /* Delivery scope grid */
    .delivery-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .hero-h1 {
        font-size: 2.2rem;
    }

    .hero-p {
        font-size: 1rem;
    }

    .header-cta-btn {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
    }

    .logo-link {
        font-size: 1.25rem;
    }

    .cookie-overlay {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }

    .cookie-btn-group {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
        font-size: 0.85rem;
    }

    .mobile-menu-container {
        width: 85%;
        padding: 30px;
    }

    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Product gallery in index.html needs to be updated too */
    .product-gallery-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Accessibility & UX Polishes */
button,
a {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

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