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

:root {
    --primary-blue: #0093D6;
    --dark-blue: #004B8D;
    --accent-red: #E43B35;
    --light-bg: #f8f9fa;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.mobile-only, .close-drawer {
    display: none;
}

.grid {
    display: grid;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.btn-primary:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background-color: var(--accent-red);
    color: var(--white);
}

.btn-accent:hover {
    background-color: #c32d27;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

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

/* Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

/* iOS tap-delay & highlight fix for all interactive elements */
button,
a,
[role="button"] {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.top-bar {
    background: var(--dark-blue);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.nav-container {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 65px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
    margin: 0 20px; /* Added space between logo and button */
}

.nav-links li {
    position: relative;
}

.hero-btns, .cta-btns {
    display: flex;
    gap: 20px;
}

.cta-btns {
    justify-content: center;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    position: relative;
    padding: 15px 0;
    transition: var(--transition);
}

.nav-links a i:first-child {
    font-size: 1.1rem;
    color: var(--primary-blue);
    opacity: 0.85;
}

.nav-links a i.fa-chevron-down {
    font-size: 0.65rem;
    margin-left: 2px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

/* Mega Menu Styles */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--primary-blue);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.nav-links li:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    top: 100%;
}

.mega-menu h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.mega-menu ul li {
    margin-bottom: 8px;
}

.mega-menu ul li a {
    font-weight: 400;
    color: var(--text-dark);
    font-size: 0.9rem;
    padding: 0;
}

.mega-menu ul li a:hover {
    color: var(--primary-blue);
    padding-left: 5px;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: var(--transition);
}

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

.nav-links li:hover a i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Hero Slider */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    margin-top: 125px;
    /* offset for header: 95px (nav) + 31px (top-bar) approx */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    max-width: 600px;
}

/* Form Popup */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
}

/* Footer */
footer {
    background: #111;
    color: #eee;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.designed-by {
    font-size: 0.85rem;
    color: #aaa;
    letter-spacing: 0.2px;
}

.designed-by a:hover {
    text-decoration: underline;
    opacity: 0.85;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px;
    }

    .nav-container {
        height: 75px;
    }

    .logo img {
        height: 55px;
    }

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

    .menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px); /* Safari support */
        z-index: 10001; /* Above header, below drawer */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease;
        cursor: pointer;
    }

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

    .nav-links {
        /* Always display:flex on mobile — use transform to hide/show */
        /* display:none blocks CSS transitions, so we use translateX instead */
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        height: 100dvh;                    /* iOS dynamic viewport height */
        background: var(--white);
        gap: 0;
        padding: 0;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        z-index: 10002;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        /* Push off-screen to the RIGHT — invisible but ready */
        transform: translateX(110%);
        visibility: hidden;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0.35s linear;
    }

    .nav-links.mobile-active {
        transform: translateX(0);          /* Slide IN */
        visibility: visible;
    }

    .close-drawer {
        display: block !important;
    }

    .mobile-only {
        display: block !important;
    }

    .mega-menu {
        display: none;
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        padding: 10px 20px;
        box-shadow: none;
        border-top: none;
        grid-template-columns: 1fr;
        transform: none;
    }

    .nav-links li.active .mega-menu {
        display: block;
    }

    .mega-menu h4 {
        font-size: 0.95rem;
        margin-top: 15px;
    }

    .nav-actions {
        display: none;
    }

    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        z-index: 1001; /* Above header content, below drawer */
        min-width: 44px;  /* Apple HIG minimum tap target */
        min-height: 44px; /* Apple HIG minimum tap target */
        padding: 8px;
        border-radius: 6px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        cursor: pointer;
    }

    body.menu-open .mobile-toggle {
        display: none !important;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links li a {
        display: flex;
        align-items: center;
        padding: 18px 20px;
        width: 100%;
        font-weight: 600;
        font-size: 1.05rem;
        color: var(--text-dark);
    }

    .nav-links li a i:first-child {
        color: var(--primary-blue);
        font-size: 1.2rem;
    }

    .nav-links li a i.fa-chevron-down {
        margin-left: auto;
        transition: transform 0.3s ease;
        padding: 10px; /* Larger hit area */
    }

    .nav-links li.active > a i.fa-chevron-down {
        transform: rotate(180deg);
    }

    /* Grid stacking */
    .grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
        width: 100% !important;
    }

    .section-padding {
        padding: 50px 0;
    }
}

@media (max-width: 768px) {

    /* ── Top bar ───────────────────────────────────────────────────── */
    .top-bar {
        display: none !important;
    }

    /* ── WhatsApp float ─────────────────────────────────────────────── */
    .whatsapp-float {
        right: 20px !important;
        bottom: 20px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 25px !important;
    }

    /* ── Footer bottom — stack centered on mobile ──────────────── */
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    /* ── Hero ──────────────────────────────────────────────────────────
       ROOT CAUSE FIX:
       .slide has position:absolute + height:100%. By CSS spec, percentage
       height on absolutely-positioned children needs an EXPLICIT height on
       the parent — min-height alone doesn't work. So the slide collapses
       to 0px and overflow:hidden clips the buttons.
       Fix: use an explicit height (100svh) not height:auto.
       svh = small viewport height = excludes iOS browser chrome.
    ────────────────────────────────────────────────────────────────── */
    .hero {
        height: 92svh !important;          /* svh = excludes iOS address bar */
        height: 92vh !important;           /* fallback for older browsers    */
        min-height: 550px !important;      /* floor for very small devices   */
        padding: 0 !important;
        margin-top: 75px !important;
        overflow: hidden;
    }

    /* Slide fills the hero exactly — height:100% now resolves correctly */
    .slide {
        min-height: unset;
    }

    /* Hero-content fills slide, centers items vertically */
    .hero-content {
        height: 100% !important;           /* fills the slide */
        min-height: unset !important;
        padding: 40px 15px !important;     /* breathing room + side padding  */
        justify-content: center !important;
        box-sizing: border-box;
    }

    /* ── Typography ─────────────────────────────────────────────────── */
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 16px;
    }

    .hero-content p {
        font-size: 1.05rem;
        margin-bottom: 24px;
    }

    /* ── Hero buttons — stacked & full-width ────────────────────────── */
    .hero-btns,
    .cta-btns {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 340px;
    }

    .hero-btns .btn,
    .cta-btns .btn {
        width: 100% !important;
        text-align: center !important;
        padding: 15px 20px !important;
        font-size: 0.9rem !important;
    }
}


@media (max-width: 992px) {

    .nav-links {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        background: #ffffff;
        padding: 0;
        z-index: 10002;

        transform: translateX(110%);
        visibility: hidden;

        transition: transform 0.35s ease, visibility 0.35s;
    }

    .nav-links.mobile-active {
        transform: translateX(0);
        visibility: visible;
    }

    .menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.6);
        z-index: 10001;

        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
    }

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

    .mobile-toggle {
        display: flex !important;
        font-size: 1.8rem;
        cursor: pointer;
    }
    .nav-links.mobile-active {
        transform: translateX(0);
        visibility: visible;
    }

    .mega-menu {
        max-height: 0;
        overflow: hidden;
        transition: 0.3s ease;
        display: block !important;
    }

    .nav-links li.active .mega-menu {
        max-height: 500px;
    }
}



