:root {
    --topbar-height: 40px;
    --navbar-height: 70px;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    font-family: 'Arial', sans-serif;
}

.topbar {
    height: var(--topbar-height);
}

@media (max-width: 768px) {
    :root {
        --topbar-height: 0px; 
        --navbar-height: 60px;
    }
}

nav.sticky {
    height: var(--navbar-height);
    transition: all 0.3s ease;
}

nav.sticky.scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Section Headings */
section h2, 
section h3.text-center {
    text-align: center;
    position: relative;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

section h3:not(.text-center) {
    position: relative;
}

section h3:not(.text-center)::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: #1e40af;
    bottom: -8px;
    left: 0;
}

.carousel-container {
    position: relative;
}

.carousel-slide {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-dot {
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.carousel-dot-active {
    opacity: 1;
    transform: scale(1.2);
}

.btn-primary, 
.btn-secondary,
button[type="submit"],
a.bg-primary {
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(30, 64, 175, 0.25);
    border: none;
    z-index: 1;
    text-align: center;
}

.btn-primary,
button[type="submit"],
a.bg-primary {
    background-color: #1e40af;
    color: white;
}

.btn-primary:before,
button[type="submit"]:before,
a.bg-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: all 0.6s;
    z-index: -1;
}

.btn-primary:hover,
button[type="submit"]:hover,
a.bg-primary:hover {
    background-color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(30, 64, 175, 0.3);
}

.btn-primary:hover:before,
button[type="submit"]:hover:before,
a.bg-primary:hover:before {
    left: 100%;
}

.btn-secondary {
    background-color: white;
    color: #1e40af;
    border: 1px solid rgba(30, 64, 175, 0.2);
}

.btn-secondary:hover {
    background-color: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #1e40af;
    transition: width 0.3s ease;
}

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

.card {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, rgba(30, 64, 175, 0.1), transparent);
    transition: height 0.4s ease;
    z-index: 0;
}

.service-card:hover::before {
    height: 100%;
}

.service-icon-wrapper {
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon-wrapper {
    transform: scale(1.1);
}

.service-icon {
    transition: all 0.3s ease;
}

.card:hover .service-icon {
    transform: scale(1.1);
}

#insurance-types .card h3 {
    transition: color 0.3s ease;
}

#insurance-types .card:hover h3 {
    color: #1e3a8a;
}

#insurance-types ul li {
    margin-bottom: 0.5rem;
}

.text-primary-dark {
    color: #1e3a8a;
}

.highlight-form {
    animation: pulse-highlight 1.5s ease;
}

@keyframes pulse-highlight {
    0% {
        box-shadow: 0 0 0 0 rgba(30, 64, 175, 0.3);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(30, 64, 175, 0.6);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(30, 64, 175, 0.3);
    }
}

.mobile-menu-open {
    display: block !important;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

input, textarea, select {
    transition: all 0.3s ease;
}

form button {
    position: relative;
    overflow: hidden;
}

form button: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: all 0.6s;
    z-index: -1;
}

form button:hover:before {
    left: 100%;
}

.transition {
    transition: all 0.3s ease;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #1e40af;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

section#hero {
    height: 100vh; /* Fallback */
    height: calc(var(--vh, 1vh) * 100);
}

.stat-number {
    transition: all 0.5s ease;
}

.stat-number:hover {
    transform: scale(1.1);
    color: #1e3a8a;
}

.text-center-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

#services .service-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

#services .card:hover .service-details {
    max-height: 200px;
}

#services .read-more {
    display: inline-block;
    margin-top: 0.5rem;
    color: #1e40af;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#services .card:hover .read-more {
    opacity: 1;
} 