html {
    scroll-behavior: smooth;
}

/* General Body Styles */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fff; /* bg-white */
    color: #1f2937; /* text-gray-800 */
}

/* Layout */
.section-spacing {
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .section-spacing {
        padding: 5rem 0;
    }
}

/* Header Placeholder */
/* Ensures no layout shift when the header is loaded dynamically */
#header-placeholder {
    min-height: 124px; /* Matches the actual header height */
    position: sticky;
    top: 0;
    z-index: 120;
    width: 100%;
}

/* Page Headers / Banners */
.page-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
}

.page-header-content {
    position: relative;
    max-width: 1000px;
    margin: auto;
    padding: 0 1rem;
}

.page-header-text-box {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1.5rem; /* p-6 */
    border-radius: 0.5rem; /* rounded-lg */
    display: inline-block;
    -webkit-backdrop-filter: blur(2px); /* Safari */
    backdrop-filter: blur(2px);
}

@media (min-width: 768px) {
    .page-header-text-box {
        padding: 2.5rem; /* md:p-10 */
    }
}

/* Buttons */
.btn-primary {
    display: inline-block;
    width: 100%;
    text-align: center;
    background-color: #004AAD;
    color: white;
    font-weight: 700;
    padding: 0.75rem 1.5rem; /* py-3 px-6 */
    border-radius: 0.5rem; /* rounded-lg */
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #003380; /* A darker shade for hover */
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: #003380;
}

/* Forms */
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db; /* border */
    border-radius: 0.5rem; /* rounded-lg */
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px #004AAD; /* focus:ring-2 focus:ring-[#004AAD] */
}

/* FAQ Accordion */
.faq-item {
    padding-top: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.faq-question {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

button.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0;
}

.faq-answer {
    margin-top: 1rem;
    color: #4b5563; /* text-gray-700 */
}

.faq-icon {
    transition: transform 0.3s;
}

.faq-icon.rotate-180 {
    transform: rotate(180deg);
}

/* Floating WhatsApp Button */
.float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #004AAD;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 1px 1px 2px #999;
    z-index: 100;
    transition: transform 0.2s ease-in-out;
}

.float:hover {
    transform: scale(1.1);
}

.my-float {
    margin-top: 16px;
}
#footer-placeholder {
    min-height: 300px;
    /* ⚡ Bolt Optimization: Defer rendering of off-screen footer to improve LCP/TBT */
    content-visibility: auto;
    /* Estimate height to prevent scrollbar jumps */
    contain-intrinsic-size: auto 300px;
}

/* Scroll Margin for Sticky Header */
.scroll-mt-header {
    scroll-margin-top: 150px;
}

/* =========================================
   Mobile Menu Component
   ========================================= */

/* Header & Nav Container */
.site-header {
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 124px;
}

.logo-img {
    width: 10rem; /* w-40 */
    height: auto;
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 1.5rem; /* space-x-6 */
        font-weight: 700;
    }

    .mobile-toggle-btn {
        display: none;
    }
}

.nav-link {
    color: #1f2937; /* text-gray-800 */
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: #004AAD;
}

.btn-nav-cta {
    background-color: #004AAD;
    color: white;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s;
}

.btn-nav-cta:hover {
    background-color: #003380;
}

/* Dropdown (Desktop) */
.nav-item-dropdown {
    position: relative;
    group: hover; /* Logic handled via CSS hover or JS */
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav-item-dropdown:hover .icon-chevron-down,
.nav-item-dropdown:focus-within .icon-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    left: -1rem;
    margin-top: 0.25rem;
    width: 16rem; /* w-64 */
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 50;
    padding-top: 0.5rem;
    font-weight: 400;
}

.dropdown-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #1f2937;
    transition: background-color 0.2s;
}

.dropdown-link:hover {
    background-color: #f3f4f6; /* bg-gray-100 */
}

.icon-chevron-down {
    width: 1rem;
    height: 1rem;
    margin-left: 0.25rem;
    transition: transform 0.2s;
}

/* Mobile Toggle Button */
.mobile-toggle-btn {
    color: #1f2937;
    padding: 0.5rem;
    border-radius: 0.25rem;
}

.mobile-toggle-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px #004AAD;
}

.icon-menu {
    width: 1.5rem;
    height: 1.5rem;
}

/* Mobile Drawer (Overlay) */
.mobile-drawer {
    position: fixed;
    inset: 0; /* top:0, right:0, bottom:0, left:0 */
    z-index: 200; /* High z-index to overlay everything */
    pointer-events: none; /* Allows clicks to pass through when hidden */
    visibility: hidden;
}

.mobile-drawer.open {
    visibility: visible;
    pointer-events: auto;
}

/* Backdrop */
.drawer-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-drawer.open .drawer-backdrop {
    opacity: 1;
}

/* Content Sidebar */
.drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%;
    max-width: 24rem;
    background-color: white;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
}

.mobile-drawer.open .drawer-content {
    transform: translateX(0);
}

/* Drawer Header */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.drawer-title {
    color: #004AAD;
    font-weight: 700;
    font-size: 1.25rem; /* text-xl */
}

.drawer-close-btn {
    color: #6b7280;
    padding: 0.5rem;
}

.drawer-close-btn:hover {
    color: #374151;
}

.icon-close {
    width: 1.5rem;
    height: 1.5rem;
}

/* Drawer Body (Scrollable) */
.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* space-y-6 */
}

.drawer-link {
    display: block;
    font-size: 1.125rem; /* text-lg */
    font-weight: 700;
    color: #1f2937; /* #004AAD handled via specific class if needed, keeping gray default */
}

/* Active State for Links */
.nav-link.active,
.drawer-link.active,
.drawer-sublink.active {
    color: #004AAD;
    font-weight: 700;
}

/* Drawer Accordion */
.drawer-accordion-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.drawer-accordion-content {
    display: none;
    padding-left: 1rem;
    border-left: 2px solid #f3f4f6;
    margin-left: 0.25rem;
    flex-direction: column;
    gap: 0.75rem; /* space-y-3 */
    margin-top: 0.75rem;
}

/* Hidden state for accordion content handled via JS toggling a class or inline style display */
.drawer-accordion-content.hidden {
    display: none;
}

.drawer-sublink {
    display: block;
    font-size: 0.875rem; /* text-sm */
    color: #4b5563; /* text-gray-600 */
}

.drawer-sublink:hover {
    color: #004AAD;
}

/* Drawer Footer (Icons) */
.drawer-footer {
    flex: none;
    padding: 1.5rem;
    border-top: 1px solid #f3f4f6;
    background-color: #f9fafb;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.drawer-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    group: hover;
}

.action-icon-circle {
    width: 3rem; /* w-12 */
    height: 3rem; /* h-12 */
    border-radius: 9999px;
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #004AAD;
    transition: background-color 0.2s, color 0.2s;
}

.drawer-action-item:hover .action-icon-circle {
    background-color: #004AAD;
    color: white;
}

.icon-action {
    width: 1.5rem; /* w-6 */
    height: 1.5rem; /* h-6 */
}

.action-label {
    margin-top: 0.5rem;
    font-size: 0.75rem; /* text-xs */
    font-weight: 500;
    color: #4b5563;
}


/* Mobile Sticky CTA Bar */
.mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 1rem;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 50;
    transition: transform 0.3s ease-in-out;
    /* Visibility handled by Tailwind utilities (md:hidden) */
}

.mobile-cta-bar.cta-hidden {
    transform: translateY(110%);
}

@media (max-width: 767px) {
    /* Adjust Body Padding to prevent content being hidden behind the bar */
    body.has-mobile-cta {
        padding-bottom: 80px;
    }

    /* Adjust WhatsApp Button Position to sit above the CTA bar */
    body.has-mobile-cta .float {
        bottom: 90px;
    }
}

/* Animations */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spinner {
    animation: spin 1s linear infinite;
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    margin-left: -0.25rem;
    color: white;
    vertical-align: text-bottom;
}

.spinner circle {
    opacity: 0.25;
}

.spinner path {
    opacity: 0.75;
}

/* Accessibility - Skip to Content */
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skip-link:focus {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    margin: 0;
    padding: 1rem;
    overflow: visible;
    clip: auto;
    white-space: normal;
    z-index: 1000;
    background-color: #ffffff;
    color: #000000;
    font-weight: 700;
    outline: 2px solid #004AAD;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* =========================================
   Accessibility Improvements
   ========================================= */

/* Global Focus Styles for Keyboard Navigation */
:focus-visible {
    outline: 2px solid #004AAD;
    outline-offset: 2px;
}

/* White focus ring for elements on dark backgrounds for better contrast */
footer a:focus-visible {
    outline-color: white;
    outline-offset: 2px;
}

/* Utilities for Review Carousel */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Additional utility classes for Google Reviews Stars */
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.text-yellow-400 { color: #facc15; }
.text-gray-300 { color: #d1d5db; }
.fill-current { fill: currentColor; }

/* More additional classes for Google Reviews */
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.bg-black\/50 { background-color: rgb(0 0 0 / 0.5); }
.p-2 { padding: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.bg-white\/20 { background-color: rgb(255 255 255 / 0.2); }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
/* Google Reviews Carousel */
.reviews-section {
    padding: 4rem 0;
    background-color: #004AAD; /* Brand color */
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .reviews-section {
        padding: 6rem 0;
    }
}

.reviews-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.reviews-bg-circle-1 {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    filter: blur(40px);
}

.reviews-bg-circle-2 {
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    filter: blur(40px);
}

.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

.reviews-header {
    text-center: center;
    margin-bottom: 3rem;
}

.reviews-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .reviews-title {
        font-size: 2.25rem;
    }
}

.reviews-subtitle {
    color: rgba(255, 255, 255, 0.8);
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
}

.reviews-carousel-wrapper {
    position: relative;
}

.reviews-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 1.5rem;
    padding-bottom: 2rem;
    padding-top: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
}

.reviews-carousel::-webkit-scrollbar {
    display: none;
}
.reviews-carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@media (min-width: 768px) {
    .reviews-carousel {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }
}

.review-card {
    flex: none;
    width: 300px;
    scroll-snap-align: center;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    color: inherit;
}

.review-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .review-card {
        width: 350px;
    }
}

.review-stars {
    display: flex;
    margin-bottom: 1rem;
}

.review-star {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.review-star-filled {
    color: #FBBF24; /* yellow-400 */
}

.review-star-empty {
    color: #D1D5DB; /* gray-300 */
}

.review-text {
    color: white;
    font-size: 0.875rem;
    line-height: 1.625;
    margin-bottom: 1.5rem;
    font-style: italic;
}

@media (min-width: 768px) {
    .review-text {
        font-size: 1rem;
    }
}

.review-author {
    display: flex;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.review-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    margin-right: 0.75rem;
    object-fit: cover;
}

.review-avatar-fallback {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    margin-right: 0.75rem;
    background-color: #6B7280; /* gray-500 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.review-author-name {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.review-author-source {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    margin-top: 0.25rem;
}

.review-source-icon {
    width: 0.75rem;
    height: 0.75rem;
    margin-right: 0.25rem;
    fill: currentColor;
}

.review-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s, opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.review-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.review-nav-btn:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.review-prev-btn {
    left: 0;
    margin-left: -1rem;
}

.review-next-btn {
    right: 0;
    margin-right: -1rem;
}

@media (min-width: 768px) {
    .review-prev-btn { margin-left: -1.5rem; }
    .review-next-btn { margin-right: -1.5rem; }
}

.review-nav-btn.hidden {
    display: none;
}

.review-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.review-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    transition: all 0.3s;
    padding: 0;
    border: none;
    cursor: pointer;
}

.review-dot.active {
    width: 1.5rem;
    background-color: #004AAD; /* Wait, background is #004AAD. I should use accent color. Let's check style.css for accent */
    background-color: #38bdf8; /* light blue or something visible. Let's use #FBBF24 yellow */
}

/* Let's update the active dot to be yellow to stand out on the blue background */
.review-dot.active {
    background-color: #FBBF24;
}

/* Header Review Pill */
.header-review-pill {
    display: inline-flex;
    align-items: center;
    background-color: rgba(43, 56, 62, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 0.375rem 1rem 0.375rem 0.375rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.header-review-pill:hover {
    transform: translateY(-2px);
    background-color: rgba(53, 66, 72, 0.95);
}

.header-review-google-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background-color: white;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.header-review-google-logo svg {
    width: 1.25rem;
    height: 1.25rem;
}

.header-review-rating-text {
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    margin-right: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.header-review-stars {
    display: flex;
    margin-right: 0.5rem;
    gap: 0.125rem;
}

.header-review-star {
    width: 0.875rem;
    height: 0.875rem;
    color: #FBBF24;
    fill: currentColor;
}

.header-review-text {
    color: white;
    font-size: 0.875rem;
    font-weight: 400;
    margin-bottom: 0;
}
