/* Puerdun Machinery — public site
   Identity: deep navy steel + safety yellow, industrial and clean. */
:root {
    --brand: #f5a400;
    --brand-600: #dc9200;
    --brand-50: #fff6e0;
    --ink: #0d1b2a;
    --ink-2: #1b2a3d;
    --steel: #3d5a80;
    --muted: #64748b;
    --line: #e3e8ef;
    --bg-alt: #f4f6f9;
    --wa: #25d366;
    --wa-600: #1ebe5a;
    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(13, 27, 42, .06), 0 2px 8px rgba(13, 27, 42, .05);
    --shadow: 0 10px 30px rgba(13, 27, 42, .10);
    --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.is-rtl { --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif; }

html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1, h2, h3, h4, .navbar, .btn { font-family: var(--font); }
a { color: var(--steel); }
a:hover { color: var(--ink); }
img { max-width: 100%; }
/* Wide gutters overflow the container padding on phones. */
@media (max-width: 767.98px) { .g-5 { --bs-gutter-x: 1.5rem; } }
.flip-rtl { display: inline-block; }
.is-rtl .flip-rtl { transform: scaleX(-1); }
.skip-link { position: absolute; inset-inline-start: 1rem; top: 1rem; z-index: 2000; background: var(--brand); color: var(--ink); padding: .5rem 1rem; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Buttons */
.btn { font-weight: 600; border-radius: 10px; }
.btn-lg { padding: .8rem 1.5rem; font-size: 1rem; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-600); border-color: var(--brand-600); color: var(--ink); }
.btn-whatsapp { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: var(--wa-600); border-color: var(--wa-600); color: #fff; }
.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-outline-dark { border-color: #cfd6df; color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); border-color: var(--ink); }
.btn-link { color: var(--ink); text-decoration: none; font-weight: 700; }
.btn-link:hover { color: var(--brand-600); }
.btn-icon { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); font-weight: 800; }
.btn-select { border: 1.5px solid var(--ink); color: var(--ink); background: #fff; display: inline-flex; align-items: center; gap: .35rem; justify-content: center; }
.btn-select:hover { background: var(--ink); color: #fff; }
.btn-select.is-selected { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.btn-icon-danger { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: #b42318; display: grid; place-items: center; }
.btn-icon-danger:hover { background: #fee4e2; border-color: #fecdca; }

/* Top bar */
.topbar { background: var(--ink); color: #c9d3df; padding: .45rem 0; font-size: .85rem; }
.topbar a { color: #c9d3df; text-decoration: none; }
.topbar a:hover { color: var(--brand); }
.topbar .bi { color: var(--brand); margin-inline-end: .25rem; }
.lang-link { border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: .15rem .75rem; }
.social-icons { display: flex; gap: .6rem; }
.social-icons a .bi { color: inherit; margin: 0; }
.social-icons-lg a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; text-decoration: none; font-size: 1.1rem; transition: background .2s, color .2s; }
.social-icons-lg a:hover { background: var(--brand); color: var(--ink); }

/* Header */
/* No backdrop-filter here: it would trap the fixed mobile off-canvas menu inside the header. */
.site-header { background: #fff; border-bottom: 1px solid var(--line); z-index: 1030; }
.site-header .navbar { padding: .7rem 0; }
.navbar-brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); margin: 0; }
.brand-logo { height: 56px; width: auto; flex-shrink: 0; }
/* The company name is always shown in English, in both languages. */
.brand-name { font-family: 'Barlow', sans-serif; font-weight: 800; font-size: 1rem; line-height: 1.15; color: #062550; max-width: 230px; white-space: normal; text-align: left; }
@media (max-width: 575.98px) {
    .brand-logo { height: 46px; }
    .brand-name { font-size: .78rem; max-width: 150px; }
}
@media (max-width: 359.98px) { .brand-name { display: none; } }
.navbar-nav .nav-link { color: var(--ink); font-weight: 600; padding: .5rem .9rem !important; border-radius: 8px; position: relative; }
.navbar-nav .nav-link:hover { color: var(--brand-600); }
.navbar-nav .nav-link.active { color: var(--ink); }
.navbar-nav .nav-link.active::after { content: ""; position: absolute; inset-inline: .9rem; bottom: .1rem; height: 3px; border-radius: 3px; background: var(--brand); }
.btn-request { position: relative; background: var(--ink); color: #fff; border-radius: 10px; height: 42px; display: inline-flex; align-items: center; gap: .4rem; padding: 0 .85rem; }
.btn-request:hover { background: var(--ink-2); color: #fff; }
.btn-request .badge { background: var(--brand); color: var(--ink); font-size: .72rem; }
.navbar-toggler { border: 1px solid var(--line); width: 42px; height: 42px; font-size: 1.5rem; padding: 0; border-radius: 10px; }
.navbar-toggler:focus { box-shadow: none; }
@media (max-width: 991.98px) {
    .offcanvas-lg { --bs-offcanvas-width: min(320px, 85vw); }
    .offcanvas-lg .navbar-nav .nav-link { padding: .8rem 1rem !important; font-size: 1.05rem; }
    .offcanvas-lg .navbar-nav .nav-link.active { background: var(--brand-50); }
    .offcanvas-lg .navbar-nav .nav-link.active::after { display: none; }
}

/* Hero slider */
.hero { background: var(--ink); }
.hero .carousel-item { height: clamp(420px, 72vh, 680px); }
.hero .carousel-item > img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,27,42,.88) 0%, rgba(13,27,42,.55) 50%, rgba(13,27,42,.15) 100%); }
.is-rtl .hero-overlay { background: linear-gradient(270deg, rgba(13,27,42,.88) 0%, rgba(13,27,42,.55) 50%, rgba(13,27,42,.15) 100%); }
.hero-caption { position: absolute; inset: 0; display: flex; align-items: center; color: #fff; }
.hero-caption-inner { max-width: 640px; }
.hero-kicker { display: inline-block; color: var(--brand); font-weight: 700; margin-bottom: .75rem; font-size: .95rem; }
.hero-title { font-size: clamp(1.9rem, 4.5vw, 3.4rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.hero-text { font-size: clamp(1rem, 1.6vw, 1.2rem); color: #d6dee8; margin-bottom: 1.75rem; max-width: 520px; }
.hero .carousel-indicators [data-bs-target] { width: 28px; height: 4px; border-radius: 2px; background: #fff; }
.hero .carousel-indicators .active { background: var(--brand); }
.hero .carousel-control-prev, .hero .carousel-control-next { width: 6%; }

/* Stats */
.stats-band { background: var(--brand); }
.stat { text-align: center; padding: 1.6rem .5rem; border-inline-end: 1px solid rgba(13,27,42,.12); }
.stats-band .col-6:last-child .stat { border: 0; }
.stat strong { display: block; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.1; font-family: 'Barlow', sans-serif; }
.stat span { font-weight: 600; font-size: .92rem; }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; color: var(--brand-600); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .5rem; }
.eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 2px; background: var(--brand); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: .6rem; }
.section-lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; max-width: 620px; }
.block-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 1rem; }

/* Page hero */
.page-hero { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 60%, #23405f 100%); color: #fff; padding: 2.5rem 0 2.75rem; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset-inline-end: -60px; top: -60px; width: 260px; height: 260px; border: 28px solid rgba(245,164,0,.12); border-radius: 50%; }
.page-hero h1 { font-weight: 800; font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 0; position: relative; z-index: 1; }
.page-hero p { color: #c4cfdc; margin: .6rem 0 0; max-width: 680px; position: relative; z-index: 1; }
.page-hero .breadcrumb { margin-bottom: .6rem; font-size: .9rem; }
.page-hero .breadcrumb a { color: var(--brand); text-decoration: none; }
.page-hero .breadcrumb-item.active, .page-hero .breadcrumb-item + .breadcrumb-item::before { color: #9fb0c3; }

/* Category tiles */
.category-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; color: #fff; text-decoration: none; background: var(--ink); }
@media (min-width: 1200px) { .category-tile { aspect-ratio: 4 / 5; } }
.category-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; opacity: .85; }
.category-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,27,42,0) 30%, rgba(13,27,42,.92) 100%); }
.category-tile-body { position: absolute; inset-inline: 0; bottom: 0; padding: 1.2rem; z-index: 1; }
.category-tile-body .bi { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--brand); color: var(--ink); font-size: 1.2rem; margin-bottom: .7rem; }
.category-tile h3 { font-size: 1.08rem; font-weight: 800; margin: 0 0 .2rem; }
.category-tile span { font-size: .85rem; color: #c9d3df; }
.category-tile:hover { color: #fff; }
.category-tile:hover img { transform: scale(1.06); }

/* About */
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; box-shadow: var(--shadow); }
.about-badge { position: absolute; bottom: -1.25rem; inset-inline-end: 1.5rem; background: var(--brand); color: var(--ink); padding: 1rem 1.4rem; border-radius: 12px; box-shadow: var(--shadow); text-align: center; }
.about-badge strong { display: block; font-size: 2rem; font-weight: 800; line-height: 1; }
.about-badge span { font-size: .85rem; font-weight: 700; }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.check-list .bi { color: var(--brand-600); margin-inline-end: .35rem; }

/* Product card */
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s, border-color .25s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.product-card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--bg-alt); overflow: hidden; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-card-media img { transform: scale(1.04); }
.product-card-cat { position: absolute; top: .75rem; inset-inline-start: .75rem; background: rgba(13,27,42,.85); color: #fff; font-size: .75rem; font-weight: 600; padding: .25rem .6rem; border-radius: 6px; }
.product-card-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.product-card-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 .6rem; line-height: 1.35; }
.product-card-title a { color: var(--ink); text-decoration: none; }
.product-card-title a:hover { color: var(--brand-600); }
.product-card-specs { margin: 0 0 .9rem; font-size: .86rem; display: grid; gap: .35rem; }
.product-card-specs div { display: flex; gap: .4rem; flex-wrap: wrap; }
.product-card-specs dt { color: var(--muted); font-weight: 500; }
.product-card-specs dd { margin: 0; font-weight: 600; }
.product-card-footer { margin-top: auto; padding-top: .9rem; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: .7rem; }
.product-card-footer .d-flex > * { flex: 1; }
.product-card-footer form .btn { width: 100%; }
.product-price { font-weight: 800; font-size: 1.15rem; color: var(--ink); font-family: 'Barlow', var(--font); }
.product-price.is-request { font-size: .92rem; color: var(--steel); font-family: var(--font); }

/* Catalog toolbar */
.catalog-toolbar { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.search-box { display: flex; align-items: center; gap: .5rem; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: .35rem; padding-inline-start: 1rem; box-shadow: var(--shadow-sm); }
.search-box:focus-within { border-color: var(--brand); }
.search-box .bi { color: var(--muted); }
.search-box input { flex: 1; border: 0; outline: 0; min-width: 0; padding: .5rem .25rem; font-size: 1rem; background: transparent; }
.category-filter { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; }
.chip { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; background: #fff; transition: all .2s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.active .bi { color: var(--brand); }
.empty-state { text-align: center; padding: 4rem 1rem; background: var(--bg-alt); border-radius: var(--radius); }
.empty-state > .bi { font-size: 3rem; color: var(--brand); }
.empty-state h2 { font-size: 1.35rem; font-weight: 800; margin: 1rem 0 .5rem; }
.empty-state p { color: var(--muted); }
.pagination { --bs-pagination-color: var(--ink); --bs-pagination-active-bg: var(--ink); --bs-pagination-active-border-color: var(--ink); --bs-pagination-border-radius: 10px; }

/* Request bar */
.request-bar { position: sticky; bottom: 0; z-index: 1020; background: var(--ink); color: #fff; padding: .75rem 0; box-shadow: 0 -6px 20px rgba(0,0,0,.15); }
.request-bar .bi { color: var(--brand); }
.request-bar[hidden] { display: none; }

/* Product page */
.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); aspect-ratio: 4 / 3; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: .6rem; margin-top: .75rem; }
.gallery-thumbs button { border: 2px solid transparent; border-radius: 10px; overflow: hidden; padding: 0; background: none; aspect-ratio: 4 / 3; opacity: .7; transition: opacity .2s, border-color .2s; }
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--brand); opacity: 1; }
.product-summary { position: sticky; top: 100px; }
.badge-cat { display: inline-block; background: var(--brand-50); color: var(--brand-600); font-weight: 700; font-size: .85rem; padding: .3rem .75rem; border-radius: 999px; text-decoration: none; }
.product-name { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; margin: .75rem 0; }
.product-price-lg { font-size: 2rem; font-weight: 800; margin-bottom: 1.25rem; font-family: 'Barlow', var(--font); }
.product-price-lg.is-request { font-size: 1.15rem; color: var(--steel); background: var(--bg-alt); display: inline-block; padding: .45rem .9rem; border-radius: 8px; font-family: var(--font); }
.spec-table { width: 100%; margin-bottom: 1.5rem; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.spec-table th, .spec-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 40%; background: var(--bg-alt); color: var(--muted); font-weight: 600; }
.spec-table td { font-weight: 600; }
.rich-text { line-height: 1.85; font-size: 1.04rem; color: #2b3a4c; }
.rich-text h2, .rich-text h3 { color: var(--ink); font-weight: 800; margin: 1.6rem 0 .75rem; }
.rich-text h2 { font-size: 1.5rem; }
.rich-text h3 { font-size: 1.2rem; }
.rich-text > :first-child { margin-top: 0; }
.rich-text ul { padding-inline-start: 1.2rem; }
.rich-text li::marker { color: var(--brand-600); }
.rich-text .ql-align-center { text-align: center; }
.rich-text .ql-align-right { text-align: right; }
.rich-text .ql-align-left { text-align: left; }
.video-frame { border-radius: var(--radius); overflow: hidden; background: #000; }
.video-frame video, .video-frame iframe { width: 100%; height: 100%; border: 0; }

/* Request page */
.request-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .75rem; }
.request-item { display: flex; align-items: center; gap: 1rem; padding: .85rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.request-item img { width: 110px; height: 82px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.request-item-body { flex: 1; min-width: 0; }
.request-item-title { font-weight: 700; color: var(--ink); text-decoration: none; display: block; margin-bottom: .25rem; }
.request-item-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; color: var(--muted); font-size: .86rem; margin-bottom: .25rem; }
.request-summary { position: sticky; top: 100px; background: var(--bg-alt); border-radius: var(--radius); padding: 1.5rem; }
@media (max-width: 575.98px) {
    .request-item { align-items: flex-start; }
    .request-item img { width: 80px; height: 60px; }
}

/* Feature boxes */
.feature-box { height: 100%; padding: 1.75rem 1.5rem; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: background .25s, transform .25s; }
.feature-box:hover { background: rgba(255,255,255,.07); transform: translateY(-3px); }
.feature-box h3 { font-size: 1.15rem; font-weight: 800; margin: 1rem 0 .5rem; }
.feature-box p { color: #a9b7c7; margin: 0; }
.feature-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--brand); color: var(--ink); display: grid; place-items: center; font-size: 1.5rem; }

/* Services */
.service-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .25s; }
.service-card:hover { box-shadow: var(--shadow); }
.service-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-card-body { padding: 1.5rem; }
.service-card h2 { font-size: 1.15rem; font-weight: 800; margin: 1rem 0 .5rem; }
.service-card p { color: var(--muted); margin: 0; }

/* CTA */
.cta-band { background: var(--brand); padding: 3rem 0; background-image: repeating-linear-gradient(-45deg, rgba(13,27,42,.04) 0 14px, transparent 14px 28px); }
.cta-band h2 { font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: .4rem; }
.cta-band p { font-weight: 500; max-width: 640px; }

/* Contact */
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.form-control, .form-select { border-radius: 10px; padding: .7rem .9rem; border-color: #d4dbe4; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(245,164,0,.2); }
.form-label { font-weight: 600; }
.contact-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); height: 100%; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .bi { width: 44px; height: 44px; border-radius: 12px; background: rgba(245,164,0,.15); color: var(--brand); display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0; }
.contact-list small { display: block; color: #93a4b8; font-size: .8rem; }
.contact-list a { color: #fff; text-decoration: none; }
.contact-list a:hover { color: var(--brand); }
.map-frame { border-radius: var(--radius); overflow: hidden; height: 400px; border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* Footer */
.site-footer { background: #08131f; color: #c3cedb; padding-top: 4rem; }
.footer-brand { display: flex; align-items: center; gap: .9rem; color: #fff; font-size: 1.05rem; font-family: 'Barlow', sans-serif; line-height: 1.3; }
.footer-brand img { height: 72px; width: auto; flex-shrink: 0; }
.footer-title { color: #fff; font-size: 1.05rem; font-weight: 800; margin-bottom: 1.1rem; position: relative; padding-bottom: .6rem; }
.footer-title::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 32px; height: 3px; border-radius: 2px; background: var(--brand); }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-links a, .footer-contact a { color: #c3cedb; text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--brand); }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact .bi { color: var(--brand); margin-top: .15rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 3rem; padding: 1.25rem 0; font-size: .88rem; color: #8293a7; }
.footer-bottom a { color: #c3cedb; text-decoration: none; }
.footer-bottom .footer-credit { color: var(--brand); font-weight: 700; }
.footer-bottom .footer-credit:hover { text-decoration: underline; }

/* Floating WhatsApp */
.wa-float { position: fixed; bottom: 1.25rem; inset-inline-end: 1.25rem; z-index: 1025; /* below the header and its menu */ display: flex; align-items: center; gap: .5rem; height: 58px; min-width: 58px; padding: 0 1.05rem; border-radius: 999px; background: var(--wa); color: #fff; text-decoration: none; box-shadow: 0 8px 24px rgba(37,211,102,.45); font-weight: 700; transition: transform .2s; }
.wa-float .bi { font-size: 1.6rem; line-height: 1; }
.wa-float:hover { color: #fff; transform: scale(1.05); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa); animation: wa-pulse 2.2s infinite; }
.wa-float-label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .3s; }
.wa-float:hover .wa-float-label, .wa-float:focus-visible .wa-float-label { max-width: 220px; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
body:has(.request-bar:not([hidden])) .wa-float { bottom: 5.25rem; }

/* 404 */
.not-found { padding: clamp(4rem, 10vw, 7rem) 0; background: radial-gradient(circle at 50% 0%, var(--brand-50), #fff 60%); }
.not-found-code { display: flex; align-items: center; justify-content: center; gap: .5rem; font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; color: var(--ink); font-family: 'Barlow', sans-serif; direction: ltr; }
.not-found-code .bi { color: var(--brand); font-size: .8em; animation: spin 8s linear infinite; }
.not-found h1 { font-weight: 800; margin-top: 1rem; }
.not-found p { color: var(--muted); font-size: 1.1rem; }
@keyframes spin { to { transform: rotate(360deg); } }

.alert { border-radius: 12px; border: 0; }
.alert-success { background: #e8f8ee; color: #135c33; }
.alert-danger { background: #fdecec; color: #8a1c1c; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
