/* Base styles */
:root {
    --primary-rgb: 2, 5, 211;
    --primary: rgb(var(--primary-rgb));
    --primary-contrast-rgb: 255, 255, 255;
    --primary-contrast: rgb(var(--primary-contrast-rgb));
    --text-rgb: 9, 23, 71;
    --text: rgb(var(--text-rgb));
    --surface-rgb: 255, 255, 255;
    --surface: rgb(var(--surface-rgb));
    --background-rgb: 255, 255, 255;
    --background: rgb(var(--background-rgb));
    --alert-rgb: 250, 181, 21;
    --alert: rgb(var(--alert-rgb));
    --cta-rgb: 204, 5, 58;
    --cta: rgb(var(--cta-rgb));
    --dark-rgb: 10, 55, 76;
    --dark: rgb(var(--dark-rgb));
    --gray: #e9e9e9;
    --warm-rgb: 228, 225, 220;
    --warm: rgb(var(--warm-rgb));
    --muted-rgb: 119, 119, 119;
    --muted: rgb(var(--muted-rgb));
    --cta-hover-rgb: 163, 4, 46;
    --cta-hover: rgb(var(--cta-hover-rgb));
    --primary-hover-rgb: 1, 3, 156;
    --primary-hover: rgb(var(--primary-hover-rgb));
    --hero-bg-rgb: 139, 162, 168;
    --hero-bg: rgb(var(--hero-bg-rgb));
}

/* Legal pages */
.legal-content p,
.legal-content ol {
    margin-bottom: 1.75rem;
}

.legal-content h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
}

* {
    box-sizing: border-box;
}

:where(body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote) {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Montserrat", system-ui, sans-serif;
    color: var(--dark);
    background-color: var(--background);
    line-height: 1.6;
}

h2 {
    font-size: 2.25rem;
}

.bg-warm {
    background-color: rgba(var(--warm-rgb), 0.5);
}

/* Reusable layout container */
.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: relative;
    z-index: 10;
    padding: 18px 0 34px;
}

.logo img {
    display: block;
    width: 160px;
    height: auto;
}

.footer-logo img {
    display: block;
    width: 140px;
    height: auto;
}

.header .container {
    max-width: none;
    padding: 0 32px;
}

.whatsapp-link {
    color: rgba(9, 23, 71, 1);
    transition: opacity 0.3s;
}

.whatsapp-link:hover {
    opacity: 0.8;
}

.contact-btn {
    background-color: var(--dark);
    color: var(--primary-contrast);
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background-color 0.3s;
    font-family: inherit;
}

.contact-btn:hover {
    background-color: rgba(var(--dark-rgb), 0.85);
}

/* Hero section */
.hero {
    position: relative;
    background-color: var(--hero-bg);
    padding: 0 0 60px;
}

.hero-left h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--primary-contrast);
    font-weight: 800;
    line-height: 1.15;
}

.hero-left > p,
.hero-left > .hero-intro > p {
    font-size: 1rem;
    margin-bottom: 24px;
    color: rgba(var(--primary-contrast-rgb), 1);
    line-height: 1.6;
}

.hero-left > .contact-hero-intro {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 10px;
}

.hero-left > .contact-hero-intro h1,
.hero-left > .contact-hero-intro p {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .hero-left > .contact-hero-intro {
        min-height: 290px;
        justify-content: space-between;
        gap: 0;
        margin-top: 18px;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-align: center;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--cta);
    color: var(--primary-contrast);
}

.btn-primary:hover {
    background-color: var(--cta-hover);
}

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

.btn-secondary:hover {
    background-color: var(--primary-contrast);
    color: var(--dark);
}

.hero-learn-modal[hidden] {
    display: none;
}

.hero-learn-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
}

.hero-learn-modal__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
}

.hero-learn-modal__panel {
    position: relative;
    width: min(100%, 440px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background-color: var(--surface);
    color: var(--dark);
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
}

.hero-learn-modal__panel h2 {
    margin-bottom: 12px;
    font-size: 1.75rem;
}

.hero-learn-modal__panel p {
    margin-bottom: 24px;
    color: rgba(var(--text-rgb), 0.8);
}

.hero-learn-modal__actions {
    display: grid;
    gap: 12px;
}

.hero-learn-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    background: transparent;
    color: var(--dark);
    cursor: pointer;
    font: inherit;
    font-size: 1.75rem;
    line-height: 1;
}

.modal-open {
    overflow: hidden;
}

.btn-quote {
    background-color: var(--dark);
    color: var(--primary-contrast);
    padding: 14px 36px;
}

.btn-quote:hover {
    background-color: rgba(var(--dark-rgb), 0.85);
}

.btn-contact {
    display: block;
    width: 100%;
    background-color: var(--dark);
    color: var(--primary-contrast);
}

.btn-contact:hover {
    background-color: rgba(var(--dark-rgb), 0.85);
}

/* Hero testimonial */
.hero-testimonial {
    background-color: rgba(var(--primary-contrast-rgb), 0.95);
    padding: 20px 24px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-testimonial p {
    font-size: 0.9rem;
    color: var(--dark);
    line-height: 1.6;
    margin-bottom: 12px;
}

.hero-testimonial .testimonial-author span {
    color: var(--dark);
    font-size: 1.15rem;
    font-weight: 600;
}

/* Hero right */
.hero-image img {
    display: block;
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.featured-by {
    margin-top: 24px;
}

.featured-by h3 {
    font-family: "Encode Sans" system-ui sans-serif;
    font-weight: 400;
    color: #fffbfb;
    font-size: 1.4rem;
    text-align: center;
}

.featured-by > p {
    color: rgba(var(--primary-contrast-rgb), 0.7);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.featured-logos img {
    display: block;
    max-width: 180px;
    max-height: 70px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

/* Testimonials */
.testimonial-card {
    background-color: var(--gray);
    padding: 28px 24px;
    border-radius: 10px;
}

.testimonial-card p {
    font-size: 0.95rem;
    color: var(--dark);
    line-height: 1.6;
    margin-bottom: 16px;
}

.testimonial-author-name {
    font-weight: 600;
    color: var(--muted);
    font-size: 1.15rem;
}

/* Differentiators subtitle */
.section-subtitle {
    text-align: center;
    color: var(--muted);
    margin-bottom: 40px;
    font-size: 1rem;
}

/* Service commitment */
.service-image img {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: contain;
    border-radius: 10px;
}

.service-content h2 {
    margin-bottom: 20px;
    color: var(--dark);
    font-weight: 700;
}

.service-content p {
    color: var(--dark);
    line-height: 1.7;
}

/* Coverage */
.coverage-text h2 {
    margin-bottom: 20px;
    color: var(--dark);
    font-weight: 700;
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.05;
}

.coverage-text p {
    color: var(--dark);
    line-height: 1.45;
    font-size: clamp(1.05rem, 1.5vw, 1.5rem);
}

/* Country selector */
.country-content h2 {
    margin-bottom: 16px;
    color: var(--dark);
    font-weight: 700;
}

.country-content p {
    margin-bottom: 16px;
    color: var(--dark);
    line-height: 1.7;
}

.country-prompt {
    font-weight: 500;
}

select {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid rgba(var(--dark-rgb), 0.25);
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: 0.95rem;
    margin-bottom: 16px;
    color: var(--dark);
    background-color: var(--surface);
}

.country-image img {
    display: block;
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    background-color: rgba(var(--warm), 0.5);
    padding: 24px;
}

/* Country pages */
.country-hero {
    padding-bottom: 72px;
}

.country-hero-content {
    display: grid;
    gap: 24px;
}

.country-hero-content h1,
.country-hero-content > p {
    margin-bottom: 0;
}

.country-testimonial {
    max-width: 560px;
}

.country-featured-by {
    margin-top: 6px;
}

.country-featured-logos img {
    max-width: 145px;
    max-height: 52px;
}

.country-featured-logos span {
    color: var(--primary-contrast);
    font-weight: 700;
    letter-spacing: 0.02em;
    opacity: 0.9;
}

.country-main {
    display: grid;
    gap: 0;
}

.country-section {
    padding: 88px 0;
}

.country-page-content {
    display: grid;
    gap: 18px;
    text-align: center;
}

.country-page-content h2,
.country-cta h2,
.country-faq-intro h2 {
    color: var(--dark);
    font-weight: 700;
    line-height: 1.15;
}

.country-page-content p,
.country-faq-intro p {
    color: var(--dark);
    line-height: 1.75;
}

.country-section-image img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 16px;
}

.brand-logo-strip {
    padding: 42px 0;
    background-color: rgba(var(--primary-contrast-rgb), 1);
}

.brand-logo-strip img {
    display: block;
    max-width: 200px;
    #max-height: 80px;
    object-fit: contain;
}

.brand-logo-strip img[src$="geoblue-logo.png"] {
    max-width: 300px;
    max-height: 52px;
}

.brand-logo-strip img[src$="redbridge-logo.gif"] {
    max-width: min(300px, 84vw);
    max-height: 56px;
}

.brand-logo-strip img[src$="cigna-logo.png"] {
    max-width: 200px;
    max-height: 80px;
}

.brand-logo-strip img[src$="img-logo-lg.webp"] {
    max-width: 170px;
    #max-height: 100px;
}

.brand-logo-strip img[src$="vumi-logo.png"] {
    max-width: 130px;
    max-height: 62px;
}

.country-cta {
    padding: 86px 0;
    background-color: rgba(var(--warm-rgb), 0.5);
}

.country-cta h2 {
    margin-bottom: 24px;
}

.country-faq-section {
    padding: 88px 0;
    background-color: rgba(var(--hero-bg-rgb), 0.16);
}

.country-cta + .country-faq-section {
    margin-top: 40px;
}

.country-faq-intro {
    max-width: 760px;
    margin: 0 auto 36px;
    display: grid;
    gap: 16px;
}

.country-faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.country-faq-list details {
    background-color: var(--surface);
    border-radius: 10px;
    border: 1px solid rgba(var(--dark-rgb), 0.1);
    box-shadow: 0 6px 18px rgba(10, 55, 76, 0.06);
}

.country-faq-list summary {
    cursor: pointer;
    padding: 18px 22px;
    color: var(--dark);
    font-weight: 600;
    line-height: 1.4;
}

/* Footer */
.footer {
    background-color: var(--hero-bg);
    color: var(--primary-contrast);
    padding: 48px 0 24px;
}

.footer-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 64px;
    margin-bottom: 36px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, auto));
    gap: 76px;
}

.footer-col ul {
    display: grid;
    gap: 10px;
    list-style: none;
}

.footer-col li {
    margin-bottom: 0;
}

.footer-col a {
    color: var(--primary-contrast);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    transition: opacity 0.3s;
}

.footer-col a:hover {
    opacity: 0.75;
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(var(--primary-contrast-rgb), 0.15);
    margin-bottom: 20px;
}

.footer-copyright {
    color: rgba(var(--primary-contrast-rgb), 1);
    font-size: 1rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.social-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(var(--primary-contrast-rgb), 0.15);
    color: var(--primary-contrast);
    transition: background-color 0.3s;
}

.social-circle:hover {
    background-color: rgba(var(--primary-contrast-rgb), 0.3);
}

.who-is-h3 {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 1.5rem;
    color: var(--muted);
}

/* Responsive edge cases (typography + logo sizing kept as custom breakpoints) */
@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        gap: 28px;
    }

    .footer-links {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .hero-left h1 {
        font-size: 2.8125rem;
        text-align: center;
    }

    h2,
    .service-content h2,
    .coverage-text h2,
    .country-content h2 {
        font-size: 2.5rem;
        text-align: center;
    }

    h3,
    .featured-by h3,
    .who-is-h3 {
        font-size: 1.875rem;
        text-align: center;
    }

    p,
    .hero-left > p,
    .hero-left > .hero-intro > p,
    .hero-testimonial p,
    .testimonial-card p,
    .section-subtitle,
    .service-content p,
    .coverage-text p,
    .country-content p,
    p.text-\[0\.9rem\] {
        font-size: 1rem;
    }

    .coverage-label {
        font-size: 1.75rem;
    }

    .featured-logos img {
        max-width: 140px;
    }

    .brand-logo-strip img {
        max-width: min(260px, 82vw);
        max-height: 96px;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-left h1 {
        font-size: 2.8125rem;
    }

    .header .container {
        padding: 0 20px;
    }

    .logo img {
        width: 150px;
    }
}

/* Utility classes */
.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;
}
