/* ==========================================================================
   Alnahj Law Firm — landing page
   Direction-agnostic: logical properties throughout so the same sheet
   serves the Arabic (rtl) and English (ltr) pages.
   ========================================================================== */

:root {
  --navy-950: #0d131e;
  --navy-900: #151e31;
  --navy-800: #1b263d;
  --navy-700: #23314f;
  --gold-300: #cdb67a;
  --gold-500: #a59065;
  --gold-700: #7a6536;
  --sand: #dbd3c2;
  --ivory: #f6f2ea;
  --paper: #fcfbf8;
  --white: #ffffff;

  --ink: var(--navy-900);
  --ink-2: #4b5366;
  --line: #e4ddcf;
  --on-dark: #eef0f4;
  --on-dark-2: #aeb6c6;
  --line-dark: rgba(205, 182, 122, 0.22);

  --font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-display: "Noto Naskh Arabic", "IBM Plex Sans Arabic", serif;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 76px;
  --shadow: 0 1px 2px rgba(21, 30, 49, 0.04), 0 8px 24px -12px rgba(21, 30, 49, 0.18);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23CDB67A' stroke-opacity='.13' stroke-width='1'%3E%3Cpath d='M20 20h40v40H20z'/%3E%3Cpath d='M40 12l28 28-28 28-28-28z'/%3E%3Cpath d='M40 0v12M80 40H68M40 80V68M0 40h12M0 0l20 20M80 0L60 20M80 80L60 60M0 80l20-20'/%3E%3C/g%3E%3C/svg%3E");

  color-scheme: light;
}

:lang(en) {
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:lang(en) body { line-height: 1.7; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  text-wrap: balance;
}

:lang(en) h1, :lang(en) h2, :lang(en) h3 { line-height: 1.15; font-weight: 600; }

p { margin: 0; text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 100;
  background: var(--gold-300);
  color: var(--navy-900);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn-gold { background: var(--gold-300); color: var(--navy-900); }
.btn-gold:hover { background: #d9c48d; }

.btn-ghost { border-color: rgba(238, 240, 244, 0.35); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--gold-300); color: var(--gold-300); }

.btn-navy { background: var(--navy-900); color: var(--ivory); }
.btn-navy:hover { background: var(--navy-700); }

.btn-outline { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-outline:hover { border-color: var(--gold-500); }

.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .95rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(21, 30, 49, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line-dark);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--on-dark);
  flex: none;
}
.brand img { width: 44px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.brand-sub { font-size: .72rem; color: var(--gold-300); letter-spacing: .01em; }
:lang(en) .brand-name { font-size: 1.45rem; }
:lang(en) .brand-sub { letter-spacing: .06em; text-transform: uppercase; font-size: .66rem; }

.nav { margin-inline-start: auto; }
.nav-list {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: block;
  padding: 8px 14px;
  color: var(--on-dark-2);
  font-size: .98rem;
  font-weight: 500;
  border-radius: 999px;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-list a:hover,
.nav-list a[aria-current="true"] { color: var(--white); background: rgba(255, 255, 255, .06); }

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding-inline: 10px;
  border-radius: 999px;
  border: 1px solid rgba(238, 240, 244, .25);
  color: var(--on-dark);
  font-size: .9rem;
  font-weight: 600;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.lang-switch:hover { border-color: var(--gold-300); color: var(--gold-300); }
.lang-switch[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(238, 240, 244, .25);
  background: transparent;
  color: var(--on-dark);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.header-call { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header-wa { display: none; }
  .header-call { display: inline-flex; }
  .header-actions { margin-inline-start: auto; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--navy-900);
    border-top: 1px solid var(--line-dark);
    padding: 12px var(--gutter) 24px;
    box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .6);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .nav-list { flex-direction: column; gap: 2px; }
  .nav-list a { padding: 14px 8px; border-radius: 8px; font-size: 1.05rem; color: var(--on-dark); }
  .nav-cta { margin-top: 14px; width: 100%; }
}
@media (min-width: 961px) { .nav-cta { display: none; } }
@media (max-width: 420px) {
  .brand-sub { display: none; }
  .header-call { display: none; }
}

/* ---------- Section scaffolding ---------- */

.section { padding-block: clamp(72px, 10vw, 120px); }
.section-ivory { background: var(--ivory); }
.section-dark {
  background-color: var(--navy-900);
  background-image: var(--pattern);
  color: var(--on-dark);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gold-700);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
:lang(en) .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; }
.section-dark .eyebrow,
.hero .eyebrow { color: var(--gold-300); }

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); }
:lang(en) .section-head h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 1.08rem; }
.section-dark .section-head p { color: var(--on-dark-2); }

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

.hero {
  position: relative;
  background-color: var(--navy-900);
  background-image:
    radial-gradient(60% 70% at 15% 30%, rgba(165, 144, 101, .16), transparent 70%),
    var(--pattern);
  color: var(--on-dark);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  opacity: .5;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
  padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 72px);
}

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.3rem);
  line-height: 1.3;
  font-weight: 700;
  color: var(--white);
}
:lang(en) .hero h1 { font-size: clamp(2.9rem, 6.4vw, 5rem); line-height: 1.04; }
.hero h1 em { font-style: normal; color: var(--gold-300); }

.hero-lead {
  margin-top: 22px;
  max-width: 34em;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--on-dark-2);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-size: .92rem;
  color: var(--on-dark-2);
}
.hero-meta svg { width: 18px; height: 18px; color: var(--gold-300); flex: none; }

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(390px, 100%);
  aspect-ratio: 4 / 5;
  margin-block-end: 18px;
}
.arch,
.arch-frame { position: absolute; inset: 0; border-radius: 999px 999px 18px 18px; }
.arch { overflow: hidden; background: var(--navy-800); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.arch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 30, 49, 0) 55%, rgba(21, 30, 49, .55));
}
.arch-frame {
  border: 1px solid rgba(205, 182, 122, .55);
  transform: translate(18px, 18px);
  pointer-events: none;
}
[dir="rtl"] .arch-frame { transform: translate(-18px, 18px); }

.seal {
  position: absolute;
  inset-block-end: -10px;
  inset-inline-end: -26px;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 1px solid var(--gold-500);
  box-shadow: 0 0 0 6px var(--navy-900), 0 0 0 7px rgba(205, 182, 122, .35);
  display: grid;
  place-items: center;
}
.seal img { width: 60px; }

.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
}
.stat { padding: 28px 24px 34px; }
.stat + .stat { border-inline-start: 1px solid var(--line-dark); }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 700;
  color: var(--gold-300);
  line-height: 1.2;
}
:lang(en) .stat-num { font-size: clamp(2.4rem, 4vw, 3.1rem); line-height: 1; margin-bottom: 6px; }
.stat-label { display: block; font-size: .95rem; color: var(--on-dark-2); line-height: 1.6; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { width: min(320px, 78vw); order: 2; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line-dark); }
}
@media (max-width: 520px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .stat { padding: 22px 12px 24px; }
  .seal { width: 92px; height: 92px; inset-inline-end: -12px; }
  .seal img { width: 48px; }
}

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

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.about-body p { color: var(--ink-2); font-size: 1.1rem; }
.about-body h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); margin-bottom: 20px; }
:lang(en) .about-body h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); }

.goal {
  margin-top: 34px;
  padding-block: 6px;
  padding-inline-start: 24px;
  border-inline-start: 3px solid var(--gold-500);
}
.goal-label { display: block; font-size: .9rem; font-weight: 600; color: var(--gold-700); margin-bottom: 6px; }
.goal p { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.6; color: var(--ink); }
:lang(en) .goal p { font-size: clamp(1.5rem, 2.6vw, 1.95rem); line-height: 1.3; }

.presence {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.presence h3 { font-size: 1.35rem; margin-bottom: 18px; }
:lang(en) .presence h3 { font-size: 1.7rem; }
.presence-list { list-style: none; margin: 0; padding: 0; }
.presence-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}
.presence-list li:first-child { border-top: 0; padding-top: 0; }
.presence-list .ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--ivory);
  color: var(--gold-700);
  display: grid; place-items: center;
}
.presence-list .ico svg { width: 18px; height: 18px; }
.presence-list strong { display: block; font-weight: 600; font-size: 1rem; line-height: 1.5; }
.presence-list span { display: block; color: var(--ink-2); font-size: .95rem; line-height: 1.6; }

@media (max-width: 960px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.service:hover { border-color: rgba(165, 144, 101, .6); box-shadow: var(--shadow); transform: translateY(-2px); }
.service-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: var(--ivory);
  color: var(--gold-700);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 1.3rem; margin-bottom: 10px; }
:lang(en) .service h3 { font-size: 1.6rem; }
.service p { color: var(--ink-2); font-size: .98rem; line-height: 1.8; flex: 1; }
:lang(en) .service p { line-height: 1.65; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--gold-700);
  align-self: flex-start;
}
.service-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
[dir="rtl"] .service-link svg { transform: scaleX(-1); }
.service-link:hover svg { transform: translateX(3px); }
[dir="rtl"] .service-link:hover svg { transform: scaleX(-1) translateX(3px); }
.service-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }

.js .service.is-extra { display: none; }
.js .services-grid.is-expanded .service.is-extra { display: flex; }
.services-more { display: none; margin-top: 36px; text-align: center; }
.js .services-more { display: block; }
.services-more .btn svg { transition: transform .2s var(--ease); }
.services-more .btn[aria-expanded="true"] svg { transform: rotate(180deg); }

@media (max-width: 960px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Team ---------- */

.founders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.founder {
  position: relative;
  padding: 34px 32px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(205, 182, 122, .12), rgba(205, 182, 122, .02));
  border: 1px solid var(--line-dark);
  overflow: hidden;
}
.founder::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 32px;
  width: 48px; height: 2px;
  background: var(--gold-300);
}
.founder .role-tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gold-300);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 18px;
}
.founder h3 { font-size: clamp(1.5rem, 2.4vw, 1.85rem); color: var(--white); }
:lang(en) .founder h3 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.founder p { margin-top: 6px; color: var(--on-dark-2); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.team-grid li {
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.team-grid strong { display: block; font-weight: 600; font-size: 1.05rem; color: var(--on-dark); line-height: 1.5; }
.team-grid span { display: block; font-size: .9rem; color: var(--gold-300); margin-top: 2px; }
.team-grid .team-cta { padding: 0; border-color: rgba(205, 182, 122, .5); background: rgba(205, 182, 122, .1); }
.team-cta a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  padding: 20px 22px;
  color: var(--gold-300);
  font-weight: 600;
  transition: background-color .2s var(--ease);
}
.team-cta a:hover { background: rgba(205, 182, 122, .12); }
.team-cta svg { width: 20px; height: 20px; flex: none; }

@media (max-width: 960px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .founders { grid-template-columns: minmax(0, 1fr); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid li { padding: 18px 16px; }
}

/* ---------- Clients ---------- */

.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.clients-grid li {
  aspect-ratio: 1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  padding: 16px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.clients-grid li:hover { border-color: rgba(165, 144, 101, .6); box-shadow: var(--shadow); }
.clients-grid li { overflow: hidden; }
.clients-grid img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }

@media (max-width: 960px) { .clients-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .clients-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .clients-grid li { padding: 10px; } }

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

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.form-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
:lang(en) .form-card h3 { font-size: 1.9rem; }
.form-card > p { color: var(--ink-2); margin-bottom: 26px; }

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: .95rem; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--ink-2); font-size: .85rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid #d8d1c2;
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A6536' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px;
  background-position: left 14px center;
  padding-inline-end: 44px;
}
[dir="ltr"] .field select { background-position: right 14px center; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(165, 144, 101, .18);
}
.field input[type="tel"] { direction: ltr; }
[dir="rtl"] .field input[type="tel"] { text-align: right; }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.field-error { font-size: .88rem; color: #b3261e; min-height: 0; }
.field-error:empty { display: none; }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.form-actions .btn { flex: 1 1 auto; }
.form-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 18px;
  font-size: .88rem;
  color: var(--ink-2);
  line-height: 1.7;
}
.form-note svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--gold-700); }

.contact-info { display: flex; flex-direction: column; gap: 14px; }
.info-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease);
}
a.info-item:hover { border-color: rgba(165, 144, 101, .7); }
.info-item .ico {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--navy-900);
  color: var(--gold-300);
  display: grid; place-items: center;
}
.info-item .ico svg { width: 22px; height: 22px; }
.info-item small { display: block; font-size: .85rem; color: var(--ink-2); line-height: 1.5; }
.info-item strong { display: block; font-weight: 600; font-size: 1.05rem; line-height: 1.6; }

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

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

.site-footer {
  background-color: var(--navy-950);
  background-image: var(--pattern);
  color: var(--on-dark-2);
  padding-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 56px;
}
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { font-size: .95rem; max-width: 30em; }
.site-footer h3 {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  color: var(--on-dark);
  margin-bottom: 16px;
}
:lang(en) .site-footer h3 { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .95rem; }
.footer-links a:hover { color: var(--gold-300); }

.socials { display: flex; gap: 10px; }
.socials a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  display: grid; place-items: center;
  color: var(--on-dark);
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.socials a:hover { border-color: var(--gold-300); color: var(--navy-900); background: var(--gold-300); }
.socials svg { width: 18px; height: 18px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: .88rem;
}

@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* ---------- Floating WhatsApp ---------- */

.wa-float {
  position: fixed;
  inset-block-end: 20px;
  inset-inline-start: 20px;
  z-index: 40;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- 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 { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .wa-float, .hero-visual, .form-card { display: none; }
  .hero, .section-dark, .site-footer { background: #fff; color: #000; }
}

/* ---------- Utilities ---------- */
.stats dd { margin: 0; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ---------- 404 ---------- */
.not-found { min-height: 100vh; display: grid; align-items: center; padding-block: 64px; }
.not-found img { width: 88px; margin-bottom: 28px; }
.not-found .hero-lead { margin-top: 14px; }
.not-found .hero-lead[lang="en"] { font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 1rem; }
