/* ============================================================
   Amaranth — Homepage
   Faithful implementation of "Amaranth Home.dc.html".
   Self-contained palette + Jost / Noto Sans Arabic typography.
   ============================================================ */

:root {
  --ink:            #241015;  /* dark ground / primary text */
  --ground:         #F1EEE9;  /* warm off-white page ground  */
  --crimson:        #8A2333;  /* the single primary accent   */
  --crimson-light:  #C4475A;  /* accent on dark grounds       */
  --burgundy:       #5E1622;  /* pressed / hover deepening    */

  /* ink (36,16,21) text alphas on the light ground */
  --ink-74: rgba(36, 16, 21, 0.74);
  --ink-72: rgba(36, 16, 21, 0.72);
  --ink-70: rgba(36, 16, 21, 0.70);
  --ink-68: rgba(36, 16, 21, 0.68);
  --ink-35: rgba(36, 16, 21, 0.35);
  --ink-30: rgba(36, 16, 21, 0.30);
  --ink-25: rgba(36, 16, 21, 0.25);
  --ink-20: rgba(36, 16, 21, 0.20);
  --ink-14: rgba(36, 16, 21, 0.14);
  --ink-12: rgba(36, 16, 21, 0.12);

  /* ground (241,238,233) text alphas on the ink ground */
  --paper-82: rgba(241, 238, 233, 0.82);
  --paper-78: rgba(241, 238, 233, 0.78);
  --paper-74: rgba(241, 238, 233, 0.74);
  --paper-60: rgba(241, 238, 233, 0.60);
  --paper-55: rgba(241, 238, 233, 0.55);
  --paper-45: rgba(241, 238, 233, 0.45);
  --paper-30: rgba(241, 238, 233, 0.30);
  --paper-25: rgba(241, 238, 233, 0.25);
  --paper-14: rgba(241, 238, 233, 0.14);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --gutter: clamp(22px, 5vw, 56px);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Jost', 'Noto Sans Arabic', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--crimson); color: var(--ground); }
img { display: block; }
input, textarea, button { font-family: inherit; }

.container { max-width: var(--maxw); margin-inline: auto; }

/* ---- Provisional-translation notice ---- */
.notice {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  background: var(--ink);
  color: var(--ground);
  text-align: center;
  padding: 9px 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  font-weight: 300;
  border-top: 2px solid var(--crimson);
}
.notice[hidden] { display: none; }

/* ---- Eyebrow (shared) ---- */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-weight: 500;
}
.eyebrow--crimson { color: var(--crimson); }
.eyebrow--light   { color: var(--crimson-light); }

/* ---- Language switch (dark grounds) ---- */
.lang-group { display: flex; align-items: center; gap: 10px; }
.lang {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.16em;
  padding: 4px 1px;
  color: var(--paper-55);
  font-weight: 400;
  transition: color 0.18s ease;
}
.lang.is-active { color: var(--crimson-light); font-weight: 500; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: clamp(60px, 10vh, 104px) var(--gutter) clamp(56px, 9vh, 104px);
}

.hero__watermark {
  position: absolute;
  inset-inline-start: -9%;
  top: 50%;
  transform: translateY(-50%);
  height: min(860px, 98vh);
  width: auto;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.topbar {
  position: absolute;
  top: clamp(22px, 3vh, 30px);
  inset-inline-end: var(--gutter);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar__divider { width: 1px; height: 14px; background: var(--paper-25); }
.topbar__contact {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ground);
  font-weight: 400;
  border-bottom: 1px solid var(--paper-30);
  padding-bottom: 3px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin-inline: auto;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(40px, 7vw, 104px);
}

.hero__text { flex: 1 1 380px; min-width: 0; text-align: start; }

.hero__baseline {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2.5rem, 5.8vw, 4.9rem);
  line-height: 1.05;
  letter-spacing: 0.004em;
  color: var(--ground);
  max-width: 14ch;
}
.hero__essence {
  margin: clamp(24px, 3.5vh, 38px) 0 0;
  font-weight: 300;
  font-size: clamp(1.02rem, 1.7vw, 1.32rem);
  line-height: 1.7;
  color: var(--paper-74);
  max-width: 46ch;
}
.hero__cta {
  display: inline-block;
  margin-top: clamp(30px, 4.5vh, 48px);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--crimson-light);
  font-weight: 500;
  border-bottom: 1px solid rgba(196, 71, 90, 0.45);
  padding-bottom: 5px;
  white-space: nowrap;
}

.hero__mark {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__emblem {
  height: min(360px, 48vh);
  width: auto;
  max-width: 74vw;
}
.hero__wordmark {
  font-weight: 500;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  letter-spacing: 0.46em;
  color: var(--ground);
  line-height: 1;
  padding-inline-start: 0.46em;
  margin-top: clamp(22px, 3vh, 34px);
}

/* ---- Intro reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  will-change: opacity, transform;
}
.is-revealed .reveal { opacity: 1; transform: none; }
.hero__baseline.reveal { transition-delay: 0s; }
.hero__mark.reveal     { transition-delay: 0.10s; }
.hero__essence.reveal  { transition-delay: 0.16s; }
.hero__cta.reveal      { transition-delay: 0.32s; }

/* ============================================================
   THE PRACTICE
   ============================================================ */
.section { padding: clamp(84px, 14vh, 150px) var(--gutter); }
.practice .eyebrow { margin-bottom: clamp(24px, 3.5vh, 36px); }
.practice__heading {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: 0.004em;
  max-width: 18ch;
}
.practice__body {
  margin: clamp(28px, 4vh, 42px) 0 0;
  font-weight: 300;
  font-size: clamp(1.08rem, 1.9vw, 1.32rem);
  line-height: 1.75;
  color: var(--ink-74);
  max-width: 62ch;
}

.pillars {
  margin-top: clamp(60px, 9vh, 100px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(32px, 3.5vw, 56px);
}
.pillar { border-top: 1px solid var(--ink-20); padding-top: 22px; }
.pillar__n {
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--crimson);
  font-weight: 500;
  margin-bottom: 18px;
}
.pillar__title {
  font-size: 1.02rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 13px;
}
.pillar__text {
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-68);
}

/* ============================================================
   ORIGIN (ink band)
   ============================================================ */
.origin {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--ground);
  padding: clamp(96px, 17vh, 190px) var(--gutter);
}
.origin__watermark {
  position: absolute;
  inset-inline-end: -7%;
  top: 50%;
  transform: translateY(-50%);
  height: clamp(340px, 78vh, 700px);
  opacity: 0.1;
  pointer-events: none;
}
.origin__inner { position: relative; z-index: 1; max-width: var(--maxw); margin-inline: auto; }
.origin .eyebrow { margin-bottom: clamp(24px, 4vh, 38px); }
.origin__heading {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  max-width: 16ch;
}
.origin__body {
  margin: clamp(28px, 4vh, 40px) 0 0;
  font-weight: 300;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  line-height: 1.7;
  color: var(--paper-78);
  max-width: 48ch;
}

/* ============================================================
   REACH (quote)
   ============================================================ */
.reach {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(78px, 13vh, 150px) var(--gutter);
}
.reach__watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: clamp(300px, 60vh, 560px);
  opacity: 0.05;
  pointer-events: none;
}
.reach__inner { position: relative; z-index: 1; max-width: 900px; margin-inline: auto; }
.reach__rule { height: 1px; width: 48px; background: var(--ink-30); margin: 0 auto; }
.reach__quote {
  margin: clamp(34px, 5vh, 52px) 0;
  font-weight: 300;
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: clamp(80px, 13vh, 150px) var(--gutter);
  border-top: 1px solid var(--ink-12);
}
.contact__grid {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(44px, 6vw, 96px);
}
.contact .eyebrow { margin-bottom: clamp(22px, 3.5vh, 34px); }
.contact__heading {
  margin: 0 0 clamp(26px, 4vh, 38px);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.14;
  letter-spacing: 0.004em;
  max-width: 16ch;
}
.contact__body {
  margin: 0;
  font-weight: 300;
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.7;
  color: var(--ink-72);
  max-width: 40ch;
}

.form { display: flex; flex-direction: column; }
.field {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink-25);
  padding: 13px 0;
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 24px;
  outline: none;
  transition: border-color 0.18s ease;
}
.field--area { margin-bottom: 34px; resize: vertical; }
.field:focus { border-bottom-color: var(--crimson); }

.btn {
  align-self: flex-start;
  background: var(--crimson);
  color: var(--ground);
  border: none;
  padding: 14px 36px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.18s ease;
}
.btn:hover { background: var(--burgundy); }

.sent { border-top: 1px solid var(--ink-20); padding-top: 28px; }
.sent[hidden] { display: none; }
.sent__title { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 300; line-height: 1.5; }
.sent__body  { margin-top: 14px; font-size: 1rem; font-weight: 300; color: var(--ink-70); line-height: 1.6; }

.contact__meta {
  margin-top: clamp(30px, 4.5vh, 40px);
  padding-top: 22px;
  border-top: 1px solid var(--ink-14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.contact__location { font-size: 1rem; font-weight: 300; color: var(--ink-70); letter-spacing: 0.03em; }
.contact__dot { color: var(--ink-35); }
.contact__email { font-size: 1rem; font-weight: 400; color: var(--crimson); text-decoration: none; letter-spacing: 0.01em; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--ground);
  padding: clamp(56px, 9vh, 88px) var(--gutter) clamp(48px, 7vh, 68px);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer__emblem { height: 30px; width: auto; }
.footer__wordmark { font-size: 15px; font-weight: 500; letter-spacing: 0.34em; }
.footer__baseline { font-size: 1rem; font-weight: 300; letter-spacing: 0.01em; color: var(--paper-82); }
.footer__rule { height: 1px; background: var(--paper-14); margin: clamp(34px, 5vh, 52px) 0 clamp(24px, 3.5vh, 32px); }
.footer__legal { display: flex; flex-direction: column; gap: 7px; }
.footer__legal-entity    { font-size: 12.5px; font-weight: 400; letter-spacing: 0.05em; color: var(--paper-78); }
.footer__legal-authority { font-size: 12.5px; font-weight: 300; letter-spacing: 0.04em; color: var(--paper-60); }
.footer__copyright       { margin-top: 6px; font-size: 12px; font-weight: 300; letter-spacing: 0.06em; color: var(--paper-45); }

/* ---- Accessible focus ring ---- */
:where(a, button, input, textarea):focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 2px;
}

/* ---- Honour reduced-motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
