/* ==========================================================================
   1. Base & Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    font-family: 'Poppins', sans-serif;
    background: #fafaf7;
    color: #334155;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ==========================================================================
   2. Announcement Top Bar
   ========================================================================== */
.top-bar {
    background-color: #0d2b45;
    color: #ffffff;
    padding: 10px 0;
    width: 100%;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.top-phone {
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ==========================================================================
   3. Header & Navigation (Desktop)
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    gap: 20px;
}

.header-container, .navbar {
    height: auto;
    min-height: 100px;
}

.logo {
    flex-shrink: 0;
}

.site-logo {
    height: auto;
    max-height: 90px;
    width: 100%;
    max-width: 280px;
    object-fit: contain;
    display: block;
}


nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover {
    color: #0f4c81;
}

.header-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Hide Mobile Menu Toggle on Desktop */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn .bar {
    height: 3px;
    width: 100%;
    background-color: #0d2b45;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==========================================================================
   4. Buttons & UI Elements
   ========================================================================== */
.btn,
.call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #2ecc71;
    color: white;
    padding: 16px 30px;
    border-radius: 9999px;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover,
.call-btn:hover,
button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(46, 204, 113, 0.35);
}

/* ==========================================================================
   5. Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f4c81, #3d78b5);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px;
    width: 100%;
}

.hero-content {
    max-width: 900px;
    margin: auto;
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 72px;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    color: white;
    word-break: break-word;
}

.hero p {
    font-size: 24px;
    margin-bottom: 30px;
    color: white;
}

/* ==========================================================================
   6. General Page Sections
   ========================================================================== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 48px;
    color: #16324f;
}

.section-header p {
    color: #64748b;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border-top: 5px solid #2ecc71;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);
}

.icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 15px;
    color: #16324f;
}

.why-section {
    background: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-box {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.service-area {
    background: #16324f;
    color: white;
    text-align: center;
}

.service-area h2 {
    margin-bottom: 20px;
}

.service-area p {
    margin-bottom: 25px;
}

/* ==========================================================================
   7. Contact Section & Form
   ========================================================================== */
#contact {
    background: #f1f5f9;
}

.contact-wrapper {
    display: flex;
    gap: 30px;
    align-items: stretch;
    justify-content: center;
    margin-top: 20px;
}

.contact-info-card {
    flex: 1;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #2082cb;
    text-align: left;
}

.contact-form {
    flex: 1.5;
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

input,
select,
textarea {
    width: 100%;
    padding: 16px;
    margin-bottom: 18px;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    font-size: 16px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.15);
}

.phone-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2082cb;
    text-decoration: none;
}

.hidden {
    display: none;
}

/* ==========================================================================
   8. Thank You Page Component
   ========================================================================== */
.thankyou-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8fafc;
    padding: 20px;
}

.thankyou-card {
    background: #ffffff;
    max-width: 600px;
    text-align: center;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.thankyou-card h1 {
    color: #16324f;
    margin-bottom: 20px;
}

.thankyou-card p {
    margin-bottom: 15px;
}

/* ==========================================================================
   9. Footer
   ========================================================================== */
footer {
    background: #102a43;
    color: white;
    text-align: center;
    padding: 60px 20px;
}

footer h3 {
    margin-bottom: 10px;
}

footer p {
    margin-bottom: 8px;
}

/* ==========================================================================
   10. Desktop Off-Screen Safety Reset (>= 1025px)
   ========================================================================== */
@media (min-width: 1025px) {
    .mobile-menu-btn {
        display: none !important;
    }

    .nav-links {
        transform: none !important;
        position: static !important;
        height: auto !important;
        width: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        display: block !important;
    }
}

/* ==========================================================================
   11. Mobile & Tablet Responsiveness (< 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    .top-bar {
        font-size: 0.8rem;
    }

    .site-logo {
        height: 70px;
        max-width: 220px;
    }

    .mobile-menu-btn {
        display: flex !important;
        position: relative;
        z-index: 100000;
    }

    .header-btn {
        display: none !important;
    }

    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 75% !important;
        max-width: 300px !important;
        height: 100vh !important;
        background-color: #ffffff !important;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.25) !important;
        padding: 90px 25px 25px 25px !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s ease-in-out !important;
        z-index: 99999 !important;
        display: block !important;
    }

    .nav-links.active {
        transform: translateX(0) !important;
    }

    .nav-links ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .nav-links ul li a {
        font-size: 1.2rem !important;
        font-weight: 600 !important;
        color: #0d2b45 !important;
        text-decoration: none !important;
        display: block !important;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero p {
        font-size: 18px;
    }

    .contact-wrapper {
        flex-direction: column;
    }
}
