/* ============================================================
   dubairidecard.com — site stylesheet
   prefix: drc-  ·  corporate-trust skeleton + soft-teal accents
   palette shifted from a warm-teal base:
     #0aa29c -> #0e7c73  (brand)
     #0aa29c -> #0a5f57  (deep)
     #0aa29c -> #d9ecea  (tint)
   typography: Manrope (display) + Inter (body)
   ============================================================ */

@layer tokens, base, layout, components, utils;

/* ---------------- tokens ---------------- */
@layer tokens {
  :root {
    --brand: #0e7c73;
    --brand-700: #0a5f57;
    --brand-100: #d9ecea;
    --accent: #e08a3d;            /* warm counterweight, used sparingly */
    --ink: #101a1f;
    --ink-soft: #45535c;
    --ink-mute: #7a8790;
    --paper: #fafcfb;
    --paper-2: #f0f4f4;
    --paper-3: #e7ecec;
    --line: #dde3e3;
    --ring: rgba(14, 124, 115, 0.32);
    --ok: #218a4e;
    --warn: #c98325;
    --shadow-sm: 0 1px 2px rgba(15, 25, 30, 0.05), 0 2px 6px rgba(15, 25, 30, 0.04);
    --shadow-md: 0 10px 30px rgba(15, 25, 30, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 25, 30, 0.12);
    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 20px;
    --maxw: 1160px;
    --gap: clamp(16px, 3vw, 32px);
    --font-head: "Manrope", "Segoe UI", system-ui, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  }
}

/* ---------------- base ---------------- */
@layer base {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.62;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
  }
  body.drc-noscroll { overflow: hidden; }
  h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.18; color: var(--ink); margin: 0 0 .55em; letter-spacing: -0.015em; }
  h1 { font-size: clamp(2.15rem, 1.4rem + 2.7vw, 3.35rem); font-weight: 800; }
  h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.15rem); }
  h3 { font-size: 1.18rem; }
  p { margin: 0 0 1rem; max-width: 66ch; }
  a { color: var(--brand-700); text-decoration: none; }
  a:hover { text-decoration: underline; }
  img, svg { max-width: 100%; height: auto; display: block; }
  :focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 3px; }
  ::selection { background: var(--brand-100); color: var(--brand-700); }
}

/* ---------------- layout ---------------- */
@layer layout {
  .drc-container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 28px); }
  .drc-section { padding-block: clamp(44px, 6vw, 82px); position: relative; }
  .drc-section.-tight { padding-block: clamp(28px, 4vw, 52px); }
  .drc-section.-paper { background: var(--paper-2); }
  .drc-section.-tint { background: linear-gradient(180deg, var(--paper-2), var(--brand-100) 220%); }
  .drc-section.-ink { background: var(--ink); color: #dfe4e7; }
  .drc-section.-ink h2 { color: #fff; }
  .drc-head { max-width: 62ch; margin-bottom: clamp(22px, 3vw, 38px); }
  .drc-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-700); margin-bottom: 12px; }
  .drc-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }
  .drc-grid { display: grid; gap: var(--gap); }
  .drc-grid.-c2 { grid-template-columns: repeat(2, 1fr); }
  .drc-grid.-c3 { grid-template-columns: repeat(3, 1fr); }
  .drc-grid.-c4 { grid-template-columns: repeat(4, 1fr); }
  .drc-grid.-auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* ---------------- components ---------------- */
@layer components {

  /* scroll progress thread (vertical) */
  .drc-thread { position: fixed; top: 0; inset-inline-start: 0; width: 3px; height: 100%; z-index: 60; pointer-events: none; }
  .drc-thread > i { display: block; width: 100%; height: 0%; background: linear-gradient(var(--brand), var(--brand-700)); transition: height .1s linear; }

  /* announcement bar */
  .drc-announce { background: var(--ink); color: #eef1f2; font-size: .85rem; }
  .drc-announce .row { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 16px; text-align: center; }
  .drc-announce strong { color: #fff; font-weight: 600; }
  .drc-announce .x { margin-inline-start: auto; background: none; border: 0; color: #b8bcc0; cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 4px; }
  .drc-announce.-hidden { display: none; }

  /* header — solid pill (differentiates from example glass island) */
  .drc-header { position: sticky; top: 12px; z-index: 50; transition: transform .3s ease; }
  .drc-header .pill {
    display: flex; align-items: center; gap: 18px;
    margin: 12px auto 0; max-width: var(--maxw);
    width: calc(100% - clamp(20px, 6vw, 48px));
    padding: 9px 14px 9px 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow-md);
  }
  .drc-header.-hidden { transform: translateY(-140%); }
  .drc-nav { display: flex; gap: 22px; margin-inline-start: 8px; }
  .drc-nav a { color: var(--ink-soft); font-size: .92rem; font-weight: 500; }
  .drc-nav a:hover { color: var(--brand-700); text-decoration: none; }
  .drc-nav a[aria-current="page"] { color: var(--brand-700); }
  .drc-nav a[aria-current="page"]::after { content: ""; display: block; height: 2px; background: var(--brand); margin-top: 3px; border-radius: 2px; }
  .drc-header .spacer { margin-inline-start: auto; }
  .drc-actions { display: flex; align-items: center; gap: 12px; }

  /* logo — square rounded mark + wordmark */
  .drc-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
  .drc-logo:hover { text-decoration: none; }
  .drc-logo .mark { width: 34px; height: 34px; flex: none; }
  .drc-logo .word { font-family: var(--font-head); font-weight: 800; font-size: 1.08rem; letter-spacing: -.02em; }
  .drc-logo .word b { color: var(--brand); font-weight: 800; }

  /* language pill (split, small chip) */
  .drc-lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: .78rem; }
  .drc-lang a { padding: 5px 11px; color: var(--ink-soft); font-weight: 600; }
  .drc-lang a:hover { text-decoration: none; background: var(--paper-2); }
  .drc-lang a.-on { background: var(--ink); color: #fff; }

  /* buttons — soft radius */
  .drc-btn { --b: var(--brand); display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 700; font-size: .98rem; padding: 13px 22px; border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .05s; line-height: 1; }
  .drc-btn:hover { text-decoration: none; }
  .drc-btn:active { transform: translateY(1px); }
  .drc-btn.-primary { background: var(--brand); color: #fff; }
  .drc-btn.-primary:hover { background: var(--brand-700); color: #fff; }
  .drc-btn.-ink { background: var(--ink); color: #fff; }
  .drc-btn.-ink:hover { background: #000; color: #fff; }
  .drc-btn.-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
  .drc-btn.-ghost:hover { border-color: var(--ink); }
  .drc-btn.-wa { background: #128c7e; color: #fff; }
  .drc-btn.-wa:hover { background: #0e6e63; color: #fff; }
  .drc-btn.-lg { padding: 16px 28px; font-size: 1.05rem; }
  .drc-btn.-block { width: 100%; justify-content: center; }
  .drc-btn .arrow { transition: transform .15s; }
  .drc-btn:hover .arrow { transform: translateX(3px); }
  [dir="rtl"] .drc-btn:hover .arrow { transform: translateX(-3px); }

  /* chips */
  .drc-chips { display: flex; flex-wrap: wrap; gap: 10px; }
  .drc-chip { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px; }
  .drc-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

  /* cards */
  .drc-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; box-shadow: var(--shadow-sm); }
  .drc-card h3 { margin-top: 0; }
  .drc-card.-tint { background: var(--brand-100); border-color: transparent; }
  .drc-card.-pad { padding: clamp(22px, 3vw, 34px); }
  .drc-card .num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--brand-100); color: var(--brand-700); font-family: var(--font-head); font-weight: 800; font-size: .92rem; flex: none; }

  /* hero — copy on the left, a route-strip svg on the right */
  .drc-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--paper-2), var(--paper) 65%); }
  .drc-hero::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: radial-gradient(circle at 1px 1px, rgba(15,25,30,.08) 1px, transparent 0);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(120% 100% at 85% 0%, #000 40%, transparent 78%);
            mask-image: radial-gradient(120% 100% at 85% 0%, #000 40%, transparent 78%);
  }
  .drc-hero .inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 54px); align-items: center; padding-block: clamp(40px, 6vw, 76px); }
  .drc-hero h1 { margin-bottom: 16px; }
  .drc-hero .lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 54ch; }
  .drc-hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 26px 0 22px; }

  /* hero side card — "how it works" mini stepper */
  .drc-side { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 30px); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
  .drc-side .tag { display: inline-block; font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-700); background: var(--brand-100); padding: 5px 11px; border-radius: 999px; margin-bottom: 14px; }
  .drc-side ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
  .drc-side li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; }
  .drc-side li b { display: block; font-family: var(--font-head); font-size: .98rem; margin-bottom: 2px; }
  .drc-side li span.t { font-size: .9rem; color: var(--ink-soft); }
  .drc-side .mt { margin-top: 18px; }

  /* route strip — decorative SVG in the hero footer */
  .drc-route { grid-column: 1 / -1; padding-block: 14px 0; }
  .drc-route svg { width: 100%; height: 68px; color: var(--brand); opacity: .78; }
  html[dir="rtl"] .drc-route svg { transform: scaleX(-1); }

  /* steps (numbered list) */
  .drc-steps { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; gap: 18px; }
  .drc-step { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); }
  .drc-step .n { counter-increment: st; }
  .drc-step .n::before { content: counter(st, decimal-leading-zero); font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--brand); }
  .drc-step h3 { margin: 0 0 4px; }
  .drc-step p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

  /* trust strip */
  .drc-strip { display: flex; flex-wrap: wrap; gap: clamp(14px, 3vw, 44px); align-items: center; justify-content: space-between; }
  .drc-stat b { display: block; font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--brand-700); line-height: 1; }
  .drc-stat span { font-size: .85rem; color: var(--ink-mute); }

  /* faq */
  .drc-faq { display: grid; gap: 10px; max-width: 820px; }
  .drc-faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); overflow: hidden; }
  .drc-faq summary { cursor: pointer; padding: 16px 20px; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
  .drc-faq summary::-webkit-details-marker { display: none; }
  .drc-faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; flex: none; transition: transform .2s; }
  .drc-faq details[open] summary::after { transform: rotate(45deg); }
  .drc-faq .ans { padding: 0 20px 18px; color: var(--ink-soft); font-size: .96rem; }
  .drc-faq .ans p { margin: 0; }

  /* breadcrumbs */
  .drc-crumbs { font-size: .84rem; color: var(--ink-mute); padding-block: 14px; }
  .drc-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
  .drc-crumbs li::after { content: "/"; margin-inline-start: 8px; color: var(--line); }
  .drc-crumbs li:last-child::after { content: ""; }

  /* forms (contact only) */
  .drc-form { display: grid; gap: 20px; }
  .drc-field { display: grid; gap: 6px; }
  .drc-field label { font-family: var(--font-head); font-weight: 600; font-size: .92rem; }
  .drc-field input, .drc-field select, .drc-field textarea {
    font-family: var(--font-body); font-size: 1rem; padding: 13px 14px; border: 1px solid var(--line);
    border-radius: var(--r-sm); background: var(--paper); color: var(--ink); width: 100%;
  }
  .drc-field textarea { resize: vertical; min-height: 120px; }
  .drc-field input:focus, .drc-field select:focus, .drc-field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--ring); }
  .drc-field .hint { font-size: .8rem; color: var(--ink-mute); }
  .drc-field .err { font-size: .82rem; color: #b3261e; display: none; }
  .drc-field.-invalid input, .drc-field.-invalid textarea, .drc-field.-invalid select { border-color: #b3261e; }
  .drc-field.-invalid .err { display: block; }
  .drc-field.-invalid .hint { display: none; }

  /* channel picker on thanks page */
  .drc-channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .drc-channel { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); }
  .drc-channel:hover { text-decoration: none; border-color: var(--brand); box-shadow: var(--shadow-md); }
  .drc-channel .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-100); color: var(--brand-700); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 4px; }
  .drc-channel b { font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
  .drc-channel span.v { font-size: .92rem; color: var(--ink-soft); }

  /* footer */
  .drc-footer { background: var(--ink); color: #c4c8cb; padding-block: clamp(40px, 5vw, 60px) 26px; font-size: .92rem; }
  .drc-footer a { color: #c4c8cb; }
  .drc-footer a:hover { color: #fff; }
  .drc-footer .cols { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
  .drc-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; }
  .drc-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
  .drc-footer .brand p { color: #9aa1a6; max-width: 36ch; font-size: .9rem; }
  .drc-footer .wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: #fff; font-weight: 500; }
  .drc-footer .bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
  .drc-footer .bottom p { color: #868d92; font-size: .82rem; margin: 0; max-width: none; }

  /* cookies */
  .drc-cookies { position: fixed; inset-inline: 16px; bottom: 16px; max-width: 460px; margin-inline: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: 16px 18px; z-index: 70; transform: translateY(160%); transition: transform .3s ease; }
  .drc-cookies.-shown { transform: translateY(0); }
  .drc-cookies p { font-size: .85rem; margin: 0 0 10px; color: var(--ink-soft); }
  .drc-cookies button { font-family: var(--font-head); font-weight: 700; font-size: .85rem; background: var(--ink); color: #fff; border: 0; border-radius: var(--r-sm); padding: 9px 16px; cursor: pointer; }

  /* mobile drawer */
  .drc-drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; opacity: 0; transition: opacity .26s ease, visibility .26s ease; }
  .drc-drawer[aria-hidden="false"] { visibility: visible; opacity: 1; }
  .drc-drawer .backdrop { position: absolute; inset: 0; background: rgba(15,17,21,.46); backdrop-filter: blur(2px); }
  .drc-drawer .panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(86vw, 340px); background: var(--paper); padding: 22px; display: flex; flex-direction: column; gap: 8px; transform: translateX(100%); transition: transform .26s ease; box-shadow: var(--shadow-md); }
  [dir="rtl"] .drc-drawer .panel { transform: translateX(-100%); }
  .drc-drawer[aria-hidden="false"] .panel { transform: translateX(0); }
  .drc-drawer .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
  .drc-drawer .close { background: none; border: 0; font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--ink-soft); }
  .drc-drawer nav { display: grid; gap: 2px; }
  .drc-drawer nav a { padding: 11px 8px; color: var(--ink); font-weight: 500; border-radius: var(--r-sm); }
  .drc-drawer nav a:hover { background: var(--paper-2); text-decoration: none; }
  .drc-drawer .foot { margin-top: auto; display: grid; gap: 12px; }

  /* burger */
  .drc-burger { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }
  .drc-burger svg { stroke: var(--ink); }

  /* prose / legal */
  .drc-prose { max-width: 72ch; }
  .drc-prose h2 { margin-top: 1.8em; }
  .drc-prose h3 { margin-top: 1.4em; }
  .drc-prose ul, .drc-prose ol { padding-inline-start: 22px; color: var(--ink-soft); }
  .drc-prose li { margin-bottom: 8px; }
  .drc-prose .meta { font-size: .85rem; color: var(--ink-mute); }

  /* table */
  .drc-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
  .drc-table th, .drc-table td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .drc-table th { font-family: var(--font-head); font-weight: 600; background: var(--paper-2); }

  /* status dots */
  .drc-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-inline-end: 7px; }
  .drc-dot.-ok { background: var(--ok); }
  .drc-dot.-warn { background: var(--warn); }
}

/* ---------------- utils ---------------- */
@layer utils {
  .drc-hide-m { display: revert; }
  .drc-only-m { display: none; }
  .center { text-align: center; }
  .mt { margin-top: 24px; }
  .mt-lg { margin-top: 40px; }
  .muted { color: var(--ink-mute); }
  .small { font-size: .85rem; }
  .sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .flow > * + * { margin-top: 1rem; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 860px) {
  .drc-hero .inner { grid-template-columns: 1fr; }
  .drc-grid.-c2, .drc-grid.-c3, .drc-grid.-c4 { grid-template-columns: 1fr 1fr; }
  .drc-channels { grid-template-columns: 1fr; }
  .drc-footer .cols { grid-template-columns: 1fr 1fr; }
  .drc-nav, .drc-hide-m { display: none !important; }
  .drc-burger { display: inline-flex; }
  .drc-only-m { display: revert; }
}
@media (max-width: 540px) {
  .drc-grid.-c2, .drc-grid.-c3, .drc-grid.-c4 { grid-template-columns: 1fr; }
  .drc-footer .cols { grid-template-columns: 1fr; }
  .drc-strip { gap: 18px; }
  .drc-header .pill { border-radius: 22px; }
}

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

/* ---------------- RTL / Arabic ---------------- */
[dir="rtl"] body,
[dir="rtl"] .drc-logo .word,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
  font-family: "IBM Plex Sans Arabic", "Cairo", "Segoe UI", system-ui, sans-serif;
}
[dir="rtl"] .drc-eyebrow { letter-spacing: 0; }
[dir="rtl"] .drc-hero::before {
  -webkit-mask-image: radial-gradient(120% 100% at 15% 0%, #000 40%, transparent 78%);
          mask-image: radial-gradient(120% 100% at 15% 0%, #000 40%, transparent 78%);
}
