/* ── General Reset ── */
html {
    scroll-behavior: smooth;
}
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7751f6;
    --secondary-color: #070b3b;
    --milk-color: #eff2fb;
    --white-color: #fff;
    --black-color: #000;
}

body {
    font-family: "Montserrat", sans-serif;
    background-color: var(--secondary-color);
    color: var(--white-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem 0;
}

/* ── Typography ── */
h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-transform: capitalize;
}
h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: capitalize;
}
h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: capitalize;
}
h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: capitalize;
}
h5 {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: capitalize;
}
h6 {
    font-size: 0.8rem;
    margin-bottom: 1rem;
    text-transform: capitalize;
}
p {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: capitalize;
}
a {
    text-decoration: none;
    color: var(--white-color);
    text-transform: capitalize;
}
a:hover {
    text-decoration: underline;
}
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
li {
    margin-bottom: 0.5rem;
}


/* ── Nav ── */
nav {
    background-color: var(--secondary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ✅ FIX 1: nav-container was missing — this is why the layout broke on all sizes */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

.logo img {
    width: 150px;
    display: block;
}

.menu-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.mobile-login {
    display: none;
}

.menu-list a {
    color: var(--white-color);
    font-weight: bold;
    text-decoration: none;
}

.menu-list a:hover {
    color: var(--primary-color);
}

/* ✅ FIX 2: hamburger hidden on desktop, icons properly initialised */
.menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--white-color);
    cursor: pointer;
    z-index: 1100;
    background: none;
    border: none;
    padding: 0.25rem;
    line-height: 1;
}

/* ✅ FIX 3: close icon hidden by default via CSS (JS also controls this) */
.menu-btn #close {
    display: none;
}

/* overlay behind mobile menu */
.menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

/* ✅ KEY FIX: pointer-events always none so overlay never blocks menu link taps */
.menu-overlay.open {
    opacity: 1;
    pointer-events: none;
}

/* Desktop Login button */
.desktop-login {
    display: flex;
    align-items: center;
}


/* ── Buttons ── */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: solid 2px transparent;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    border-radius: 4px;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--white-color);
    border: solid 2px var(--white-color);
    text-decoration: none;
}


/* ── Hero / Header ── */
header {
    background-color: var(--secondary-color);
    padding: 5rem 0;
}

.header-container {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 2rem;
    align-items: center;
}

.lead {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    display: block;
}

.header-container h1 {
    margin-bottom: 1rem;
    font-weight: 500;
    max-width: 600px;
    font-size: clamp(2rem, 5vw, 3rem);
}

.header-container p {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.header-btn {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.right-container {
    display: flex;
    justify-content: center;
}

.right-container img {
    width: 100%;
    max-width: 900px;
    height: auto;
}


/* ── About ── */
.about {
    background-color: var(--milk-color);
    padding: 7rem 0;
}

.about-header {
    text-align: center;
    margin-bottom: 1rem;
}

.about-header .lead {
    margin-bottom: 1rem;
    display: inline-block;
    text-align: center;
}

.about-header h2 {
    font-size: 2.6rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.about-header p {
    color: var(--black-color);
    margin-top: 1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.data-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.data-card {
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.data-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.data-card img {
    width: 100%;
    max-width: 100px;
    height: auto;
}

.data-card h4 {
    margin-top: 1rem;
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 700;
}

.data-card ul {
    margin-top: 1rem;
    color: var(--black-color);
    list-style: none;
    padding: 0;
    width: 100%;
}

.data-card ul li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.data-card ul li:last-child {
    border-bottom: none;
}

.about-cta {
    text-align: center;
    margin-top: 1rem;
}

.btn-cta {
    display: inline-block;
}

.about-cta .btn-primary:hover {
    border: solid 2px var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}


/* ── Offer Section ── */
.offer-section {
    background-color: var(--secondary-color);
    padding: 7rem 0;
}

.offer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.offer-left img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.offer-right .lead {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.offer-right h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--white-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.offer-right p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.6rem;
}

.offer-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2rem;
    margin-bottom: 2rem;
}

.offer-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offer-features ul li {
    padding: 0.4rem 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.offer-features ul li .material-symbols-outlined {
    font-size: 1.1rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.offer-right .btn-primary {
    display: inline-block;
}


/* ── Services ── */
.services {
    background-color: var(--milk-color);
    padding: 7rem 0;
}

.services-header {
    text-align: center;
    margin-bottom: 3rem;
}

.services-header .lead {
    margin-bottom: 1rem;
    display: inline-block;
}

.services-header h2 {
    font-size: 2.6rem;
    color: var(--secondary-color);
}

.services-header p {
    color: var(--black-color);
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}


/* ── Why Us ── */
.why-us {
    background-color: var(--white-color);
    padding: 4rem 0;
}

.why-container {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 2rem;
    align-items: center;
}

.left-why-container h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.left-why-container p {
    color: var(--black-color);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.right-why-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.icon-box {
    background-color: var(--secondary-color);
    padding: 1.25rem;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.icon-box h3 {
    font-size: 1rem;
    color: var(--white-color);
    margin-bottom: 0.4rem;
}

.icon-box p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
}

.icon-wrapper img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}


/* ── Newsletter ── */
.newsletter {
    padding: 4rem 0;
    background-color: var(--white-color);
}

.newsletter-container {
    background-color: var(--primary-color);
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
}

.newsletter-container h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white-color);
    margin-bottom: 0.5rem;
}

.newsletter-container p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    align-items: center;
    max-width: 680px;
    margin: 0 auto;
    background: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.newsletter-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: transparent;
    color: #333;
}

.newsletter-form input::placeholder {
    color: #aaa;
}

.btn-signup {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.btn-signup:hover {
    background-color: var(--black-color);
    outline: 2px solid var(--white-color);
}


/* ── Footer ── */
.footer {
    background-color: var(--secondary-color);
    padding: 4rem 0 0;
    color: var(--white-color);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-brand img {
    width: 140px;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.footer-contact ul li .material-symbols-outlined {
    font-size: 1.1rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.footer-contact ul li a,
.footer-contact ul li span:not(.material-symbols-outlined) {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    background-color: var(--primary-color);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--white-color);
    margin: 0;
}

.footer-bottom a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--secondary-color);
}


/* ── WhatsApp Button ── */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: bounceIn 1s ease forwards;
}

.whatsapp-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    text-decoration: none;
}

.whatsapp-btn span {
    white-space: nowrap;
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}


/* ════════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════════ */

/* ── Tablet (max 992px) ── */
@media (max-width: 992px) {

    /* ✅ FIX 4: hamburger visible, desktop login hidden */
    .menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .desktop-login {
        display: none;
    }

    .mobile-login {
        display: block;
    }

    /* ✅ FIX 5: slide-in drawer — starts off-screen to the right */
    .menu-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--secondary-color);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 0;
        padding: 5rem 2rem 2rem;
        transition: right 0.35s ease-in-out;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        z-index: 1050;
        /* ✅ FIX 6: ensure it sits above overlay */
        overflow-y: auto;
    }

    .menu-list.open {
        right: 0;
    }

    .menu-list li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .menu-list li a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        color: var(--white-color);
    }

    .menu-list li a:hover {
        color: var(--primary-color);
        padding-left: 0.5rem;
        transition: padding 0.2s ease;
    }

    .menu-list .mobile-login {
        margin-top: 2rem;
        width: 100%;
        border-bottom: none;
    }

    .menu-list .mobile-login a {
        display: block;
        text-align: center;
        background-color: var(--primary-color);
        color: var(--white-color);
        padding: 0.85rem 1.5rem;
        border-radius: 4px;
        font-weight: 700;
        font-size: 1rem;
        border: 2px solid transparent;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .menu-list .mobile-login a:hover {
        background-color: transparent;
        border-color: var(--white-color);
    }

    /* About */
    .data-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-header h2 {
        font-size: 2rem;
    }

    /* Offer */
    .offer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .offer-left {
        display: flex;
        justify-content: center;
    }

    .offer-left img {
        max-width: 500px;
    }

    .offer-section {
        padding: 5rem 0;
    }

    /* Services */
    .cards {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Why Us */
    .why-container {
        grid-template-columns: 1fr;
    }

    .right-why-container {
        grid-template-columns: 1fr 1fr;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}


/* ── Mobile (max 768px) ── */
@media (max-width: 768px) {

    /* Hero */
    .header-container {
        grid-template-columns: 1fr;
    }

    .right-container {
        order: -1;
    }

    .left-container {
        order: 1;
        text-align: center;
    }

    .header-btn {
        justify-content: center;
    }

    .right-container img {
        max-width: 320px;
    }
}


/* ── Small Mobile (max 576px) ── */
@media (max-width: 576px) {

    /* About */
    .about {
        padding: 4rem 0;
    }

    .data-cards {
        grid-template-columns: 1fr;
    }

    .about-header h2 {
        font-size: 1.6rem;
    }

    .about-header p {
        font-size: 0.95rem;
    }

    .data-card {
        padding: 1.5rem;
    }

    /* Offer */
    .offer-left img {
        max-width: 100%;
    }

    .offer-features {
        grid-template-columns: 1fr;
    }

    .offer-right h2 {
        font-size: 1.5rem;
    }

    .offer-section {
        padding: 4rem 0;
    }

    /* Services */
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-header h2 {
        font-size: 1.8rem;
    }

    /* Why Us */
    .right-why-container {
        grid-template-columns: 1fr;
    }

    /* Newsletter */
    .newsletter-container h2 {
        font-size: 1.8rem;
    }

    .newsletter-form {
        flex-direction: column;
        border-radius: 8px;
    }

    .newsletter-form input {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .btn-signup {
        width: 100%;
        border-radius: 0 0 8px 8px;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* WhatsApp */
    .whatsapp-btn {
        padding: 0.85rem;
        border-radius: 50%;
    }

    .whatsapp-btn span {
        display: none;
    }
}