/* ==========================================================================
   Beton FZ-LLC — Corporate Website v1
   Static, restrained, corporate-first.
   ========================================================================== */

/* Design tokens */
:root {
  /* Color */
  --color-primary:   #0B1F3A;
  --color-primary-2: #14294A;
  --color-ink:       #111418;
  --color-muted:     #5B6370;
  --color-line:      #E3E6EB;
  --color-line-2:    #EEF0F3;
  --color-surface:   #FFFFFF;
  --color-surface-2: #F5F6F8;
  --color-surface-3: #FAFBFC;
  --color-accent:    #B79154;
  --color-accent-2: #9E7B44;

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Sizes (desktop / mobile via clamp) */
  --text-h1:  clamp(1.625rem, 1.1rem + 2.4vw, 2.75rem);   /* 26 -> 44 */
  --text-h2:  clamp(1.375rem, 1.1rem + 1.3vw, 1.75rem);   /* 22 -> 28 */
  --text-h3:  clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);    /* 17 -> 20 */
  --text-body: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);   /* 16 -> 17 */
  --text-sm:  0.875rem;   /* 14 */
  --text-xs:  0.8125rem;  /* 13 */

  /* Layout */
  --container: 1120px;
  --gap: 32px;
  --pad-side: 32px;
  --sect-y-lg: 96px;
  --sect-y-md: 64px;
  --sect-y-sm: 48px;

  /* Radius / shadow */
  --radius: 4px;
  --radius-lg: 8px;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
button { font-family: inherit; cursor: pointer; }

/* Layout helpers */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-side);
}
.section {
  padding: var(--sect-y-lg) 0;
}
.section--alt { background: var(--color-surface-2); }
.section--tight { padding: var(--sect-y-md) 0; }
@media (max-width: 768px) {
  :root { --pad-side: 20px; }
  .section { padding: var(--sect-y-md) 0; }
  .section--tight { padding: var(--sect-y-sm) 0; }
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
h1 { font-size: var(--text-h1); line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: var(--text-h2); line-height: 1.2; }
h3 { font-size: var(--text-h3); line-height: 1.3; }
p { margin: 0 0 16px; max-width: 68ch; }
.lead { color: var(--color-ink); font-size: 1.125rem; line-height: 1.55; max-width: 62ch; }
.muted { color: var(--color-muted); }
.eyebrow {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 12px;
}
@media (max-width: 500px) {
  .eyebrow { letter-spacing: 0.08em; font-size: 0.75rem; }
}
.hr {
  height: 1px; background: var(--color-line); border: 0; margin: 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-primary);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
@media (max-width: 900px) {
  .header-inner { height: 60px; }
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 600; letter-spacing: 0.01em;
}
.brand-mark {
  width: 22px; height: 22px; color: var(--color-accent);
}
.brand-name { font-size: 1rem; }
.brand-name .fz { color: var(--color-accent); font-weight: 500; }
.brand-since {
  display: inline-block;
  margin-left: 6px;
  padding-left: 10px;
  border-left: 1px solid rgba(255,255,255,0.2);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  line-height: 1;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .brand-since { display: none; }
}
.nav {
  display: flex; align-items: center; gap: 28px;
}
.nav a {
  color: rgba(255,255,255,0.82);
  font-size: var(--text-sm);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav a:hover { color: #fff; }
.nav a.is-active { color: #fff; border-bottom-color: var(--color-accent); }

/* --- Submenu (Services dropdown) --- */
.nav .has-submenu { position: relative; }
.nav .has-submenu > a::after {
  content: '';
  display: inline-block;
  margin-left: 6px;
  width: 5px; height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.7;
}
.nav .submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: -14px;
  min-width: 260px;
  padding: 8px;
  background: var(--color-primary-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
  z-index: 20;
}
.nav .has-submenu:hover > .submenu,
.nav .has-submenu:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .15s ease, transform .15s ease, visibility 0s;
}
.nav .submenu a {
  display: block;
  padding: 10px 14px;
  border-bottom: 0;
  color: rgba(255,255,255,0.85);
  border-radius: calc(var(--radius) - 2px);
  white-space: nowrap;
}
.nav .submenu a:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.nav .submenu a.is-active {
  color: var(--color-accent);
  border-bottom: 0;
}

/* Mobile: nested sub-links inside Services */
.mobile-nav .sub {
  display: block;
  padding: 8px 0 8px 14px;
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav .sub:hover { color: var(--color-accent); padding-left: 18px; }
/* Contact us button in header — override .nav a defaults */
.nav a.nav-cta,
.nav-cta {
  margin-left: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px !important;
  border: 1px solid rgba(255,255,255,0.32);
  border-bottom: 1px solid rgba(255,255,255,0.32) !important;
  color: #fff;
  font-size: var(--text-sm);
  border-radius: var(--radius);
  transition: background .15s, border-color .15s, color .15s;
  line-height: 1;
  white-space: nowrap;
  min-height: 40px;
}
.nav a.nav-cta:hover,
.nav-cta:hover {
  background: var(--color-accent);
  border-color: var(--color-accent) !important;
  color: #fff;
}
.nav a.nav-cta.is-active,
.nav-cta.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent) !important;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  padding: 8px 14px;
  min-height: 36px;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.nav-toggle:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--color-accent);
}
@media (max-width: 900px) {
  .nav, .nav a.nav-cta, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.is-open .mobile-nav { display: block; }
}
.mobile-nav {
  display: none;
  background: var(--color-primary-2);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 4px var(--pad-side) 20px;
}
.mobile-nav a {
  display: block;
  padding: 14px 0;
  color: rgba(255,255,255,0.9);
  font-size: 0.9375rem;
  font-weight: 400;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color .15s ease, padding-left .15s ease;
}
.mobile-nav a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav .mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  min-height: 44px;
  margin-top: 16px;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius);
  border-bottom: 0;
  font-weight: 500;
  font-size: 0.9375rem;
  width: 100%;
}
.mobile-nav .mobile-cta:hover {
  color: #fff;
  padding-left: 24px;
  background: var(--color-accent-2);
}

/* Buttons — unified sizing across the site */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  min-height: 48px;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
.btn:active { transform: translateY(1px); }

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

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-line);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-2);
}

.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Small button variant (rarely used, for tight spaces) */
.btn-sm {
  padding: 10px 20px;
  min-height: 40px;
}

/* Full-width on mobile helper */
@media (max-width: 500px) {
  .btn-block-mobile { width: 100%; }
}

/* Hero */
.hero {
  padding: clamp(48px, 6vw, 112px) 0 clamp(40px, 5vw, 80px);
  background: linear-gradient(180deg, #fff 0%, var(--color-surface-3) 100%);
  border-bottom: 1px solid var(--color-line);
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 64px; align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 500px) {
  .hero-actions .btn { flex: 1 1 auto; min-width: 0; }
}
.hero-visual {
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-primary);
  border: 1px solid var(--color-line);
  position: relative;
  box-shadow: 0 20px 40px -20px rgba(11,31,58,0.25);
}
@media (max-width: 900px) {
  .hero-visual { aspect-ratio: 16 / 9; }
}
.hero-visual img,
.hero-visual svg { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Page hero (interior pages) */
.page-hero {
  padding: 64px 0 40px;
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-line);
}
@media (max-width: 640px) {
  .page-hero { padding: 40px 0 32px; }
}
.breadcrumbs {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs .sep { margin: 0 8px; color: var(--color-line); }

/* Two-col */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap);
}
.three-col {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap);
}
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr; }
}

/* Card */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.card--muted { background: var(--color-surface-2); }
.card h3 { margin-bottom: 12px; }
.card p { margin-bottom: 12px; }
.card .card-note {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--color-line);
}
.card-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--color-primary);
  font-weight: 500;
  font-size: var(--text-sm);
  margin-top: 8px;
}
.card-link .arrow { transition: transform .15s; }
.card-link:hover .arrow { transform: translateX(3px); }
.card-link:hover { color: var(--color-accent-2); }

/* Identification table */
.id-table {
  width: 100%; border-collapse: collapse;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.id-table th, .id-table td {
  padding: 16px 24px;
  text-align: left;
  font-size: var(--text-body);
  vertical-align: top;
}
.id-table tr + tr th, .id-table tr + tr td {
  border-top: 1px solid var(--color-line-2);
}
.id-table th {
  font-weight: 500;
  color: var(--color-muted);
  width: 34%;
  background: var(--color-surface-3);
  border-right: 1px solid var(--color-line-2);
}
.id-table td { font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .id-table th, .id-table td {
    display: block; width: 100%;
    padding: 12px 20px;
    border-right: 0;
  }
  .id-table th { padding-bottom: 4px; background: transparent; }
  .id-table td { padding-top: 4px; padding-bottom: 16px; border-top: 0; }
  .id-table tr + tr { border-top: 1px solid var(--color-line-2); }
  .id-table tr + tr th, .id-table tr + tr td { border-top: 0; }
}

/* Callout / disclosure */
.callout {
  background: var(--color-surface-2);
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.callout h4 {
  margin: 0 0 8px; font-size: var(--text-sm); font-weight: 600;
  color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.08em;
}
.callout p { margin: 0; color: var(--color-ink); }
.callout p + p { margin-top: 12px; }
.callout--warn { border-left-color: #8A1F2B; }

/* Lists */
.list-clean { list-style: none; padding: 0; margin: 0 0 16px; }
.list-clean li {
  padding: 10px 0 10px 24px;
  position: relative;
  border-bottom: 1px solid var(--color-line-2);
}
.list-clean li:last-child { border-bottom: 0; }
.list-clean li::before {
  content: ''; position: absolute; left: 0; top: 20px;
  width: 8px; height: 1px; background: var(--color-accent);
}

/* Steps */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  counter-reset: step;
}
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  position: relative;
}
.step-num {
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.step h4 {
  margin: 0 0 8px; font-size: 1rem; color: var(--color-primary);
}
.step p {
  margin: 0; font-size: var(--text-sm); color: var(--color-muted);
}

/* Section head */
.sec-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.sec-head h2 { margin-bottom: 12px; }
.sec-head p { color: var(--color-muted); margin: 0; }

/* CTA block */
.cta-block {
  padding: 56px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  display: grid; grid-template-columns: 1.4fr 0.6fr;
  align-items: center; gap: 32px;
}
@media (max-width: 800px) {
  .cta-block { grid-template-columns: 1fr; padding: 40px 32px; }
}
@media (max-width: 500px) {
  .cta-block { padding: 32px 24px; }
}
.cta-block h2 { color: #fff; margin-bottom: 10px; }
.cta-block p { color: rgba(255,255,255,0.78); margin: 0; max-width: 46ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-on-dark {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}
.btn-on-dark:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-on-dark-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-on-dark-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.06);
}

/* Numbered principles */
.principles { display: grid; gap: 24px; }
.principle {
  display: grid; grid-template-columns: 80px 1fr; gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--color-line);
}
.principle:last-child { border-bottom: 1px solid var(--color-line); }
.principle-num {
  font-size: 2rem; font-weight: 600; color: var(--color-accent);
  line-height: 1; font-variant-numeric: tabular-nums;
}
.principle h3 { margin: 0 0 8px; font-size: 1.125rem; }
.principle p { margin: 0; }
@media (max-width: 640px) {
  .principle { grid-template-columns: 1fr; gap: 8px; }
  .principle-num { font-size: 1.5rem; }
}

/* Form */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: var(--text-sm); font-weight: 500; color: var(--color-primary);
}
.field .req { color: var(--color-accent); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--text-body);
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #fff; color: var(--color-ink);
  transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--color-primary); outline: none;
  box-shadow: 0 0 0 3px rgba(11,31,58,0.08);
}
.field textarea { min-height: 140px; resize: vertical; }
.consent {
  grid-column: 1 / -1;
  display: flex; gap: 12px; align-items: flex-start;
  font-size: var(--text-sm); color: var(--color-ink);
  padding-top: 4px;
}
.consent input { margin-top: 4px; }
.form-note {
  grid-column: 1 / -1;
  font-size: var(--text-sm); color: var(--color-muted);
  margin: 0;
}
.form-msg {
  grid-column: 1 / -1;
  padding: 14px 16px; border-radius: var(--radius);
  font-size: var(--text-sm);
  display: none;
}
.form-msg.is-visible { display: block; }
.form-msg--ok { background: #EEF6F1; color: #1E6F4B; border: 1px solid #CFE6D7; }
.form-msg--err { background: #FBEEEE; color: #8A1F2B; border: 1px solid #EDD4D4; }

/* Contact layout — asymmetric, card on left, form on right */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
}

.contact-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: 96px;
}
@media (max-width: 900px) {
  .contact-card { position: static; padding: 24px; }
}
@media (max-width: 500px) {
  .contact-card { padding: 20px; }
}
.contact-card-title {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  font-weight: 500;
  margin: 0 0 20px;
}
.contact-block { padding: 16px 0; border-bottom: 1px solid var(--color-line); }
.contact-block:first-of-type { padding-top: 0; }
.contact-block:last-of-type { border-bottom: 0; padding-bottom: 0; }
.contact-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  font-weight: 500;
  margin-bottom: 6px;
}
.contact-value {
  font-size: var(--text-body);
  color: var(--color-ink);
  line-height: 1.5;
}
.contact-value a { color: var(--color-primary); border-bottom: 1px solid var(--color-line); }
.contact-value a:hover { color: var(--color-accent-2); border-bottom-color: var(--color-accent); }

.contact-form-wrap { min-width: 0; }
.contact-form-title { margin-top: 0; margin-bottom: 6px; }
.contact-form-intro {
  color: var(--color-muted);
  font-size: var(--text-sm);
  margin: 0 0 28px;
}

/* Legal pages */
.legal-page { padding: 64px 0 96px; }
.legal-toc {
  display: inline-flex; gap: 20px;
  font-size: var(--text-sm);
  padding: 12px 20px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  margin: 8px 0 32px;
}
.legal-toc a { color: var(--color-primary); font-weight: 500; }
.legal-page h2 {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--color-line);
}
.legal-page h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 24px; }
.legal-page ol, .legal-page ul { padding-left: 20px; }
.legal-page li { margin-bottom: 8px; }
.legal-meta {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--color-line);
  font-size: var(--text-sm); color: var(--color-muted);
}

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.78);
  padding: 0 0 32px;
  margin-top: 0;
}

/* Upper CTA band — 'Let's talk.' with blueprint grid background */
.footer-cta {
  border-bottom: 1px solid rgba(255,255,255,0.10);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
  /* subtle 60px grid, matches the 'blueprint' motif from the PDF slides */
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: 0 0;
}
.footer-cta-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  align-items: center;
  gap: 48px;
  position: relative;
}
@media (max-width: 900px) {
  .footer-cta-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-cta { padding: 32px 0; background-size: 40px 40px; }
}
.footer-cta .eyebrow { color: var(--color-accent); margin-bottom: 12px; }
.footer-cta h2 {
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.footer-cta p {
  color: rgba(255,255,255,0.72);
  font-size: var(--text-body);
  max-width: 46ch;
  margin: 0;
}
.footer-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .footer-cta-actions { justify-content: flex-start; }
}

.footer-grid {
  display: grid; grid-template-columns: 1.1fr 1.2fr 0.9fr; gap: 48px;
  padding: 56px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.footer-col h4 {
  color: #fff;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  margin: 0 0 16px;
}
.footer-col p, .footer-col li {
  color: rgba(255,255,255,0.78);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin: 0;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li + li { margin-top: 6px; }
.footer-col a { color: rgba(255,255,255,0.78); }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: var(--text-xs); color: rgba(255,255,255,0.6);
}
.footer-links {
  display: flex; gap: 20px; flex-wrap: wrap;
}
.footer-links a { color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: var(--color-accent); }
.footer-note {
  font-size: var(--text-xs); color: rgba(255,255,255,0.55);
  font-style: normal;
}

/* ==========================================================================
   Cookie consent — banner + preferences modal
   ========================================================================== */

/* Banner (bottom of viewport, full-width on mobile, inset on desktop) */
.cc-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 90;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.32);
  padding: 20px 22px;
  display: none;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border-top: 2px solid var(--color-accent);
}
.cc-banner.is-visible { display: flex; }
.cc-banner-text { flex: 1 1 320px; }
.cc-banner-text h4 {
  margin: 0 0 6px;
  color: #fff;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--color-accent);
}
.cc-banner-text p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  max-width: 720px;
}
.cc-banner-text a { color: var(--color-accent); border-bottom: 1px solid rgba(183,145,84,0.4); }
.cc-banner-text a:hover { border-bottom-color: var(--color-accent); }
.cc-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.cc-btn {
  border: 0;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.cc-btn--primary { background: #fff; color: var(--color-primary); }
.cc-btn--primary:hover { background: var(--color-accent); color: #fff; }
.cc-btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
}
.cc-btn--outline:hover { border-color: var(--color-accent); color: var(--color-accent); }
.cc-btn--link {
  background: transparent;
  color: rgba(255,255,255,0.7);
  padding: 10px 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cc-btn--link:hover { color: var(--color-accent); }

@media (max-width: 720px) {
  .cc-banner { left: 12px; right: 12px; bottom: 12px; padding: 16px; gap: 14px; }
  .cc-banner-text h4 { font-size: var(--text-xs); }
  .cc-banner-text p { font-size: var(--text-xs); line-height: 1.5; }
  .cc-banner-actions { width: 100%; }
  .cc-btn { flex: 1 1 100%; padding: 10px 12px; font-size: var(--text-xs); }
}

/* Modal (Preferences) */
.cc-modal {
  position: fixed; inset: 0;
  background: rgba(11,31,58,0.72);
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.cc-modal.is-visible { display: flex; }
.cc-modal-inner {
  background: #fff;
  color: var(--color-ink);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
}
.cc-modal-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}
.cc-modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--color-primary);
}
.cc-modal-close {
  background: transparent; border: 0; cursor: pointer;
  padding: 4px; color: var(--color-muted);
  font-size: 24px; line-height: 1;
}
.cc-modal-close:hover { color: var(--color-primary); }
.cc-modal-intro {
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.55;
  margin: 0 0 24px;
}
.cc-category {
  border-top: 1px solid var(--color-line);
  padding: 18px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}
.cc-category:last-of-type { border-bottom: 1px solid var(--color-line); }
.cc-category h4 {
  margin: 0 0 4px;
  font-size: var(--text-body);
  color: var(--color-primary);
}
.cc-category p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-muted);
}
.cc-category-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 6px;
}

/* iOS-style toggle */
.cc-toggle {
  position: relative;
  width: 44px; height: 24px;
  flex-shrink: 0;
  margin-top: 4px;
}
.cc-toggle input {
  position: absolute; opacity: 0; inset: 0; margin: 0;
  cursor: pointer;
}
.cc-toggle input:disabled { cursor: not-allowed; }
.cc-toggle-track {
  position: absolute; inset: 0;
  background: var(--color-line);
  border-radius: 12px;
  transition: background .2s ease;
}
.cc-toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.cc-toggle input:checked ~ .cc-toggle-track { background: var(--color-primary); }
.cc-toggle input:checked ~ .cc-toggle-thumb { transform: translateX(20px); }
/* Disabled + checked (Strictly necessary): shown in accent gold, always-on */
.cc-toggle input:disabled:checked ~ .cc-toggle-track { background: var(--color-accent); opacity: 0.7; }
/* Disabled + unchecked (Analytics/Marketing — not used): muted grey */
.cc-toggle input:disabled:not(:checked) ~ .cc-toggle-track { background: var(--color-line); opacity: 0.6; }
.cc-toggle input:disabled:not(:checked) ~ .cc-toggle-thumb { background: #eaeaea; box-shadow: none; }

/* RTL: mirror toggle motion */
html[dir="rtl"] .cc-toggle-thumb { left: auto; right: 2px; }
html[dir="rtl"] .cc-toggle input:checked ~ .cc-toggle-thumb { transform: translateX(-20px); }
html[dir="rtl"] .cc-category { grid-template-columns: auto 1fr; }
html[dir="rtl"] .cc-modal-header { direction: rtl; }

.cc-modal-actions {
  margin-top: 24px;
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: flex-end;
}
.cc-modal-actions .cc-btn--primary { background: var(--color-primary); color: #fff; }
.cc-modal-actions .cc-btn--primary:hover { background: var(--color-accent); color: #fff; }
.cc-modal-actions .cc-btn--outline { color: var(--color-primary); border-color: var(--color-line); }
.cc-modal-actions .cc-btn--outline:hover { border-color: var(--color-accent); color: var(--color-accent); }

@media (max-width: 560px) {
  .cc-modal-inner { padding: 24px 20px; }
  .cc-modal-header h3 { font-size: 1.25rem; }
  .cc-modal-actions { justify-content: stretch; }
  .cc-modal-actions .cc-btn { flex: 1 1 100%; }
}

/* Legacy .cookie-notice — kept but hidden (old markup replaced) */
.cookie-notice { display: none !important; }

/* Utility */
.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.max-prose { max-width: 68ch; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   RTL / Arabic locale
   ========================================================================== */
:root {
  --font-arabic: 'Noto Sans Arabic', 'Inter', system-ui, sans-serif;
}
html[dir="rtl"] body { font-family: var(--font-arabic); letter-spacing: 0; }

/* Numerals, latin brand, licence numbers stay in Latin */
html[dir="rtl"] .latn { font-family: var(--font-sans); direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .brand-name { font-family: var(--font-sans); }

/* Flip inline-block arrows and mirror decorative separators */
html[dir="rtl"] .arrow { display: inline-block; transform: scaleX(-1); }
html[dir="rtl"] .breadcrumbs .sep { transform: scaleX(-1); display: inline-block; }

/* Header — mirror layout but keep container centering */
html[dir="rtl"] .header-inner { flex-direction: row-reverse; }
html[dir="rtl"] .nav { flex-direction: row-reverse; gap: 28px; }

/* Language switcher */
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  margin-inline-start: 16px;
  padding-inline-start: 16px;
  border-inline-start: 1px solid rgba(255,255,255,0.14);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 500;
}
.lang-switch a { color: rgba(255,255,255,0.55); padding: 4px 6px; }
.lang-switch a.is-active { color: #fff; }
.lang-switch a:hover { color: var(--color-accent); }
@media (max-width: 900px) {
  .lang-switch { display: none; }
}

/* Mobile menu language switch */
.nav-mobile .lang-switch {
  display: inline-flex;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
}

/* Cards, hero grid — do not flip images, but flip text alignment */
html[dir="rtl"] .hero-copy, html[dir="rtl"] .prose,
html[dir="rtl"] .footer-col, html[dir="rtl"] .footer-cta,
html[dir="rtl"] .card, html[dir="rtl"] .eyebrow { text-align: right; }
html[dir="rtl"] .footer-cta-actions { justify-content: flex-start; }
@media (max-width: 900px) {
  html[dir="rtl"] .footer-cta-actions { justify-content: flex-end; }
}
html[dir="rtl"] .footer-links { justify-content: flex-end; }
html[dir="rtl"] .breadcrumbs { direction: rtl; }

/* Brand — keep icon on the right, text on the left of icon (visual: icon first from RTL start) */
html[dir="rtl"] .brand { flex-direction: row-reverse; }
html[dir="rtl"] .brand-since {
  margin-inline-start: 0;
  margin-inline-end: 6px;
  padding-inline-start: 0;
  padding-inline-end: 10px;
  border-inline-start: 0;
  border-inline-end: 1px solid rgba(255,255,255,0.2);
}

/* Increase base line-height for Arabic (letters need more air) */
html[dir="rtl"] { line-height: 1.7; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { line-height: 1.3; }

/* Lists: use square/disc but align to right */
html[dir="rtl"] ul, html[dir="rtl"] ol { padding-inline-start: 0; padding-inline-end: 1.25rem; }

/* Legal pages — prose typography */
.prose { max-width: 68ch; }
.prose .lead {
  font-size: var(--text-h3);
  line-height: 1.55;
  color: var(--color-ink);
  margin-bottom: 8px;
}
.prose h1 { margin: 8px 0 20px; }
.prose h2 {
  margin: 40px 0 12px;
  font-size: var(--text-h3);
  color: var(--color-primary);
}
.prose h3 { margin: 24px 0 8px; font-size: var(--text-body); }
.prose p, .prose ul, .prose ol { margin: 12px 0; line-height: 1.7; color: var(--color-ink); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin: 6px 0; }
.prose a { color: var(--color-accent); border-bottom: 1px solid rgba(183,145,84,0.3); }
.prose a:hover { border-bottom-color: var(--color-accent); }
.prose strong { color: var(--color-primary); font-weight: 600; }
.prose small { color: var(--color-muted); }
.prose code {
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 0.9em;
  background: var(--color-surface-2);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--color-primary);
}

/* Prose table (for Cookie Policy) */
.prose-table-wrap { overflow-x: auto; margin: 20px 0; }
.prose-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.prose-table th, .prose-table td {
  text-align: left;
  padding: 10px 12px;
  vertical-align: top;
  border-bottom: 1px solid var(--color-line);
  line-height: 1.55;
}
.prose-table th {
  background: var(--color-surface-2);
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--color-line);
}
.prose-table td code { font-size: 0.85em; }

/* RTL adjustments for prose */
html[dir="rtl"] .prose ul, html[dir="rtl"] .prose ol {
  padding-left: 0;
  padding-right: 1.25rem;
}
html[dir="rtl"] .prose-table th,
html[dir="rtl"] .prose-table td { text-align: right; }

.text-muted { color: var(--color-muted); }

/* Mobile language switch — inside .mobile-nav */
.mobile-lang-switch {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 10px 0 4px;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.mobile-lang-switch a {
  color: rgba(255,255,255,0.55);
  padding: 6px 10px;
  border-radius: 4px;
}
.mobile-lang-switch a.is-active {
  color: #fff;
  border-bottom: 1px solid var(--color-accent);
}
.mobile-lang-switch a:hover { color: var(--color-accent); }

/* Show only inside opened mobile nav */
.site-header.is-open .mobile-nav .mobile-lang-switch { display: inline-flex; }
