/* CSS Variables */
:root {
    --primary-color: #003366; /* Deep Blue */
    --secondary-color: #0055A4; /* Brighter Blue */
    --accent-color: #0088cc; /* Light Blue Accent */
    --text-color: #333333; /* Dark Gray/Black */
    --light-text: #666666;
    --background-white: #ffffff;
    --background-light: #f4f7fa; /* Very light blue-gray */
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --font-main: 'Inter', sans-serif;
    --max-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Global Reset (Replacing * selector) */
.global-reset, .global-reset::before, .global-reset::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.global-reset {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-center { text-align: center; }
.mb-large { margin-bottom: var(--spacing-lg); }
.mt-large { margin-top: var(--spacing-lg); }
.bg-light { background-color: var(--background-light); }
.hidden { display: none !important; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 85, 164, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 85, 164, 0.4);
}

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

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

.btn-outline {
    border: 1px solid var(--text-color);
    color: var(--text-color);
}

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

/* Page Loader */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

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

.loader-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.loader-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Top Advertisement */
.top-advertisement {
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--light-text);
    text-align: center;
}

.ad-text {
    font-weight: 500;
}

/* Header */
.main-header {
    background-color: var(--background-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

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

.logo-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.desktop-nav .nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

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

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: 0.3s;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden by default */
    width: 75%; /* User requirement */
    height: 100%;
    background-color: var(--background-white);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-logo {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.close-menu {
    font-size: 2rem;
    color: var(--text-color);
    background: none;
    border: none;
}

.mobile-nav {
    padding: 2rem 1.5rem;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-link {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 500;
}

.cta-item {
    margin-top: 1rem;
}

.mobile-cta {
    display: block;
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    /* Gradient overlay for premium feel */
    background: linear-gradient(135deg, rgba(0,51,102,0.85) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
}

.hero-btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

/* Section Styles */
.section {
    padding: var(--spacing-lg) 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.section-text {
    margin-bottom: 1.5rem;
    color: var(--light-text);
    font-size: 1.1rem;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-image {
    width: 100%;
    border-radius: var(--border-radius);
}

.shadow-effect {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.rounded-image {
    border-radius: 12px;
}

/* Features/Why Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-color);
}

.feature-icon {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    background-color: rgba(0, 85, 164, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.feature-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-text {
    color: var(--light-text);
}

.feature-wide-image {
    max-width: 80%;
    margin: 0 auto;
    border-radius: var(--border-radius);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background-color: white;
    padding: 2rem; /* Plain white for clean look */
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: var(--primary-color);
}

.author-role {
    font-size: 0.9rem;
    color: var(--light-text);
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    background-color: white;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.faq-question.active::after {
    content: '-';
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background-color: white;
}

.faq-answer.active {
    padding-bottom: 1.5rem;
    max-height: 500px; /* Arbitrary large number */
}

/* Footer */
.main-footer {
    background-color: #f8f9fa; /* Light grey footer */
    color: var(--text-color);
    padding: 4rem 0 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
}

.footer-disclaimer-box {
    background-color: white;
    border: 1px solid #e0e0e0;
    padding: 1.5rem;
    margin-bottom: 3rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: #666;
    border-left: 4px solid var(--secondary-color);
}

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

.footer-heading {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-bottom {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 0;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Cookie Modal */
.cookie-modal-overlay {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 9999;
    padding: 1.5rem;
    display: none; /* Controlled by JS */
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-modal-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.cookie-modal-content p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

/* Legal Modal */
.legal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.legal-modal-content {
    background-color: white;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    padding: 2rem;
    border-radius: var(--border-radius);
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close-legal-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-text);
}

.legal-body h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.legal-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Media Queries */
@media (max-width: 768px) {
    .desktop-nav, .header-cta-container {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }

    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-section {
        height: auto;
        padding: 6rem 0;
    }

    .section-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-wide-image {
        max-width: 100%;
    }
}
