/* Doorkom — public site. Bilingual EN/AR, static, no framework. */

:root {
  --ink:        #0E1A19;
  --ink-2:      #4C5B57;
  --ink-3:      #7A8A85;
  --ground:     #F4F6F4;
  --surface:    #FFFFFF;
  --line:       #DDE4E1;
  --teal:       #0B5A63;
  --teal-deep:  #06373D;
  --teal-soft:  #DCEBEC;
  --brass:      #B8862B;
  --brass-soft: #F4EBD8;

  --latin: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Zilla Slab", Georgia, serif;
  --arabic: "IBM Plex Sans Arabic", "Geeza Pro", "Noto Sans Arabic", sans-serif;
  --measure: 62ch;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:#E6EDEA; --ink-2:#A2B2AC; --ink-3:#7C8C87;
    --ground:#0A1211; --surface:#121D1C; --line:#25322F;
    --teal:#5CBAC3; --teal-deep:#0A2A2E; --teal-soft:#123033;
    --brass:#D9A94F; --brass-soft:#2A2317;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--latin);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body { font-family: var(--arabic); line-height: 1.85; }
html[lang="ar"] .display { font-family: var(--arabic); font-weight: 600; }
html[lang="en"] [data-ar] { display: none; }
html[lang="ar"] [data-en] { display: none; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.5rem); }

/* ---- header ---- */
header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; }
.logo { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
html[lang="ar"] .logo { font-family: var(--arabic); }
.logo span { color: var(--teal); }

.langtoggle {
  font: inherit; font-size: 0.82rem; font-weight: 500;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.35rem 0.9rem; cursor: pointer;
}
.langtoggle:hover { border-color: var(--teal); color: var(--teal); }
.langtoggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---- hero ---- */
.hero { background: var(--teal-deep); color: #EAF3F3; padding: clamp(3.5rem, 10vw, 6.5rem) 0 clamp(3rem, 8vw, 5rem); }
.hero .eyebrow { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #7FCBD2; margin: 0 0 1.2rem; }
html[lang="ar"] .hero .eyebrow { letter-spacing: 0; }
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4.2rem); line-height: 1.02;
  letter-spacing: -0.02em; margin: 0 0 1.1rem; text-wrap: balance; color: #FFFFFF;
}
html[lang="ar"] .hero h1 { font-family: var(--arabic); font-weight: 700; line-height: 1.25; letter-spacing: 0; }
.hero p { max-width: var(--measure); font-size: clamp(1.02rem, 2.4vw, 1.2rem); color: #BEDCDE; margin: 0 0 2rem; }
.wordmark-ar { font-family: var(--arabic); font-size: clamp(1.6rem, 5vw, 2.4rem); color: #7FCBD2; margin: 0 0 0.4rem; font-weight: 600; }

.cta {
  display: inline-block; background: var(--brass); color: #241A05;
  font-weight: 600; text-decoration: none;
  padding: 0.85rem 1.6rem; border-radius: 4px;
}
.cta:hover { background: #CE9A38; }
.cta:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }
.cta-note { display: block; margin-top: 0.9rem; font-size: 0.86rem; color: #8FB4B6; }

/* ---- sections ---- */
section { padding: clamp(3rem, 8vw, 5rem) 0; }
h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.15; margin: 0 0 0.8rem; text-wrap: balance; }
html[lang="ar"] h2 { font-family: var(--arabic); font-weight: 600; line-height: 1.4; }
.lede { max-width: var(--measure); color: var(--ink-2); margin: 0 0 2.2rem; font-size: 1.04rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.card { background: var(--surface); padding: 1.6rem 1.5rem 1.8rem; }
.card .k { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.7rem; }
html[lang="ar"] .card .k { letter-spacing: 0; }
.card h3 { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin: 0 0 0.55rem; }
html[lang="ar"] .card h3 { font-family: var(--arabic); }
.card p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

/* ---- promise ---- */
.promise { background: var(--teal-soft); border-radius: 6px; padding: clamp(1.6rem, 4vw, 2.4rem); }
.promise h2 { margin-bottom: 0.6rem; }
.promise p { max-width: var(--measure); margin: 0; color: var(--ink-2); }

/* ---- pricing ---- */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1.5rem 1.4rem 1.7rem; }
.tier .tn { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
html[lang="ar"] .tier .tn { font-family: var(--arabic); }
.tier .tp { font-size: 1.9rem; font-weight: 600; color: var(--brass); margin: 0.3rem 0 0.1rem; font-variant-numeric: tabular-nums; }
.tier .tw { font-size: 0.8rem; color: var(--ink-3); }
.tier ul { margin: 1rem 0 0; padding-inline-start: 1.1rem; font-size: 0.9rem; color: var(--ink-2); }
.tier li { margin-bottom: 0.4rem; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3.5rem; color: var(--ink-3); font-size: 0.88rem; }
.foot { display: flex; flex-wrap: wrap; gap: 0.7rem 1.8rem; align-items: baseline; justify-content: space-between; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--teal); text-decoration: underline; }
footer nav { display: flex; gap: 1.3rem; flex-wrap: wrap; }

/* ---- legal pages ---- */
.legal { padding: clamp(2.5rem, 6vw, 4rem) 0 4rem; }
.legal h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 5vw, 2.8rem); margin: 0 0 0.4rem; }
html[lang="ar"] .legal h1 { font-family: var(--arabic); }
.legal .updated { color: var(--ink-3); font-size: 0.88rem; margin: 0 0 2.5rem; }
.legal h2 { font-size: clamp(1.15rem, 3vw, 1.4rem); margin: 2.4rem 0 0.6rem; }
.legal p, .legal ul { max-width: var(--measure); color: var(--ink-2); }
.legal li { margin-bottom: 0.45rem; }
.legal a { color: var(--teal); }
.back { display: inline-block; margin-bottom: 2rem; color: var(--ink-2); text-decoration: none; font-size: 0.9rem; }
.back:hover { color: var(--teal); }
