:root {
    --primary: #0066cc;
    --primary-hover: #0052a3;
    --accent: #ff6600;
    --accent-hover: #e65c00;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-body: #f8fbff;
    --font-main: 'Inter', sans-serif;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); color: var(--text-dark); background: var(--bg-body); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =========================================================
   HEADER
   ========================================================= */
header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.logo { font-size: 20px; font-weight: 800; color: var(--text-dark); display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 36px; width: auto; margin-right: 8px; }

/* Desktop Nav */
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-weight: 600; color: var(--text-dark); font-size: 15px; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--accent); }

/* Dropdown */
.nav-item.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    transform: translateY(8px);
    width: 260px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: var(--radius-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    padding: 12px 0;
    z-index: 1100;
    border: 1px solid #eee;
}
.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu a {
    display: block;
    padding: 10px 22px;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
    border-bottom: none !important;
    transition: background 0.2s;
}
.dropdown-menu a:hover {
    background: #f0f7ff;
    color: var(--primary);
}
.dropdown-toggle { display: flex; align-items: center; gap: 5px; cursor: pointer; }

/* Mobile close button (injected inside nav panel by JS) — hidden everywhere by default */
.mobile-close-btn { display: none; }

/* Mobile Menu Toggle Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
    line-height: 1;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn { padding: 12px 24px; border-radius: 6px; font-weight: 700; cursor: pointer; border: none; transition: 0.3s; font-size: 15px; text-align: center; display: inline-block; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }

/* =========================================================
   MOBILE NAV BACKDROP
   ========================================================= */
#nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040; /* Below nav panel (1050) and header (1060) */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
#nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* =========================================================
   STICKY MOBILE PHONE BANNER
   ========================================================= */
#mobile-phone-banner {
    display: none;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1584622650111-993a426fbf0a?auto=format&fit=crop&q=80&w=2000') center/cover;
    padding: 80px 0 140px;
    color: #fff;
}
.hero-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.hero-text { flex: 1; max-width: 600px; }
.hero-text h1 { font-size: 48px; line-height: 1.15; margin-bottom: 20px; font-weight: 800; }
.hero-text p { font-size: 20px; margin-bottom: 30px; font-weight: 400; color: #f0f0f0; }

/* Hero Form */
.hero-form { background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 400px; box-shadow: var(--shadow); overflow: hidden; color: var(--text-dark); flex-shrink: 0; }
.hero-form-header { background: var(--primary); color: #fff; padding: 20px; font-size: 20px; font-weight: 700; text-align: center; }
.hero-form-body { padding: 25px; display: flex; flex-direction: column; gap: 12px; }
.hero-form-body input, .hero-form-body select, .hero-form-body textarea { width: 100%; padding: 11px 14px; border: 1px solid #ddd; border-radius: 6px; font-family: inherit; font-size: 14px; }
.hero-form-body textarea { resize: vertical; min-height: 80px; }

/* =========================================================
   FEATURES
   ========================================================= */
.features { margin-top: -60px; position: relative; z-index: 10; padding-bottom: 60px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card { background: var(--primary); color: #fff; padding: 28px 18px; border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow); transition: transform 0.3s; }
.feature-card:hover { transform: translateY(-5px); }
.feature-icon { font-size: 36px; margin-bottom: 12px; color: #fff; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; font-weight: 700; }
.feature-card p { font-size: 14px; color: #e0e0e0; line-height: 1.5; }

/* =========================================================
   CAROUSEL
   ========================================================= */
.carousel-wrapper { position: relative; width: 100%; margin: 0 auto; }
.carousel-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; flex-shrink: 0; }
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s;
}
.carousel-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.carousel-prev { left: -22px; }
.carousel-next { right: -22px; }

/* =========================================================
   SERVICES
   ========================================================= */
.services { padding: 60px 0; background: #fff; }
.section-title { text-align: center; font-size: 36px; font-weight: 800; margin-bottom: 40px; color: var(--text-dark); }
.service-card { width: 340px; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid #eee; transition: box-shadow 0.3s; position: relative; }
.service-card:hover { box-shadow: var(--shadow); }
.service-img { width: 100%; height: 200px; object-fit: cover; }
.service-content { padding: 22px; }
.service-content h3 { font-size: 20px; margin-bottom: 10px; font-weight: 700; }
.service-content p { font-size: 15px; color: var(--text-light); margin-bottom: 15px; line-height: 1.6; }
.service-link { font-weight: 700; color: var(--primary); font-size: 15px; }
.service-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner { background: var(--accent); padding: 40px 20px; text-align: center; color: #fff; }
.cta-banner h2 { font-size: 28px; font-weight: 800; text-transform: uppercase; line-height: 1.3; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials { padding: 70px 0; background: var(--bg-body); }
.testimo-card { background: #fff; padding: 36px 28px; border-radius: var(--radius-lg); box-shadow: 0 4px 15px rgba(0,0,0,0.05); width: 420px; text-align: center; }
.stars { color: #FFB800; font-size: 16px; margin-bottom: 15px; }
.testimo-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 5px; color: var(--primary); }
.testimo-card .subtitle { font-size: 13px; color: var(--accent); margin-bottom: 15px; text-transform: uppercase; font-weight: 700; }
.testimo-card p { font-size: 15px; color: var(--text-light); font-style: italic; line-height: 1.7; }

/* =========================================================
   FOOTER
   ========================================================= */
footer { background: var(--primary); color: #fff; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 17px; margin-bottom: 18px; font-weight: 700; }
.footer-logo { font-size: 22px; font-weight: 800; display: flex; align-items: center; margin-bottom: 15px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: #ffffff; opacity: 0.9; transition: opacity 0.3s; }
.footer-col ul a:hover { opacity: 1; }
.social-icons { display: flex; gap: 12px; }
.social-icons a { width: 36px; height: 36px; background: rgba(255,255,255,0.15); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: background 0.3s; }
.social-icons a:hover { background: rgba(255,255,255,0.3); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; color: rgba(255,255,255,0.9); font-size: 14px; }

/* =========================================================
   UTILITIES
   ========================================================= */
.fade-up { opacity: 0; transform: translateY(20px); animation: fadeUpAnim 0.6s forwards; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
@keyframes fadeUpAnim { to { opacity: 1; transform: translateY(0); } }

/* Two column grid used across pages */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* =========================================================
   TABLET — 992px
   ========================================================= */
@media (max-width: 992px) {
    /* Nav */
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; align-items: center; }
    .d-none-mobile { display: none !important; }

    /* Mobile nav panel */
    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        z-index: 1050;
        padding: 65px 25px 30px;
        box-shadow: 4px 0 30px rgba(0,0,0,0.2);
        gap: 0;
        overflow-y: auto;
        animation: slideInLeft 0.3s ease;
    }

    /* Close (×) button inside the mobile nav panel */
    .mobile-close-btn {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 22px;
        color: var(--text-dark);
        cursor: pointer;
        padding: 6px;
        line-height: 1;
        z-index: 1;
    }
    .nav-links.mobile-open .mobile-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    @keyframes slideInLeft {
        from { transform: translateX(-100%); opacity: 0; }
        to { transform: translateX(0); opacity: 1; }
    }
    .nav-links.mobile-open a {
        padding: 14px 0;
        font-size: 17px;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }
    .nav-links.mobile-open .nav-item { width: 100%; }
    .nav-links.mobile-open .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        width: 100%;
        padding: 0 0 10px 15px;
        background: #f8fbff;
        border-radius: 0;
        /* Always override opacity/visibility — controlled by JS .open class only */
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
        border-left: 3px solid var(--primary);
        max-height: 60vh;
        overflow-y: auto;
    }
    .nav-links.mobile-open .nav-item.open .dropdown-menu { display: block; }
    .nav-links.mobile-open .dropdown-menu a { font-size: 14px; padding: 9px 0; border-bottom: none; }

    /* Hero */
    .hero { padding: 50px 0 100px; }
    .hero-inner { flex-direction: column; text-align: center; }
    .hero-text { max-width: 100%; }
    .hero-text h1 { font-size: 32px; line-height: 1.2; }
    .hero-text p { font-size: 17px; }
    .hero-form { max-width: 100%; }

    /* Features */
    .features { margin-top: 20px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }

    /* Carousel cards */
    .service-card { width: 290px; }
    .testimo-card { width: 300px; }
    .carousel-prev { left: 3px; }
    .carousel-next { right: 3px; }

    /* About / general grids */
    .grid-2 { grid-template-columns: 1fr !important; gap: 30px !important; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }

    /* Section titles */
    .section-title { font-size: 28px; }

    /* CTA */
    .cta-banner h2 { font-size: 22px; }
}

/* =========================================================
   MOBILE — 600px
   ========================================================= */
@media (max-width: 600px) {
    /* Logo — hide text, show icon only */
    .logo span { display: none; }

    /* Hero */
    .hero { padding: 40px 0 90px; }
    .hero-text h1 { font-size: 26px; }
    .hero-text p { font-size: 16px; }
    .hero-form-body { padding: 18px; }

    /* Features — stack 2 cols */
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .feature-card { padding: 20px 12px; }
    .feature-icon { font-size: 28px; margin-bottom: 8px; }
    .feature-card h3 { font-size: 14px; }
    .feature-card p { font-size: 12px; }

    /* Carousel — show 2 cards on mobile */
    .service-card { width: calc(50vw - 28px); min-width: 140px; }
    .testimo-card { width: calc(70vw - 20px); min-width: 200px; }
    /* Keep arrows visible but smaller */
    .carousel-btn { width: 34px; height: 34px; font-size: 13px; }
    .carousel-prev { left: 2px; }
    .carousel-next { right: 2px; }

    /* Disable hover-based dropdown on small screens (touch only) */
    .nav-item.dropdown:hover .dropdown-menu {
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
    }

    /* Sections padding */
    .services { padding: 40px 0; }
    .testimonials { padding: 50px 0; }
    .section-title { font-size: 24px; margin-bottom: 25px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    footer { padding: 40px 0 120px; } /* Extra bottom padding to avoid sticky banner overlap */

    /* CTA banner */
    .cta-banner { padding: 28px 16px; }
    .cta-banner h2 { font-size: 18px; }

    /* Page hero (used in inner pages) */
    .page-hero h1 { font-size: 28px !important; }
    .page-hero p { font-size: 15px !important; }

    /* Service layout (inner pages) — stack */
    .service-layout { grid-template-columns: 1fr !important; }
    .sidebar { position: relative !important; top: auto !important; }
    .main-col { padding: 25px 18px !important; }

    /* Sticky phone banner — visible on mobile */
    #mobile-phone-banner {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--accent);
        color: #fff;
        padding: 14px 20px;
        text-align: center;
        z-index: 9999;
        align-items: center;
        justify-content: center;
        gap: 12px;
        font-size: 18px;
        font-weight: 800;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
        text-decoration: none;
        transform: translateY(100%);
        transition: transform 0.4s ease;
    }
    #mobile-phone-banner.visible {
        transform: translateY(0);
    }
    #mobile-phone-banner i {
        font-size: 20px;
        animation: ringPhone 2s infinite;
    }
    @keyframes ringPhone {
        0%, 100% { transform: rotate(0deg); }
        10%, 30% { transform: rotate(-15deg); }
        20%, 40% { transform: rotate(15deg); }
        50% { transform: rotate(0deg); }
    }

    /* Geo card on location pages */
    .services-grid-mini { grid-template-columns: 1fr !important; }
}

/* =========================================================
   PRICE TABLE (araink.html)
   ========================================================= */
@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr !important; }
}
