/* =========================================================================
   AMA Accounting and Auditing — ama-me.net
   Single shared stylesheet for English (LTR) and Arabic (RTL) pages.

   Contents
   ---------------------------------------------------------------------
   1.  Design tokens (CSS custom properties)
   2.  Base & reset
   3.  Typography & RTL / Arabic adjustments
   4.  Utilities (container, sections, eyebrow, visually-hidden, skip link)
   5.  Buttons
   6.  Header & navigation (desktop + mobile menu)
   7.  Hero & page headers
   8.  Cards & grids (services, industries, values, insights, reasons)
   9.  Partners
   10. Accordion (FAQ)
   11. Forms (contact form, validation states)
   12. Note boxes, fact strip, CTA band
   13. Footer
   14. Breadcrumbs & misc
   15. Responsive breakpoints:  480px / 720px / 960px / 1200px
   16. Accessibility: focus, reduced motion
   17. Print styles
   ========================================================================= */

/* 1. DESIGN TOKENS ------------------------------------------------------- */

:root {
  /* Colour palette */
  --navy-900: #16293c;      /* darkest navy: footer, hero base   */
  --navy-800: #1e3a54;      /* primary brand navy                */
  --navy-600: #2c4f70;      /* lighter navy: hovers, gradients   */
  --navy-100: #e8eef4;      /* navy tint: chips, subtle fills    */
  --teal-700: #2f6b5e;      /* secondary: icons, accents         */
  --teal-100: #e6f0ed;      /* teal tint                          */
  --gold-500: #b08d3e;      /* restrained warm gold (on light)   */
  --gold-300: #d8b567;      /* brighter gold (on dark, AA-safe)  */
  --ink-900: #26292e;       /* body text                          */
  --ink-600: #4c5560;       /* secondary text                     */
  --paper: #ffffff;
  --mist: #f5f7f9;          /* light neutral section background  */
  --line: #dce3ea;          /* borders and dividers               */
  --error: #b3261e;
  --success: #1e6b45;
  --focus-ring: #1e3a54;    /* overridden to gold on dark bands  */

  /* Typography */
  --font-latin: "Inter", "SF Pro Text", system-ui, -apple-system, "Segoe UI",
                Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-arabic: "Noto Naskh Arabic", "Geeza Pro", "Al Bayan", "Segoe UI",
                 Tahoma, system-ui, sans-serif;
  --font-body: var(--font-latin);

  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.45rem);
  --text-2xl: clamp(1.45rem, 1.2rem + 1vw, 1.85rem);
  --text-3xl: clamp(1.8rem, 1.4rem + 1.8vw, 2.5rem);
  --text-4xl: clamp(2.1rem, 1.6rem + 2.6vw, 3.15rem);

  --leading-body: 1.65;
  --leading-heading: 1.2;

  /* Spacing scale (rem) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Borders, radius, shadows, motion */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --border: 1px solid var(--line);
  --shadow-sm: 0 1px 3px rgba(22, 41, 60, 0.08);
  --shadow-md: 0 6px 20px rgba(22, 41, 60, 0.10);
  --shadow-lg: 0 14px 40px rgba(22, 41, 60, 0.16);
  --transition: 180ms ease;

  /* Layout */
  --container-max: 1140px;
  --container-pad: clamp(1rem, 4vw, 1.5rem);
  --header-height: 76px;
}

/* Arabic pages switch the font stack and loosen line-height. */
html[lang="ar"] {
  --font-body: var(--font-arabic);
  --leading-body: 1.9;
  --leading-heading: 1.45;
}

/* 2. BASE & RESET -------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--ink-900);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  line-height: var(--leading-heading);
  color: var(--navy-800);
  margin-block: 0 var(--space-4);
  font-weight: 700;
  overflow-wrap: break-word;
}

h1 { font-size: var(--text-4xl); letter-spacing: -0.015em; }
h2 { font-size: var(--text-3xl); letter-spacing: -0.01em; }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

html[lang="ar"] h1,
html[lang="ar"] h2 {
  letter-spacing: 0; /* Arabic script must never be letterspaced */
}

p {
  margin-block: 0 var(--space-4);
}

ul, ol {
  margin-block: 0 var(--space-4);
  padding-inline-start: 1.25rem;
}

li { margin-block-end: var(--space-2); }

a {
  color: var(--navy-800);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover { color: var(--teal-700); }

hr {
  border: 0;
  border-top: var(--border);
  margin-block: var(--space-6);
}

address { font-style: normal; }

::selection {
  background: var(--navy-800);
  color: #fff;
}

/* 3. UTILITIES ----------------------------------------------------------- */

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

.container-narrow { max-width: 820px; }

.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section-tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section-mist { background: var(--mist); }

.section-head {
  max-width: 720px;
  margin-block-end: var(--space-6);
}

.section-head p {
  color: var(--ink-600);
  font-size: var(--text-lg);
}

.eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-block-end: var(--space-3);
}

html[lang="ar"] .eyebrow { letter-spacing: 0; }

.lead {
  font-size: var(--text-lg);
  color: var(--ink-600);
}

.muted { color: var(--ink-600); }
.small { font-size: var(--text-sm); }

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

.skip-link {
  position: absolute;
  inset-inline-start: var(--space-4);
  top: -100px;
  z-index: 200;
  background: var(--navy-800);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* 4. BUTTONS ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.78rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--navy-800);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-600);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-800);
}

.btn-outline:hover {
  background: var(--navy-100);
  color: var(--navy-800);
}

/* Buttons placed on dark (navy) backgrounds */
.on-dark .btn-primary {
  background: #fff;
  color: var(--navy-800);
}

.on-dark .btn-primary:hover {
  background: var(--navy-100);
  color: var(--navy-800);
}

.on-dark .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}

.on-dark .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-whatsapp {
  background: var(--teal-700);
  color: #fff;
}

.btn-whatsapp:hover {
  background: #275a4f;
  color: #fff;
}

.btn .btn-icon {
  width: 20px;
  height: 20px;
  flex: none;
  /* icons inside solid buttons are recoloured to white */
  filter: brightness(0) invert(1);
}

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.9375rem; }

/* 5. HEADER & NAVIGATION -------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand img {
  width: auto;
  height: 46px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(0.4rem, 1.4vw, 1.4rem);
  align-items: center;
}

.site-nav li { margin: 0; }

.site-nav a {
  display: block;
  padding: var(--space-2) var(--space-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9875rem;
  color: var(--ink-900);
  border-block-end: 2px solid transparent;
}

.site-nav a:hover { color: var(--navy-800); border-color: var(--gold-500); }

.site-nav a[aria-current="page"] {
  color: var(--navy-800);
  font-weight: 700;
  border-color: var(--gold-500);
}

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

.lang-switch {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy-800);
  padding: 0.45rem 0.9rem;
  border: var(--border);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.lang-switch:hover {
  border-color: var(--navy-800);
  color: var(--navy-800);
}

/* Language switcher shows the *other* language's name in its own script */
.lang-switch[hreflang="ar"] { font-family: var(--font-arabic); }
.lang-switch[hreflang="en"] { font-family: var(--font-latin); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy-800);
  transition: transform var(--transition), opacity var(--transition);
}

/* The button's first child is the visually-hidden label, so the bars are
   children 2–4. */
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* 6. HERO & PAGE HEADERS -------------------------------------------------- */

.hero {
  background:
    linear-gradient(140deg, var(--navy-900) 0%, var(--navy-800) 55%, #234460 100%);
  color: #fff;
  overflow: hidden;
}

.hero,
.cta-band,
.site-footer {
  --focus-ring: var(--gold-300);
}

.hero-inner {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}

.hero .eyebrow { color: var(--gold-300); }

.hero h1 {
  color: #fff;
  margin-block-end: var(--space-4);
  max-width: 21ch;
}

.hero p {
  color: #d4dfe9;
  font-size: var(--text-lg);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-block-start: var(--space-5);
}

.hero-art { display: none; }

.hero-art img { width: 100%; height: auto; }

.hero-note {
  margin-block-start: var(--space-5);
  font-size: var(--text-sm);
  color: #a9bccd;
}

/* Inner page header strip */
.page-header {
  background:
    linear-gradient(140deg, var(--navy-900) 0%, var(--navy-800) 70%, #234460 100%);
  color: #fff;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.page-header .eyebrow { color: var(--gold-300); }

.page-header h1 {
  color: #fff;
  margin-block-end: var(--space-3);
}

.page-header p {
  color: #d4dfe9;
  font-size: var(--text-lg);
  max-width: 62ch;
  margin-block-end: 0;
}

.page-header { --focus-ring: var(--gold-300); }

/* 7. CARDS & GRIDS -------------------------------------------------------- */

.grid {
  display: grid;
  gap: var(--space-5);
}

.card {
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition),
              border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: #c8d3dd;
}

.card h3 { margin-block-end: var(--space-3); }

.card p:last-child,
.card ul:last-child { margin-block-end: 0; }

.card-icon {
  width: 46px;
  height: 46px;
  margin-block-end: var(--space-4);
}

.card-link {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  color: var(--teal-700);
  margin-block-start: var(--space-3);
}

.card-link::after {
  content: " \2192";
}

html[dir="rtl"] .card-link::after {
  content: " \2190";
}

.card-link:hover { text-decoration: underline; }

/* Feature list (checkmarks) */
.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-inline-start: 1.9rem;
  margin-block-end: var(--space-3);
}

.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.28em;
  width: 1.15rem;
  height: 1.15rem;
  background-color: var(--teal-700);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9"/><path d="M8.3 12.3l2.5 2.5 5-5.3"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9"/><path d="M8.3 12.3l2.5 2.5 5-5.3"/></svg>') center / contain no-repeat;
}

/* Insight cards */
.insight-card {
  display: flex;
  flex-direction: column;
}

.insight-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-500);
  background: #f7f1e3;
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.8rem;
  margin-block-end: var(--space-4);
}

html[lang="ar"] .insight-tag { letter-spacing: 0; }

/* Industry cards */
.industry-card {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.industry-card .card-icon {
  width: 40px;
  height: 40px;
  margin: 0;
  flex: none;
}

.industry-card h3 { font-size: var(--text-lg); margin-block-end: var(--space-2); }
.industry-card p { margin-block-end: 0; color: var(--ink-600); font-size: var(--text-base); }

/* Service anchor sections */
.service-block {
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  margin-block-end: var(--space-6);
}

.service-block-head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-block-end: var(--space-4);
}

.service-block-head .card-icon { margin: 0; flex: none; }
.service-block-head h2 { margin: 0; font-size: var(--text-2xl); }

.service-block .columns {
  columns: 1;
  column-gap: var(--space-6);
}

/* 8. PARTNERS -------------------------------------------------------------- */

.partner-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.partner-head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.partner-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--navy-800), var(--navy-600));
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.partner-photo {
  width: 84px;
  height: 84px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}

.partner-head h3,
.partner-head h2 {
  margin: 0;
  font-size: var(--text-xl);
}

.partner-role {
  color: var(--gold-500);
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-block-start: var(--space-1);
}

html[lang="ar"] .partner-role { letter-spacing: 0; }

.partner-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.partner-meta li {
  margin: 0;
  background: var(--navy-100);
  color: var(--navy-800);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.partner-section {
  margin-block-start: var(--space-2);
}

.partner-section h4 {
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--teal-700);
  margin-block-end: var(--space-2);
}

html[lang="ar"] .partner-section h4 { letter-spacing: 0; }

/* 9. ACCORDION (FAQ) ------------------------------------------------------- */

.accordion {
  border: var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
  overflow: hidden;
}

.accordion details + details {
  border-top: var(--border);
}

.accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  font-weight: 600;
  color: var(--navy-800);
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--gold-500);
  transition: transform var(--transition);
}

.accordion details[open] summary::after {
  content: "\2212"; /* minus sign */
}

.accordion summary:hover {
  background: var(--mist);
}

.accordion .accordion-body {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--ink-600);
}

.accordion .accordion-body p:last-child { margin-block-end: 0; }

/* 10. FORMS ----------------------------------------------------------------- */

.form-grid {
  display: grid;
  gap: var(--space-4);
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-block-end: var(--space-2);
  color: var(--navy-800);
}

.form-field .hint {
  display: block;
  font-weight: 400;
  font-size: var(--text-sm);
  color: var(--ink-600);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  font: inherit;
  color: var(--ink-900);
  background: var(--paper);
  border: 1.5px solid #b9c4ce;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy-800);
  box-shadow: 0 0 0 3px rgba(30, 58, 84, 0.18);
}

.form-field textarea { min-height: 150px; resize: vertical; }

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--error);
}

.field-error {
  display: none;
  color: var(--error);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-block-start: var(--space-2);
}

.form-field.has-error .field-error { display: block; }

.consent-field {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: flex-start;
}

.consent-field label { flex: 1; }

.consent-field .field-error {
  flex-basis: 100%;
  margin-block-start: 0;
}

.consent-field input {
  width: 1.15rem;
  height: 1.15rem;
  margin-block-start: 0.28rem;
  flex: none;
  accent-color: var(--navy-800);
}

.consent-field label {
  font-weight: 400;
  font-size: var(--text-sm);
  color: var(--ink-600);
  margin: 0;
}

/* Honeypot: visually removed but present for bots. Not display:none, so
   naive bots still fill it; aria-hidden + tabindex keep it away from users. */
.hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.form-status {
  display: none;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-sm);
  font-weight: 500;
  margin-block-end: var(--space-4);
}

.form-status.is-visible { display: block; }

.form-status.is-success {
  background: #e7f3ec;
  border: 1px solid #bcdccb;
  color: var(--success);
}

.form-status.is-error {
  background: #faeceb;
  border: 1px solid #ecc7c4;
  color: var(--error);
}

/* Contact info panel */
.contact-panel {
  background: var(--mist);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-block-end: var(--space-4);
}

.contact-list img {
  width: 22px;
  height: 22px;
  flex: none;
  margin-block-start: 0.2rem;
}

.contact-list strong {
  display: block;
  color: var(--navy-800);
}

/* 11. NOTE BOXES, FACT STRIP, CTA BAND -------------------------------------- */

.note-box {
  background: var(--mist);
  border-inline-start: 4px solid var(--gold-500);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  color: var(--ink-600);
}

.note-box p:last-child { margin-block-end: 0; }

.fact-strip {
  display: grid;
  gap: var(--space-5);
  text-align: center;
}

.fact-strip .fact strong {
  display: block;
  font-size: var(--text-3xl);
  color: var(--navy-800);
  font-weight: 700;
  line-height: 1.1;
}

.fact-strip .fact span {
  color: var(--ink-600);
  font-size: var(--text-sm);
}

.cta-band {
  background:
    linear-gradient(130deg, var(--navy-900), var(--navy-800));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 6vw, 3.5rem);
  text-align: center;
}

.cta-band h2 { color: #fff; }

.cta-band p {
  color: #d4dfe9;
  max-width: 58ch;
  margin-inline: auto;
}

.cta-band .hero-actions {
  justify-content: center;
  margin-block-start: var(--space-5);
}

/* Two-column feature rows (approach / technology sections) */
.split {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

.split-media {
  background: linear-gradient(150deg, var(--navy-900), var(--navy-600));
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.split-media img { width: 100%; height: auto; }

/* 12. FOOTER ---------------------------------------------------------------- */

.site-footer {
  background: var(--navy-900);
  color: #c3d1dd;
  margin-block-start: var(--space-8);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  gap: var(--space-6);
  padding-block: var(--space-7) var(--space-6);
}

.footer-brand img {
  width: auto;
  height: 44px;
  margin-block-end: var(--space-4);
}

.footer-brand p { color: #a9bccd; max-width: 34ch; }

.site-footer h2 {
  color: #fff;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-block-end: var(--space-4);
}

html[lang="ar"] .site-footer h2 { letter-spacing: 0; }

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li { margin-block-end: var(--space-3); }

.site-footer a {
  color: #c3d1dd;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: var(--space-5);
  font-size: 0.8125rem;
  color: #8fa5b8;
}

.footer-disclaimer p { margin-block-end: var(--space-3); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: var(--space-4);
  font-size: 0.8125rem;
  color: #8fa5b8;
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom li { margin: 0; }

/* 13. BREADCRUMBS & MISC ------------------------------------------------------ */

.breadcrumbs {
  padding-block: var(--space-3);
  font-size: var(--text-sm);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
}

.breadcrumbs li { margin: 0; display: flex; gap: var(--space-2); align-items: center; }

.breadcrumbs li + li::before {
  content: "/";
  color: #93a5b5;
}

.breadcrumbs a { text-decoration: none; color: var(--ink-600); }
.breadcrumbs a:hover { color: var(--navy-800); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--navy-800); font-weight: 600; }

/* 404 */
.error-page {
  text-align: center;
  padding-block: clamp(4rem, 12vw, 8rem);
}

.error-code {
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 700;
  color: var(--navy-100);
  line-height: 1;
  margin-block-end: var(--space-4);
}

/* Legal pages */
.legal-content h2 { font-size: var(--text-xl); margin-block-start: var(--space-6); }
.legal-content h3 { font-size: var(--text-lg); margin-block-start: var(--space-5); }

.legal-meta {
  color: var(--ink-600);
  font-size: var(--text-sm);
  margin-block-end: var(--space-6);
}

/* 14. RESPONSIVE BREAKPOINTS -------------------------------------------------- */

/* >= 480px */
@media (min-width: 480px) {
  .fact-strip { grid-template-columns: repeat(3, 1fr); }
}

/* >= 720px */
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .form-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .form-grid-2 .form-field-full { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .service-block .columns { columns: 2; }
  .split { grid-template-columns: 1.1fr 0.9fr; }
  .split.split-reverse .split-media { order: -1; }
}

/* >= 960px */
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; }
  .hero-art { display: block; }
  .contact-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-7); align-items: start; }
}

/* Mobile navigation: applies below 960px, only when JS is available */
@media (max-width: 959.98px) {
  html.js .nav-toggle { display: flex; }

  html.js .site-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: var(--paper);
    border-bottom: var(--border);
    box-shadow: var(--shadow-md);
    display: none;
    padding: var(--space-4) var(--container-pad) var(--space-5);
  }

  html.js .site-nav.is-open { display: block; }

  html.js .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  html.js .site-nav a {
    padding: var(--space-3) var(--space-2);
    border-block-end: var(--border);
    font-size: var(--text-md);
  }

  html.js .site-nav li:last-child a { border-block-end: 0; }

  /* Without JS the nav simply wraps below the logo — nothing is hidden. */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: var(--space-3); }
  html:not(.js) .site-nav { order: 3; width: 100%; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
}

/* Very narrow screens (320px) */
@media (max-width: 400px) {
  .brand img { height: 38px; }
  .btn { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .header-actions .lang-switch { padding-inline: 0.6rem; }
}

/* 15. ACCESSIBILITY ------------------------------------------------------------ */

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

.btn:focus-visible {
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .card:hover,
  .btn:hover { transform: none; }
}

/* 16. PRINT --------------------------------------------------------------------- */

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .breadcrumbs,
  .hero-actions,
  .cta-band,
  .nav-toggle,
  .btn {
    display: none !important;
  }

  body {
    color: #000;
    font-size: 11pt;
  }

  .hero,
  .page-header {
    background: none;
    color: #000;
    padding-block: 0.5cm;
  }

  .hero h1,
  .page-header h1,
  .hero p,
  .page-header p {
    color: #000;
  }

  a { color: #000; text-decoration: underline; }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
  }

  .card,
  .service-block,
  .accordion {
    box-shadow: none;
    border: 1px solid #999;
    break-inside: avoid;
  }
}
