/* ============================================
   Elite Tech UAE - Main Stylesheet
   Version: 2.0.0
   Mobile-First Responsive Design
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --primary: #0056D2;
    --primary-dark: #003F9E;
    --primary-light: #E8F0FE;
    --secondary: #FF6B00;
    --secondary-dark: #E05E00;
    --dark: #1A1A2E;
    --text: #333333;
    --text-light: #666666;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --border: #E0E0E0;
    --success: #28A745;
    --error: #DC3545;
    --whatsapp: #25D366;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 0.75em;
    font-weight: 700;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1em; }

ul, ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
}

/* --- Container --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

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

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

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: var(--white);
}

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

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

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
    border-color: var(--whatsapp);
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- Top Bar --- */
.top-bar {
    background: var(--dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

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

.top-bar-icon {
    margin-right: 4px;
}

.top-bar-right {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* --- Header --- */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-logo a {
    display: flex;
    align-items: center;
}

.site-title-link {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
}

.logo-elite { color: var(--primary); }
.logo-tech { color: var(--dark); }
.logo-uae { color: var(--secondary); }

/* --- Navigation --- */
.primary-nav .nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 4px;
}

.primary-nav .nav-menu li {
    position: relative;
}

.primary-nav .nav-menu > li > a {
    display: block;
    padding: 10px 14px;
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    border-radius: var(--radius);
}

.primary-nav .nav-menu > li > a:hover,
.primary-nav .nav-menu > li.current-menu-item > a {
    color: var(--primary);
    background: var(--primary-light);
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 2px;
}

/* Dropdown */
.primary-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    min-width: 240px;
    padding: 8px 0;
    list-style: none;
    z-index: 1001;
}

.primary-nav .nav-menu li:hover > .sub-menu {
    display: block;
}

.primary-nav .sub-menu li a {
    display: block;
    padding: 8px 20px;
    color: var(--text);
    font-size: 14px;
}

.primary-nav .sub-menu li a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Header CTA */
.header-cta .btn {
    padding: 10px 20px;
    font-size: 14px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    background: var(--white);
    padding: 20px;
    border-top: 1px solid var(--border);
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
}

.mobile-nav-menu li a {
    display: block;
    padding: 12px 0;
    color: var(--text);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-menu .sub-menu {
    list-style: none;
    padding-left: 20px;
}

.mobile-nav-menu .sub-menu li a {
    font-size: 14px;
    color: var(--text-light);
}

.mobile-menu-cta {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* --- Breadcrumb --- */
.breadcrumb-bar {
    background: var(--light);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary);
}

.breadcrumb-sep {
    margin: 0 8px;
    color: var(--border);
}

.breadcrumb-current {
    color: var(--text);
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero-section h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-section .btn-primary {
    background: var(--secondary);
    border-color: var(--secondary);
}

.hero-section .btn-primary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

.hero-section .btn-outline {
    color: var(--white);
    border-color: var(--white);
}

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

/* --- Section Styles --- */
.section {
    padding: 60px 0;
}

.section-light {
    background: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

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

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Card Grid --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-light);
    font-size: 15px;
}

.card .card-link {
    display: inline-block;
    margin-top: 12px;
    font-weight: 600;
    color: var(--primary);
}

.card .card-link:hover {
    color: var(--primary-dark);
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
}

.feature-icon {
    color: var(--primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

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

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--light);
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    background: var(--primary-light);
}

.faq-arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
}

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

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 16px 20px;
    max-height: 500px;
}

/* --- Contact Form --- */
.contact-form-section {
    background: var(--light);
    padding: 60px 0;
}

.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.form-wrapper h2 {
    margin-bottom: 8px;
}

.form-wrapper > p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.elitetech-contact-form {
    text-align: left;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--dark);
}

.required {
    color: var(--error);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 15px;
    color: var(--text);
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.form-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--radius);
    display: none;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    display: block;
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.form-message.error {
    display: block;
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

/* --- CTA Banner --- */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}

.cta-banner h2 {
    color: var(--white);
    margin-bottom: 12px;
}

.cta-banner p {
    opacity: 0.9;
    margin-bottom: 24px;
}

.cta-banner .btn {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
}

/* --- Stats Section --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-item p {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

/* --- Blog / Post Styles --- */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 40px 0;
}

.posts-grid {
    display: grid;
    gap: 24px;
}

.post-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.post-card:hover {
    box-shadow: var(--shadow-lg);
}

.post-card-content {
    padding: 24px;
}

.post-card h2 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.post-card h2 a {
    color: var(--dark);
}

.post-card h2 a:hover {
    color: var(--primary);
}

.post-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.meta-sep {
    margin: 0 8px;
}

.read-more {
    font-weight: 600;
    font-size: 14px;
}

.blog-sidebar .widget {
    background: var(--light);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

/* --- 404 Page --- */
.error-404 {
    text-align: center;
    padding: 80px 0;
}

.error-404 h1 {
    font-size: 6rem;
    color: var(--primary);
    margin-bottom: 0;
}

.error-404 h2 {
    margin-bottom: 16px;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 24px 0;
}

.error-search {
    max-width: 500px;
    margin: 30px auto;
}

.error-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Footer --- */
.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 16px;
}

.mt-20 {
    margin-top: 20px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-contact p {
    margin-bottom: 6px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--whatsapp);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* --- Page Content --- */
.page-content {
    padding: 40px 0;
}

.page-content .container {
    max-width: 900px;
}

/* --- Two Column Layout --- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* --- Pricing Table --- */
.pricing-highlight {
    background: var(--primary-light);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    margin: 20px 0;
}

.pricing-highlight .price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .primary-nav,
    .header-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

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

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

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

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

    .hero-section h1 {
        font-size: 1.875rem;
    }

    .section {
        padding: 40px 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .top-bar-right {
        display: none;
    }

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

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .error-actions {
        flex-direction: column;
    }
}
