/* =====================================================================
   Al Khaleej Opticals — UI / motion enhancements
   Loaded after styles.css on every page. All motion respects
   prefers-reduced-motion (see the block at the bottom).
   ===================================================================== */

:root {
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --shadow-soft: 0 10px 30px rgba(45, 7, 14, 0.1);
    --shadow-lift: 0 18px 40px rgba(45, 7, 14, 0.16);
}

/* Smooth page-to-page cross-fade where the browser supports it */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.22s ease both vt-out; }
::view-transition-new(root) { animation: 0.38s var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Header ---------- */
.site-header { transition: box-shadow 0.3s ease, padding 0.3s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(45, 7, 14, 0.3); }
.site-header .logo-img { transition: transform 0.3s var(--ease-out); }
.site-header.is-scrolled .logo-img { transform: scale(0.92); }

.site-nav a { position: relative; }
@media (min-width: 981px) {
    .site-nav a::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -6px;
        width: 0;
        height: 2px;
        background: var(--gold-light);
        transition: width 0.3s var(--ease-out), left 0.3s var(--ease-out);
    }
    .site-nav a:hover::after,
    .site-nav a.active::after { width: 100%; left: 0; }
}

/* ---------- Buttons ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, filter 0.2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(45, 7, 14, 0.2); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
    transform: translateX(-120%);
}
.btn:hover::after { transform: translateX(120%); transition: transform 0.7s var(--ease-out); }
.btn-arrow { transition: transform 0.25s var(--ease-out); }
.btn-hero:hover .btn-arrow { transform: translateX(4px); }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-outline-dark { border-color: var(--maroon); color: var(--maroon); background: transparent; }
.btn-outline-dark:hover { background: var(--maroon); color: #fff; }
.btn-hero-ghost {
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #fff;
    padding: 14px 24px;
    font-size: 0.95rem;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.08);
}
.btn-hero-ghost:hover { background: rgba(255, 255, 255, 0.2); border-color: #fff; }

/* ---------- Hero ---------- */
.hero-slide-bg.active img { animation: kenburns 14s ease-out both; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-content h1 { max-width: 18ch; }
.hero-content h1 em {
    display: block;
    margin-top: 0.3em;
    font-style: normal;
    font-size: 0.5em;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--gold-light);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.hero-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    margin-top: 26px;
}
.hero-trust li {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(4px);
}
.hero-content > * { animation: heroIn 0.9s var(--ease-out) both; }
.hero-content > :nth-child(1) { animation-delay: 0.1s; }
.hero-content > :nth-child(2) { animation-delay: 0.22s; }
.hero-content > :nth-child(3) { animation-delay: 0.34s; }
.hero-content > :nth-child(4) { animation-delay: 0.46s; }
.hero-content > :nth-child(5) { animation-delay: 0.58s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Parallax on inner page banners (value set by enhance.js) */
.page-banner-bg { transform: translate3d(0, var(--py, 0px), 0) scale(1.08); will-change: transform; }

/* ---------- Cards: lift + cursor spotlight ---------- */
.service-card, .corp-service-card, .collection-card, .branch-card, .brand-card, .industry-card, .process-step, .value-item, .local-card {
    position: relative;
    overflow: hidden;
}
.service-card::before, .corp-service-card::before, .collection-card::before, .branch-card::before, .industry-card::before, .process-step::before, .value-item::before, .local-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(201, 154, 60, 0.16), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.service-card:hover::before, .corp-service-card:hover::before, .collection-card:hover::before, .branch-card:hover::before, .industry-card:hover::before, .process-step:hover::before, .value-item:hover::before, .local-card:hover::before { opacity: 1; }
.service-icon img, .why-icon img { transition: transform 0.4s var(--ease-out); }
.service-card:hover .service-icon img, .why-points li:hover .why-icon img { transform: scale(1.12) rotate(-4deg); }
.about-image-wrap img, .why-image img, .services-why-image img, .about-visual-main img { transition: transform 0.8s var(--ease-out); }
.about-image-wrap:hover img, .why-image:hover img, .services-why-image:hover img, .about-visual-main:hover img { transform: scale(1.04); }
.about-image-wrap, .why-image, .services-why-image, .about-visual-main { overflow: hidden; }

/* ---------- Brand marquee ---------- */
.brands-lead { max-width: 60ch; margin: 0 auto 8px; color: rgba(248, 236, 226, 0.85); }
.marquee {
    overflow: hidden;
    margin-top: 34px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 38s linear infinite; padding: 6px 0; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-item {
    flex: none;
    width: 180px;
    height: 100px;
    display: grid;
    place-items: center;
    padding: 16px;
    background: #fff;
    border-radius: 14px;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.marquee-item img { max-height: 56px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(35%); transition: filter 0.3s ease; }
.marquee-item:hover { transform: translateY(-6px) scale(1.04); box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3); }
.marquee-item:hover img { filter: none; }
@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } }

/* ---------- Home: local + corporate ---------- */
.local-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.local-copy p { margin-bottom: 14px; }
.local-copy a:not(.btn), .collection-intro a, .faq-intro a, .brand-intro-text a:not(.btn) { color: var(--maroon-soft); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.local-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-soft); }
.local-card h3 { color: var(--maroon); }
.local-list { list-style: none; margin: 10px 0 16px; }
.local-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.local-list a { color: var(--maroon-soft); font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.local-list a:hover { color: var(--gold); }
.local-hours { font-size: 0.92rem; line-height: 1.8; }
.open-now-wrap { margin: 18px 0; }
.open-now-wrap.center { text-align: center; }
.open-now {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text);
}
.open-now::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9a8f8f; }
.open-now.is-open { color: #14663a; border-color: #bfe3cd; background: #eefaf2; }
.open-now.is-open::before { background: #1fa855; box-shadow: 0 0 0 0 rgba(31, 168, 85, 0.6); animation: pulse 2s infinite; }
.open-now.is-closed { color: #8a2d2d; border-color: #efcaca; background: #fdf1f1; }
.open-now.is-closed::before { background: #c0392b; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(31, 168, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 168, 85, 0); } }

.corp-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 28px; }
.corp-chips li { padding: 8px 16px; border-radius: 999px; background: var(--soft-bg); border: 1px solid var(--line); font-size: 0.86rem; font-weight: 600; color: var(--maroon); }
.fine-print { font-size: 0.8rem; color: #7a6d6e; margin-top: 14px; }

/* ---------- FAQ accordion ---------- */
.faq-wrap { max-width: 860px; }
.faq-intro { max-width: 62ch; margin: 0 auto 26px; color: var(--text); }
.faq-group-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--maroon); margin: 34px 0 14px; }
.faq-list { display: grid; gap: 12px; margin-top: 22px; }
.faq-group-title + .faq-list { margin-top: 0; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: box-shadow 0.3s ease, border-color 0.3s ease; }
.faq-item:hover { box-shadow: var(--shadow-soft); }
.faq-item[open] { border-color: var(--gold); box-shadow: var(--shadow-soft); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 56px 18px 22px;
    font-weight: 600;
    color: var(--ink);
    position: relative;
    border-radius: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--soft-bg);
    color: var(--maroon);
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 0.3s var(--ease-out), background 0.3s ease, color 0.3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--maroon); color: #fff; }
.faq-a { padding: 0 22px 20px; color: var(--text); line-height: 1.7; }
.faq-item[open] .faq-a { animation: faqIn 0.4s var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Brands index ---------- */
.brand-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin: 24px 0 28px; }
.brand-filter .pill { transition: all 0.25s ease; }
.brand-filter .pill:hover { border-color: var(--maroon); }
.brand-filter .search { min-width: 220px; }
.brand-card { display: flex; flex-direction: column; transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, opacity 0.3s ease; }
.brand-card.is-hidden { display: none; }
.brand-card.is-showing { animation: faqIn 0.45s var(--ease-out); }
.brand-card-link { display: flex; flex-direction: column; height: 100%; margin: 0; }
.brand-card-link h3 { margin: 14px 14px 2px; }
.brand-card .brand-card-link { margin: 0; color: inherit; font-size: inherit; font-weight: inherit; }
.brand-card-type { margin: 0 14px; font-size: 0.78rem; color: #7a6d6e; letter-spacing: 0.04em; text-transform: uppercase; }
.brand-card-cta { margin: 10px 14px 16px; font-weight: 600; font-size: 0.88rem; color: var(--maroon-soft); transition: color 0.2s ease, transform 0.25s var(--ease-out); display: inline-block; }
.brand-card:hover .brand-card-cta { color: var(--gold); transform: translateX(4px); }
.brand-card-img img { transition: transform 0.4s var(--ease-out); }
.brand-card:hover .brand-card-img img { transform: scale(1.08); }
.brand-empty { text-align: center; margin-top: 24px; color: #7a6d6e; }

/* ---------- Brand pages ---------- */
.brand-intro { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: 48px; align-items: start; }
.brand-logo-panel { background: var(--soft-bg); border: 1px solid var(--line); border-radius: 20px; display: grid; place-items: center; padding: 34px; min-height: 190px; }
.brand-logo-panel img { max-height: 110px; width: auto; object-fit: contain; }
.brand-intro-tag { margin: 16px 0 10px; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: var(--gold); }
.brand-highlights { list-style: none; display: grid; gap: 8px; }
.brand-highlights li, .check-grid li { position: relative; padding-left: 26px; font-size: 0.95rem; }
.brand-highlights li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.brand-intro-text p { margin-bottom: 14px; }
.collection-intro { max-width: 62ch; margin: 0 auto 8px; }
.collection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 30px; }
.collection-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease; }
.collection-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.collection-num { font-family: "Cormorant Garamond", serif; font-size: 2.4rem; color: var(--gold); opacity: 0.6; line-height: 1; display: block; margin-bottom: 8px; }
.collection-card h3 { font-size: 1.3rem; color: var(--maroon); }
.collection-card p { font-size: 0.93rem; margin-bottom: 14px; }
.collection-card a { font-weight: 600; font-size: 0.88rem; color: var(--maroon-soft); }
.collection-card a:hover { color: var(--gold); }
.products-title { margin-top: 44px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-top: 22px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; text-align: center; transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.product-img { background: var(--soft-bg); border-radius: 12px; padding: 14px; margin-bottom: 12px; display: grid; place-items: center; height: 150px; }
.product-img img { max-height: 120px; width: auto; object-fit: contain; }
.product-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.product-price { font-weight: 700; color: var(--maroon); margin: 4px 0 10px; }
.shape-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.shape-strip a { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 10px 14px; text-align: center; font-weight: 600; font-size: 0.9rem; transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease; }
.shape-strip a:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.shape-strip img { margin: 0 auto 10px; max-height: 70px; width: auto; object-fit: contain; }
.why-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.why-mini article { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.why-mini h4 { color: var(--maroon); }
.why-mini p { font-size: 0.92rem; }
.why-mini a { color: var(--maroon-soft); font-weight: 600; text-decoration: underline; }
.related-brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 24px; }
.related-brand { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; justify-items: center; gap: 10px; font-weight: 600; font-size: 0.9rem; transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease; }
.related-brand img { max-height: 48px; width: auto; object-fit: contain; }
.related-brand:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

/* ---------- Locations ---------- */
.branch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 30px; }
.branch-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease; }
.branch-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.branch-num { position: absolute; top: 14px; right: 18px; font-family: "Cormorant Garamond", serif; font-size: 3rem; color: var(--gold); opacity: 0.35; line-height: 1; }
.branch-card h3 { font-size: 1.25rem; color: var(--maroon); padding-right: 36px; }
.branch-card p { margin-bottom: 8px; font-size: 0.93rem; }
.branch-card a:not(.btn) { color: var(--maroon-soft); font-weight: 600; }
.branch-area { color: #7a6d6e; }
.area-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.area-chips li { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 0.86rem; font-weight: 600; color: var(--maroon); }

/* ---------- Corporate proposal form + shared form polish ---------- */
.proposal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.proposal-grid .contact-form-panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-soft); padding: 32px; }
.proposal-grid .contact-form-panel h3 { color: var(--maroon); margin-bottom: 16px; }
.contact-form-panel select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #ddd5c8;
    border-radius: 8px;
    margin-bottom: 14px;
    font: inherit;
    font-size: 16px;
    background: #faf8f5;
    color: var(--text);
}
.contact-form-panel input:focus, .contact-form-panel textarea:focus, .contact-form-panel select:focus { border-color: var(--gold); outline: 2px solid rgba(201, 154, 60, 0.35); outline-offset: 1px; }
.contact-form-panel .is-invalid { border-color: #c0392b; background: #fff7f6; }
.contact-form-note { font-size: 0.86rem; margin-top: 10px; min-height: 1.2em; }
.contact-form-note.is-error { color: #a12b20; }
.contact-form-note.is-ok { color: #14663a; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer SEO strip ---------- */

/* ---------- 404 ---------- */
.not-found { min-height: 55vh; display: grid; align-items: center; }
.not-found h1 { margin: 6px 0 12px; color: var(--maroon); }

/* ---------- Mobile action bar ---------- */
.mobile-actions { display: none; }
@media (max-width: 760px) {
    .mobile-actions {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 250;
        background: var(--maroon-deep);
        border-top: 1px solid rgba(201, 154, 60, 0.4);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
        transform: translateY(0);
        transition: transform 0.3s var(--ease-out);
    }
    .mobile-actions a {
        display: grid;
        justify-items: center;
        gap: 3px;
        padding: 6px 2px;
        color: #f8efe9;
        font-size: 0.7rem;
        font-weight: 600;
        border-radius: 10px;
    }
    .mobile-actions a:active { background: rgba(255, 255, 255, 0.1); }
    .mobile-actions svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .mobile-actions a.is-wa svg { fill: #25d366; stroke: none; }
    body.has-mobile-actions { padding-bottom: 66px; }
    body.has-mobile-actions .whatsapp-fab { display: none; }
    body.has-mobile-actions .back-to-top { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .local-grid, .proposal-grid, .brand-intro { grid-template-columns: 1fr; gap: 28px; }
    .shape-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .marquee-item { width: 140px; height: 84px; }
    .hero-actions .btn { width: 100%; max-width: 280px; }
    .hero-trust li { font-size: 0.72rem; padding: 5px 10px; }
    .brand-filter .search { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
    .marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
    .marquee-track { animation: none; }
    .marquee-item[aria-hidden="true"] { display: none; }
    .page-banner-bg { transform: none; }
}


/* ---------- Header stays visible while scrolling ---------- */
.site-header { position: sticky; top: 0; z-index: 500; }

/* ---------- Contact cards: line icons ---------- */
.contact-card-icon { width: 54px; height: 54px; transition: transform 0.35s var(--ease-out), background 0.3s ease; }
.contact-card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-card:nth-child(odd) .contact-card-icon { background: rgba(232, 200, 120, 0.16); color: var(--gold-light); box-shadow: inset 0 0 0 1px rgba(232, 200, 120, 0.35); }
.contact-card:nth-child(even) .contact-card-icon { background: var(--soft-bg); color: var(--maroon); box-shadow: inset 0 0 0 1px var(--line); }
.contact-card:hover .contact-card-icon { transform: translateY(-3px) scale(1.08) rotate(-4deg); }

/* ---------- Contact form ---------- */
#contactForm.contact-form-panel { padding: clamp(28px, 4vw, 44px); background: linear-gradient(180deg, #fff, var(--soft-bg)); }
.form-kicker { color: var(--gold); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.74rem; font-weight: 700; margin-bottom: 6px; }
.form-lead { color: #6b5e60; font-size: 0.94rem; margin: -8px 0 22px; }
.contact-form-panel input, .contact-form-panel textarea, .contact-form-panel select {
    border-radius: 12px;
    border: 1.5px solid #e4dbcd;
    background: #fff;
    padding: 15px 16px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease-out);
}
.contact-form-panel input::placeholder, .contact-form-panel textarea::placeholder { color: #a39698; }
.contact-form-panel input:hover, .contact-form-panel textarea:hover, .contact-form-panel select:hover { border-color: #d3c3a8; }
.contact-form-panel input:focus, .contact-form-panel textarea:focus, .contact-form-panel select:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 4px rgba(201, 154, 60, 0.18);
    transform: translateY(-1px);
}
.contact-form-panel select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 42px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233d0d14' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center; }
.btn-block { width: 100%; padding: 15px 22px; font-size: 1rem; gap: 10px; }
.btn-block span { transition: transform 0.25s var(--ease-out); }
.btn-block:hover span { transform: translateX(5px); }

/* ---------- Home: full-bleed hero with transparent header ---------- */
.home-page .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
}
.home-page .site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, var(--maroon-deep) 0%, var(--maroon-soft) 42%, #6b3a14 78%, var(--gold) 140%);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.home-page .site-header.is-scrolled,
.home-page .site-header:has(.site-nav.open) { border-bottom-color: rgba(201, 154, 60, 0.25); }
.home-page .site-header.is-scrolled { box-shadow: 0 8px 30px rgba(45, 7, 14, 0.3); }
.home-page .site-header.is-scrolled::before,
.home-page .site-header:has(.site-nav.open)::before { opacity: 1; }

.home-page .hero-showcase { padding: 0; }
.home-page .hero-showcase > .container { width: 100%; max-width: none; margin: 0; }
.home-page .hero-shell {
    border-radius: 0;
    box-shadow: none;
    min-height: 100vh;
    min-height: 100svh;
}
.home-page .hero-content {
    min-height: 100vh;
    min-height: 100svh;
    padding: 130px 28px 110px;
}
.home-page .hero-shade {
    background:
        linear-gradient(180deg, rgba(15, 4, 7, 0.65) 0%, rgba(15, 4, 7, 0) 22%),
        linear-gradient(180deg, rgba(15, 4, 7, 0.2) 0%, rgba(15, 4, 7, 0.45) 45%, rgba(15, 4, 7, 0.7) 100%);
}
@media (max-width: 760px) {
    .home-page .hero-content { padding: 110px 20px 96px; }
}

/* Service cards: the icon circle overhangs the card's top edge, so don't clip it */
.service-card { overflow: visible; }
.service-card::before { border-radius: inherit; }

/* =====================================================================
   Modern forms (contact + corporate): floating labels, soft card
   ===================================================================== */
.modern-form.contact-form-panel {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: clamp(26px, 4vw, 42px);
    box-shadow: 0 24px 60px rgba(45, 7, 14, 0.1);
    overflow: hidden;
}
.modern-form.contact-form-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--maroon), var(--gold), var(--gold-light));
}
.modern-form h2, .modern-form h3 { color: var(--maroon); margin-bottom: 6px; }
.modern-form .form-lead { margin: 0 0 24px; }

.modern-form .field { position: relative; margin-bottom: 16px; }
.modern-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modern-form .field input,
.modern-form .field textarea,
.modern-form .field select {
    width: 100%;
    margin: 0;
    padding: 25px 16px 9px;
    border: 1.5px solid #e6ddd0;
    border-radius: 14px;
    background: #fbf9f6;
    font: inherit;
    font-size: 16px;
    color: var(--ink);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.modern-form .field textarea { min-height: 130px; resize: vertical; padding-top: 28px; }
.modern-form .field input:hover, .modern-form .field textarea:hover, .modern-form .field select:hover { border-color: #d6c6aa; background: #fff; }
.modern-form .field input:focus, .modern-form .field textarea:focus, .modern-form .field select:focus {
    outline: none;
    transform: none;
    background: #fff;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201, 154, 60, 0.16);
}
.modern-form .field label {
    position: absolute;
    left: 17px;
    top: 17px;
    font-size: 0.95rem;
    color: #8f8284;
    pointer-events: none;
    transform-origin: left top;
    transition: transform 0.2s var(--ease-out), color 0.2s ease;
}
/* floated state: focused, filled, or a select (always shows its value) */
.modern-form .field input:focus + label,
.modern-form .field input:not(:placeholder-shown) + label,
.modern-form .field textarea:focus + label,
.modern-form .field textarea:not(:placeholder-shown) + label,
.modern-form .field-select label {
    transform: translateY(-11px) scale(0.78);
    color: var(--maroon-soft);
    font-weight: 600;
}
.modern-form .field input:focus + label,
.modern-form .field textarea:focus + label,
.modern-form .field select:focus + label { color: #a87a1c; }
.modern-form .field select:required:invalid { color: #a39698; }
.modern-form .field.field-select::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -2px;
    border-right: 2px solid var(--maroon);
    border-bottom: 2px solid var(--maroon);
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
}
.modern-form .field .is-invalid { border-color: #c0392b; background: #fff7f6; box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.1); }

.modern-form .btn-block {
    margin-top: 6px;
    padding: 16px 24px;
    background: linear-gradient(120deg, var(--maroon-deep), var(--maroon-soft));
    box-shadow: 0 12px 26px rgba(61, 13, 20, 0.28);
}
.modern-form .btn-block:hover { background: linear-gradient(120deg, var(--maroon-soft), #7a2a1e); box-shadow: 0 16px 32px rgba(61, 13, 20, 0.34); }
.modern-form .contact-form-note { text-align: center; margin: 12px 0 0; }
.form-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 0.8rem;
    color: #8f8284;
}
.form-trust svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* corporate section: softer, more premium backdrop for the form */
.proposal-section { background: radial-gradient(900px 400px at 90% 0%, rgba(201, 154, 60, 0.12), transparent 60%), var(--soft-bg); }
.proposal-grid .modern-form.contact-form-panel { padding: clamp(26px, 4vw, 40px); }

@media (max-width: 560px) {
    .modern-form .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Custom dropdown (replaces the native select popup) ---------- */
.modern-form .field-select select { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.modern-form .field-select.field::after { transition: transform 0.25s var(--ease-out); }
.modern-form .field-select:has(.dd.is-open)::after { transform: translateY(-30%) rotate(-135deg); }
.dd { position: relative; }
.dd-btn {
    display: block;
    width: 100%;
    min-height: 58px;
    padding: 25px 44px 9px 16px;
    border: 1.5px solid #e6ddd0;
    border-radius: 14px;
    background: #fbf9f6;
    text-align: left;
    font: inherit;
    font-size: 16px;
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.dd-btn.is-empty { color: #a39698; }
.dd-btn:hover { border-color: #d6c6aa; background: #fff; }
.dd-btn:focus-visible, .dd.is-open .dd-btn { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(201, 154, 60, 0.16); }
.modern-form .field-select select.is-invalid ~ .dd .dd-btn { border-color: #c0392b; background: #fff7f6; box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.1); }
.dd-list {
    position: absolute;
    z-index: 40;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    max-height: 260px;
    overflow-y: auto;
    list-style: none;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 22px 50px rgba(45, 7, 14, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.18s ease, transform 0.22s var(--ease-out), visibility 0.18s;
}
.dd.is-open .dd-list { opacity: 1; visibility: visible; transform: none; }
.dd-list li {
    position: relative;
    padding: 12px 40px 12px 14px;
    border-radius: 10px;
    font-size: 0.97rem;
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.dd-list li.is-active { background: var(--soft-bg); color: var(--maroon); }
.dd-list li.is-selected { font-weight: 600; color: var(--maroon); }
.dd-list li.is-selected::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 6px;
    height: 11px;
    margin-top: -7px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
}
.dd-list::-webkit-scrollbar { width: 8px; }
.dd-list::-webkit-scrollbar-thumb { background: #e0d3bd; border-radius: 8px; }

/* let the dropdown list overflow the card; round the top accent bar instead */
.modern-form.contact-form-panel { overflow: visible; }
.modern-form.contact-form-panel::before { border-radius: 24px 24px 0 0; }

/* footer: copyright only, centred */
.footer-bar-inner { justify-content: center; text-align: center; }

/* ---------- Back-to-top ---------- */
.back-to-top {
    width: 46px;
    height: 46px;
    background: #fff;
    color: var(--maroon);
    border: 1.5px solid var(--gold);
    box-shadow: 0 10px 26px rgba(45, 7, 14, 0.22);
    font-size: 0;
    transition: opacity 0.3s ease, transform 0.3s var(--ease-out), visibility 0.3s, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.back-to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease-out); }
.back-to-top:hover { background: var(--maroon); color: var(--gold-light); border-color: var(--maroon); box-shadow: 0 14px 30px rgba(45, 7, 14, 0.32); }
.back-to-top:hover svg { transform: translateY(-3px); }

/* ---------- Arrows: one consistent rounded line arrow (replaces → ‹ › characters) ---------- */
.arr {
    display: inline-block;
    flex: none;
    width: 1.15em;
    height: 1em;
    margin-left: 0.4em;
    vertical-align: -0.14em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12h16'/%3E%3Cpath d='m13.5 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12h16'/%3E%3Cpath d='m13.5 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.3s var(--ease-out);
}
.arr-left { margin: 0; transform: scaleX(-1); }
a:hover > .arr, .btn:hover .arr, button:hover > .arr { transform: translateX(4px); }
a:hover > .arr-left, button:hover > .arr-left { transform: translateX(-4px) scaleX(-1); }
.btn-arrow .arr { width: 16px; height: 16px; margin: 0; vertical-align: 0; }
.btn-hero:hover .btn-arrow .arr { transform: none; }
.testimonial-nav-btn .arr, .map-nav-btn .arr { width: 20px; height: 20px; margin: 0; vertical-align: middle; }
.testimonial-nav-btn, .map-nav-btn { display: grid; place-items: center; line-height: 1; }
