:root {
    --dark-blue: #28344a;
    --dark-green: #3a4f5f;
    --light-blue: #8fa4c4;
    --gold: #bfa25a;
    --white: #ffffff;
    --gray: #7d8590;
    --light-gray: #e9ecef;
    --black: #1c1f26;
    --cream: #f2ebe3;
    --charcoal: #3a3f4b;
    --badge-text: #6B5B3E;
}

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

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: sans-serif;
    background-color: var(--dark-blue);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 110px; /* Adjusted for total header height */
    padding-bottom: 60px; /* Added for mobile bottom bar */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 50px 0;
}

/* Responsive Content Visibility Classes */
.desktop-content {
    display: block;
}

.mobile-content {
    display: none;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Typography Hierarchy */
h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

h2 {
    font-size: clamp(3rem, 3vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    position: relative;
}

h3 {
    font-size: clamp(1.4rem, 1.4vw, 1.7rem);
    font-weight: 600;
    margin-bottom: 15px;
}

h4 {
    font-size: clamp(1.2rem, 1.2vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-blue);
}

p {
    margin-bottom: 20px;
    font-family: Sans-serif;
    color: var(--light-gray);
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.7;
}

address {
    font-style: normal;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    position: relative;
    overflow: hidden;
    background-color: var(--gold);
    color: var(--dark-blue);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background-color: rgba(212, 175, 55, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

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

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    background-color: var(--gold);
    color: var(--black) !important;
    min-width: 70px !important;
    height: 50px !important;
    border-radius: 8px !important;
    padding: 15px 35px !important;
    font-weight: 600;
}

/* ========== HEADER STYLES ========== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 54, 93, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    background-color: rgba(26, 54, 93, 0.98);
    backdrop-filter: blur(15px);
}

/* Top Bar Styles - ALWAYS VISIBLE */
.top-bar {
    background-color: var(--dark-green);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.top-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.social-media {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.social-media a:hover {
    background-color: var(--gold);
    color: var(--dark-blue);
    transform: translateY(-2px);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Blog link in top bar - styled like nav links */
.top-bar-blog {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--light-gray) !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.top-bar-blog::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.top-bar-blog:hover {
    color: var(--gold) !important;
}

.top-bar-blog:hover::after {
    width: 100%;
}

.top-bar-blog i {
    font-size: 0.9rem;
}

.contact-number {
    display: flex;
    align-items: center;
}

.contact-number a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.contact-number a:hover {
    background: linear-gradient(135deg, #d4af37, var(--gold));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(191, 162, 90, 0.4);
    color: var(--black) !important;
}

.contact-number i {
    font-size: 0.85rem;
}

/* Main Navigation */
#header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    transition: padding 0.3s ease;
}

#header.scrolled nav {
    padding: 12px 0; /* Slightly reduce padding when scrolled */
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--white);
}

.logo a {
    color: var(--white);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    white-space: nowrap;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
    font-weight: 500;
}

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

.nav-links a:hover {
    color: var(--gold);
}

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

/* ========== DROPDOWN MENU STYLES ========== */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    padding: 10px 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    width: 100%;
    list-style-type: none;
}

.dropdown-menu a {
    color: var(--dark-blue) !important;
    padding: 12px 20px !important;
    display: block;
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: rgba(191, 162, 90, 0.1);
    color: var(--gold) !important;
    border-left-color: var(--gold);
}

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

.nav-links a.active {
    color: var(--gold) !important;
}

.dropdown-menu a.active {
    background: rgba(191, 162, 90, 0.1);
    color: var(--gold) !important;
    border-left-color: var(--gold);
}

/* FIX: Contact button not pushing menu down */
.btn-nav {
    padding: 10px 20px;
    white-space: nowrap;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 20px;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--gold);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========== MOBILE BOTTOM BAR ========== */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-green);
    z-index: 999;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.mobile-bottom-bar.active {
    transform: translateY(0);
}

.mobile-bottom-bar.hidden {
    transform: translateY(100%);
}

.mobile-bottom-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-bottom-social {
    display: flex;
    gap: 12px;
    align-items: center;
}

.mobile-bottom-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.mobile-bottom-social a:hover {
    background-color: var(--gold);
    color: var(--dark-blue);
    transform: translateY(-2px);
}

.mobile-bottom-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold), #d4af37);
    color: var(--dark-blue) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(191, 162, 90, 0.3);
    white-space: nowrap;
}

.mobile-bottom-contact a:hover {
    background: linear-gradient(135deg, #d4af37, var(--gold));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(191, 162, 90, 0.4);
    color: var(--black) !important;
}

.mobile-bottom-contact i {
    font-size: 0.9rem;
}
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background-color: #10b981;
}

.notification.error {
    background-color: #ef4444;
}

form input.error,
form select.error,
form textarea.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.magnetic {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease !important;
    will-change: transform;
}

/* Differentiator card flip animations */
.differentiator-card {
    perspective: 1000px;
    will-change: transform;
}

.card-inner {
    transition: transform 0.8s;
    transform-style: preserve-3d;
    will-change: transform;
}

.card-front, .card-back {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card-back {
    transform: rotateY(180deg);
}

/* Workflow progress animations */
.progress-fill {
    transition: width 1s ease;
    will-change: width;
}

/* FAQ accordion transitions */
.faq-answer {
    transition: max-height 0.3s ease, padding 0.3s ease;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .differentiator-card .card-inner {
        transform: none !important;
    }
    
    .card-back {
        transform: none !important;
    }
    
    .magnetic {
        transform: none !important;
    }
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Image loading optimization */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 992px) {
    .nav-links li {
        margin-left: 20px;
    }
    
    .nav-links a {
        font-size: 0.95rem;
    }
    
    .btn-nav {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .top-bar-blog {
        font-size: 0.95rem;
        padding: 6px 10px;
    }
    
    .contact-number a {
        font-size: 0.95rem;
        padding: 6px 12px;
    }
    
    .top-bar-right {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none; /* Hide top bar on mobile */
    }
    
    body {
        padding-top: 70px; /* Reduced padding for mobile without top bar */
        padding-bottom: 60px; /* Space for mobile bottom bar */
    }
    
    /* Show mobile bottom bar */
    .mobile-bottom-bar {
        display: block;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--dark-blue);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 1001; /* Above bottom bar */
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 0 0 20px 0;
        width: 100%;
    }
    
    .nav-links a {
        font-size: 1.1rem;
        padding: 10px 0;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        box-shadow: none;
        border: none;
        padding-left: 15px;
        display: none;
        margin-top: 10px;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        color: var(--light-gray) !important;
        border-left: none;
        padding: 8px 0 !important;
    }
    
    .dropdown-menu a:hover {
        background: transparent;
        color: var(--gold) !important;
    }
    
    .dropdown-toggle i {
        transition: transform 0.3s ease;
    }
    
    .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }
    
    .btn-nav {
        width: 100%;
        justify-content: center;
    }
    
    #header nav {
        padding: 12px 0;
    }
    
    /* Show mobile-only items in mobile menu */
    .mobile-only {
        display: block !important;
    }
    
    /* Hide desktop-only items in mobile */
    .desktop-only {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .contact-number a {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .mobile-bottom-contact a {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .mobile-bottom-social a {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    body {
        padding-bottom: 55px; /* Slightly less padding for very small screens */
    }
}

/* Footer Styles */
footer {
    padding: 70px 0 30px;
    background-color: var(--black);
    position: relative;
    z-index: 1;
}

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

.footer-contact a {
    color: inherit;
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.footer-info .logo {
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-info p {
    max-width: 300px;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--gold);
    color: var(--dark-blue);
    transform: translateY(-3px);
}

.footer-links h3, .footer-contact h3 {
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--gold);
    width: 20px;
}

.copyright {
    text-align: left;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 0.9rem;
}

/* Responsive Settings */
@media (max-width: 768px) {
    /* Mobile content visibility - hide desktop, show mobile */
    .desktop-content {
        display: none !important;
    }
    
    .mobile-content {
        display: block !important;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    /* Mobile spacing optimization */
    section {
        padding: 70px 0;
    }
    
    h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 30px;
    }
    
    h3 {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--dark-blue);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 12px 0;
        width: 100%;
        text-align: center;
    }

    .btn-nav {
        display: inline-block;
        padding: 12px 24px;
        width: auto;
        margin: 10px auto;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        justify-content: center;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 300px;
    }

    .dropdown-menu a {
        color: var(--light-gray) !important;
        padding: 10px 20px 10px 40px !important;
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--gold) !important;
        border-left: none;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .logo a {
        color: var(--white);
        text-decoration: none;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-info p {
        max-width: 100%;
    }
}