/* Shared stylesheet for voltarostudio.com and midad.voltarostudio.com.
   Colors and sizes come from design-tokens/tokens.json (Sakina light, Naqsh dark).
   Keep both copies identical: website/*/assets/site.css */

@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-display: swap;
  src: url(fonts/plex-arabic-400.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; font-display: swap;
  src: url(fonts/plex-arabic-600.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 400; font-display: swap;
  src: url(fonts/plex-latin-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 600; font-display: swap;
  src: url(fonts/plex-latin-600.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #F6F1E7;        /* sakina.sand */
  --surface: #FFFDF8;   /* sakina.paper */
  --text: #1E2A2B;      /* sakina.ink */
  --muted: #7A5A3A;     /* sakina.date */
  --accent: #2F6B5A;    /* sakina.palm */
  --accent-strong: #1E4A3E; /* sakina.palmDeep */
  --line: #D9C7A3;      /* sakina.dune */
  --soft: #EDE3CF;      /* sakina.duneSoft */
  --tint: #E3EFE9;      /* sakina.highlight */
  --ornament: #B8924A;  /* naqsh.gold, decoration only, never body text */
  --radius-card: 18px;
  --radius-panel: 20px;
  --radius-header: 28px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B2B31;      /* naqsh.night */
    --surface: #0E3B43; /* naqsh.inkTeal */
    --text: #EDE6D6;    /* naqsh.ivory */
    --muted: #C9A35A;   /* naqsh.goldBright */
    --accent: #6FB59A;  /* naqsh.palmNight */
    --accent-strong: #8FCBB2;
    --line: #1F4B52;    /* naqsh.frame */
    --soft: #1F4B52;
    --tint: #123F47;
    --ornament: #B8924A;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
:lang(en) body, body:lang(en) { line-height: 1.6; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 20px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 18px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.lang {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 12px; text-decoration: none;
  color: var(--text); font-size: 14px; background: var(--surface);
}
.lang:hover { border-color: var(--accent); color: var(--accent); }

.hero {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-header);
  padding: 40px 28px; margin: 8px 0 28px;
}
.eyebrow { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
h1 { font-size: 40px; line-height: 1.25; font-weight: 600; margin: 0 0 12px; }
h2 { font-size: 22px; line-height: 1.4; font-weight: 600; margin: 36px 0 10px; }
h3 { font-size: 18px; line-height: 1.4; font-weight: 600; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.lead { font-size: 18px; margin: 0; }

.ornament { display: block; width: 100%; max-width: 220px; height: 14px; margin: 20px 0 0; color: var(--ornament); }

.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 20px;
}
.card p:last-child { margin-bottom: 0; }

.product { display: flex; gap: 16px; align-items: flex-start; }
.product .icon {
  flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--accent);
  color: #FFFDF8; display: grid; place-items: center; font-size: 26px; font-weight: 600;
}
.tag {
  display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 12px;
  background: var(--tint); color: var(--accent-strong); margin-inline-start: 6px; vertical-align: middle;
}
@media (prefers-color-scheme: dark) { .tag { color: var(--accent); } }

.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 12px; background: var(--accent); color: #FFFDF8; text-decoration: none; font-weight: 600;
}
.btn:hover { background: var(--accent-strong); color: #FFFDF8; }
@media (prefers-color-scheme: dark) { .btn, .btn:hover { color: #0B2B31; } }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); }

.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 28px; }
.doc h2:first-child { margin-top: 0; }
.doc ul { padding-inline-start: 22px; margin: 0 0 14px; }
.doc li { margin-bottom: 6px; }
.summary { background: var(--tint); border-radius: var(--radius-card); padding: 18px 20px; margin-bottom: 8px; }
.summary ul { margin-bottom: 0; }
.meta { color: var(--muted); font-size: 14px; }

details { border-top: 1px solid var(--soft); padding: 12px 0; }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
details p { margin: 6px 0 4px; }

.contact { text-align: center; }
.contact .mail { font-size: 20px; font-weight: 600; direction: ltr; unicode-bidi: isolate; }

footer { color: var(--muted); font-size: 14px; padding: 36px 0 40px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 6px; }
footer a { color: var(--muted); }

@media (max-width: 520px) {
  h1 { font-size: 30px; }
  .hero { padding: 28px 20px; }
  .doc { padding: 20px; }
}
