/* Dar Nasser Holding Ltd — darnasser.com
   Brand: Deep Navy #0B1F36 + Stone #F5F3EC · Source Sans 3 (Degular when a web licence is added) */

@font-face { font-family: "Source Sans 3"; font-weight: 300; font-style: normal; font-display: swap; src: url("fonts/SourceSans3-Light.ttf.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/SourceSans3-Regular.ttf.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/SourceSans3-Semibold.ttf.woff2") format("woff2"); }

:root {
  --navy: #0B1F36;
  --navy-2: #13294A;
  --stone: #F5F3EC;
  --stone-2: #ECE8DD;
  --white: #FFFFFF;
  --ink: #0B1F36;
  --ink-2: #3C4654;
  --ink-3: #5A6472;
  --line: #D9D5C9;
  --line-dark: rgba(245, 243, 236, 0.16);
  --on-navy: rgba(245, 243, 236, 0.84);
  --on-navy-3: rgba(245, 243, 236, 0.62);

  --display: "degular", "Degular", "Source Sans 3", "Aptos Display", system-ui, sans-serif;
  --body: "Source Sans 3", "Aptos", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(5.5rem, 12vw, 10rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 1px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--stone); color: var(--ink);
  font-family: var(--body); font-weight: 400; font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
::selection { background: var(--navy); color: var(--stone); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--stone); color: var(--navy); padding: .75rem 1rem; text-decoration: none; }
.skip:focus { top: 1rem; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typography ---------- */
.eyebrow {
  display: flex; align-items: baseline; gap: 1.1rem;
  margin: 0 0 2.25rem; font-size: .75rem; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-3);
}
.eyebrow .num { letter-spacing: .12em; color: var(--ink); }
.on-navy .eyebrow { color: var(--on-navy-3); }
.on-navy .eyebrow .num { color: var(--stone); }
.h-display, .h1, .h2, .h3 { font-family: var(--display); font-weight: 300; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.h-display { font-size: clamp(3rem, 7.4vw, 6.25rem); line-height: 1; }
.h1 { font-size: clamp(2.25rem, 4.4vw, 3.75rem); line-height: 1.06; }
.h2 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1.12; }
.h3 { font-size: 1.5rem; line-height: 1.25; font-weight: 400; }
.lead { font-size: clamp(1.15rem, 1.4vw, 1.3rem); line-height: 1.6; color: var(--ink-2); }
.on-navy .lead, .on-navy p { color: var(--on-navy); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  color: var(--stone); transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; text-decoration: none; height: 44px; }
.brand img { height: 100%; width: auto; }
.brand .logo-dark { display: none; }
.site-header.is-solid { background: rgba(245, 243, 236, .96); color: var(--navy); border-bottom-color: var(--line); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); }
.site-header.is-solid .logo-light { display: none; }
.site-header.is-solid .logo-dark { display: block; }

.nav { display: flex; gap: clamp(1.5rem, 3vw, 2.75rem); }
.nav a { position: relative; text-decoration: none; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; padding: .9rem 0; opacity: .88; transition: opacity .3s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .55rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav a:hover, .nav a[aria-current="true"] { opacity: 1; }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }

.menu-toggle { display: none; background: none; border: 0; color: inherit; width: 48px; height: 48px; margin-right: -12px; cursor: pointer; padding: 12px; }
.menu-toggle span { display: block; height: 1px; background: currentColor; margin: 6px 0; transition: transform .35s var(--ease), opacity .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .brand { height: 38px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--navy); color: var(--stone); padding: .5rem var(--gutter) 2rem;
    border-top: 1px solid var(--line-dark);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .nav a { font-size: .85rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line-dark); }
  .nav a::after { display: none; }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .menu-open .site-header { background: var(--navy); color: var(--stone); border-bottom-color: transparent; }
  .menu-open .site-header .logo-light { display: block; }
  .menu-open .site-header .logo-dark { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; background: var(--navy); color: var(--stone); overflow: hidden; display: flex; align-items: flex-end; }
.hero__mark { position: absolute; right: -4vw; bottom: -18vh; height: 118vh; width: auto; opacity: .06; pointer-events: none; user-select: none; }
.hero__line { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--header-h) + 1px); height: 1px; background: var(--line-dark); max-width: calc(var(--max) - 2 * var(--gutter)); margin-inline: auto; }
.hero .container { position: relative; padding-top: calc(var(--header-h) + 4rem); padding-bottom: clamp(4rem, 10vh, 7.5rem); }
.hero__logo { width: clamp(150px, 16vw, 210px); height: auto; margin-bottom: clamp(3rem, 8vh, 5.5rem); }
.hero__title { margin-bottom: clamp(2rem, 4vh, 3rem); }
.hero__copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); max-width: 62rem; }
.hero__copy p { color: var(--on-navy); font-size: 1.0625rem; }
.hero__copy p:first-child { color: var(--stone); font-size: clamp(1.15rem, 1.4vw, 1.3rem); line-height: 1.55; }
.scroll-cue { position: absolute; right: var(--gutter); bottom: clamp(4rem, 10vh, 7.5rem); display: flex; flex-direction: column; align-items: center; gap: .9rem; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--on-navy-3); text-decoration: none; writing-mode: vertical-rl; }
.scroll-cue::after { content: ""; width: 1px; height: 56px; background: currentColor; }
@media (max-width: 760px) {
  .hero__copy { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
  .hero__mark { right: -30vw; height: 90vh; bottom: auto; top: 12vh; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: var(--stone); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 7vw, 7rem); }
.split__aside { position: relative; }
@media (min-width: 900px) { .split__aside .sticky { position: sticky; top: calc(var(--header-h) + 3rem); } }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } }

.note { margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink); font-weight: 600; letter-spacing: .01em; }
.note span { font-weight: 400; color: var(--ink-3); display: block; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; margin-bottom: .4rem; }

/* ---------- Philosophy ---------- */
.principles { list-style: none; margin: clamp(3rem, 6vw, 5rem) 0 0; padding: 0; border-top: 1px solid var(--navy); }
.principle { display: grid; grid-template-columns: 4.5rem minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1rem, 3vw, 3rem); align-items: start; padding: clamp(1.75rem, 3vw, 2.5rem) 0; border-bottom: 1px solid var(--line); }
.principle__icon { width: 44px; height: 44px; color: var(--navy); fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.principle__title { display: flex; align-items: baseline; gap: 1rem; }
.principle__title .num { font-size: .75rem; letter-spacing: .12em; color: var(--ink-3); }
.principle p { color: var(--ink-2); margin: .35rem 0 0; }
@media (max-width: 760px) {
  .principle { grid-template-columns: 3rem minmax(0, 1fr); }
  .principle p { grid-column: 2; margin-top: 0; }
  .principle__icon { width: 34px; height: 34px; }
}

/* ---------- Companies ---------- */
.companies-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: end; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
@media (max-width: 899px) { .companies-head { grid-template-columns: 1fr; } }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 899px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); padding: clamp(2rem, 4vw, 3.25rem); display: flex; flex-direction: column; gap: 1.5rem; transition: border-color .4s var(--ease); }
.card:hover { border-color: var(--navy); }
.card__logo { height: 56px; display: flex; align-items: center; }
.card__logo img { max-height: 56px; max-width: 240px; width: auto; height: auto; }
.card__logo.is-empty { display: none; }
.card__sector { font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); margin: .5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.card__body p { color: var(--ink-2); }
.card__foot { margin-top: auto; padding-top: 1.75rem; border-top: 1px solid var(--line); }

.btn { display: inline-flex; align-items: center; gap: .85rem; min-height: 48px; padding: .85rem 1.6rem; border: 1px solid var(--navy); color: var(--navy); background: transparent; text-decoration: none; font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; transition: background-color .35s var(--ease), color .35s var(--ease); }
.btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .35s var(--ease); }
.btn:hover { background: var(--navy); color: var(--stone); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--light { border-color: rgba(245, 243, 236, .55); color: var(--stone); }
.btn--light:hover { background: var(--stone); color: var(--navy); border-color: var(--stone); }

/* ---------- Generations ---------- */
.generations { position: relative; overflow: hidden; }
.generations__mark { position: absolute; left: -6%; top: -10%; height: 130%; width: auto; opacity: .05; pointer-events: none; }
.generations .split { position: relative; }
.maxim { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2rem; border-top: 1px solid var(--line-dark); font-size: clamp(.8rem, 1.1vw, .95rem); letter-spacing: .32em; text-transform: uppercase; color: var(--stone); }

/* ---------- Closing ---------- */
.closing { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: end; }
@media (max-width: 899px) { .closing { grid-template-columns: 1fr; } }
.closing__lines { font-family: var(--display); font-weight: 300; font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.12; letter-spacing: -.01em; margin: 1.5rem 0 0; }
.closing__lines span { display: block; }
.closing__intro { font-size: 1.15rem; color: var(--ink-2); margin: 0; }

/* ---------- Contact & footer ---------- */
.contact { background: var(--navy); color: var(--stone); padding-block: var(--section) 0; position: relative; overflow: hidden; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 7vw, 7rem); padding-bottom: clamp(4rem, 8vw, 6rem); }
@media (max-width: 899px) { .contact__grid { grid-template-columns: 1fr; } }
.contact__logo { width: clamp(150px, 15vw, 190px); height: auto; }
.contact address { font-style: normal; color: var(--on-navy); line-height: 1.75; }
.contact address strong { display: block; color: var(--stone); font-weight: 600; letter-spacing: .02em; margin-bottom: .35rem; }
.contact__email { display: inline-block; margin-top: 2.25rem; font-family: var(--display); font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--stone); text-decoration: none; border-bottom: 1px solid rgba(245, 243, 236, .4); padding-bottom: .35rem; transition: border-color .3s; overflow-wrap: anywhere; }
.contact__email:hover { border-color: var(--stone); }
.legal { border-top: 1px solid var(--line-dark); padding-block: 2rem 2.5rem; font-size: .82rem; color: var(--on-navy-3); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 3rem; align-items: start; }
.legal p { margin: 0; }
.legal a { text-decoration: none; letter-spacing: .2em; text-transform: uppercase; font-size: .72rem; }
.legal a:hover { color: var(--stone); }
.legal__tag { letter-spacing: .4em; text-transform: uppercase; font-size: .7rem; text-align: right; }
@media (max-width: 760px) { .legal { grid-template-columns: 1fr; } .legal__tag { text-align: left; } }

/* ---------- Reveal (subtle fades only) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* ---------- Simple pages (privacy, 404) ---------- */
.page-simple { min-height: 100vh; display: flex; flex-direction: column; }
.page-simple main { flex: 1; padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)); padding-bottom: var(--section); }
.prose { max-width: 44rem; }
.prose h2 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; margin: 2.5rem 0 .75rem; }
.prose p, .prose li { color: var(--ink-2); }

@media print {
  .site-header, .scroll-cue, .hero__mark, .generations__mark { display: none !important; }
  .hero, .section--navy, .contact { background: #fff !important; color: #000 !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
