/* ==========================================================================
   Health Axis – Medical Supplies L.L.C
   Brand: blue #0A539E · green #4DB848 · light grey #F4F6F8
   Type:  Bw Modelica (EN) · Frutiger LT Arabic (AR)
   Logical CSS properties are used so Arabic (RTL) works natively.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: "Modelica"; src: url("../fonts/modelica-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Modelica"; src: url("../fonts/modelica-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Modelica"; src: url("../fonts/modelica-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Frutiger Arabic"; src: url("../fonts/frutiger-ar-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Frutiger Arabic"; src: url("../fonts/frutiger-ar-400.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
    --blue-950: #04213f;
    --blue-900: #062f5b;
    --blue-800: #08417d;
    --blue: #0a539e;          /* brand */
    --blue-600: #1f67b4;
    --blue-100: #e3edf8;
    --blue-50: #f1f6fc;
    --green: #4db848;         /* brand accent */
    --green-700: #2f8a2b;     /* accessible green text */
    --green-100: #e5f4e4;
    --grey: #f4f6f8;
    --ink: #0d1b2a;
    --text: #344356;
    --muted: #5f6d7e;
    --line: #dfe5ec;

    --font: "Modelica", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(6, 47, 91, .06), 0 2px 8px rgba(6, 47, 91, .05);
    --shadow: 0 12px 32px -14px rgba(6, 47, 91, .28);
    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 78px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --pulse: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20h170l8-14 10 30 10-34 9 28 6-10h187' fill='none' stroke='%234db848' stroke-width='2.2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
}
html[dir="rtl"] { --font: "Frutiger Arabic", "Segoe UI", Tahoma, sans-serif; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body { font-family: var(--font); font-size: 1.0625rem; line-height: 1.7; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
html[dir="rtl"] body { font-size: 1.1rem; line-height: 1.85; font-synthesis: none; }
main { flex: 1; outline: none; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul[class] { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; font-weight: 700; text-wrap: balance; letter-spacing: -.02em; }
html[dir="rtl"] :is(h1, h2, h3, h4) { line-height: 1.4; letter-spacing: 0; font-weight: 400; }
p { text-wrap: pretty; }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 1.3rem + 1.9vw, 2.8rem); }
h3, .h3 { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); letter-spacing: -.01em; }
.h4 { font-size: 1.05rem; }
.lead { font-size: 1.15em; color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--green-100); color: var(--blue-900); }
.icon { width: 1.2em; height: 1.2em; flex: none; }
html[dir="rtl"] .icon-dir { transform: scaleX(-1); }
html[dir="rtl"] [dir="ltr"] { font-family: "Modelica", system-ui, "Segoe UI", Arial, sans-serif; unicode-bidi: isolate; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.section { padding-block: clamp(64px, 9vw, 116px); }
.section-tint { background: var(--grey); }
.section-blue { background: linear-gradient(135deg, var(--blue-900), var(--blue) 70%, var(--blue-600)); color: #d3e2f3; position: relative; overflow: hidden; }
.section-blue h2, .section-blue h3 { color: #fff; }

.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-700); margin-bottom: 14px; }
.kicker::before { content: ""; width: 44px; height: 14px; background: var(--pulse) center / 100% 100% no-repeat; }
html[dir="rtl"] .kicker { letter-spacing: 0; font-size: .98rem; font-weight: 400; }
html[dir="rtl"] .kicker::before { transform: scaleX(-1); }
.kicker-light { color: #9fe09b; }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 48px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head > p { max-width: 440px; color: var(--muted); }
.section-head-center { flex-direction: column; align-items: center; text-align: center; }

/* ---------- Buttons ---------- */
.btn { --bg: var(--blue); --fg: #fff; --bd: var(--blue); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border: 1.5px solid var(--bd); border-radius: 12px; background: var(--bg); color: var(--fg); font-weight: 500; font-size: .98rem; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
html[dir="rtl"] .btn { font-size: 1.05rem; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary:hover { --bg: var(--blue-800); --bd: var(--blue-800); }
.btn-outline { --bg: #fff; --fg: var(--blue); --bd: var(--blue); }
.btn-outline:hover { --bg: var(--blue); --fg: #fff; }
.btn-ghost { --bg: rgba(255, 255, 255, .85); --fg: var(--blue-900); --bd: var(--line); }
.btn-ghost:hover { --bd: var(--blue); }
.btn-light { --bg: #fff; --fg: var(--blue-900); --bd: #fff; }
.btn-light:hover { --bg: var(--green-100); --bd: var(--green-100); }
.btn-ghost-light { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .45); }
.btn-ghost-light:hover { --bg: rgba(255, 255, 255, .1); --bd: #fff; }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .92rem; }
.btn-lg { min-height: 54px; padding: 14px 28px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; pointer-events: none; }

.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--blue); color: #fff; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(6, 47, 91, .5); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand img { height: 46px; width: auto; }
.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: 2px; list-style: none; padding: 0; }
.main-nav ul a { position: relative; display: block; padding: 8px 13px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; border-radius: 10px; transition: color .2s, background-color .2s; }
html[dir="rtl"] .main-nav ul a { font-size: 1.05rem; font-weight: 400; }
.main-nav ul a:hover { color: var(--blue); background: var(--blue-50); }
.main-nav ul a.is-active { color: var(--blue); }
.main-nav ul a.is-active::after { content: ""; position: absolute; inset-inline: 13px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--green); }
.nav-mobile-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 6px 12px; border-radius: 10px; color: var(--blue-900); text-decoration: none; font-weight: 500; font-size: .95rem; border: 1px solid var(--line); transition: border-color .2s, background-color .2s; }
.lang-switch:hover { border-color: var(--blue); background: var(--blue-50); }
.lang-switch[lang="ar"] span { font-family: "Frutiger Arabic", sans-serif; font-size: 1.02rem; }
.lang-switch[lang="en"] span { font-family: "Modelica", sans-serif; font-size: .92rem; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; place-items: center; }
.bars { display: grid; gap: 5px; width: 20px; }
.bars span { display: block; height: 2px; background: var(--blue-900); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1040px) {
    .header-cta { display: none; }
    .menu-toggle { display: grid; }
    .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; background: #fff; border-top: 1px solid var(--line); padding: 16px var(--gutter) 28px; box-shadow: 0 30px 40px -30px rgba(6, 47, 91, .4); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
    .main-nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
    .main-nav ul { flex-direction: column; }
    .main-nav ul a { padding: 14px 12px; font-size: 1.1rem; }
    .main-nav ul a.is-active { background: var(--blue-50); }
    .main-nav ul a.is-active::after { display: none; }
    .nav-mobile-extra { display: grid; gap: 14px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
    .nav-phone { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--blue); font-weight: 500; text-decoration: none; }
    .brand img { height: 40px; }
    body.nav-open { overflow: hidden; }
}
@media (max-width: 400px) { .lang-switch .icon { display: none; } .brand img { height: 32px; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: #f3f4f5; min-height: min(760px, calc(100svh - var(--header-h))); display: grid; align-items: center; padding-block: clamp(48px, 7vw, 96px) clamp(72px, 9vw, 120px); }
.hero-bg { position: absolute; top: 0; inset-inline-end: 0; width: min(64%, 980px); height: 100%; object-fit: cover; object-position: left center; z-index: -2; }
html[dir="rtl"] .hero-bg { transform: scaleX(-1); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #f3f4f5 34%, rgba(243, 244, 245, .85) 50%, rgba(243, 244, 245, 0) 72%); }
html[dir="rtl"] .hero::before { background: linear-gradient(-90deg, #f3f4f5 34%, rgba(243, 244, 245, .85) 50%, rgba(243, 244, 245, 0) 72%); }
.hero-copy { max-width: 620px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--blue); font-weight: 500; font-size: .88rem; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
html[dir="rtl"] .eyebrow { padding: 6px 10px 6px 14px; font-size: 1rem; }
.eyebrow .icon { color: var(--green); }
.hero h1 { color: var(--blue-900); margin-bottom: 22px; }
.hero h1 span { color: var(--green-700); }
.hero-text { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink); font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { color: #fff; background: var(--green); border-radius: 50%; padding: 3px; width: 20px; height: 20px; }
.pulse-line { height: 40px; background: var(--pulse) center / 100% 100% no-repeat; }
.pulse-line-hero { position: absolute; inset-inline: 0; bottom: 18px; }
@media (max-width: 860px) {
    .hero { min-height: 0; padding-top: 0; align-items: start; }
    .hero-bg { position: relative; top: auto; width: 100%; height: 240px; object-position: center 30%; transform: none !important; }
    .hero::before { background: linear-gradient(180deg, transparent 140px, #f3f4f5 240px) !important; }
    .hero-inner { margin-top: -48px; }
}
@media (max-width: 480px) { .hero-actions .btn { flex: 1 1 100%; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-copy h2 { margin-bottom: 18px; }
.about-copy p { margin-bottom: 14px; }
.mv-cards { display: grid; gap: 18px; }
.mv-card { position: relative; padding: 28px; padding-inline-start: 92px; border-radius: var(--radius-lg); background: var(--blue-50); border: 1px solid var(--blue-100); }
.mv-card h3 { margin-bottom: 6px; color: var(--blue-900); }
.mv-icon { position: absolute; top: 28px; inset-inline-start: 26px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--blue); color: #fff; }
.mv-card-dark { background: var(--blue-900); border-color: var(--blue-900); }
.mv-card-dark h3 { color: #fff; }
.mv-card-dark p { color: #cfe0f2; }
.mv-card-dark .mv-icon { background: var(--green); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .mv-card { padding: 24px; } .mv-icon { position: static; margin-bottom: 14px; } }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { position: relative; padding: 30px 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.service-card::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--green)); transform: scaleX(0); transition: transform .4s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }
.service-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--blue-50); color: var(--blue); margin-bottom: 20px; transition: background-color .3s, color .3s; }
.service-card:hover .service-icon { background: var(--blue); color: #fff; }
.service-icon .icon { width: 28px; height: 28px; }
.service-num { position: absolute; top: 22px; inset-inline-end: 24px; font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--blue-50); font-family: "Modelica", sans-serif; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: .98rem; }
@media (max-width: 980px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

.feature-strip { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; margin-top: 28px; }
.feature { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--blue-100); }
.feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.feature:hover img { transform: scale(1.05); }
.feature-light { background: #fff; border: 1px solid var(--line); }
.feature-light img { object-fit: contain; padding: 12px 12px 56px; }
.feature figcaption { position: absolute; inset-inline: 12px; bottom: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .95); color: var(--blue-900); font-weight: 500; font-size: .95rem; box-shadow: var(--shadow-sm); }
@media (max-width: 860px) { .feature-strip { grid-template-columns: 1fr 1fr; } .feature:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 8; } }
@media (max-width: 520px) { .feature-strip { grid-template-columns: 1fr; } .feature:first-child { aspect-ratio: 4 / 3; } }

/* ---------- Values ---------- */
.section-blue::before { content: ""; position: absolute; inset-inline: -5%; top: 50%; height: 140px; transform: translateY(-50%); background: var(--pulse) center / 100% 100% no-repeat; opacity: .14; pointer-events: none; }
.values-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value { padding: 30px 24px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); text-align: center; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .3s var(--ease), background-color .3s; }
.value:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .13); }
.value-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--green); color: #fff; margin-bottom: 16px; }
.value-icon .icon { width: 26px; height: 26px; }
.value h3 { font-size: 1.15rem; margin-bottom: 8px; }
.value p { font-size: .96rem; line-height: 1.6; }
html[dir="rtl"] .value p { line-height: 1.8; }
@media (max-width: 980px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .values-grid { grid-template-columns: 1fr; } }

/* ---------- Clients ---------- */
.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.client { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 32px 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; transition: border-color .3s, transform .3s var(--ease); }
.client:hover { border-color: var(--green); transform: translateY(-4px); }
.client-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-50), var(--green-100)); color: var(--blue); }
.client-icon .icon { width: 32px; height: 32px; }
.client h3 { font-size: 1.08rem; }
@media (max-width: 980px) { .clients-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .clients-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--blue-900); color: #d3e2f3; padding-block: clamp(48px, 7vw, 80px); }
.cta-band::after { content: ""; position: absolute; inset-inline-end: -40px; top: 50%; width: 520px; height: 90px; transform: translateY(-50%); background: var(--pulse) center / 100% 100% no-repeat; opacity: .35; pointer-events: none; }
.cta-inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { .cta-actions .btn { flex: 1 1 100%; } }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 32px; }
.contact-card { padding: 24px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: border-color .2s, transform .25s var(--ease); }
.contact-card:hover { border-color: var(--green); transform: translateY(-3px); }
.contact-card .value-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--blue-50); color: var(--blue); margin-bottom: 12px; }
.contact-card .value-icon .icon { width: 22px; height: 22px; }
.contact-card h3 { margin-bottom: 2px; }
.contact-card a { color: var(--blue); font-weight: 500; font-size: .95rem; text-decoration: none; overflow-wrap: anywhere; }
.contact-card a[href^="mailto"] { font-size: .9rem; overflow-wrap: normal; word-break: keep-all; white-space: nowrap; }
.contact-card a:hover { text-decoration: underline; }
@media (max-width: 1000px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
    .contact-cards { grid-template-columns: 1fr; gap: 12px; }
    .contact-card { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 16px; }
    .contact-card .value-icon { grid-row: span 2; margin: 0; }
}
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.form-card { padding: clamp(24px, 4vw, 40px); }
.form-title { margin-bottom: 20px; }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: .92rem; color: var(--ink); }
html[dir="rtl"] .field label { font-size: 1rem; }
.req { color: #c0392b; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; background: var(--grey); border: 1.5px solid transparent; border-radius: 12px; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10, 83, 158, .14); }
.field [aria-invalid="true"] { border-color: #c0392b; background: #fdf2f1; }
html[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.alert { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 500; }
.alert-err { background: #fbeaea; color: #8e2a1f; }
.success-state { text-align: center; padding: 36px 8px; }
.success-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--green-100); color: var(--green-700); margin-bottom: 16px; }
.success-icon .icon { width: 34px; height: 34px; }
.success-state h3 { margin-bottom: 6px; }
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: stretch; }
.map-card { position: relative; min-height: 420px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--grey); }
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-btn { position: absolute; bottom: 16px; inset-inline-start: 16px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .map-card { min-height: 320px; } }

/* ---------- 404 ---------- */
.notfound img { margin: 0 auto 8px; width: 140px; }
.nf-code { font-size: clamp(4rem, 10vw, 7rem); font-weight: 700; color: var(--blue-50); line-height: 1; -webkit-text-stroke: 2px var(--blue); font-family: "Modelica", sans-serif; }
.notfound h1 { margin-block: 12px; }
.notfound .lead { color: var(--muted); margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--blue-950); color: #a9bbd0; font-size: .97rem; }
.site-footer > .pulse-line { opacity: .6; margin-bottom: clamp(28px, 4vw, 48px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand img { height: 50px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 340px; margin-bottom: 8px; }
.footer-cr { font-size: .85rem; color: #8ea2b9; }
.footer-title { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 18px; }
html[dir="rtl"] .footer-title { letter-spacing: 0; font-size: 1rem; font-weight: 400; }
.footer-links { display: grid; gap: 10px; }
.footer-links a, .footer-contact a { color: #dbe6f2; text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact { display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--green); margin-top: .3em; }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #e6eef7; transition: background-color .2s, transform .2s var(--ease); }
.social a:hover { background: var(--blue); transform: translateY(-2px); }
.social .icon { width: 20px; height: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .88rem; color: #8ea2b9; }
.back-top { color: #a9bbd0; text-decoration: none; }
.back-top:hover { color: #fff; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 90; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.07); }
.wa-float .icon { width: 28px; height: 28px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .wa-float, .cta-band, .map-card { display: none !important; } }
