
  /* --- CSS Variables & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0f4c81;     /* Deep Corporate Trust Blue */
    --sage-green: #7ca982;       /* Premium Sage Green Accent */
    --sage-dark: #5a8460;
    --text-main: #2c3e50;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --cubic-bezier: cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(15, 76, 129, 0.08);
    --navy-primary: #0f4a78;
    --sage-accent: #9AAF9E;
    --dark-slate: #092c49;
    --muted-gray: #64748b;
    --panel-bg: #f8fafc;
    --white: #ffffff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
}

/* --- Header Layout --- */
.premium-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: all 0.4s var(--cubic-bezier);
   
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}

/* --- Brand Logo --- */
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo{
    display:flex;
    align-items:center;
}

.logo a{
    display:flex;
    align-items:center;
    text-decoration:none;
}

.logo img{
    width: 120px; /* Constrain the width of the logo */
    height: auto; /* Allow height to scale proportionally */
    display:block;
    transition:all .4s ease;
}

/* Hover Effect */

.logo:hover img{
    transform:scale(1.05);
}

/* Sticky Header Version */

.site-header.scrolled .logo img{
    height:55px;
}

/* --- Navigation Links & Transitions --- */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}
.menu-item {
    position: relative;
}
.menu-item:has(> .dropdown-menu:hover) > .dropdown-menu,
.menu-item:hover > .dropdown-menu,
.drop-item:hover > .submenu-child,
.menu-item > .dropdown-menu.hover-open,
.drop-item > .submenu-child.hover-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.menu-link {
    display: block;
    padding: 10px 18px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s var(--cubic-bezier);
}
.menu-link:hover, .menu-link.active {
    color: var(--primary-dark);
    background: rgba(15, 76, 129, 0.05);
}
.drop-icon {
    font-size: 0.7rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

/* --- Modern Multi-Level Smooth Dropdowns --- */
.premium-header .dropdown-menu, .premium-header .submenu-child {
    position: absolute;
    background: var(--white);
    min-width: 240px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    list-style: none;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.18s var(--cubic-bezier), visibility 0.18s var(--cubic-bezier), transform 0.18s var(--cubic-bezier);
    pointer-events: none;
}
.premium-header .dropdown-menu {
    top: 100%;
    left: 0;
    margin-top: 0;
}
.premium-header .submenu-child {
    top: 28px;
    left: 100%;
    margin-left: -10px;
}

/* Override Bootstrap interference */
.premium-header .dropdown-menu, 
.premium-header .submenu-child {
    display: block !important;
}

/* Dropdown link styling */
.premium-header .dropdown-menu a, .premium-header .submenu-child a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.9s ease;
}
.premium-header .dropdown-menu a:hover, .premium-header .submenu-child a:hover, .premium-header .dropdown-menu a.active, .premium-header .submenu-child a.active {
    background: var(--bg-light);
    color: var(--primary-dark);
    padding-left: 20px;
}

/* Desktop Hover Animations */
@media (min-width: 993px) {
    .premium-header .menu-item:hover > .dropdown-menu,
    .premium-header .menu-item > .dropdown-menu.hover-open,
    .premium-header .dropdown-menu:hover,
    .premium-header .drop-item:hover > .submenu-child,
    .premium-header .drop-item > .submenu-child.hover-open,
    .premium-header .submenu-child:hover {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    .premium-header .menu-item:hover .drop-icon,
    .premium-header .menu-item > .dropdown-menu.hover-open + a .drop-icon,
    .premium-header .drop-item:hover > a .sub-icon,
    .premium-header .drop-item > .submenu-child.hover-open + a .sub-icon {
        transform: rotate(180deg);
    }
}

/* --- Animated Mobile Number Emergency Button --- */
.phone-pulse-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--sage-green), var(--sage-dark));
    padding: 8px 20px 8px 8px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--white);
    box-shadow: 0 8px 20px rgba(124, 169, 130, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pulse-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    color: var(--sage-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}
/* Pulse ring animation */
.pulse-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    z-index: -1;
    animation: iconPulse 2s infinite ease-out;
}
.phone-text {
    display: flex;
    flex-direction: column;
}
.phone-text .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}
.phone-text .number {
    font-size: 0.95rem;
    font-weight: 700;
}
.phone-pulse-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(124, 169, 130, 0.4);
}

@keyframes iconPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* --- Mobile Menu Burger Icon --- */
.menu-burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10000;
}
.menu-burger span {
    width: 28px;
    height: 3px;
    background-color: var(--primary-dark);
    border-radius: 2px;
    transition: all 0.3s var(--cubic-bezier);
}

/* --- Responsive Layout (Mobile Mechanics) --- */
@media (max-width: 992px) {
    .menu-burger {
        display: flex;
    }
    
    /* Animate burger lines to dynamic 'X' when open */
    .menu-burger.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-burger.open span:nth-child(2) {
        opacity: 0;
    }
    .menu-burger.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--white);
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
        padding: 100px 30px 40px;
        transition: right 0.4s var(--cubic-bezier);
        overflow-y: auto;
    }
    .nav-container.active {
        right: 0;
    }
    .nav-menu {
        flex-direction: column;
        gap: 15px;
    }
    .menu-link {
        font-size: 1.1rem;
        padding: 12px;
    }

    /* Mobile Accordion Logic */
    .dropdown-menu, .submenu-child {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        padding: 0 0 0 15px;
        border: none;
        background: transparent;
        transition: max-height 0.3s var(--cubic-bezier);
    }
    
    /* Active classes triggered via JS */
    .dropdown-menu.mobile-open, .submenu-child.mobile-open {
        max-height: 500px; /* arbitrary big value for expansion animation */
        padding: 5px 0 5px 15px;
    }
    
    .emergency-cta {
        margin-right: 20px;
    }
    .phone-text .label {
        display: none; /* Make it more compact on mobile layouts */
    }
}

@media (max-width: 480px) {
    .emergency-cta {
        display: none; /* Hide number on micro-screens to prevent overlap, accessible inside body */
    }
}


 /* Footer */
   .home-contact-section {
        padding: 80px 0;
        background-color: #f9f9f9;
    }

    .home-contact-section .container {
        width: min(100%, 1200px);
        margin: 0 auto;
        padding: 0 24px;
    }

    @media (max-width: 768px) {
        .home-contact-section {
            padding: 60px 0;
        }

        .home-contact-section .container {
            padding: 0 16px;
        }
    }
    /* Premium Footer Core Framework */
.premium-footer {
    position: relative;
    background-color: #08243a; /* Deep navy blue from theme */
    color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
    padding: 80px 0 40px 0;
    overflow: hidden;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 1. LOOPING GRADIENT BORDER SYSTEM */
.footer-border-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px; /* Sleek line weight */
    background: linear-gradient(
        90deg, 
        #08243a, 
        #9AAF9E, 
        #0f4a78, 
        #9AAF9E, 
        #0f4a78, 
        #08243a
    );
    background-size: 200% auto;
    /* Continuous 4-second linear shifting loop */
    animation: borderGradientShift 4s linear infinite;
}

@keyframes borderGradientShift {
    0% { background-position: 0% center; }
    100% { background-position: -200% center; }
}

/* Structural Main Column Matrix */
.footer-main-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1.1fr;
    gap: 50px;
    margin-bottom: 60px;
}

/* Brand Area Styling */
.footer-logo {
    margin-bottom: 20px;
    display: inline-block;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    border-radius: 8px;
    display: block;
    transition: transform 0.4s ease;
}

.footer-logo:hover .footer-logo-img {
    transform: scale(1.05);
}

.footer-brand-desc {
    color: #b0c4d8;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 25px 0;
    max-width: 320px;
}

/* Micro-Interaction Social Vectors */
.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #9AAF9E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    color: #08243a;
    background: #9AAF9E;
    border-color: #9AAF9E;
    transform: translateY(-3px);
}

/* Navigation Lists */
.footer-links-column h3,
.footer-action-column h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #9AAF9E;
    margin: 0 0 25px 0;
    font-weight: 600;
}

.footer-links-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-column li {
    margin-bottom: 12px;
}

.footer-links-column a {
    color: #b0c4d8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links-column a:hover {
    color: #ffffff;
    padding-left: 4px;
}

/* Action CTA Framework */
.footer-action-column p {
    color: #b0c4d8;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.footer-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: phoneGlowPulse 2s infinite alternate;
}

.footer-phone-btn i {
    color: #9AAF9E;
}

.footer-phone-btn:hover {
    border-color: #9AAF9E;
    background: rgba(154, 175, 158, 0.1);
    box-shadow: 0 0 25px rgba(154, 175, 158, 0.8);
    transform: translateY(-2px);
}

@keyframes phoneGlowPulse {
    0% { box-shadow: 0 0 5px rgba(154, 175, 158, 0.2); }
    100% { box-shadow: 0 0 15px rgba(154, 175, 158, 0.6), 0 0 25px rgba(154, 175, 158, 0.3); }
}

/* Layout Split Separation Rule */
.footer-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0 0 30px 0;
}

/* Sub-Footer Base Elements */
.sub-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright-text {
    color: #8fa0b5;
    font-size: 13px;
    margin: 0;
}

/* 2. DEVELOPER CREDIT CHROMATIC GRADIENT LOOP */
.developer-credit {
    font-size: 13px;
    color: #8fa0b5;
}

.developer-credit a {
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(
        45deg, 
        #9AAF9E, 
        #e5f0ff, 
        #0f4a78, 
        #9AAF9E, 
        #0f4a78
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Smooth, continuous background gradient translation animation loop */
    animation: textGradientShift 4s linear infinite;
    display: inline-block;
}

@keyframes textGradientShift {
    0% { background-position: 0% center; }
    100% { background-position: -200% center; }
}

/* Responsive Fluid Viewport Adaptations */
@media (max-width: 992px) {
    .footer-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .premium-footer { padding: 60px 0 30px 0; }
    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .sub-footer-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Common Utilities for Contact Section */
.section-heading {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: rgba(154, 175, 158, 0.15);
    border: 1px solid rgba(154, 175, 158, 0.3);
    border-radius: 50px;
    color: var(--navy-primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--navy-primary), var(--sage-accent), #4f46e5, var(--navy-primary));
    background-size: 300%;
    -webkit-background-clip: text;
    color: transparent;
    animation: textGradient 6s linear infinite;
}

@keyframes textGradient {
    0% { background-position: 0%; }
    100% { background-position: 300%; }
}

.section-heading h2 {
    font-size: 42px;
    color: var(--navy-primary);
    margin: 0;
    font-weight: 800;
    line-height: 1.2;
}

.section-heading p {
    color: var(--muted-gray);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* ==========================
   Home Contact Section
========================== */
.home-contact-section {
    padding: 100px 0;
    background: linear-gradient(-45deg, #f8f9fb, #eef2ff, #f0fdf4, #f8f9fb);
    background-size: 400% 400%;
    animation: heroGradient 12s ease infinite;
    position: relative;
}

@keyframes heroGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.home-contact-section .container {
    display: block; /* Overrides global grid layout */
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

/* Left Panel */
.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-quick-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.quick-link-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--panel-bg);
    border-radius: 16px;
    border: 1px solid rgba(15, 74, 120, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-link-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 20px rgba(15, 74, 120, 0.08);
}

.quick-link-item .icon-box {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--navy-primary), var(--sage-accent));
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.quick-link-item h4 {
    color: var(--navy-primary);
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 700;
}

.quick-link-item p {
    color: var(--muted-gray);
    font-size: 15px;
    margin: 0;
}

/* Right Panel: Form */
.contact-form-panel {
    background: var(--white);
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 74, 120, 0.08);
    border: 1px solid rgba(15, 74, 120, 0.05);
    position: relative;
}

/* Animated Gradient Border for Form */
.contact-form-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px; /* Border thickness */
    background: linear-gradient(90deg, #0f4a78, #9AAF9E, #4f46e5, #0f4a78);
    background-size: 300% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 10;
    animation: formBorderMove 4s linear infinite;
}

@keyframes formBorderMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 300% 0%; }
}

.form-title {
    color: var(--navy-primary);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
}

.modern-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-slate);
}

.form-group input,
.form-group textarea {
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 15px;
    color: var(--text-main, #2c3e50);
    font-family: inherit;
    transition: all 0.3s ease;
}

/* Fix placeholder text color */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sage-accent);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(154, 175, 158, 0.15);
}

/* Form Error Validation Styling */
.form-group input.input-error,
.form-group textarea.input-error {
    border-color: #ef4444;
    background: #fef2f2;
}

.form-group input.input-error:focus,
.form-group textarea.input-error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.error-message {
    color: #ef4444;
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
    display: block;
    animation: fadeErrorIn 0.3s ease;
}

@keyframes fadeErrorIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-submit-form {
    margin-top: 10px;
    padding: 18px;
    background: linear-gradient(135deg, var(--navy-primary), var(--dark-slate));
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-submit-form:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 74, 120, 0.2);
}

/* Responsive */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-form-panel {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .home-contact-section {
        padding: 60px 0;
    }

    .contact-wrapper {
        gap: 30px;
    }

    .contact-info-panel {
        gap: 24px;
    }

    .contact-quick-links {
        gap: 14px;
    }

    .quick-link-item {
        padding: 16px;
        align-items: flex-start;
    }

    .quick-link-item .icon-box {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .contact-form-panel {
        padding: 24px 16px;
        border-radius: 18px;
    }
    
    .form-title {
        font-size: 24px;
    }

    .form-group input,
    .form-group textarea {
        padding: 14px 16px;
    }
}
