/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-blue: #0A2E5C;
    --accent-cyan: #00B4D8;
    --light-silver: #F8F9FA;
    --text-dark: #212529;
    --text-light: #FFFFFF;
    --text-muted: #6C757D;
    --success-green: #28A745;
    --error-red: #DC3545;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--text-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* =========================================
   2. UTILITIES & LAYOUT
   ========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 2rem;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-cyan);
    color: var(--primary-blue);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #0096b4;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--primary-blue);
    color: var(--text-light);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
.header {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
}

.logo-text span {
    color: var(--accent-cyan);
}

.nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    position: relative;
    transition: var(--transition);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-blue);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    display: none;
}

.nav-menu.active {
    display: flex;
}

.nav-link {
    padding: 0.75rem 1rem;
    color: var(--text-light);
    font-weight: 600;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-cyan);
}

.nav-cta {
    margin-top: 1rem;
}

/* =========================================
   4. HERO SECTIONS
   ========================================= */
.hero, .page-hero {
    position: relative;
    background-color: var(--primary-blue);
    color: var(--text-light);
    text-align: center;
    padding: 4rem 0;
    /* Placeholder for hero image background */
    background-image: linear-gradient(rgba(10, 46, 92, 0.8), rgba(10, 46, 92, 0.8)), url('../images/hero-home.jpg');
    background-size: cover;
    background-position: center;
}

.page-hero {
    padding: 3rem 0;
}

.hero-title, .page-hero-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle, .page-hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   5. SECTIONS (Features, Services, etc.)
   ========================================= */
section {
    padding: 3rem 0;
}

.features, .services-preview, .why-us, .testimonials, .packages, .addons, .how-it-works, .faq, .contact, .map-section, .service-area {
    background-color: var(--light-silver);
}

.features-grid, .services-grid, .why-us-grid, .testimonials-grid, .packages-grid, .addons-grid, .steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-card, .service-card, .why-us-card, .testimonial-card, .package-card, .addon-item, .step-card {
    background: var(--text-light);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.package-card.featured {
    border: 2px solid var(--accent-cyan);
    position: relative;
}

.package-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-cyan);
    color: var(--primary-blue);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
}

.package-price {
    margin: 1rem 0;
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-blue);
    font-weight: 700;
}

.package-features {
    text-align: left;
    margin-bottom: 1.5rem;
}

.package-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.package-features li::before {
    content: '✓';
    color: var(--success-green);
    margin-right: 0.5rem;
    font-weight: bold;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    text-align: left;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.testimonial-name {
    font-weight: 700;
    color: var(--primary-blue);
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.testimonial-rating {
    color: #FFD700;
    margin-bottom: 0.5rem;
    text-align: left;
}

/* FAQ */
.faq-item {
    background: var(--text-light);
    margin-bottom: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 1rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

details[open] .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
}

/* =========================================
   6. CONTACT & FORMS
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-details h4 {
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.required {
    color: var(--error-red);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.25);
}

.form-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    display: none;
}

.form-status.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
}

.form-status.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
}

/* =========================================
   7. FOOTER
   ========================================= */
.footer {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
}

.footer-links li, .footer-contact li {
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal {
    margin-top: 1rem;
}

.footer-legal a {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal a:hover {
    color: var(--accent-cyan);
}

/* =========================================
   8. LEGAL PAGES
   ========================================= */
.legal-page {
    padding: 3rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal-page h1 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.legal-page .last-updated {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-style: italic;
}

.legal-page h2 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-page p, .legal-page li {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.legal-page ul {
    list-style: disc;
    padding-left: 1.5rem;
}

/* =========================================
   9. MEDIA QUERIES (Tablet & Desktop)
   ========================================= */
@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        width: auto;
        background: transparent;
        flex-direction: row;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .nav-cta {
        margin-top: 0;
        margin-left: 1rem;
    }

    .hero-title, .page-hero-title {
        font-size: 3rem;
    }

    .features-grid, .services-grid, .why-us-grid, .packages-grid, .addons-grid, .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid, .services-grid, .why-us-grid, .packages-grid, .addons-grid, .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero, .page-hero {
        padding: 6rem 0;
    }
}

/* Accessibility: Focus visible */
:focus-visible {
    outline: 3px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}