/*
 * @copyright 2026 https://sherifwatny.tech/
 *
 * al-Bahrawi marketing site — custom design system.
 * Plain CSS, no preprocessor, no build step.
 */

:root {
    --brand-primary: #930405;
    --brand-primary-light: #B23336;
    --brand-primary-dark: #6e0303;
    --brand-gold: #B08D57;
    --brand-tint: #F9EDED;
    --brand-neutral: #6E6259;
    --brand-success: #2E7D32;
    --brand-danger: #B00020;
    --brand-dark: #3B2E2E;

    --font-family-base: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;

    --shadow-soft: 0 8px 24px rgba(59, 46, 46, 0.08);
    --shadow-soft-hover: 0 14px 32px rgba(147, 4, 5, 0.14);
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    color: var(--brand-dark);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-base);
    font-weight: 700;
    color: var(--brand-dark);
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: var(--brand-primary-dark);
}

::selection {
    background-color: var(--brand-primary);
    color: #fff;
}

/* ============ Site splash ============ */
/* A thin progress-style bar across the very top of the page, shown
   briefly on every page load as a light "arrival" cue -- deliberately
   NOT a full-screen takeover. Animates scaleX from 0 to 1, then fades
   out and is removed. */
.site-splash {
    position: fixed;
    inset-inline-start: 0;
    inset-inline-end: 0;
    top: 0;
    height: 3px;
    z-index: 2000;
    background: linear-gradient(90deg, var(--brand-gold) 0%, var(--brand-primary) 100%);
    transform-origin: left center;
    transform: scaleX(0);
    opacity: 1;
    pointer-events: none;
}

[dir="rtl"] .site-splash {
    transform-origin: right center;
}

.site-splash-run {
    transform: scaleX(1);
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.site-splash-hide {
    opacity: 0;
    transition: opacity 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
    .site-splash { display: none; }
}

/* ============ Bootstrap color overrides ============ */
.btn-primary-brand {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1.6rem;
    border-radius: var(--radius-sm);
    transition: all .25s ease;
    box-shadow: 0 6px 16px rgba(147, 4, 5, 0.25);
}

.btn-primary-brand:hover,
.btn-primary-brand:focus {
    background-color: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(147, 4, 5, 0.3);
}

.btn-outline-brand {
    background-color: transparent;
    border: 1.5px solid var(--brand-primary);
    color: var(--brand-primary);
    font-weight: 600;
    padding: 0.6rem 1.55rem;
    border-radius: var(--radius-sm);
    transition: all .25s ease;
}

.btn-outline-brand:hover {
    background-color: var(--brand-primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-gold {
    background-color: var(--brand-gold);
    border-color: var(--brand-gold);
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1.6rem;
    border-radius: var(--radius-sm);
    transition: all .25s ease;
}

.btn-gold:hover {
    background-color: #97754a;
    border-color: #97754a;
    color: #fff;
    transform: translateY(-2px);
}

.btn-coming-soon {
    background-color: rgba(59, 46, 46, 0.06);
    border: 1.5px dashed rgba(59, 46, 46, 0.25);
    color: var(--brand-neutral);
    font-weight: 600;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: not-allowed;
    user-select: none;
}

.text-brand-primary { color: var(--brand-primary) !important; }
.text-brand-gold { color: var(--brand-gold) !important; }
.text-brand-neutral { color: var(--brand-neutral) !important; }
.bg-brand-tint { background-color: var(--brand-tint) !important; }
.bg-brand-dark { background-color: var(--brand-dark) !important; }
.bg-brand-primary { background-color: var(--brand-primary) !important; }

/* ============ Layout helpers ============ */
.section {
    padding: 5rem 0;
}

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

@media (max-width: 767.98px) {
    .section { padding: 3.25rem 0; }
    .section-sm { padding: 2.25rem 0; }
}

.section-header {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
    margin-bottom: 3rem;
}

.section-eyebrow {
    display: inline-block;
    color: var(--brand-gold);
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--brand-neutral);
    font-size: 1.05rem;
    line-height: 1.9;
}

/* ============ Navbar ============ */
.navbar-brand-site {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 18px rgba(59, 46, 46, 0.08);
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    z-index: 1030;
}

.navbar-brand-mark {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-decoration: none;
}

.brand-mark-main {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--brand-primary);
}

.brand-mark-sub {
    font-size: 0.7rem;
    color: var(--brand-neutral);
    font-weight: 500;
}

.navbar-brand-site .nav-link {
    font-weight: 600;
    color: var(--brand-dark);
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar-brand-site .nav-link:hover,
.navbar-brand-site .nav-link.active {
    color: var(--brand-primary);
}

.navbar-actions { flex-wrap: wrap; }

.btn-lang-switch {
    border: 1.5px solid rgba(147, 4, 5, 0.25);
    background-color: transparent;
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
}

.btn-lang-switch:hover {
    background-color: var(--brand-tint);
}

.btn-sm-nav {
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
}

@media (max-width: 991.98px) {
    .navbar-actions {
        margin-top: 1rem;
        justify-content: flex-start;
    }
}

/* ============ Hero ============ */
.hero {
    background: linear-gradient(155deg, var(--brand-tint) 0%, #fff 55%, #fff 100%);
    padding: 6rem 0 5rem;
    overflow: hidden;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset-inline-end: -10%;
    top: -20%;
    width: 45%;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(147, 4, 5, 0.08) 0%, rgba(147, 4, 5, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(176, 141, 87, 0.14);
    color: var(--brand-gold);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--brand-neutral);
    line-height: 1.9;
    margin-bottom: 2rem;
    max-width: 560px;
}

@media (max-width: 767.98px) {
    .hero { padding: 3.5rem 0 3rem; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ============ Hero founder showcase ============ */
.hero-founder {
    position: relative;
    padding-inline-end: clamp(1rem, 4vw, 2.5rem);
    padding-block: 1.5rem 3rem;
    perspective: 1400px;
}

.hero-founder-frame {
    position: relative;
    max-width: 420px;
    margin-inline: auto;
    transform-style: preserve-3d;
    transform: rotateX(0deg) rotateY(0deg);
    transition: transform 0.15s ease-out;
    will-change: transform;
}

.hero-founder-frame::before {
    content: "";
    position: absolute;
    inset: -6% -10% -2% -10%;
    background: linear-gradient(155deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 45% 45% / var(--radius-lg) var(--radius-lg) 12% 12%;
    z-index: 0;
    box-shadow:
        var(--shadow-soft-hover),
        0 40px 60px -20px rgba(59, 46, 46, 0.35),
        0 15px 25px -8px rgba(147, 4, 5, 0.3);
    transform: translateZ(-40px);
}

.hero-founder-frame::after {
    content: "";
    position: absolute;
    inset-inline-end: -12%;
    top: -18%;
    width: 55%;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(176, 141, 87, 0.4) 0%, rgba(176, 141, 87, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: hero-founder-glow 4s ease-in-out infinite;
}

@keyframes hero-founder-glow {
    0%, 100% { opacity: 0.75; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

.hero-founder-ring {
    position: absolute;
    inset: -3%;
    z-index: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 42% 42% / var(--radius-lg) var(--radius-lg) 11% 11%;
    border: 1.5px solid rgba(176, 141, 87, 0.55);
    transform: translateZ(-15px);
    pointer-events: none;
}

.hero-founder-photo {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 3.6;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius-lg) var(--radius-lg) 40% 40% / var(--radius-lg) var(--radius-lg) 10% 10%;
    filter: drop-shadow(0 18px 30px rgba(59, 46, 46, 0.22));
    transform: translateZ(20px);
}

.hero-founder-countries {
    position: relative;
    z-index: 2;
    margin: -1.5rem auto 0;
    width: fit-content;
    max-width: calc(100% - 1.5rem);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background-color: #fff;
    border: 1px solid rgba(59, 46, 46, 0.08);
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    box-shadow: var(--shadow-soft), 0 20px 35px -12px rgba(59, 46, 46, 0.25);
    transform: translateZ(45px);
}

.hero-founder-country {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--brand-dark);
    white-space: nowrap;
}

.hero-founder-flag {
    font-size: 1.05rem;
    line-height: 1;
}

.hero-founder-country-divider {
    width: 1px;
    height: 1.1rem;
    background-color: rgba(59, 46, 46, 0.14);
    flex-shrink: 0;
}

.hero-founder-card {
    position: absolute;
    inset-inline-start: clamp(0px, 2vw, 1rem);
    bottom: 0.5rem;
    z-index: 2;
    background-color: var(--brand-dark);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 0.85rem 1.3rem;
    box-shadow: var(--shadow-soft-hover), 0 25px 40px -15px rgba(0, 0, 0, 0.4);
    max-width: 240px;
    transform: translateZ(60px);
}

.hero-founder-name {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.hero-founder-title {
    font-size: 0.78rem;
    color: var(--brand-gold);
    font-weight: 600;
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .hero-founder {
        padding-inline-end: 0;
        padding-block: 1rem 3.5rem;
    }

    .hero-founder-card {
        inset-inline-start: 50%;
        transform: translateX(-50%);
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .hero-founder-frame {
        max-width: 300px;
    }

    .hero-founder-country {
        font-size: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce), (hover: none) {
    .hero-founder-frame {
        transition: none;
        transform: none !important;
    }

    .hero-founder-frame::after {
        animation: none;
    }
}

/* ============ Cards ============ */
.card-brand {
    background-color: #fff;
    border: 1px solid rgba(59, 46, 46, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: all .3s ease;
    height: 100%;
}

.card-brand:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft-hover);
    border-color: rgba(147, 4, 5, 0.12);
}

.card-icon {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-md);
    background-color: var(--brand-tint);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.service-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.service-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.service-card-summary {
    color: var(--brand-neutral);
    font-size: 0.95rem;
    line-height: 1.85;
    flex-grow: 1;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card-link {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* ============ Stats ============ */
.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
}

.stat-value {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1;
}

.stat-suffix {
    font-size: 2rem;
    color: var(--brand-gold);
    font-weight: 800;
}

.stat-label {
    color: var(--brand-neutral);
    font-weight: 600;
    margin-top: 0.6rem;
}

/* ============ Values ============ */
.value-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--brand-tint);
    border-radius: var(--radius-md);
    height: 100%;
}

.value-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--brand-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-label {
    font-weight: 700;
    margin: 0;
}

/* ============ Branches ============ */
.branch-card {
    padding: 2rem;
}

.branch-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.branch-phones {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.branch-phone-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--brand-tint);
    color: var(--brand-primary);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    direction: ltr;
}

.branch-phone-chip:hover {
    background-color: var(--brand-primary);
    color: #fff;
}

/* ============ App promo band ============ */
.app-band {
    background: linear-gradient(155deg, var(--brand-dark) 0%, #2a2020 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
}

.app-band::after {
    content: "";
    position: absolute;
    inset-inline-end: -10%;
    top: -30%;
    width: 50%;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(176, 141, 87, 0.25) 0%, rgba(176, 141, 87, 0) 70%);
    border-radius: 50%;
}

@media (max-width: 767.98px) {
    .app-band { padding: 2.25rem 1.5rem; }
}

.app-store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1.5px dashed rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.75);
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-sm);
    cursor: not-allowed;
    user-select: none;
}

.store-badge i {
    font-size: 1.5rem;
}

.store-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.store-badge-text small {
    font-size: 0.7rem;
    opacity: 0.85;
}

.store-badge-text strong {
    font-size: 0.95rem;
}

/* ============ Team ============ */
.team-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background-color: var(--brand-tint);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0 auto 1.1rem;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px var(--brand-tint);
}

.team-photo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.1rem;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px var(--brand-tint);
}

.team-card {
    text-align: center;
    padding: 1.75rem 1.25rem;
}

.team-name {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.team-title {
    color: var(--brand-neutral);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ============ About Banners ============ */
.about-banner-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
}

/* ============ Closing CTA ============ */
.cta-band {
    background: linear-gradient(155deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    text-align: center;
    color: #fff;
}

.cta-band .btn-gold {
    margin-top: 0.5rem;
}

@media (max-width: 767.98px) {
    .cta-band { padding: 2.5rem 1.5rem; }
}

/* ============ Forms ============ */
.form-control-brand,
.form-select-brand {
    border: 1.5px solid rgba(59, 46, 46, 0.15);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
}

.form-control-brand:focus,
.form-select-brand:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(147, 4, 5, 0.12);
}

.form-label-brand {
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.contact-info-card {
    background-color: var(--brand-tint);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info-item:last-child { margin-bottom: 0; }

.contact-info-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background-color: #fff;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============ Articles / FAQ ============ */
.article-card {
    padding: 1.75rem;
}

.article-card-date {
    font-size: 0.82rem;
    color: var(--brand-gold);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.article-card-title {
    font-size: 1.15rem;
    margin-bottom: 0.65rem;
}

.article-card-excerpt {
    color: var(--brand-neutral);
    font-size: 0.95rem;
    line-height: 1.85;
}

.empty-state {
    text-align: center;
    padding: 4rem 1.5rem;
    background-color: var(--brand-tint);
    border-radius: var(--radius-lg);
}

.empty-state-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background-color: #fff;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.faq-accordion .accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.faq-accordion .accordion-button {
    font-weight: 700;
    padding: 1.25rem 1.5rem;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background-color: var(--brand-tint);
    color: var(--brand-primary);
    box-shadow: none;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.faq-accordion .accordion-body {
    color: var(--brand-neutral);
    line-height: 1.9;
    padding: 0 1.5rem 1.5rem;
}

/* ============ Page header (interior pages) ============ */
.page-header {
    background: linear-gradient(155deg, var(--brand-tint) 0%, #fff 100%);
    padding: 4rem 0 3rem;
    text-align: center;
}

.page-header-title {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.page-header-subtitle {
    color: var(--brand-neutral);
    font-size: 1.05rem;
    max-width: 600px;
    margin-inline: auto;
}

.breadcrumb-brand {
    font-size: 0.9rem;
    color: var(--brand-neutral);
}

.breadcrumb-brand a {
    color: var(--brand-neutral);
    font-weight: 600;
}

.breadcrumb-brand a:hover { color: var(--brand-primary); }

/* ============ Footer ============ */
.site-footer {
    background-color: var(--brand-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.site-footer .footer-brand {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.site-footer .brand-mark-main {
    color: #fff;
    font-size: 1.4rem;
}

.site-footer .brand-mark-sub {
    color: rgba(255, 255, 255, 0.6);
}

.footer-motto {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
}

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

.footer-social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}

.footer-social-link:hover {
    background-color: var(--brand-gold);
    color: #fff;
    transform: translateY(-3px);
}

.footer-heading {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

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

.footer-links li {
    margin-bottom: 0.85rem;
    display: flex;
    flex-direction: column;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: var(--brand-gold);
}

.footer-branch-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
}

.footer-branch-phone {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.12);
    margin: 2.5rem 0 1.5rem;
}

.footer-bottom {
    text-align: center;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-credit a {
    color: var(--brand-gold);
    font-weight: 600;
}

/* ============ Alerts ============ */
.alert-brand-success {
    background-color: rgba(46, 125, 50, 0.1);
    border: 1px solid rgba(46, 125, 50, 0.25);
    color: var(--brand-success);
    border-radius: var(--radius-md);
}

.alert-brand-danger {
    background-color: rgba(176, 0, 32, 0.08);
    border: 1px solid rgba(176, 0, 32, 0.25);
    color: var(--brand-danger);
    border-radius: var(--radius-md);
}

.alert-brand-warning {
    background-color: rgba(176, 141, 87, 0.1);
    border: 1px solid rgba(176, 141, 87, 0.3);
    color: var(--brand-gold);
    border-radius: var(--radius-md);
}

/* ============ Scroll reveal ============ */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ Misc ============ */
.badge-service-select {
    color: var(--brand-neutral);
}

.list-check {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-check li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    line-height: 1.7;
}

.list-check li i {
    color: var(--brand-success);
    margin-top: 0.3rem;
}

.coming-soon-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--brand-tint);
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
}

/* Voice agent — mic + speaker toggle buttons attached to chat inputs */
.voice-mic-btn,
.voice-speaker-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: var(--brand-primary, #930405);
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.voice-mic-btn:hover,
.voice-speaker-btn:hover {
    background: var(--brand-tint, #f6e5e5);
}

.voice-mic-btn.is-listening {
    background: var(--brand-primary, #930405);
    color: #fff;
    animation: voiceMicPulse 1.1s ease-in-out infinite;
}

.voice-speaker-btn.is-active {
    background: var(--brand-primary, #930405);
    color: #fff;
}

@keyframes voiceMicPulse {
    0% { box-shadow: 0 0 0 0 rgba(147, 4, 5, 0.45); }
    70% { box-shadow: 0 0 0 10px rgba(147, 4, 5, 0); }
    100% { box-shadow: 0 0 0 0 rgba(147, 4, 5, 0); }
}

.voice-conversation-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--brand-primary, #930405);
    background: #fff;
    color: var(--brand-primary, #930405);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1.1rem;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.voice-conversation-btn:hover {
    background: var(--brand-tint, #f6e5e5);
}

.voice-conversation-btn.is-active {
    background: var(--brand-primary, #930405);
    color: #fff;
    animation: voiceMicPulse 1.1s ease-in-out infinite;
}

/* ===== Voice Assistant launcher + full call overlay ===== */
.voice-assistant-launcher {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--brand-primary, #930405), var(--brand-primary-dark, #6e0303));
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.65rem 1.35rem;
    cursor: pointer;
    box-shadow: 0 6px 18px -6px rgba(147, 4, 5, 0.55);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.voice-assistant-launcher:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px -6px rgba(147, 4, 5, 0.65);
}

.voice-assistant-launcher i {
    font-size: 1rem;
}

#voiceAssistantOverlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 10, 10, 0.55);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.25s ease;
    padding: 20px;
}

#voiceAssistantOverlay.is-open {
    opacity: 1;
}

#voiceAssistantOverlay .va-card {
    width: 100%;
    max-width: 380px;
    background: linear-gradient(180deg, #2a0d0d, #150707 70%);
    border-radius: 28px;
    padding: 36px 28px 30px;
    text-align: center;
    color: #fdf3f2;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
    position: relative;
    transform: scale(0.94) translateY(10px);
    transition: transform 0.25s ease;
}

#voiceAssistantOverlay.is-open .va-card {
    transform: scale(1) translateY(0);
}

#voiceAssistantOverlay .va-close {
    position: absolute;
    top: 16px;
    inset-inline-end: 18px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

#voiceAssistantOverlay .va-title {
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 34px;
    letter-spacing: 0.01em;
}

#voiceAssistantOverlay .va-orb-wrap {
    position: relative;
    width: 148px;
    height: 148px;
    margin: 0 auto 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#voiceAssistantOverlay .va-orb-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
}

#voiceAssistantOverlay .va-orb {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #e34546, var(--brand-primary, #930405) 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 0 0 0 rgba(227, 69, 70, 0.5);
    transition: box-shadow 0.2s ease;
}

#voiceAssistantOverlay .va-orb-wrap.is-idle .va-orb {
    opacity: 0.85;
}

#voiceAssistantOverlay .va-orb-wrap.is-listening .va-orb {
    animation: vaListenPulse 1.6s ease-in-out infinite;
}

#voiceAssistantOverlay .va-orb-wrap.is-listening .va-orb-ring {
    animation: vaRingPulse 1.6s ease-in-out infinite;
}

#voiceAssistantOverlay .va-orb-wrap.is-thinking .va-orb {
    animation: vaThinkSpin 1.1s linear infinite;
    background: conic-gradient(from 0deg, var(--brand-primary, #930405), #e34546, var(--brand-primary, #930405));
}

#voiceAssistantOverlay .va-orb-wrap.is-speaking .va-orb {
    animation: vaSpeakPulse 0.5s ease-in-out infinite alternate;
}

@keyframes vaListenPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(227, 69, 70, 0.45); }
    50% { box-shadow: 0 0 0 16px rgba(227, 69, 70, 0); }
}

@keyframes vaRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.12); opacity: 0.3; }
}

@keyframes vaThinkSpin {
    to { transform: rotate(360deg); }
}

@keyframes vaSpeakPulse {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}

#voiceAssistantOverlay .va-status {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    min-height: 1.4em;
    margin-bottom: 10px;
    font-weight: 600;
}

#voiceAssistantOverlay .va-transcript {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    min-height: 3.2em;
    max-height: 5.6em;
    overflow-y: auto;
    line-height: 1.6;
    margin-bottom: 26px;
    padding: 0 6px;
}

#voiceAssistantOverlay .va-end-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

#voiceAssistantOverlay .va-end-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

@media (prefers-reduced-motion: reduce) {
    #voiceAssistantOverlay .va-orb-wrap.is-listening .va-orb,
    #voiceAssistantOverlay .va-orb-wrap.is-listening .va-orb-ring,
    #voiceAssistantOverlay .va-orb-wrap.is-thinking .va-orb,
    #voiceAssistantOverlay .va-orb-wrap.is-speaking .va-orb {
        animation: none;
    }
}
