/* ========================================
   LANDING PAGE STYLES
   ======================================== */

/* === BASE STYLES === */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.sr-only:focus {
    position: relative;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

.scroll-mt-20 {
    scroll-margin-top: 5rem;
}

.scroll-mt-16 {
    scroll-margin-top: 4rem;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-cta {
    background-color: #FF9A00;
    color: white;
}

.btn-cta:hover {
    background-color: #E68A00;
    opacity: 0.95;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #1A7B88;
    color: #1A7B88;
}

.btn-outline:hover {
    background-color: #E0F2F5;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    .btn-lg {
        font-size: 0.95rem;
        padding: 0.875rem 1.25rem;
    }
}

/* === BADGES === */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    background-color: #f3f4f6;
    color: #374151;
}

/* === CARDS === */
.card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.card-content {
    padding: 1.5rem;
}

/* === ACCORDION === */
.accordion-item {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.accordion-trigger {
    width: 100%;
    padding: 1rem 1.5rem;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.accordion-trigger:hover {
    background-color: #f9fafb;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 500px;
    padding: 0 1.5rem 1rem 1.5rem;
}

/* === MODAL === */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 0.75rem;
    max-width: 56rem;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
}

/* Video modal - 720p size for optimal viewing */
#videoModal .modal-content {
    max-width: 80vw;
    width: 80vw;
    height: auto;
    max-height: 80vh;
    aspect-ratio: 16/9;
    overflow: hidden;
    padding: 0 !important;
    margin: 0;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

#videoModal .modal-content > div {
    height: 100%;
    margin: 0;
    padding: 0;
}

#videoModal .modal-content iframe {
    border: none !important;
    outline: none !important;
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    vertical-align: top;
}

@media (max-width: 768px) {
    #videoModal .modal-content {
        max-width: 95vw;
        width: 95vw;
        max-height: 90vh;
    }
}

/* === MOBILE MENU === */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: #0D5E6B;
    z-index: 60;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 55;
}

.mobile-menu-overlay.active {
    display: block;
}

/* === BACK TO TOP === */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #1A7B88;
    color: white;
    border: none;
    border-radius: 9999px;
    padding: 0.75rem;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 40;
    transition: all 0.2s;
}

.back-to-top:hover {
    background-color: #156772;
}

.back-to-top.visible {
    display: block;
}

/* === PARALLAX HERO IMAGE === */
.hero-bg-image {
    will-change: transform;
    transform-origin: center center;
}

.cta-bg-image {
    will-change: transform;
    transform-origin: center center;
}

/* === TESTIMONIALS CAROUSEL === */
.testimonials-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 2rem 4rem;
}

/* Carousel fade effects */
.carousel-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 10;
    pointer-events: none;
}

.carousel-fade-left {
    left: 0;
    background: linear-gradient(to right, rgba(13, 94, 107, 1), rgba(13, 94, 107, 0));
}

.carousel-fade-right {
    right: 0;
    background: linear-gradient(to left, rgba(13, 94, 107, 1), rgba(13, 94, 107, 0));
}

/* Carousel track */
.testimonials-carousel-track {
    display: flex;
    gap: 1.5rem;
    will-change: transform;
    align-items: stretch;
    min-height: 280px;
}

/* Individual testimonial cards */
.testimonial-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Ensure cards inside testimonial-card maintain consistent height */
.testimonial-card .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card .card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Ensure the text content expands to fill available space */
.testimonial-card .card-content > div.flex.gap-1 {
    flex-shrink: 0;
}

.testimonial-card .card-content > p {
    flex: 1;
    min-height: 4rem;
}

.testimonial-card .card-content > div.flex.items-center.gap-3 {
    margin-top: auto;
    flex-shrink: 0;
}

/* Ensure cards maintain consistent sizing */
@media (min-width: 1025px) {
    .testimonial-card {
        flex-basis: calc((100% - 3rem) / 3);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .testimonials-carousel-wrapper {
        padding: 1rem 2rem;
    }
    
    .carousel-fade {
        width: 40px;
    }
    
    .testimonial-card {
        flex: 0 0 calc(100% - 1rem);
    }
    
    .testimonials-carousel-track {
        min-height: 250px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 1rem);
    }
    
    .testimonials-carousel-track {
        min-height: 260px;
    }
}

/* === PAYMENT LOGOS SCROLLER === */
.payment-logos-scroller {
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.payment-logos-scroller::before,
.payment-logos-scroller::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    pointer-events: none;
    z-index: 5;
}

.payment-logos-scroller::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}

.payment-logos-scroller::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}

.payment-logos-inner {
    display: inline-flex;
    will-change: transform;
    animation: payment-scroll-left 25s linear infinite;
    gap: 2rem;
}

.payment-logos-track {
    display: inline-flex;
    gap: 2rem;
    align-items: center;
}

.payment-logos-scroller:hover .payment-logos-inner {
    animation-play-state: paused;
}

.payment-logo-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 64px; /* ensure container reserves height */
    min-width: 128px;
    padding: 0 16px;
    border-radius: 9999px;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
}

/* Ensure SVG images render at a clear, consistent size */
.payment-logo-item img {
    height: 56px;
    width: auto;
    display: block;
}

@keyframes payment-scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === CUSTOM DROPDOWN === */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-dropdown-trigger {
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-dropdown-trigger:hover {
    border-color: #1A7B88;
}

.custom-dropdown-trigger:focus {
    border-color: #1A7B88;
    box-shadow: 0 0 0 2px rgba(26, 123, 136, 0.1);
}

.custom-dropdown-trigger[aria-expanded="true"] {
    border-color: #1A7B88;
    box-shadow: 0 0 0 2px rgba(26, 123, 136, 0.1);
}

.custom-dropdown-trigger[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.custom-dropdown-value {
    flex: 1;
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 100;
    max-height: 240px;
    overflow-y: auto;
    animation: dropdownFadeIn 0.2s ease-out;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .custom-dropdown-menu {
        max-height: 200px;
    }
}

.custom-dropdown-menu.hidden {
    display: none;
}

.custom-dropdown-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.15s;
    color: #374151;
    font-size: 0.875rem;
}

.custom-dropdown-option:first-child {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.custom-dropdown-option:last-child {
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.custom-dropdown-option:hover {
    background-color: #f3f4f6;
}

.custom-dropdown-option.selected {
    background-color: #E0F2F5;
    color: #1A7B88;
    font-weight: 500;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

