/* ========================================================================
   CLESCO — brand tokens
   ======================================================================== */
:root {
  --ink: #191510;
  --ground: #EFE8D8;
  --raised: #E4DAC2;
  --accent: #E85A2A;
  --accent-2: #9C7A3A;
  --muted: #746A57;
  --line: rgba(25,21,16,0.14);
  --on-accent: #191510;
  --shadow: 0 18px 40px -22px rgba(25,21,16,0.35);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F3ECDD;
    --ground: #16130F;
    --raised: #201B14;
    --accent: #FF6B3B;
    --accent-2: #C9A15C;
    --muted: rgba(243,236,221,0.62);
    --line: rgba(243,236,221,0.14);
    --on-accent: #191510;
    --shadow: 0 18px 40px -22px rgba(0,0,0,0.6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
body.lang-ar { font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif; }

h1, h2, h3, .display {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
body.lang-ar h1, body.lang-ar h2, body.lang-ar h3, body.lang-ar .display {
  font-family: 'Cairo', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
body.lang-ar .mono { font-family: 'IBM Plex Sans Arabic', monospace; }

p { margin: 0 0 1em; max-width: 62ch; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1160px; margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(56px, 8vw, 96px); }

/* ========================================================================
   Buttons
   ======================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid var(--line);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--on-accent); border-color: transparent; box-shadow: var(--shadow); }
.btn-accent:hover { box-shadow: 0 20px 44px -20px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--raised); }

/* ========================================================================
   Header / nav
   ======================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; }
.brand-word { font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
body.lang-ar .brand-word { font-family: 'Cairo', sans-serif; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { font-size: 14.5px; font-weight: 500; color: var(--muted); padding-block: 4px; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.site-nav a.active { border-color: var(--accent); }
.site-nav .nav-cta { border-bottom: none; }

.lang-switch { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; letter-spacing: 0.04em; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.lang-switch a { color: var(--muted); }
.lang-switch a.active { color: var(--accent); font-weight: 600; }
.lang-sep { opacity: .4; }

.nav-toggle { display: none; }
.nav-burger { display: none; }

@media (max-width: 860px) {
  .site-nav {
    position: fixed; inset-inline: 0; top: 66px;
    background: var(--ground);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 24px 22px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .site-nav a { width: 100%; padding-block: 10px; }
  .nav-cta { margin-top: 8px; }
  .nav-toggle:checked ~ .site-nav { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 34px; height: 34px; cursor: pointer;
  }
  .nav-burger span { width: 100%; height: 2px; background: var(--ink); border-radius: 2px; }
}

/* ========================================================================
   Hero
   ======================================================================== */
.hero {
  padding-block: clamp(64px, 11vw, 120px) clamp(48px, 8vw, 88px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -20% -10%;
  background:
    radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 42%),
    radial-gradient(circle at 88% 75%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 46%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; }
.eyebrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
body.lang-ar .eyebrow { font-family: 'IBM Plex Sans Arabic', sans-serif; letter-spacing: 0.02em; text-transform: none; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); flex: none; }

.hero h1 { font-size: clamp(34px, 5.4vw, 60px); margin-bottom: 20px; }
.hero .lede { font-size: clamp(16px, 1.9vw, 19px); color: var(--muted); max-width: 56ch; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ========================================================================
   Pillars / cards
   ======================================================================== */
.eyebrow-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px; display: block;
}
body.lang-ar .eyebrow-label { font-family: 'IBM Plex Sans Arabic', sans-serif; letter-spacing: 0.02em; text-transform: none; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 26px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; max-width: 44ch; }
.card .num { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--accent); margin-bottom: 12px; display: block; }

.service-card { border-inline-start: 3px solid var(--accent); padding-inline-start: 22px; background: transparent; border-block: none; border-inline-end: none; border-radius: 0; padding-block: 4px; }
.service-list { display: flex; flex-direction: column; gap: 34px; }
.service-card h3 { font-size: 22px; margin-bottom: 10px; }
.service-card p { color: var(--muted); max-width: 68ch; font-size: 15.5px; }

/* ========================================================================
   CTA band
   ======================================================================== */
.cta-band {
  background: var(--ink);
  color: var(--ground);
  border-radius: 6px;
  padding: clamp(36px, 6vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(22px, 3vw, 30px); color: var(--ground); margin-bottom: 6px; }
.cta-band p { color: color-mix(in srgb, var(--ground) 70%, transparent); margin: 0; }
.cta-band .btn-accent { flex: none; }

/* ========================================================================
   About page
   ======================================================================== */
.prose { max-width: 68ch; }
.prose p { color: var(--muted); font-size: 16.5px; }
.section-title { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 28px; }

/* ========================================================================
   Contact page
   ======================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--raised);
  color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 130px; }
.hp-field { position: absolute; inset-inline-start: -9999px; }

.alert { padding: 14px 18px; border-radius: 4px; font-size: 14.5px; margin-bottom: 22px; }
.alert-ok { background: color-mix(in srgb, #3E7C74 18%, var(--raised)); border: 1px solid color-mix(in srgb, #3E7C74 40%, transparent); }
.alert-err { background: color-mix(in srgb, var(--accent) 16%, var(--raised)); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }

.direct-card { background: var(--raised); border: 1px solid var(--line); border-radius: 4px; padding: 28px; }
.direct-card h3 { font-size: 15px; margin-bottom: 18px; }
.direct-row { display: flex; align-items: center; gap: 12px; padding-block: 10px; border-top: 1px solid var(--line); font-size: 14.5px; }
.direct-row:first-of-type { border-top: none; }
.direct-row .k { color: var(--muted); min-width: 90px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
body.lang-ar .direct-row .k { font-family: 'IBM Plex Sans Arabic', sans-serif; text-transform: none; }
.direct-row .v { font-weight: 500; }
.direct-row a.v:hover { color: var(--accent); }

/* ========================================================================
   Footer
   ======================================================================== */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-mark { width: 32px; height: 32px; border-radius: 50%; }
.footer-name { font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 15px; }
body.lang-ar .footer-name { font-family: 'Cairo', sans-serif; }
.footer-rights { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.footer-links { display: flex; gap: 20px; font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer-contact { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); text-align: end; }
.footer-contact a:hover { color: var(--accent); }

@media (max-width: 700px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-contact { text-align: start; }
}
