/*
 * Erbil Irrigation Directorate - styles.
 * Dark editorial theme. Layout uses logical properties (margin-inline,
 * inset-inline ...) so the same rules serve right-to-left (Kurdish, Arabic)
 * and left-to-right (English).
 */

:root {
  --bg: #050a14;
  --bg-2: #0a1324;
  --panel: rgba(255, 255, 255, .03);
  --panel-2: rgba(255, 255, 255, .055);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --ink: #e9f3f1;
  --ink-soft: #b7c9c6;
  --muted: #7d918f;
  --aqua: #58b7ff;
  --aqua-dim: rgba(88, 183, 255, .14);
  --aqua-glow: rgba(88, 183, 255, .35);
  --sand: #f4b860;
  --coral: #f08a7a;
  --font-body: "Noto Sans Arabic", "Inter", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-display: "Amiri", "Noto Naskh Arabic", "Noto Sans Arabic", serif;
  --font-mono: "JetBrains Mono", "Noto Sans Arabic", ui-monospace, Menlo, Consolas, monospace;
  --lh: 1.95;
  --header-h: 72px;
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html[lang="en"] {
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --lh: 1.7;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: dark; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: var(--lh);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

/* Faint vertical "rain" lines across the whole page, like a drafting sheet. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(88, 183, 255, .045) 0 1px, transparent 1px 96px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), transparent 70%);
}

img, svg { display: block; max-width: 100%; }

a { color: var(--aqua); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 { margin: 0 0 .5em; font-weight: 700; color: #fff; }
h1, h2 { font-family: var(--font-display); font-weight: 400; line-height: 1.35; letter-spacing: 0; }
html[lang="en"] h1, html[lang="en"] h2 { line-height: 1.02; letter-spacing: -.02em; }
h3 { font-size: 1.15rem; line-height: 1.45; }
html[lang="en"] h3 { letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--aqua); }
html[lang="ckb"] h1 em, html[lang="ckb"] h2 em, html[lang="ar"] h1 em, html[lang="ar"] h2 em { font-style: normal; }

p { margin: 0 0 1em; }

::selection { background: var(--aqua); color: var(--bg); }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 24px; }

.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--aqua); color: var(--bg); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .icon-flip { transform: scaleX(-1); }

.noscript { margin: 0; padding: 16px; background: var(--sand); color: var(--bg); text-align: center; }

/* Monospace uppercase labels. Arabic script must never be letter-spaced. */
.mono { font-family: var(--font-mono); font-size: .78rem; color: var(--aqua); }
html[lang="en"] .mono { text-transform: uppercase; letter-spacing: .18em; }
.mono.sand { color: var(--sand); }

/* ---------- Reveal on scroll ---------- */

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
.grid > *, .checklist > *, .info-list > *, .stats-box > * { transition-delay: calc(var(--i, 0) * 70ms); }
html.no-reveal [data-reveal] { opacity: 1; transform: none; }

/* ---------- Progress bar & dot nav ---------- */

.progress { position: fixed; inset-inline: 0; top: 0; z-index: 60; height: 2px; background: linear-gradient(90deg, var(--aqua), var(--sand)); transform-origin: var(--origin, left); transform: scaleX(0); }
[dir="rtl"] .progress { --origin: right; }

.dots { position: fixed; inset-inline-end: 22px; top: 50%; z-index: 40; display: grid; gap: 14px; transform: translateY(-50%); }
.dots a { display: block; width: 8px; height: 8px; border-radius: 50%; background: rgba(88, 183, 255, .28); transition: background-color .2s, transform .2s; }
.dots a:hover { background: var(--aqua); }
.dots a.active { background: var(--aqua); transform: scale(1.35); box-shadow: 0 0 12px var(--aqua-glow); }
@media (max-width: 900px) { .dots { display: none; } }

/* ---------- Header ---------- */

#site-header, #site-footer { display: contents; }

.site-top {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(5, 10, 20, .72);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; color: #fff; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; flex: none; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-2); }
.brand strong { display: block; font-size: .98rem; line-height: 1.35; }
html[lang="en"] .brand strong { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.brand small { display: block; color: var(--muted); font-size: .72rem; line-height: 1.4; }
html[lang="en"] .brand small { display: none; }

.header-right { display: flex; align-items: center; gap: 10px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.site-nav a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink-soft); font-size: .95rem; font-weight: 500; transition: color .2s, background-color .2s; }
.site-nav a:hover { color: #fff; text-decoration: none; }
.site-nav a[aria-current="page"] { color: #fff; background: var(--panel-2); }

.lang-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch button { font: inherit; font-family: "Noto Sans Arabic", "Inter", system-ui, sans-serif; font-size: .78rem; color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 2px 10px; cursor: pointer; transition: color .2s, background-color .2s; }
.lang-switch button:hover { color: #fff; }
.lang-switch button[aria-pressed="true"] { color: var(--bg); background: var(--aqua); font-weight: 700; }

.nav-cta { display: inline-flex; align-items: center; padding: 9px 20px; border-radius: 999px; font-weight: 700; font-size: .92rem; color: var(--bg); background: var(--aqua); box-shadow: 0 0 24px var(--aqua-glow); transition: transform .2s, box-shadow .2s; }
.nav-cta:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 0 34px var(--aqua-glow); }

.nav-toggle { display: none; }

@media (max-width: 980px) {
  .nav-cta { display: none; }
}
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 12px; background: transparent; color: #fff; cursor: pointer; }
  .site-nav { display: none; position: absolute; inset-inline: 16px; top: calc(100% + 10px); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
  .site-nav.open { display: block; animation: drop .25s ease; }
  .site-nav ul { flex-direction: column; padding: 10px; }
  .site-nav a { padding: 13px 16px; border-radius: 12px; }
  .site-nav a:hover { background: var(--panel-2); }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 480px) {
  .brand strong { font-size: .86rem; }
  .brand small { display: none; }
  .lang-switch button { padding: 2px 8px; font-size: .72rem; }
}

/* ---------- Buttons ---------- */

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; border: 1px solid transparent; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; transition: transform .2s, box-shadow .2s, background-color .2s, border-color .2s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn .icon { width: 18px; height: 18px; }
.btn [data-icon] { display: inline-flex; }
.btn-primary { color: var(--bg); background: var(--aqua); box-shadow: 0 0 30px var(--aqua-glow); }
.btn-primary:hover { box-shadow: 0 0 44px var(--aqua-glow); }
.btn-ghost { color: #fff; border-color: var(--line-2); background: var(--panel); }
.btn-ghost:hover { border-color: #fff; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding-block: calc(var(--header-h) + 96px) 140px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(900px 500px at 85% 10%, rgba(88, 183, 255, .14), transparent 60%), radial-gradient(700px 400px at 10% 90%, rgba(244, 184, 96, .07), transparent 60%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero .mono { display: block; margin-bottom: 26px; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); margin-bottom: .35em; }
.hero-text { font-size: 1.18rem; color: var(--ink-soft); max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-meta .mono { margin: 0; color: var(--muted); }
.hero-meta strong { display: block; color: #fff; font-weight: 600; font-size: .95rem; }

@media (max-width: 900px) {
  .hero { padding-block: calc(var(--header-h) + 64px) 90px; }
  .hero-inner { grid-template-columns: 1fr; }
}

/* Live irrigation-network graphic. */
.net { position: relative; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); box-shadow: 0 40px 90px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06); overflow: hidden; }
.net-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.net-head .mono { color: var(--muted); }
.net-live { display: inline-flex; align-items: center; gap: 8px; }
.net-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 10px var(--aqua); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.net svg { width: 100%; height: auto; }
.net .pipe { fill: none; stroke: rgba(88, 183, 255, .22); stroke-width: 2; }
.net .flow { fill: none; stroke: var(--aqua); stroke-width: 2; stroke-dasharray: 6 16; stroke-linecap: round; animation: flow 2.4s linear infinite; }
[dir="rtl"] .net .flow { animation-direction: reverse; }
@keyframes flow { to { stroke-dashoffset: -44; } }
.net .node { fill: var(--bg-2); stroke: var(--aqua); stroke-width: 1.5; }
.net .node-main { fill: var(--aqua); filter: drop-shadow(0 0 8px var(--aqua)); }
.net .field { fill: rgba(88, 183, 255, .08); stroke: rgba(88, 183, 255, .25); stroke-width: 1; }
.net text { font-family: var(--font-mono); font-size: 9.5px; fill: var(--muted); }
.net .ring { fill: none; stroke: var(--aqua); stroke-width: 1; opacity: 0; animation: ring 3s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes ring { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }
.net-foot { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.net-foot div { padding: 14px 18px; border-inline-start: 1px solid var(--line); }
.net-foot div:first-child { border: 0; }
.net-foot .mono { display: block; color: var(--muted); margin-bottom: 2px; }
.net-foot strong { font-family: var(--font-mono); font-size: 1.15rem; color: var(--aqua); font-weight: 600; }

/* ---------- Stats ---------- */

.stats { padding-block: 0 20px; }
.stats-box { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 20px; background: var(--panel); overflow: hidden; }
.stat { padding: 30px 26px; border-inline-start: 1px solid var(--line); }
.stat:first-child { border: 0; }
.stat-value { font-family: var(--font-mono); font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 600; line-height: 1.1; color: var(--aqua); }
.stat-label { margin-top: 8px; color: var(--muted); font-size: .95rem; }
@media (max-width: 800px) {
  .stats-box { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 20px; }
  .stat:nth-child(odd) { border-inline-start: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero { position: relative; overflow: hidden; padding-block: calc(var(--header-h) + 80px) 72px; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 420px at 90% 0%, rgba(88, 183, 255, .13), transparent 60%); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: .3em; }
.page-hero p { color: var(--ink-soft); max-width: 42em; font-size: 1.15rem; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
html[lang="en"] .crumbs { text-transform: uppercase; letter-spacing: .14em; }
.crumbs a { color: var(--aqua); }
.crumbs .icon { width: 13px; height: 13px; opacity: .6; }

/* ---------- Sections ---------- */

.section { position: relative; padding-block: 100px; border-top: 1px solid var(--line); }
.section-tight { padding-top: 0; border-top: 0; }
.section-num { position: absolute; top: 56px; inset-inline-end: 24px; font-family: var(--font-display); font-size: clamp(5rem, 12vw, 9.5rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(88, 183, 255, .22); pointer-events: none; user-select: none; }
html[lang="ckb"] .section-num, html[lang="ar"] .section-num { font-family: var(--font-mono); }

.section-head { position: relative; max-width: 760px; margin: 0 0 52px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head .mono { display: block; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: .35em; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }
.section-foot { margin-top: 40px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }

.card { position: relative; overflow: hidden; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transition: border-color .3s, background-color .3s, transform .3s; }
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(88, 183, 255, .1), transparent 60%); opacity: 0; transition: opacity .3s; }
.grid > .card:hover { border-color: var(--line-2); background: var(--panel-2); transform: translateY(-3px); }
.grid > .card:hover::after { opacity: 1; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card .mono { display: block; margin-bottom: 14px; }

.card-row { display: flex; gap: 20px; align-items: flex-start; }
.card-row .icon-badge { margin: 0; }
.card-num { position: absolute; top: 18px; inset-inline-end: 22px; font-family: var(--font-mono); font-size: .8rem; color: var(--aqua); opacity: .7; }

.icon-badge { display: grid; place-items: center; flex: none; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 12px; color: var(--aqua); background: var(--aqua-dim); border: 1px solid rgba(88, 183, 255, .2); transition: background .3s, box-shadow .3s; }
.icon-badge .icon { width: 22px; height: 22px; }
.grid > .card:hover .icon-badge { box-shadow: 0 0 20px var(--aqua-glow); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border: 1px solid var(--line-2); border-radius: 999px; color: #fff; font-weight: 600; transition: border-color .2s, gap .2s; }
.link-arrow:hover { text-decoration: none; border-color: var(--aqua); color: var(--aqua); gap: 12px; }
.link-arrow .icon { width: 18px; height: 18px; }

/* ---------- Feature band / CTA ---------- */

.cta-band { padding-block: 0 100px; }
.cta-box { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; padding: 52px; border: 1px solid rgba(88, 183, 255, .25); border-radius: 26px; background: radial-gradient(700px 300px at 20% 0%, rgba(88, 183, 255, .18), transparent 60%), radial-gradient(500px 300px at 90% 100%, rgba(244, 184, 96, .1), transparent 60%), var(--panel); box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.cta-box::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.5px); background-size: 22px 22px; opacity: .25; mask-image: linear-gradient(to right, transparent, #000 40%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 40%, transparent); }
.cta-box h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: .3em; }
.cta-box p { color: var(--ink-soft); margin: 0; max-width: 40em; }
.cta-box .mono { display: block; margin-bottom: 14px; }
@media (max-width: 600px) { .cta-box { padding: 34px 24px; } }

/* ---------- About ---------- */

.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.split h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.split .mono { display: block; margin-bottom: 18px; }
.lead-text { font-size: 1.15rem; color: var(--ink); }
.stack { display: grid; gap: 16px; }
.mv .mv-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.mv .icon-badge { margin: 0; width: 44px; height: 44px; }
.mv h3 { margin: 0; }
.mv-accent { border-color: rgba(88, 183, 255, .3); background: linear-gradient(135deg, rgba(88, 183, 255, .12), rgba(88, 183, 255, .03)); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.checklist li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; padding: 24px 26px; border-top: 1px solid var(--line); transition: background-color .25s; }
.checklist li:first-child { border-top: 0; }
.checklist li:hover { background: var(--panel-2); }
.checklist .step { font-family: var(--font-mono); color: var(--aqua); font-size: .85rem; padding-top: 4px; }
.checklist span:last-child { font-size: 1.05rem; color: var(--ink); }

.director { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: center; margin: 0; padding: 52px; border: 1px solid var(--line); border-radius: 26px; background: var(--panel); }
.director::before { content: "\201C"; position: absolute; top: -40px; inset-inline-end: 30px; font-family: Georgia, serif; font-size: 240px; line-height: 1; color: var(--aqua); opacity: .08; }
.director-photo { display: grid; place-items: center; width: 160px; height: 160px; border-radius: 50%; color: var(--aqua); background: var(--aqua-dim); border: 1px solid rgba(88, 183, 255, .35); box-shadow: 0 0 40px var(--aqua-glow); }
.director-photo .icon { width: 70px; height: 70px; stroke-width: 1.1; }
.director-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.director h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.director blockquote { margin: 0 0 22px; font-size: 1.2rem; color: var(--ink-soft); }
.director blockquote p { margin: 0; }
.director figcaption strong { display: block; color: #fff; }
.director figcaption span { color: var(--muted); font-size: .95rem; }
@media (max-width: 700px) { .director { grid-template-columns: 1fr; text-align: center; padding: 34px 24px; gap: 24px; } .director-photo { margin-inline: auto; width: 120px; height: 120px; } }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: start; }
.contact-grid h2 { font-size: 1.9rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); transition: border-color .25s; }
.info-item:hover { border-color: var(--line-2); }
.info-item .icon-badge { margin: 0; width: 44px; height: 44px; }
.info-item h3 { font-size: .8rem; margin: 0 0 4px; font-family: var(--font-mono); color: var(--muted); font-weight: 500; }
html[lang="en"] .info-item h3 { text-transform: uppercase; letter-spacing: .14em; }
.info-item p { margin: 0; color: #fff; overflow-wrap: anywhere; }

.form-card { padding: 36px; }
.form-card:hover { transform: none; }
@media (max-width: 600px) { .form-card { padding: 24px 20px; } }
.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; margin-bottom: 16px; }
.field label { font-size: .9rem; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 16px; font: inherit; color: #fff; background: rgba(0, 0, 0, .35); border: 1px solid var(--line-2); border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.field select option { background: var(--bg-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 4px var(--aqua-dim); }
.field textarea { min-height: 150px; resize: vertical; }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.req { color: var(--coral); }
.form-note { margin: 14px 0 0; font-size: .86rem; color: var(--muted); }
.form-status { margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(88, 183, 255, .4); background: var(--aqua-dim); color: var(--aqua); }

.map { height: 420px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }
@media (max-width: 600px) { .map { height: 320px; } }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); color: var(--ink-soft); padding-top: 72px; }
.site-footer h3 { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); font-weight: 500; margin-bottom: 18px; }
html[lang="en"] .site-footer h3 { text-transform: uppercase; letter-spacing: .16em; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--aqua); text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: 44px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: #fff; font-weight: 600; }
.footer-brand img { flex: none; width: 40px; height: 40px; border-radius: 50%; }
.site-footer p { color: var(--muted); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 6px; color: var(--aqua); }
.footer-contact a, .footer-contact span { overflow-wrap: anywhere; }
.social { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); }
.social:hover { border-color: var(--aqua); }
.social .icon { width: 18px; height: 18px; }
.footer-bottom { margin-top: 56px; padding-block: 22px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: .76rem; color: var(--muted); text-align: center; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Back to top ---------- */

.to-top { position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 40; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 50%; color: #fff; background: rgba(5, 10, 20, .8); backdrop-filter: blur(8px); cursor: pointer; opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .3s, border-color .2s; }
.to-top:hover { border-color: var(--aqua); color: var(--aqua); }
.to-top.show { opacity: 1; transform: none; }
.to-top .icon { width: 20px; height: 20px; transform: rotate(-90deg); }
@media (max-width: 900px) { .to-top { bottom: 18px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
