/* ==========================================================================
   Dar Al Yousef - heritage-editorial brand system
   Palette: Burgundy #6E1423 · Cream #F2E8D5 · Espresso #3A241B · Ink #161616
   Type: Cormorant Garamond (display) · Montserrat (body/UI)
   Light theme locked to brand identity (print-emulating editorial).
   ========================================================================== */

:root {
  --burgundy: #6E1423;
  --wine: #4A0E18;
  --burgundy-soft: #8a3a48;
  --cream: #F2E8D5;
  --cream-deep: #E7CBB2;
  --warm: #E7CFA9;
  --sand: #d8b3a0;
  --espresso: #3A241B;
  --ink: #161616;
  --paper: #FAF5EA;

  --text: #2a201a;
  --muted: #6a584c;
  --placeholder: #7c6757;
  --line: rgba(58, 36, 27, 0.16);
  --line-soft: rgba(58, 36, 27, 0.09);

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);

  /* corner-radius system: one radius for ALL rectangular surfaces
     (buttons, inputs, cards, boxes, icon tiles). Pills use --radius-pill,
     avatars/dots use 50%. Do not introduce other radii. */
  --radius: 10px;
  --radius-pill: 999px;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----- reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ----- layout helpers ----- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 11vw, 132px); }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.lead { font-size: clamp(19px, 2.2vw, 22px); color: var(--muted); max-width: 60ch; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.04; color: var(--espresso); letter-spacing: -0.01em; }
h2 { font-size: clamp(34px, 5vw, 60px); }
h3 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; }
p { max-width: 65ch; }

/* ----- buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 0.85em 1.5em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-primary { background: var(--burgundy); color: var(--cream); }
.btn-primary:hover { background: var(--wine); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(110, 20, 35, 0.22); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--espresso); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--burgundy); color: var(--burgundy); transform: translateY(-2px); }
.btn-outline { background: #ffffff; color: var(--burgundy); border-color: var(--burgundy); }
.btn-outline:hover { background: var(--burgundy); color: #ffffff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(110, 20, 35, 0.22); }
.btn-outline:active { transform: translateY(0); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ----- accessibility: keyboard focus + skip link ----- */
a:focus-visible,
.btn:focus-visible,
button:focus-visible,
.nav-toggle:focus-visible,
.contact-row:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
  border-radius: var(--radius);
}
/* light ring on dark burgundy/espresso surfaces */
.btn-primary:focus-visible,
.band a:focus-visible,
.band .btn:focus-visible,
.site-footer a:focus-visible { outline-color: var(--cream); }
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--burgundy);
  color: var(--cream);
  border-radius: var(--radius);
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--cream); outline-offset: 2px; }

/* ----- header / nav ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 232, 213, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand-name {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  color: var(--espresso);
  letter-spacing: 0.01em;
  line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding-block: 6px;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--burgundy);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--burgundy); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--burgundy); }
.nav-cta { margin-left: 6px; }
/* nav links set their own color/underline; re-assert the CTA button's styling */
.nav-links a.btn-outline { color: var(--burgundy); }
.nav-links a.btn-outline:hover { color: #ffffff; }
.nav-links a.nav-cta::after { display: none; }

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 1.6px; background: var(--espresso); transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ----- hero ----- */
.hero {
  position: relative;
  padding-block: clamp(54px, 9vw, 104px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 82% 18%, rgba(231, 203, 178, 0.55), transparent 60%),
    radial-gradient(50% 60% at 8% 92%, rgba(216, 179, 160, 0.35), transparent 60%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--burgundy); }
.hero .lead { margin-top: 26px; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ----- section intro ----- */
.intro { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.intro h2 { margin-top: 16px; }
.intro p { margin-top: 20px; }

/* ----- disciplines (split: sticky heading + stacked list) ----- */
.disc-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.disc-head { position: sticky; top: 104px; }
.disc-head h2 { margin-top: 16px; }
.disc-head p { margin-top: 18px; color: var(--muted); }
.disc-list { display: grid; }
.disc {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 3vw, 36px);
  padding-block: clamp(26px, 3.6vw, 40px);
  border-top: 1px solid var(--line);
  align-items: start;
}
.disc:last-child { border-bottom: 1px solid var(--line); }
.disc h3 { font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 10px; }
.disc p { color: var(--muted); font-size: 16.5px; }
.disc .tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.disc .tags span {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--espresso);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
}

/* ----- pillar rows (services page) ----- */
.pillar {
  display: grid;
  grid-template-columns: 0.5fr 1fr;
  gap: clamp(22px, 5vw, 64px);
  padding-block: clamp(36px, 5vw, 60px);
  border-top: 1px solid var(--line);
  align-items: start;
}
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar .lead-col h3 { margin-top: 12px; font-size: clamp(28px, 3.4vw, 40px); }
.pillar .body-col p { color: var(--muted); font-size: 17px; max-width: 60ch; }
.pillar .caps { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
.pillar .caps span { font-size: 15px; color: var(--text); padding-left: 18px; position: relative; }
.pillar .caps span::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--burgundy); }

/* ----- discipline / pillar icon tiles ----- */
.disc .ic, .pillar .ic {
  width: 58px; height: 58px; border-radius: var(--radius);
  display: grid; place-items: center;
  background: var(--burgundy); color: var(--cream);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.disc .ic i, .pillar .ic i { font-size: 29px; line-height: 1; }
.disc:hover .ic, .pillar:hover .ic { background: var(--wine); transform: translateY(-2px) rotate(-4deg); }
.pillar .lead-col h3 { margin-top: 18px; }

/* ----- feature band (burgundy) -----
   BRAND RULE: never place black/ink text on burgundy. On burgundy surfaces,
   text is always cream (or sand for muted). Audited: all .band text uses cream. */
.band {
  background: var(--burgundy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 80% at 90% 10%, rgba(231, 203, 178, 0.16), transparent 60%);
}
.band .wrap { position: relative; }
.band h2 { color: var(--cream); }
.band .lead { color: rgba(242, 232, 213, 0.82); }
.band-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.band .btn-ghost { color: var(--cream); border-color: rgba(242, 232, 213, 0.4); }
.band .btn-ghost:hover { color: var(--cream); border-color: var(--cream); background: rgba(242, 232, 213, 0.08); }
.band .btn-primary { background: var(--cream); color: var(--burgundy); }
.band .btn-primary:hover { background: #fff; }

/* ----- pull quote ----- */
.pull { text-align: center; max-width: 900px; margin: 0 auto; }
.pull blockquote { font-family: var(--serif); font-size: clamp(28px, 4.4vw, 48px); line-height: 1.18; color: var(--espresso); font-style: italic; }
.pull cite { display: block; margin-top: 26px; font-family: var(--sans); font-style: normal; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* ----- steps ----- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.step { padding-top: 26px; border-top: 2px solid var(--burgundy); }
.step .s { font-family: var(--serif); font-size: 15px; color: var(--burgundy); letter-spacing: 0.12em; }
.step h3 { margin-block: 12px 10px; font-size: 23px; }
.step p { color: var(--muted); font-size: 16px; }
.step .ic {
  width: 52px; height: 52px; border-radius: var(--radius);
  display: grid; place-items: center; margin-bottom: 18px;
  border: 1px solid var(--line); color: var(--burgundy);
}
.step .ic i { font-size: 26px; line-height: 1; }
.band .step .ic { border-color: rgba(242, 232, 213, 0.35); color: var(--cream); }

/* ----- about story prose ----- */
.prose p { margin-bottom: 22px; color: var(--text); font-size: 17.5px; line-height: 1.72; }
.prose p:first-of-type { font-size: 21px; color: var(--espresso); }
.prose h3 { margin-block: 14px 14px; }

/* ----- expertise boxes ----- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); margin-top: clamp(40px, 5vw, 60px); }
.member {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(26px, 3.2vw, 38px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.member:hover { transform: translateY(-6px); box-shadow: 0 26px 54px rgba(58, 36, 27, 0.14); border-color: var(--sand); }
.member .ic {
  width: 62px; height: 62px; border-radius: var(--radius);
  display: grid; place-items: center;
  background: var(--burgundy); color: var(--cream);
  margin-bottom: 24px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.member .ic i { font-size: 32px; line-height: 1; }
.member:hover .ic { transform: translateY(-2px) rotate(-4deg); background: var(--wine); }
.member h3 { font-size: clamp(22px, 2.4vw, 27px); }
.member .role { color: var(--burgundy); font-weight: 600; font-size: 14px; line-height: 1.4; margin-top: 8px; }
.member .cred { color: var(--muted); font-size: 15.5px; margin-top: 14px; }

/* ----- selective callout ----- */
.selective {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 10px 20px 10px 16px; width: fit-content;
  background: var(--paper); font-size: 14.5px; font-weight: 500; color: var(--espresso);
}
.selective .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--burgundy); flex: none; }
.band .selective { background: rgba(242,232,213,0.1); border-color: rgba(242,232,213,0.32); color: var(--cream); }
.band .selective .dot { background: var(--sand); }

/* ----- contact ----- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact-aside h2 { margin-top: 16px; }
.contact-aside .lead { margin-top: 22px; }
.contact-list { margin-top: 36px; display: grid; gap: 22px; }
.contact-list a, .contact-list span { display: block; }
.contact-list .k { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-list .v { font-family: var(--serif); font-size: 23px; color: var(--espresso); transition: color 0.2s var(--ease); }
a.contact-row:hover .v { color: var(--burgundy); }

form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--espresso); }
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 15px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(110, 20, 35, 0.12);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: 13.5px; color: var(--muted); }
.form-status { font-size: 14.5px; padding: 12px 14px; border-radius: var(--radius); display: none; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(110, 20, 35, 0.08); color: var(--burgundy); border: 1px solid rgba(110, 20, 35, 0.2); }

/* ----- footer ----- */
.site-footer { background: var(--espresso); color: var(--cream); padding-block: clamp(48px, 7vw, 80px) 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 5vw, 56px); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 50%; }
.footer-brand .brand-name { color: var(--cream); }
.footer-top p { color: rgba(242, 232, 213, 0.66); font-size: 15.5px; max-width: 34ch; }
.footer-col h4 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sand); margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; color: rgba(242, 232, 213, 0.82); font-size: 15px; margin-bottom: 10px; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 24px;
  border-top: 1px solid rgba(242, 232, 213, 0.16);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  color: rgba(242, 232, 213, 0.6);
}

/* ----- scroll reveal ----- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ----- responsive ----- */
@media (max-width: 960px) {
  .contact-grid, .disc-grid { grid-template-columns: 1fr; }
  .disc-head { position: static; }
  .pillar { grid-template-columns: 1fr; gap: 16px; }
  .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--cream);
    padding: 18px var(--gutter) 28px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.4s var(--ease);
    box-shadow: 0 24px 40px rgba(58, 36, 27, 0.12);
  }
  body.nav-open .nav-links { transform: translateY(0); }
  .nav-links a { width: 100%; padding-block: 12px; font-size: 17px; }
  .nav-links .nav-cta { margin: 8px 0 0; }
  .form-row, .team { grid-template-columns: 1fr; }
  .disc { grid-template-columns: 1fr; gap: 10px; }
  .pillar .caps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .nav-links a::after, .member, .member .ic, .disc .ic, .pillar .ic { transition: none; }
}
