/* Project-specific styles */
.site-header {
    /* Keep mobile text autosizing from inflating the compact navigation. */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: "Nunito Sans", sans-serif;
}

.hero {
    background-image: linear-gradient(to bottom, transparent 35%, #111 100%);
}

@media (max-width: 767px) {
    .hero video {
        object-position: 50% top;
    }
}

html {
    scroll-behavior: smooth;
}

/* Layout and typography use Tailwind; these rules draw the shared artwork. */
.section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 2vw, 24px);
    color: #ff4e00;
    font-size: clamp(16px, 2vw, 30px);
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
}

.section-heading::before,
.section-heading::after {
    content: "";
    flex: 0 1 clamp(20px, 8vw, 100px);
    min-width: 20px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff4e00 70%, transparent);
    clip-path: polygon(0 50%, 75% 0, 100% 50%, 75% 100%);
}

.section-heading::after {
    transform: rotate(180deg);
}

#testimonials-title {
    font-size: clamp(14px, 1.7vw, 24px);
}

.angular-card {
    --corner: 28px;
    padding: 1px;
    background: linear-gradient(135deg, #ff5a05 0%, #ff5a05 4%, #4d271b 21%, #3a2119 70%, #ff5a05 96%);
    clip-path: polygon(var(--corner) 0, 100% 0, 100% calc(100% - var(--corner)), calc(100% - var(--corner)) 100%, 0 100%, 0 var(--corner));
}

.angular-card__body {
    height: 100%;
    background: radial-gradient(ellipse at 50% 135%, #50220d 0, #19120f 42%, #111 75%);
    clip-path: polygon(var(--corner) 0, 100% 0, 100% calc(100% - var(--corner)), calc(100% - var(--corner)) 100%, 0 100%, 0 var(--corner));
}

.line-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 5px #ff4e0026);
}

/* Show the central badge from the supplied wide artwork without stretching it. */
.license-badge {
    height: clamp(230px, 64vw, 300px);
    background: url("img/bgLicensed.png") center / auto calc(100% + 4px) no-repeat;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.provider-art {
    position: relative;
}

/* .provider-art::before {
    content: "";
    position: absolute;
    inset: 25% 0 -10%;
    background: radial-gradient(ellipse at 50% 70%, #6d270c42, transparent 68%);
    pointer-events: none;
} */

.testimonial-track {
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

.testimonial-track::-webkit-scrollbar {
    display: none;
}

.testimonial-track:focus-visible {
    outline: 2px solid #ff4e00;
    outline-offset: 4px;
}

.testimonial-card {
    --corner: 22px;
    flex-basis: 88%;
    scroll-snap-align: start;
}

[data-review-direction][hidden] {
    display: none;
}

@media (min-width: 640px) {
    .testimonial-card {
        flex-basis: calc((100% - 16px) / 2);
    }
}

@media (min-width: 1024px) {
    .testimonial-card {
        flex-basis: calc((100% - 40px) / 3);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .testimonial-card {
        flex-basis: calc((100% - 20px) / 2);
    }
}

.language-dropdown {
    position: relative;
}

.language-toggle {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
    border-radius: 4px;
    color: white;
    cursor: pointer;
}

.language-chevron {
    transition: transform 200ms ease;
}

.language-dropdown.is-open .language-chevron {
    transform: rotate(180deg);
}

.language-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 10;
    min-width: 112px;
    padding: 5px;
    border: 1px solid #ffffff26;
    border-radius: 8px;
    background: #171717;
    box-shadow: 0 10px 25px #0006;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
}

.language-dropdown.is-open .language-options {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 200ms ease, transform 200ms ease, visibility 0s;
}

.language-options a {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 4px;
    color: #ddd;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease;
}

.language-options a:hover {
    background: #ffffff0d;
    color: white;
}

.language-options a[aria-current="page"] {
    background: #ff4e001f;
    color: #ff6b2b;
}

.language-options a[aria-current="page"]::after {
    content: "✓";
}

.language-toggle:focus-visible,
.language-options a:focus-visible {
    outline: 2px solid #ff4e00;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
