/* =========================================
   1. GLOBAL VARIABLES & RESET (The Billion-Dollar Palette)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
    /* Color Palette: Deep Navy & Muted Gold */
    --primary-color: #0a2540;      /* Authority: Deep Navy */
    --secondary-color: #c5a059;    /* Prestige: Muted Gold */
    --accent-color: #0056b3;       /* Action: Bright Blue */
    
    --text-dark: #1a1a1a;
    --text-light: #f4f4f4;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    
    /* Layout & Spacing */
    --section-padding: 80px 0;
    --border-radius: 4px; /* Sharp corners = Professionalism */
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden; /* Prevents horizontal scrollbar */
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif; /* The "Legal Authority" Font */
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. TOP BAR (The "Always Available" Strip)
   ========================================= */
.top-bar {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info span {
    margin-right: 25px;
}

.top-info i {
    color: var(--secondary-color);
    margin-right: 8px;
}

.social-link {
    color: var(--text-light);
    margin-left: 15px;
}

.social-link:hover {
    color: var(--secondary-color);
}

/* =========================================
   3. HEADER & NAVIGATION (Sticky & Premium)
   ========================================= */
.main-header {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky; /* Keeps menu visible while scrolling */
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

/* Logo Styling */
.logo-container a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-spin img {
    height: 50px;
    width: auto;
    /* Slow, dignified spin on hover */
    transition: transform 0.8s ease; 
}

.logo-container:hover .logo-spin img {
    transform: rotate(360deg);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Nav Menu */
.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 5px;
}

/* The "Talkative" Underline Effect */
.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* CTA Button in Menu */
.cta-link {
    background-color: var(--secondary-color);
    color: var(--primary-color) !important;
    padding: 10px 25px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.cta-link:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

.cta-link::after { display: none; } /* No underline for button */

/* --- Mega Menu (Premium Wide Dropdown) --- */
.nav-services-dropdown {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%; /* Directly below nav */
    left: -250px; /* Centered relative to parent */
    width: 900px; /* Wide premium look */
    background: var(--white);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    border-top: 4px solid var(--secondary-color);
    padding: 30px;
    z-index: 999;
}

.nav-services-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.menu-column h4 {
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.menu-column h4 i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.menu-column ul li {
    margin-bottom: 12px;
}

.menu-column ul li a {
    font-size: 0.95rem;
    color: #555;
    font-weight: 400;
}

.menu-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px; /* Subtle movement */
}

/* =========================================
   4. HERO SECTION (Static & Authoritative)
   ========================================= */
.hero-static {
    position: relative;
    height: 85vh; /* Dominates the first screen */
    background: linear-gradient(135deg, #0a2540 0%, #1e3c72 100%); /* Fallback / Design choice */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Optional: If you add a background image later */
/* .hero-static { background: url('images/hero-bg.jpg') center/cover; } */

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 37, 64, 0.6); /* Ensures text readability */
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.8rem;
    color: var(--white);
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
}

/* Button Standards */
.btn {
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    display: inline-block;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-outline-light {
    border-color: var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* =========================================
   5. STATS BAR (Social Proof)
   ========================================= */
.stats-bar {
    background-color: var(--primary-color);
    padding: 50px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-label {
    color: var(--white);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    margin-top: 5px;
    opacity: 0.8;
}

/* =========================================
   6. SECTIONS & CARDS (The "Talkative" UI)
   ========================================= */
.section-padding { padding: var(--section-padding); }
.section-padding-sm { padding: 40px 0; }

.bg-light-blue { background-color: #f4f6f9; }
.bg-dark { background-color: var(--primary-color); color: white; }
.bg-partner { background-color: #fffbf0; border-top: 1px solid #ffeeba; }

.text-center { text-align: center; }

.subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 60px auto;
    line-height: 1.6;
}

/* Grid Layouts */
.value-grid, .area-grid, .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

/* Card Styling - Talkative Hover Effects */
.value-card, .area-card, .testimonial-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid transparent; /* Hidden accent */
}

/* The Lift Effect */
.value-card:hover, .area-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-bottom-color: var(--secondary-color); /* Reveal gold accent */
}

.value-icon, .area-card i {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}
.area-card i { color: var(--secondary-color); }

.value-card h4, .area-card h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.value-card p, .area-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}

/* Partner Section */
.partner-details-card {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-top: 40px;
    text-align: left;
    border-left: 6px solid var(--secondary-color);
}

.partner-logo-placeholder {
    flex: 0 0 150px;
    margin-right: 50px;
    text-align: center;
}

.partner-icon {
    font-size: 5rem;
    color: var(--primary-color);
}

.partner-website-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 30px;
    font-size: 0.95rem;
}

/* Testimonials */
.testimonial-card {
    background-color: #f9f9f9;
    font-style: italic;
    position: relative;
    border: 1px solid #eee;
}

.quote-icon {
    font-size: 2rem;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.client-name {
    margin-top: 25px;
    font-weight: 700;
    color: var(--primary-color);
    font-style: normal;
    font-size: 0.95rem;
}

/* =========================================
   7. FAQ ACCORDION (Interactive)
   ========================================= */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question h4 { margin: 0; font-size: 1.1rem; }
.faq-question:hover { background-color: #f9f9f9; }

.toggle-icon {
    transition: transform 0.3s ease;
    color: var(--secondary-color);
}

/* Active State (JS Toggles This) */
.faq-item.active .faq-question {
    background-color: var(--primary-color);
}
.faq-item.active .faq-question h4 { color: var(--white); }
.faq-item.active .toggle-icon { transform: rotate(180deg); color: var(--white); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    background: #fff;
}

.faq-item.active .faq-answer {
    padding: 25px;
    max-height: 500px; /* Expands smoothly */
    border-top: 1px solid #eee;
}

/* =========================================
   8. FOOTER (Professional Finish)
   ========================================= */
.main-footer {
    background-color: #051626; /* Very Dark Navy */
    color: #ccc;
    padding-top: 80px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 30px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}
/* Gold underline for footer headings */
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 2px;
    background: var(--secondary-color);
}

.contact-line {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-line i {
    color: var(--secondary-color);
    margin-top: 5px;
    margin-right: 15px;
    min-width: 20px;
}

.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a:hover { color: var(--secondary-color); padding-left: 5px; }

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    font-size: 0.85rem;
    background-color: #020d17;
}

/* =========================================
   9. FLOATING ACTION BUTTON (FAB) & MODAL
   ========================================= */
/* WhatsApp FAB */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
}

.fab-btn {
    width: 60px; height: 60px;
    border-radius: 50%;
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    transition: transform 0.3s ease;
}

.fab-btn:hover { transform: scale(1.1); }

.fab-tooltip {
    position: absolute;
    right: 75px;
    background: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.fab-btn:hover .fab-tooltip { opacity: 1; visibility: visible; }

/* Disclaimer Modal */
.disclaimer-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.disclaimer-modal.hidden {
    opacity: 0;
    visibility: hidden;
}

.modal-content {
    background: var(--white);
    width: 90%; max-width: 700px;
    padding: 40px;
    border-top: 6px solid var(--secondary-color);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    border-radius: var(--border-radius);
    text-align: left;
}

.disclaimer-text-scroll {
    max-height: 300px;
    overflow-y: auto;
    margin: 20px 0;
    padding: 15px;
    font-size: 0.95rem;
    color: #555;
    background: #f9f9f9;
    border: 1px solid #eee;
}

/* =========================================
   10. RESPONSIVE (Mobile Optimization)
   ========================================= */
@media (max-width: 992px) {
    /* Hide top bar & Mega Menu on smaller screens */
    .top-bar, .mega-menu { display: none; }
    
    .main-nav ul { flex-direction: column; background: #fff; position: absolute; top: 100%; left: 0; width: 100%; padding: 20px; box-shadow: 0 5px 10px rgba(0,0,0,0.1); display: none; }
    /* Simple mobile menu toggle logic would go here in JS */
    
    .hero-title { font-size: 2.5rem; }
    .partner-details-card { flex-direction: column; text-align: center; border-left: none; border-top: 5px solid var(--secondary-color); }
    .partner-logo-placeholder { margin: 0 0 30px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    .stats-grid { flex-direction: column; gap: 30px; }
    .hero-static { height: auto; padding: 120px 0; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 300px; }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translate3d(0, 40px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}