/* ═══════════════════════════════════════════════════════════════
   MedTeq Portugal — Brand Design System
   Colors extracted from logo: dusty rose + dark charcoal + botanical
   EAA/WCAG 2.1 AA compliant — all contrast ratios > 4.5:1
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Brand palette — from logo tree/flowers */
    --mt-rose: #C4788A;
    --mt-rose-dark: #9B5B6A;
    --mt-rose-light: #F5E6EA;
    --mt-rose-pale: #FBF3F5;
    --mt-charcoal: #2C2C3A;
    --mt-charcoal-light: #4A4A5A;
    --mt-warm-gray: #6B6B7B;
    --mt-light: #F9F7F5;
    --mt-white: #FFFFFF;
    --mt-leaf: #8BA68B;
    --mt-leaf-dark: #5E7D5E;

    /* Functional */
    --mt-success: #5E7D5E;
    --mt-danger: #C4565A;
    --mt-warning: #D4A04A;
    --mt-info: #5A8BA6;

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 5rem 0;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET & BASE ─────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* EAA 2.4.11 — keep focused elements clear of the sticky header */
    scroll-padding-top: 98px;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--mt-charcoal);
    background: var(--mt-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    max-width: 100%;
}

/* EAA: Focus indicator visible for keyboard users */
:focus-visible {
    outline: 3px solid var(--mt-rose);
    outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

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

    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }

    /* EAA 2.2.2 — stop the SweetAlert2 spinner from animating indefinitely */
    .swal2-container .swal2-loader,
    .swal2-loader {
        animation: none !important;
        border-color: var(--mt-rose) transparent var(--mt-rose) transparent !important;
    }
}

/* EAA 2.2.2 — cap SweetAlert2 loader to a finite duration even without prefers-reduced-motion */
.swal2-container .swal2-loader,
.swal2-loader {
    animation-iteration-count: 30 !important;
}

/* ─── TYPOGRAPHY ────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--mt-charcoal);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mt-rose-dark);
    margin-bottom: 0.5rem;
}

/* EAA 2.5.8 — when used as a clickable link, ensure the target is at least 24x24.
   Rendered as a visible "pill" so the category stands out from the page bg
   (previously it was rose-dark text on white, which had very low contrast). */
.section-label-link {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--mt-rose-pale);
    color: var(--mt-rose-dark);
    border: 1px solid var(--mt-rose-dark);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.section-label-link:hover,
.section-label-link:focus-visible {
    background: var(--mt-rose-dark);
    color: #fff;
    border-color: var(--mt-rose-dark);
    text-decoration: none;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--mt-warm-gray);
    max-width: 600px;
    margin: 0.5rem auto 0;
}

.section-header {
    margin-bottom: 2rem;
}

.section-padding {
    padding: var(--section-padding);
}

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn-medteq-primary {
    background: var(--mt-rose-dark);
    color: var(--mt-white);
    /* EAA 1.4.11 — pure black border so it contrasts ≥3:1 with the rose-dark fill (~3.74:1) */
    border: 2px solid #000000;
    font-family: var(--font-body);
    font-weight: 500;
    padding: 0.625rem 1.75rem;
    border-radius: 4px;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.btn-medteq-primary:hover,
.btn-medteq-primary:focus-visible {
    background: var(--mt-charcoal);
    border-color: #000000;
    color: var(--mt-white);
    transform: translateY(-1px);
}

.btn-medteq-outline {
    background: transparent;
    color: var(--mt-rose-dark);
    border: 2px solid var(--mt-rose-dark);
    font-family: var(--font-body);
    font-weight: 500;
    padding: 0.625rem 1.75rem;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-medteq-outline:hover,
.btn-medteq-outline:focus-visible {
    background: var(--mt-rose);
    color: var(--mt-white);
}

.btn-white {
    background: var(--mt-white);
    color: var(--mt-charcoal);
    border: 2px solid var(--mt-white);
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-white:hover {
    background: var(--mt-rose-pale);
    color: var(--mt-charcoal);
}

.btn-whatsapp {
    /* EAA 1.4.3 — darkened from #128C3D to reach 4.5:1 contrast on white text */
    background: #0E6E30;
    color: var(--mt-white);
    border: 2px solid #0E6E30;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background: #0A5424;
    border-color: #0A5424;
    color: var(--mt-white);
}

/* ─── TOPBAR ────────────────────────────────────────────────── */
.topbar {
    background: var(--mt-charcoal);
    color: #ffffff;
    font-size: 0.8125rem;
    padding: 0.4rem 0;
}

.topbar a {
    color: #ffffff;
    text-decoration: none;
    margin-right: 1.25rem;
    transition: var(--transition);
}

.topbar a:hover {
    color: var(--mt-rose-light);
}

.topbar a i {
    margin-right: 0.35rem;
}

.lang-switcher {
    display: flex;
    gap: 0.25rem;
}

.lang-switcher a {
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0;
    color: #ffffff;
}

.lang-switcher a.active {
    /* EAA 1.4.3 — use darker rose to reach 4.5:1 contrast for white text */
    background: var(--mt-rose-dark);
    color: var(--mt-white);
}

/* ─── HEADER / NAVIGATION ──────────────────────────────────── */
.main-header {
    background: var(--mt-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.main-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar {
    padding: 0.75rem 0;
}

.navbar-brand img {
    height: 45px;
    width: auto;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--mt-charcoal) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--mt-rose);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
}

.nav-link:hover {
    color: var(--mt-rose) !important;
}

/* ─── HERO SECTION ──────────────────────────────────────────── */
.hero-slide {
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(44, 44, 58, 0.75) 0%, rgba(44, 44, 58, 0.3) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    color: var(--mt-white);
    /* Defensive: never let AOS leave hero content invisible inside a carousel */
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    display: block !important;
}

/* Defensive: AOS sometimes hides children of carousel-items because they are
   display:none until activated. Force visibility on every hero element. */
.hero-section [data-aos],
.hero-section .hero-content,
.hero-section .hero-content * {
    opacity: 1 !important;
    transform: none !important;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--mt-white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* ─── BRAND BAR (Endospheres exclusive) ─────────────────────── */
.brand-bar {
    background: var(--mt-rose-pale);
    border-top: 3px solid var(--mt-rose);
    padding: 1rem 0;
}

.brand-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    text-align: center;
}

.brand-bar-icon {
    width: 44px;
    height: 44px;
    background: var(--mt-rose);
    color: var(--mt-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.brand-bar-text strong {
    display: block;
    font-size: 1rem;
    color: var(--mt-charcoal);
}

.brand-bar-text span {
    font-size: 0.875rem;
    color: var(--mt-warm-gray);
}

/* ─── VALUE PROPOSITION CARDS ───────────────────────────────── */
.values-section {
    background: var(--mt-white);
}

.value-card {
    text-align: center;
    padding: 2rem 1.25rem;
    border-radius: 8px;
    transition: var(--transition);
    height: 100%;
}

.value-card:hover {
    background: var(--mt-rose-pale);
    transform: translateY(-4px);
}

.value-icon {
    width: 56px;
    height: 56px;
    background: var(--mt-rose-light);
    color: var(--mt-rose-dark);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.value-card p {
    font-size: 0.875rem;
    color: var(--mt-warm-gray);
    margin: 0;
}

/* ─── PRODUCT CARDS ─────────────────────────────────────────── */
.product-card {
    background: var(--mt-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(196, 120, 138, 0.12);
}

.product-card-image {
    display: block;
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--mt-light);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--mt-rose-light);
}

.product-card-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    /* EAA 1.4.3 — darker rose for AA 4.5:1 contrast against white text */
    background: var(--mt-rose-dark);
    color: var(--mt-white);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
}

/* Multi-category list overlay (replaces single .product-card-category when present) */
.product-card-category-list {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    z-index: 2;
}

.product-card-category-list .product-card-category {
    position: static;
    top: auto;
    left: auto;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.product-card-category-list .product-card-category.is-primary {
    background: var(--mt-rose-dark);
}

.product-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-body h3 {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-card-body h3 a {
    color: var(--mt-charcoal);
    text-decoration: none;
    transition: var(--transition);
}

.product-card-body h3 a:hover {
    color: var(--mt-rose);
}

.product-card-body p {
    font-size: 0.875rem;
    color: var(--mt-warm-gray);
    flex: 1;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: auto;
}

.product-price {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--mt-rose-dark);
}

/* ─── FINANCING SECTION ─────────────────────────────────────── */
.financing-section {
    background: var(--mt-white);
}

.financing-benefits {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.financing-benefits li {
    padding: 0.4rem 0;
    font-size: 1rem;
    color: var(--mt-charcoal-light);
}

.financing-benefits li i {
    color: var(--mt-leaf-dark);
    margin-right: 0.5rem;
}

.financing-visual {
    display: flex;
    justify-content: center;
}

.financing-card {
    background: var(--mt-rose-pale);
    border: 2px solid var(--mt-rose-light);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    max-width: 320px;
    width: 100%;
}

.financing-card-icon {
    font-size: 3rem;
    color: var(--mt-rose);
    margin-bottom: 1rem;
}

.financing-card-label {
    display: block;
    font-size: 0.875rem;
    color: var(--mt-warm-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.financing-card-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--mt-charcoal);
    margin: 0.25rem 0;
}

.financing-card-note {
    display: block;
    font-size: 0.8125rem;
    color: var(--mt-warm-gray);
}

/* ─── CTA SECTION ───────────────────────────────────────────── */
.cta-section {
    background: var(--mt-charcoal);
    color: var(--mt-white);
    padding: 4rem 0;
}

.cta-section h2 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--mt-white);
    margin-bottom: 0.5rem;
}

.cta-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── ACCORDION / FAQ ───────────────────────────────────────── */
.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 0.5rem;
    border-radius: 6px !important;
    overflow: hidden;
}

.accordion-button {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    color: var(--mt-charcoal);
    padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
    background: var(--mt-rose-pale);
    color: var(--mt-rose-dark);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--mt-rose);
}

.accordion-button::after {
    filter: hue-rotate(330deg);
}

.accordion-body {
    font-size: 0.9375rem;
    color: var(--mt-charcoal-light);
}

/* ─── WHATSAPP FLOAT ────────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    /* EAA 1.4.3 — darker green for AA contrast against the white icon */
    background: #0E6E30;
    color: var(--mt-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(14, 110, 48, 0.35);
    transition: var(--transition);
    z-index: 999;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--mt-white);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

/* ─── FOOTER ────────────────────────────────────────────────── */
.site-footer {
    background: var(--mt-charcoal);
    color: rgba(255, 255, 255, 0.75);
    padding: 4rem 0 1.5rem;
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-title {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--mt-white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--mt-rose-light);
    padding-left: 4px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    /* EAA 2.5.8 — guarantee a 24px tall row so the inline link target meets the minimum */
    min-height: 24px;
    align-items: center;
}

.footer-contact li a {
    /* EAA 2.5.8 — ensure the anchor itself reaches the 24x24 target size */
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 0;
}

.footer-contact li i {
    color: var(--mt-rose);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--mt-rose-light);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--mt-rose);
    border-color: var(--mt-rose);
    color: var(--mt-white);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
}

.trust-badge i {
    color: var(--mt-rose);
    font-size: 1.25rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8125rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--mt-rose-light);
}

/* ─── MODAL OVERRIDES ───────────────────────────────────────── */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: var(--mt-rose-pale);
    border-bottom: 1px solid var(--mt-rose-light);
    border-radius: 12px 12px 0 0;
}

.modal-title {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--mt-charcoal);
}

/* ─── FORMS ─────────────────────────────────────────────────── */
/* EAA 1.4.11 — darken default Bootstrap form borders so they reach 3:1 against white */
.form-control,
.form-select,
.form-check-input,
.form-check-input[type="checkbox"],
.form-check-input[type="radio"] {
    border-color: #595959 !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--mt-rose-dark);
    box-shadow: 0 0 0 0.2rem rgba(155, 91, 106, 0.25);
}

.form-check-input:focus {
    border-color: var(--mt-rose-dark);
    box-shadow: 0 0 0 0.2rem rgba(155, 91, 106, 0.25);
}

/* EAA 2.5.8 — enlarge native checkbox / radio hit areas above the 24px minimum */
.form-check-input[type="checkbox"],
.form-check-input[type="radio"] {
    width: 1.625rem;
    height: 1.625rem;
    margin-top: 0.1rem;
}

/* EAA 1.4.11 — keep a visible border once Bootstrap fills the control on :checked */
.form-check-input:checked,
.form-check-input[type="checkbox"]:checked,
.form-check-input[type="radio"]:checked {
    background-color: var(--mt-rose-dark) !important;
    border-color: #000000 !important;
}

.form-check {
    padding-left: 2.25rem;
    min-height: 1.625rem;
}

.form-check .form-check-input {
    margin-left: -2.25rem;
}

/* ─── CONTACT PAGE ──────────────────────────────────────────── */
.contact-info-card {
    background: var(--mt-rose-pale);
    border-radius: 8px;
    padding: 2rem;
    height: 100%;
}

.contact-info-card h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.contact-info-item i {
    color: var(--mt-rose);
    font-size: 1.25rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* ─── ABOUT PAGE ────────────────────────────────────────────── */
.about-hero {
    background: var(--mt-rose-pale);
    padding: 4rem 0;
}

/* ─── PAGE HEADER ──────────────────────────────────────────── */
.page-header {
    /* EAA 1.4.3 — solid fallback so contrast checkers that ignore gradients still see the dark bg */
    background-color: var(--mt-charcoal);
    background-image: linear-gradient(135deg, var(--mt-charcoal) 0%, var(--mt-charcoal-light) 100%);
    color: var(--mt-white);
    padding: 3.5rem 0 2.5rem;
}

.page-header-compact {
    padding: 2rem 0 1.5rem;
}

.page-header h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 2.5rem;
    color: var(--mt-white);
    margin-bottom: 0.5rem;
}

.page-header-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
}

.page-header .breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.page-header .breadcrumb-item a {
    /* EAA 1.4.3 — raise opacity so the link reaches AA on the charcoal bg */
    color: rgba(255, 255, 255, 0.92);
    text-decoration: underline;
    transition: var(--transition);
}

.page-header .breadcrumb-item a:hover {
    color: var(--mt-rose-light);
}

.page-header .breadcrumb-item.active {
    /* EAA 1.4.3 — raise opacity so the current page label reaches AA on the charcoal bg */
    color: rgba(255, 255, 255, 0.85);
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
}

/* ─── CATEGORY FILTERS ─────────────────────────────────────── */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.btn-filter {
    background: var(--mt-white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--mt-charcoal);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-filter:hover,
.btn-filter.active {
    /* EAA 1.4.3 — darker rose so white text passes AA 4.5:1 */
    background: var(--mt-rose-dark);
    border-color: var(--mt-rose-dark);
    color: var(--mt-white);
}

/* ─── PRODUCT DETAIL ───────────────────────────────────────── */
.product-gallery-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--mt-light);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-gallery-video {
    width: 100%;
    height: 100%;
}

.product-gallery-video video,
.product-gallery-video iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 0;
    display: block;
}

.gallery-thumb-video {
    position: relative;
}

.gallery-thumb-video::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(33, 37, 41, 0.35);
}

.gallery-thumb-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--mt-white);
    font-size: 1.25rem;
    z-index: 1;
}

/* Carousel arrows — only rendered when product has multiple images */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    /* EAA 1.4.3 — translucent dark background so the chevron passes AA against any image */
    background: rgba(33, 37, 41, 0.55);
    color: var(--mt-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
}

.gallery-nav:hover,
.gallery-nav:focus-visible {
    background: var(--mt-rose-dark);
    color: var(--mt-white);
}

.gallery-nav:focus-visible {
    outline: 2px solid var(--mt-white);
    outline-offset: 2px;
}

.gallery-nav-prev { left: 0.75rem; }
.gallery-nav-next { right: 0.75rem; }

@media (max-width: 575.98px) {
    .gallery-nav {
        width: 38px;
        height: 38px;
    }
    .gallery-nav-prev { left: 0.5rem; }
    .gallery-nav-next { right: 0.5rem; }
}

.product-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    /* EAA 1.4.11 — visible default border so inactive thumbs contrast ≥3:1 against white */
    border: 2px solid var(--mt-warm-gray);
    cursor: pointer;
    flex-shrink: 0;
    background: var(--mt-light);
    transition: var(--transition);
    padding: 0;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--mt-rose-dark);
}

.gallery-thumb:focus-visible {
    outline: 2px solid var(--mt-rose);
    outline-offset: 2px;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 2rem;
    color: var(--mt-charcoal);
    margin-bottom: 0.75rem;
}

.product-detail-price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    background: var(--mt-rose-pale);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.price-label {
    font-size: 0.8125rem;
    color: var(--mt-warm-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--mt-rose-dark);
}

/* ─── BUY / RENT PRICE BOXES (re-use the original price-pill look) ───── */
.product-price-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.product-price-box {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    background: var(--mt-rose-pale);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    min-width: 160px;
}

.product-price-box__label {
    font-size: 0.8125rem;
    color: var(--mt-warm-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

.product-price-box__value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--mt-rose-dark);
    line-height: 1.1;
    word-break: break-word;
}

/* Rent variant keeps the rose-pale fill; only the value color shifts to blue
   so the two boxes remain visually distinct without losing the look. */
.product-price-box--rent .product-price-box__value {
    color: #1d4ed8;
}

@media (max-width: 480px) {
    .product-price-group { gap: 0.75rem; }
    .product-price-box { flex: 1 1 100%; }
}

.product-card-placeholder-lg {
    padding: 4rem;
    font-size: 4rem;
}

/* ─── SPECIFICATIONS ───────────────────────────────────────── */
.specs-list {
    display: grid;
    gap: 0;
}

.specs-item {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.specs-item dt {
    font-weight: 500;
    color: var(--mt-charcoal);
    font-size: 0.9375rem;
}

.specs-item dd {
    color: var(--mt-charcoal-light);
    font-size: 0.9375rem;
    margin: 0;
    text-align: right;
}

/* ─── PRODUCT ACTIONS ──────────────────────────────────────── */
.product-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* On phones, stack action/CTA button groups full-width for easier tapping */
@media (max-width: 767.98px) {

    .product-actions,
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .product-actions>.btn,
    .cta-buttons>.btn {
        width: 100%;
    }
}

/* ─── CONTENT BODY (CMS) ──────────────────────────────────── */
.content-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--mt-charcoal-light);
}

.content-body h2,
.content-body h3 {
    color: var(--mt-charcoal);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-body p {
    margin-bottom: 1rem;
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.content-body ul,
.content-body ol {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

/* ─── PRODUCT DESCRIPTION ──────────────────────────────────── */
.product-description {
    background: var(--mt-white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.product-description h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--mt-charcoal);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--mt-rose-pale);
}

/* ─── QUOTE FORM ───────────────────────────────────────────── */
.quote-form {
    background: var(--mt-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* ─── CONTACT PAGE ─────────────────────────────────────────── */
.contact-form-wrapper {
    background: var(--mt-white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    background: rgba(196, 120, 138, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon i {
    font-size: 1rem;
}

.contact-info-item strong {
    display: block;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mt-charcoal);
    margin-bottom: 0.15rem;
}

.contact-info-item p {
    margin: 0;
    font-size: 0.9375rem;
}

.contact-info-item a {
    color: var(--mt-charcoal-light);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info-item a:hover {
    color: var(--mt-rose);
}

.contact-quick-actions {
    margin-top: 1rem;
}

/* ─── FAQ PAGE ─────────────────────────────────────────────── */
.faq-category-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--mt-charcoal);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--mt-rose-pale);
}

.faq-contact-card {
    background: var(--mt-rose-pale);
    border-radius: 12px;
    padding: 2.5rem;
}

/* ─── ABOUT PAGE EXTRAS ────────────────────────────────────── */
.about-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-placeholder {
    background: var(--mt-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    border-radius: 12px;
}

.brand-placeholder {
    background: var(--mt-rose-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    border-radius: 12px;
}

/* ─── BACK TO TOP ──────────────────────────────────────────── */
.btn-back-to-top {
    position: fixed;
    bottom: 5rem;
    left: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--mt-charcoal);
    color: var(--mt-white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    z-index: 998;
    cursor: pointer;
}

.btn-back-to-top:hover {
    background: var(--mt-rose);
    transform: translateY(-3px);
}

.btn-back-to-top:focus-visible {
    outline: 2px solid var(--mt-rose);
    outline-offset: 2px;
}

/* ─── BG UTILITIES ──────────────────────────────────────────── */
.bg-light {
    background: var(--mt-light) !important;
}

.bg-rose-pale {
    background: var(--mt-rose-pale);
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .hero-slide {
        min-height: 50vh;
        padding: 3.5rem 0 4.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .navbar-collapse {
        background: var(--mt-white);
        padding: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }
}

@media (max-width: 575.98px) {
    .hero-slide {
        min-height: 60vh;
        padding: 3rem 0 4.5rem;
    }

    .topbar-contact span {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

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

/* ─── PRINT ─────────────────────────────────────────────────── */
@media print {

    .topbar,
    .main-header,
    .whatsapp-float,
    .cta-section,
    .site-footer {
        display: none;
    }

    body {
        color: #000;
    }
}

/* ═══ EAA / WCAG 2.2 AA accessibility overrides ═══════════════ */
/* Footer text contrast (was 2.04:1 over charcoal) */
.site-footer {
    color: #ffffff;
}

.site-footer .footer-legal-block,
.site-footer .footer-legal-block.text-muted,
.site-footer .footer-legal-block address,
.site-footer .footer-legal-block strong,
.site-footer .footer-legal-block p {
    color: #ffffff !important;
    opacity: 1;
}

.site-footer .footer-legal-block a {
    color: #ffffff !important;
    text-decoration: underline;
}

.site-footer .footer-legal-block a:hover {
    color: var(--mt-rose-light) !important;
}

/* Footer-bottom legal links (was 3.05:1) */
.footer-bottom {
    color: #ffffff;
}

.footer-legal a {
    color: #ffffff;
    text-decoration: underline;
    /* Target size 2.5.8 */
    display: inline-block;
    min-height: 24px;
    padding: 4px 6px;
}

.footer-legal a:hover {
    color: var(--mt-rose-light);
}

/* Cookie manage button — contrast + target size */
.footer-legal .btn-link {
    color: #ffffff !important;
    text-decoration: underline;
    min-height: 24px;
    padding: 4px 6px !important;
}

.footer-legal .btn-link:hover {
    color: var(--mt-rose-light) !important;
}

/* Footer description / contact text fully readable */
.site-footer .footer-brand p,
.footer-links a,
.footer-contact a,
.footer-contact span {
    color: #ffffff;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--mt-rose-light);
}

/* Mobile nav toggle — border contrast (was 1.41:1) */
.navbar-toggler {
    border-color: var(--mt-charcoal) !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px var(--mt-rose-dark);
}
/* ─── PRODUCT PROMOTIONS ─────────────────────────────────────
   The promotion / discount UI re-uses the existing rose palette
   (so it doesn't feel like a different brand) but adds a single
   accent burst — a deep rose chip + a small flag on the image
   corner — to communicate the savings without screaming "SALE".
   Color contrast meets WCAG 2.2 AA against white backgrounds. */

/* Image-corner flag, shown on listing cards + product detail.
   Positioned outside the gallery padding so it overlaps the image
   slightly, like a real-world sticker. */
.product-card-image,
.product-gallery-main {
    position: relative;
}

.product-card-promo,
.product-gallery-promo-flag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    background: var(--mt-rose-dark);
    color: var(--mt-white);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(190, 60, 100, 0.25);
    pointer-events: none;
}

.product-gallery-promo-flag {
    top: 16px;
    left: 16px;
    font-size: 0.9375rem;
    padding: 0.45rem 0.9rem;
}

/* Subtle ring around the whole card when on promotion — keeps the
   grid tidy without breaking the calm look. */
.product-card--promo {
    box-shadow: 0 4px 16px rgba(190, 60, 100, 0.12);
    outline: 1px solid rgba(190, 60, 100, 0.18);
    outline-offset: -1px;
}

/* Listing footer price: original (strikethrough, muted) sits above
   the discounted final price (rose-dark, slightly larger). */
.product-price--promo {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
    gap: 0.1rem;
}

.product-price__original {
    font-size: 0.6875rem;
    color: var(--mt-warm-gray);
    text-decoration: line-through;
    font-weight: 500;
}

.product-price__final {
    font-size: 0.9375rem;
    color: var(--mt-rose-dark);
    font-weight: 700;
}

/* Compact promo banner above the buy/rent boxes on the detail page. */
.product-promo-banner {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--mt-rose-pale) 0%, #fff1f4 100%);
    border: 1px solid rgba(190, 60, 100, 0.22);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    margin: 0.75rem 0 0.25rem;
    color: var(--mt-rose-dark);
    font-weight: 600;
    max-width: 100%;
}

.product-promo-banner__icon {
    display: inline-flex;
    color: var(--mt-rose-dark);
}

.product-promo-banner__label {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
}

.product-promo-banner__badge {
    background: var(--mt-rose-dark);
    color: var(--mt-white);
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    margin-left: auto;
}

/* Buy/Rent boxes: when affected by the promo, show original on top
   (small + strikethrough) and the discounted value below. */
.product-price-box--promo {
    background: linear-gradient(180deg, var(--mt-rose-pale) 0%, #fff5f7 100%);
    border: 1px solid rgba(190, 60, 100, 0.22);
}

.product-price-box__original {
    font-size: 0.8125rem;
    color: var(--mt-warm-gray);
    text-decoration: line-through;
    line-height: 1;
}

/* Keep the rent variant blue value even when discounted. */
.product-price-box--rent.product-price-box--promo .product-price-box__value {
    color: #1d4ed8;
}

.product-detail-price--promo {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.product-detail-price--promo .price-original {
    font-size: 1rem;
    color: var(--mt-warm-gray);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

/* Reduce motion: nothing to disable here, the badge is static. */
