/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    /* Colors */
    --primary: #2D88ED;
    --primary-hover: #1E66B8;
    --dark-bg: #07162C;
    --text-main: #1C355E;
    --text-muted: #6B7A90;
    --text-light: #FFFFFF;
    --bg-light: #F4F7FA;
    --border-color: #E2E8F0;
    --success: #4B90E2; /* Blue checkmarks */

    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --section-padding: 80px 20px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-blue: 0 8px 24px rgba(45, 136, 237, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for fixed header */
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    line-height: 1.6;
    background-color: #FFFFFF;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

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

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

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 2rem; }
.bg-light { background-color: var(--bg-light); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(45, 136, 237, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(45, 136, 237, 0.3);
}

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

.btn-outline-primary:hover {
    background-color: rgba(45, 136, 237, 0.05);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

.btn-package {
    width: 100%;
    background-color: var(--primary);
    color: white;
    margin-top: auto;
}

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

.btn-book-now {
    padding: 12px 40px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

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

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown .arrow {
    font-size: 0.7em;
    margin-left: 4px;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: white;
    min-width: 160px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: var(--text-main);
}

.dropdown-content a::after {
    display: none;
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.phone-btn {
    background-color: var(--bg-light);
    border: none;
    gap: 8px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: url('assets/hero_bg.png'); /* Dynamic Background Image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding-top: 80px; /* offset for header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(7, 22, 44, 0.9) 0%, rgba(7, 22, 44, 0.6) 50%, rgba(7, 22, 44, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    margin-left: 0;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: #E2E8F0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #CBD5E1;
    line-height: 1.7;
}

.trust-badges {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.badge .check {
    background-color: white;
    color: var(--dark-bg);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

/* ==========================================================================
   Packages / Services Section
   ========================================================================== */
.packages-section {
    padding: var(--section-padding);
}

.section-header {
    max-width: 800px;
    margin: 0 auto 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.deposit-note {
    margin-top: 20px;
    font-size: 0.95rem;
}

.small-trust {
    margin-top: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.package-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

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

.package-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
}

.package-card.popular:hover {
    transform: scale(1.02) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.package-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.package-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
}

.package-split {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.package-features {
    text-align: left;
    margin-bottom: 30px;
    flex-grow: 1;
}

.package-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-main);
}

.check-blue {
    color: var(--primary);
    font-weight: bold;
}

.warranty-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 15px;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
    padding: var(--section-padding);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: #E8EEF5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.feature-item:hover .icon-wrapper {
    transform: scale(1.1);
}

.feature-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner {
    background-color: var(--dark-bg);
    color: white;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(45,136,237,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.stars {
    color: #F5A623;
    font-size: 1.5rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.stats-text {
    font-size: 0.9rem;
    color: #A0AEC0;
    margin-bottom: 20px;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.cta-banner .btn-primary {
    box-shadow: var(--shadow-blue);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    padding: var(--section-padding);
}

.contact-container {
    max-width: 700px;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.badge-pill {
    display: inline-block;
    background-color: white;
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
}

.contact-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: var(--text-main);
    color: white;
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-logo svg path {
    fill: white;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

.footer-col ul li a {
    color: #A0AEC0;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #A0AEC0;
    font-size: 0.9rem;
}

/* ==========================================================================
   Back to top
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .nav-links, .nav-actions {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile Menu Open State */
    .mobile-menu-open .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: var(--shadow-md);
        align-items: flex-start;
    }

    .mobile-menu-open .nav-actions {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 300px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        align-items: stretch;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding-left: 20px;
    }

    .dropdown:hover .dropdown-content, .dropdown:active .dropdown-content {
        display: block;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .packages-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .package-card.popular {
        transform: none;
    }
    
    .package-card.popular:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .trust-badges {
        justify-content: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
}

/* ==========================================================================
   Popup
   ========================================================================== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    width: 50vw;
    height: 50vh;
    max-width: 800px;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    color: var(--text-main);
}

.popup-overlay.show .popup-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-btn:hover {
    color: var(--text-main);
}

.popup-logo {
    max-height: 50px;
    margin-bottom: 20px;
}

.popup-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.popup-content p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 1rem;
}

.popup-phone {
    display: inline-block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 10px 0 20px;
}

.popup-hours {
    font-size: 0.95rem !important;
    font-weight: 600;
    margin-bottom: 0 !important;
}

/* Ensure mobile popup overrides base styles */
@media (max-width: 768px) {
    .popup-content {
        width: 90vw;
        height: auto;
        min-height: 40vh;
        padding: 40px 20px;
    }
    .popup-phone {
        font-size: 1.6rem;
    }
}
