﻿:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --light: #f8fafc;
    --text: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { color: var(--text); line-height: 1.7; background: var(--light); font-size: 16px; }
h1, h2, h3, h4 { color: var(--primary); line-height: 1.2; font-weight: 700; }
a { text-decoration: none; color: var(--accent); transition: all 0.2s ease; }

/* Header & Nav */
header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; }
.header-container { max-width: 1400px; margin: 0 auto; padding: 0 5%; height: 80px; display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.logo span { color: var(--accent); }

/* Desktop Navigation */
.main-nav { display: flex; align-items: center; gap: 2.5rem; height: 100%; }
.nav-links { list-style: none; display: flex; gap: 2.5rem; align-items: center; margin: 0; padding: 0; height: 100%; }
.nav-links li { height: 100%; display: flex; align-items: center; }
.nav-links a { color: var(--primary); font-weight: 500; font-size: 0.95rem; height: 100%; display: flex; align-items: center; padding: 0 0.5rem; }
.nav-links a:hover { color: var(--accent); }

/* Desktop Dropdown */
.dropdown { position: relative; }
.dropdown-menu { 
    display: none; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    background: var(--white); 
    min-width: 260px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
    border-radius: 0 0 8px 8px; 
    border: 1px solid var(--border); 
    border-top: none;
    padding: 0;
    z-index: 100; 
    list-style: none; 
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li { height: auto; }
.dropdown-menu li a { display: block; padding: 1rem 1.5rem; color: var(--text); font-weight: 400; height: auto; border-bottom: 1px solid var(--light); }
.dropdown-menu li a:hover { background: var(--light); color: var(--accent); padding-left: 2rem; }

/* Buttons */
.btn { display: inline-block; padding: 0.875rem 1.75rem; border-radius: 6px; font-weight: 600; text-align: center; cursor: pointer; transition: all 0.3s; height: auto; line-height: 1; }
.btn-primary { background: var(--accent); color: var(--white); border: 2px solid var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }

/* Hero */
.hero { background: var(--primary); color: var(--white); padding: 8rem 5%; text-align: center; position: relative; overflow: hidden; }
.hero h1 { font-size: 4rem; color: var(--white); margin-bottom: 1.5rem; letter-spacing: -1.5px; }
.hero p { font-size: 1.25rem; color: #94a3b8; margin-bottom: 2.5rem; font-weight: 300; }

/* Internal Page Header */
.page-header { background: var(--primary-light); color: var(--white); padding: 5rem 5%; text-align: center; border-bottom: 4px solid var(--accent); }
.page-header h1 { font-size: 3rem; color: var(--white); margin-bottom: 1rem; }
.page-header p { font-size: 1.15rem; color: #94a3b8; max-width: 700px; margin: 0 auto; }

/* Desktop Grid Layout (Flexbox for absolute compatibility) */
.container { max-width: 1400px; margin: 0 auto; padding: 5rem 5%; }
.content-grid { display: flex; flex-wrap: nowrap; gap: 4rem; align-items: flex-start; }
.main-content { flex: 0 0 65%; }
.sidebar { flex: 0 0 calc(35% - 4rem); background: var(--white); padding: 2.5rem; border-radius: 12px; border: 1px solid var(--border); position: sticky; top: 120px; }

.main-content h2 { font-size: 2rem; margin-bottom: 1.5rem; margin-top: 2.5rem; }
.main-content h2:first-child { margin-top: 0; }
.main-content p { margin-bottom: 1.5rem; font-size: 1.1rem; color: var(--text); }
.main-content ul { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.main-content li { margin-bottom: 0.5rem; font-size: 1.1rem; }

.sidebar h3 { font-size: 1.5rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--light); }
.sidebar-links { list-style: none; }
.sidebar-links li { margin-bottom: 1rem; }
.sidebar-links a { display: block; color: var(--text); padding: 0.5rem 0; border-bottom: 1px solid var(--light); font-weight: 500; }
.sidebar-links a:hover { color: var(--accent); padding-left: 10px; }
.sidebar-contact { margin-top: 2rem; background: var(--light); padding: 1.5rem; border-radius: 8px; text-align: center; }
.sidebar-contact p { margin-bottom: 1rem; font-size: 0.95rem; }

/* Services Grid (Homepage) */
.services-section { padding: 6rem 5%; background: var(--white); }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 4rem; letter-spacing: -1px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; max-width: 1400px; margin: 0 auto; }
.service-card { background: var(--light); padding: 3rem 2.5rem; border-radius: 16px; transition: all 0.4s ease; border: 1px solid transparent; }
.service-card:hover { background: var(--white); transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: var(--border); }
.service-card h3 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.service-card p { color: var(--text-light); margin-bottom: 2rem; }
.service-card .read-more { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem; }

/* Footer */
footer { background: var(--primary); color: var(--white); padding: 4rem 5%; text-align: center; }
footer p { color: #64748b; }

/* Mobile Menu Toggle */
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--primary); padding: 0.5rem; }

/* ========================================= */
/* MOBILE & TABLET PORTRAIT RESPONSIVENESS   */
/* ========================================= */
@media (max-width: 991px) {
    /* Header & Mobile Menu */
    .mobile-menu-toggle { display: block; }
    
    .main-nav {
        position: absolute; top: 100%; left: 0; width: 100%; background: var(--white);
        flex-direction: column; align-items: flex-start; padding: 0;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        display: none !important; border-top: 1px solid var(--border); height: auto;
    }
    
    .main-nav.nav-active { display: flex !important; }
    
    .nav-links { flex-direction: column; width: 100%; gap: 0; align-items: flex-start; height: auto; }
    .nav-links li { display: block; width: 100%; border-bottom: 1px solid var(--light); height: auto; }
    .nav-links a { display: block; padding: 1.25rem 5%; width: 100%; height: auto; }
    
    /* Disable Desktop Hover on Mobile */
    .dropdown:hover .dropdown-menu { display: none; }
    
    /* Mobile Dropdown Logic */
    .dropdown-menu {
        position: static; box-shadow: none; border: none; border-radius: 0;
        background: var(--light); display: none !important; padding: 0;
    }
    .dropdown-menu.show-dropdown { display: block !important; }
    .dropdown-menu li a { padding-left: 10%; font-size: 0.9rem; }
    
    .mobile-btn { margin: 1.5rem 5%; width: 90%; }
    
    /* Layout Adjustments */
    .hero h1 { font-size: 2.5rem; }
    .page-header h1 { font-size: 2.5rem; }
    
    /* Force Grid to Stack on Mobile */
    .content-grid { flex-direction: column; flex-wrap: wrap; }
    .main-content { flex: 1 1 100%; width: 100%; }
    .sidebar { flex: 1 1 100%; position: static; margin-top: 2rem; width: 100%; }
}
/* Final Mobile Spacing Tweaks */
.hero-btn-2 { margin-left: 1rem; }

@media (max-width: 991px) {
    .content-grid { gap: 2rem !important; }
    .sidebar { margin-top: 0 !important; }
    
    .hero-btn-2 { margin-left: 0; margin-top: 2rem; display: block; width: 100%; max-width: 300px; margin-left: auto; margin-right: auto; }
    .hero .btn-primary { display: block; width: 100%; max-width: 300px; margin-left: auto; margin-right: auto; }
}

/* Smooth Scrolling & Fixed Header Offset */
html { scroll-behavior: smooth; }
section[id], div[id] { scroll-margin-top: 100px; }

/* Contact Form Styles */
.contact-form { background: var(--white); padding: 3rem; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.02); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { font-weight: 600; margin-bottom: 0.5rem; color: var(--primary); font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea { padding: 0.875rem 1rem; border: 1px solid var(--border); border-radius: 6px; font-size: 1rem; font-family: 'Inter', sans-serif; transition: all 0.2s; background: var(--light); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 2rem 1.5rem; }
}

/* WhatsApp Floating Widget */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center; font-size: 30px; box-shadow: 0 10px 20px rgba(37,211,102,0.3); z-index: 9999; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; transition: all 0.3s ease; }
.whatsapp-float:hover { transform: translateY(-5px); box-shadow: 0 15px 25px rgba(37,211,102,0.4); color: white; }
@media (max-width: 768px) {
    .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 26px; }
}
