/* =========================================================
   Najm Al-Khair for Pilgrims Services Co. — styles
   Brand: deep green + olive gold (from logo), cream surfaces
   Uses CSS logical properties so RTL (Arabic) and LTR (EN/ID) share one stylesheet.
   ========================================================= */

:root {
  /* Brand palette */
  --green-950: #0B2217;
  --green-900: #10301F;
  --green-800: #173F2B;
  --green-700: #1E4D36;
  --green-600: #2A6247;
  --green-100: #E1ECE4;
  --green-50:  #F1F6F2;
  --gold-700:  #6F6128;
  --gold-600:  #8A7A3A;
  --gold-400:  #B9A762;
  --gold-300:  #D4C68E;
  --gold-100:  #F3EED8;
  --cream:     #FBF8EE;

  /* Semantic tokens */
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-alt: var(--cream);
  --ink: #14201A;
  --text: #2B3A32;
  --muted: #56645C;
  --border: #E1E5DE;
  --primary: var(--green-700);
  --primary-hover: var(--green-800);
  --on-primary: #FFFFFF;
  --accent: var(--gold-300);
  --accent-hover: #E0D4A2;
  --on-accent: var(--green-950);
  --danger: #B42318;
  --danger-bg: #FEF3F2;
  --success: #1E6B41;
  --focus: #B9A762;

  /* Type */
  --font-head: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-quran: "Amiri", "Traditional Arabic", serif;

  /* Spacing (8pt) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 48, 31, .06);
  --shadow: 0 8px 24px -8px rgba(16, 48, 31, .14);
  --shadow-lg: 0 20px 40px -16px rgba(16, 48, 31, .22);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 160ms;
  --dur: 240ms;
  --dur-slow: 520ms;

  --header-h: 76px;
  --container: 1200px;
}

/* Arabic uses one family for headings + body */
:root[lang="ar"] {
  --font-head: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:root[lang="ar"] body { line-height: 1.8; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); margin: 0; line-height: 1.2; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

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

.skip-link {
  position: absolute; inset-inline-start: var(--s-4); top: -100px; z-index: 1000;
  background: var(--green-900); color: #fff; padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-sm); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: var(--s-4); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-4); }
@media (min-width: 768px) { .container { padding-inline: var(--s-6); } }
.container.narrow { max-width: 860px; }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
/* Directional icons (arrows) mirror in RTL */
[dir="rtl"] .icon-dir { transform: scaleX(-1); }

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 10px 20px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer; touch-action: manipulation;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease,
              border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.btn:active { transform: scale(.98); }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: var(--shadow); }
.btn-gold { background: var(--accent); color: var(--on-accent); }
.btn-gold:hover { background: var(--accent-hover); box-shadow: 0 10px 24px -10px rgba(212, 198, 142, .6); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--green-700); font-weight: 600; font-size: .95rem; text-decoration: none;
  min-height: 44px;
}
.text-link .icon { width: 18px; height: 18px; transition: translate var(--dur) var(--ease-out); }
.text-link:hover .icon { translate: 4px 0; }
[dir="rtl"] .text-link:hover .icon { translate: -4px 0; }
a.text-link:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.site-header.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: var(--s-5); min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--green-800); flex: none; }
.brand-mark { width: 48px; height: 48px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; gap: 5px; line-height: 1.2; }
.brand-ar { font-family: "IBM Plex Sans Arabic", sans-serif; font-weight: 700; font-size: .92rem; color: var(--green-800); }
.brand-en { font-family: "Newsreader", serif; font-weight: 600; font-size: .95rem; letter-spacing: .08em; color: var(--green-700); }
.brand-light .brand-ar, .brand-light .brand-en { color: #fff; }
.brand-light .brand-en { color: var(--gold-300); }

.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: var(--s-1); }
.main-nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3);
  text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--text); white-space: nowrap;
  border-radius: var(--radius-sm); position: relative;
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.main-nav a:not(.btn):hover { color: var(--green-700); background: var(--green-50); }
.main-nav a[aria-current] { color: var(--green-800); font-weight: 700; }
.main-nav a[aria-current]::after {
  content: ""; position: absolute; inset-inline: var(--s-3); bottom: 6px; height: 2px;
  background: var(--gold-400); border-radius: 2px;
}
.nav-cta-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: var(--s-3); }

.lang-switch {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--green-50); border: 1px solid var(--green-100); border-radius: 999px;
}
.lang-switch button {
  min-width: 40px; min-height: 36px; padding: 0 10px;
  border: 0; border-radius: 999px; background: transparent;
  font-size: .85rem; font-weight: 600; color: var(--green-700);
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.lang-switch button[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 1rem; }
.lang-switch button:hover { background: var(--green-100); }
.lang-switch button[aria-pressed="true"] { background: var(--green-700); color: #fff; }

.menu-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; color: var(--green-800);
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1100px) {
  .nav-cta { display: none; }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-inline-start: auto; }
  .main-nav {
    position: fixed; inset-inline: 0; top: var(--header-h);
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
    padding: var(--s-3) var(--s-4) var(--s-5);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a:not(.btn) { width: 100%; min-height: 48px; font-size: 1.05rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .main-nav a[aria-current]::after { display: none; }
  .nav-cta-mobile { display: flex; width: 100%; margin-top: var(--s-4); }
}
@media (max-width: 520px) {
  .brand-text { display: none; }
  .brand-mark { width: 40px; height: 40px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(780px, calc(100svh - var(--header-h)));
  display: flex; align-items: center;
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 85%; z-index: -2; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgba(11, 34, 23, .94) 0%, rgba(16, 48, 31, .82) 45%, rgba(23, 63, 43, .45) 100%),
    linear-gradient(to top, rgba(11, 34, 23, .7), transparent 40%);
}
[dir="rtl"] .hero-overlay {
  background:
    linear-gradient(to left, rgba(11, 34, 23, .94) 0%, rgba(16, 48, 31, .82) 45%, rgba(23, 63, 43, .45) 100%),
    linear-gradient(to top, rgba(11, 34, 23, .7), transparent 40%);
}
@media (max-width: 900px) {
  .hero-overlay, [dir="rtl"] .hero-overlay {
    background: linear-gradient(to bottom, rgba(11, 34, 23, .78), rgba(11, 34, 23, .9));
  }
}
.hero-inner { padding-block: var(--s-8) var(--s-7); }
.hero-inner > * { max-width: 640px; }
.badge {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 6px 14px; border-radius: 999px;
  background: var(--gold-100); color: var(--green-900);
  font-size: .85rem; font-weight: 600;
}
.badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-600);
}
.hero h1 {
  color: #fff; margin-top: var(--s-5);
  font-size: clamp(2.2rem, 5.4vw, 4rem); line-height: 1.12; letter-spacing: -.01em;
}
:root[lang="ar"] .hero h1 { line-height: 1.35; letter-spacing: 0; }
.hero-text { margin-top: var(--s-5); font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255, 255, 255, .88); max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero-actions.center { justify-content: center; }


/* ---------- Sections ---------- */
.section { padding-block: var(--s-8); }
@media (min-width: 768px) { .section { padding-block: var(--s-9); } }
.section-cream { background: var(--surface-alt); }
.pattern-bg { position: relative; isolation: isolate; }
.pattern-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23B9A762' stroke-opacity='.28' stroke-width='1'%3E%3Crect x='20' y='20' width='24' height='24'/%3E%3Crect x='20' y='20' width='24' height='24' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
          mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--s-7); }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.section-head h2::after {
  content: ""; display: block; width: 56px; height: 3px; margin: var(--s-4) auto 0;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-300)); border-radius: 3px;
}
.section-head p { margin-top: var(--s-4); color: var(--muted); font-size: 1.05rem; }

/* ---------- Why us ---------- */
.feature-grid { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--s-5); transition: border-color var(--dur) ease, box-shadow var(--dur) ease, transform var(--dur) var(--ease-out);
}
.feature-card:hover { border-color: var(--green-100); box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-icon, .service-icon, .pillar-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100);
}
.feature-icon .icon, .service-icon .icon, .pillar-icon .icon { width: 22px; height: 22px; }
.feature-card h3 { margin-top: var(--s-4); font-size: 1.15rem; font-family: var(--font-body); font-weight: 700; }
.feature-card p { margin-top: var(--s-2); color: var(--muted); font-size: .95rem; }

/* ---------- Services (three pillars from the commercial register) ---------- */
.pillars { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar.pillar--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 5fr 7fr; }
  .pillar--wide .pillar-media img { height: 100%; aspect-ratio: auto; min-height: 340px; }
  .pillar--wide .pillar-body { justify-content: center; }
  .pillar.pillar--flip { grid-template-columns: 7fr 5fr; }
  .pillar--flip .pillar-media { order: 2; }
}
.pillar {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) ease, border-color var(--dur) ease;
}
.pillar:hover { box-shadow: var(--shadow-lg); border-color: var(--gold-300); }
.pillar-media { overflow: hidden; background: var(--green-100); }
.pillar-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.pillar:hover .pillar-media img { transform: scale(1.03); }
.pillar-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: var(--s-5); }
@media (min-width: 640px) { .pillar-body { padding: var(--s-6); } }
.pillar-head { display: flex; align-items: center; gap: var(--s-3); }
.pillar h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.pillar-body > p { margin-top: var(--s-3); color: var(--muted); }
.activity-list { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-5) 0 var(--s-2); }
.activity-list li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--green-50); border: 1px solid var(--green-100);
  color: var(--green-800); font-size: .88rem; font-weight: 500; line-height: 1.4;
}
.activity-list .icon { width: 15px; height: 15px; color: var(--gold-600); }
.pillar .text-link { margin-top: auto; padding-top: var(--s-3); }

/* Service areas strip */
.coverage { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-3); margin: calc(-1 * var(--s-5)) 0 var(--s-6); }
.coverage-label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.coverage ul { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); }
.coverage li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border);
  font-size: .92rem; font-weight: 500; color: var(--green-800);
}
.coverage .icon { width: 16px; height: 16px; color: var(--gold-600); }

/* ---------- Who we serve ---------- */
@media (min-width: 1000px) { .feature-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .feature-grid--4 { grid-template-columns: repeat(4, 1fr); } }
/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; text-align: center;
  padding-block: var(--s-9);
}
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(11, 34, 23, .82), rgba(11, 34, 23, .88)); }
.cta-inner { max-width: 820px; }
.cta-banner h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.cta-text { margin: var(--s-4) auto 0; color: rgba(255, 255, 255, .88); font-size: 1.1rem; max-width: 620px; }
.verse { margin: var(--s-6) auto 0; }
.verse blockquote {
  margin: 0; font-family: var(--font-quran); font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  color: var(--gold-300); line-height: 1.8;
}
.verse figcaption { margin-top: var(--s-2); display: flex; flex-direction: column; gap: 2px; font-size: .95rem; color: rgba(255, 255, 255, .8); }
.verse-translation { font-style: italic; }
.verse-translation:empty { display: none; }
.verse cite { font-style: normal; font-size: .85rem; color: rgba(255, 255, 255, .65); }
.cta-banner .hero-actions { margin-top: var(--s-6); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: var(--s-3); }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
html:not(.js) .faq-item[open], .faq-item.is-open { border-color: var(--green-100); box-shadow: var(--shadow); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 60px; padding: var(--s-4) var(--s-5);
  cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon {
  width: 22px; height: 22px; color: var(--green-700); flex: none;
  transition: transform 320ms var(--ease-out);
}
html:not(.js) .faq-item[open] summary .icon, .faq-item.is-open summary .icon { transform: rotate(180deg); }
.faq-item summary:hover { color: var(--green-700); }
.faq-item p { padding: 0 var(--s-5) var(--s-5); color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--s-7); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: var(--s-8); } }
.contact-intro h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.contact-intro h2::after {
  content: ""; display: block; width: 56px; height: 3px; margin-top: var(--s-4);
  background: linear-gradient(90deg, var(--gold-400), var(--gold-300)); border-radius: 3px;
}
.lead { margin-top: var(--s-4); color: var(--muted); font-size: 1.05rem; }
.contact-list { margin-top: var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); }
.contact-list li { display: flex; gap: var(--s-4); align-items: flex-start; }
.contact-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%; background: var(--green-50); color: var(--green-700);
}
.contact-list .label { display: block; font-size: .82rem; color: var(--muted); }
.contact-list a, .contact-list span:not(.label):not(.contact-icon) { font-weight: 600; color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--green-700); text-decoration: underline; }
[dir="rtl"] .contact-list a[dir="ltr"] { text-align: right; display: inline-block; }
.contact-photo { margin-top: var(--s-6); border-radius: var(--radius-lg); aspect-ratio: 16 / 10; object-fit: cover; object-position: center 70%; width: 100%; }
@media (max-width: 959px) { .contact-photo { display: none; } }

.contact-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--s-5); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: var(--s-4);
}
@media (min-width: 640px) { .contact-form { padding: var(--s-6); } }
.form-note { font-size: .85rem; color: var(--muted); }
.field-row { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { font-weight: 600; font-size: .92rem; color: var(--ink); padding: 0; }
.req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid #CBD2CC; border-radius: var(--radius-sm); background: #fff;
  font-size: 1rem; transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.field textarea { resize: vertical; min-height: 120px; }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--green-600); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(30, 77, 54, .18);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .18); }
.field-error { font-size: .85rem; color: var(--danger); min-height: 0; }
.field-error:empty { display: none; }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-inline-end: 44px; cursor: pointer; }
.select-wrap .icon { position: absolute; inset-inline-end: 14px; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--muted); }

.radio-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: 6px; }
.field .radio {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding-block: 0; padding-inline: 16px 22px; border: 1px solid #CBD2CC; white-space: nowrap; border-radius: var(--radius-sm);
  cursor: pointer; font-weight: 500; transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.radio:hover { border-color: var(--green-600); }
.radio:has(input:checked) { border-color: var(--green-700); background: var(--green-50); }
/* Radio circles must not inherit the text-field box (48px height, border, focus shadow) */
.field .radio input,
.field .radio input:hover,
.field .radio input:focus,
.field .radio input:focus-visible {
  width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0;
  border: 0; box-shadow: none; outline: none; background: none;
  accent-color: var(--green-700); flex: none;
}
/* Keyboard focus rings the whole option instead */
.field .radio:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

.error-summary {
  border: 1px solid #F4C7C3; background: var(--danger-bg); color: var(--danger);
  border-radius: var(--radius-sm); padding: var(--s-4);
}
.error-summary p { display: flex; align-items: center; gap: var(--s-2); }
.error-summary ul { margin-top: var(--s-2); padding-inline-start: 28px; list-style: disc; }
.error-summary a { color: var(--danger); font-weight: 600; }
.form-success { display: flex; gap: var(--s-2); align-items: flex-start; color: var(--success); font-weight: 600; font-size: .95rem; }
.form-success:empty { display: none; }
.form-success.is-error { color: var(--danger); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.form-success .icon { margin-top: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(255, 255, 255, .78); padding-top: var(--s-8); font-size: .95rem; }
.footer-grid { display: grid; gap: var(--s-6); grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }
.footer-brand p { margin-top: var(--s-4); max-width: 340px; }
.footer-brand .brand-mark { width: 56px; height: 56px; background: #fff; box-shadow: 0 0 0 3px rgba(212, 198, 142, .35); }
.social { display: flex; gap: var(--s-2); margin-top: var(--s-5); }
.social a {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.social a:hover { background: var(--gold-300); color: var(--green-950); }
.footer-title { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: var(--s-4); }
.site-footer nav a, .footer-contact a {
  display: inline-flex; align-items: center; min-height: 36px;
  color: rgba(255, 255, 255, .78); text-decoration: none; transition: color var(--dur-fast) ease;
}
.site-footer nav a:hover, .footer-contact a:hover { color: var(--gold-300); }
.footer-contact li { display: flex; gap: var(--s-3); align-items: flex-start; padding-block: 6px; }
.footer-contact .icon { margin-top: 3px; color: var(--gold-300); width: 18px; height: 18px; }
.footer-contact a { min-height: 0; }
.footer-bottom {
  text-align: center;
  margin-top: var(--s-7); padding-block: var(--s-5); border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .85rem; color: rgba(255, 255, 255, .65);
}
.footer-cr { margin-top: 4px; font-size: .8rem; color: rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; }

/* ---------- Scroll reveal ---------- */
.js .reveal-group > * {
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out),
              box-shadow var(--dur) ease, border-color var(--dur) ease;
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js .reveal-group.is-visible > * { opacity: 1; transform: none; }
.js .reveal-group.is-visible > *:hover { transition-delay: 0s; }
.js .section-head { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.js .section-head.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal-group > *, .js .section-head { opacity: 1; transform: none; }
  .feature-card:hover, .pillar:hover .pillar-media img { transform: none; }
}
