/* ——— Tokens ——— */
:root {
  --navy-950: #070b14;
  --navy-900: #0c1222;
  --navy-800: #141c31;
  --navy-700: #1c2740;
  --burgundy: #8b1e2d;
  --burgundy-soft: #a83242;
  --gold: #c9a227;
  --gold-soft: #e0c060;
  --cream: #f3ebe0;
  --muted: rgba(243, 235, 224, 0.62);
  --line: rgba(201, 162, 39, 0.28);

  --font-display: "Amiri", "Traditional Arabic", serif;
  --font-body: "Cairo", "Tahoma", sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.5rem;
}

/* ——— Reset ——— */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--cream);
  background: var(--navy-950);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* ——— Atmosphere ——— */
.grain,
.geometric {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
}

.grain {
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.geometric {
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cg fill='none' stroke='%23c9a227' stroke-width='0.6'%3E%3Cpath d='M60 2L118 52L60 102L2 52Z'/%3E%3Cpath d='M60 18L96 52L60 86L24 52Z'/%3E%3Cpath d='M60 34L78 52L60 70L42 52Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 104px;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out), border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(201, 162, 39, 0.12);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
}

.nav {
  display: none;
  gap: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  position: relative;
  color: var(--muted);
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.3rem;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out);
}

.nav a:hover {
  color: var(--cream);
}

.nav a:hover::after {
  width: 100%;
}

.header-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-soft);
  border: 1px solid var(--line);
  padding: 0.45rem 1rem;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.header-cta:hover {
  background: rgba(201, 162, 39, 0.12);
  border-color: var(--gold);
  color: var(--cream);
}

@media (min-width: 800px) {
  .nav {
    display: flex;
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.9rem 1.75rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--burgundy) 0%, #6e1623 100%);
  color: var(--cream);
  box-shadow: 0 12px 32px rgba(139, 30, 45, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--burgundy-soft) 0%, var(--burgundy) 100%);
}

.btn-ghost {
  border-color: rgba(243, 235, 224, 0.28);
  color: var(--cream);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.btn-lg {
  margin-top: 0.5rem;
  padding: 1.05rem 2.25rem;
  font-size: 1.05rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.04);
  animation: hero- ken 18s var(--ease-out) forwards;
}

@keyframes hero-ken {
  to {
    transform: scale(1);
  }
}

.hero-media-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(7, 11, 20, 0.94) 0%, rgba(7, 11, 20, 0.72) 42%, rgba(7, 11, 20, 0.28) 68%, rgba(7, 11, 20, 0.55) 100%),
    linear-gradient(to top, rgba(7, 11, 20, 0.92) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
  padding: calc(var(--header-h) + 3rem) clamp(1.25rem, 4vw, 3.5rem) 5.5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  color: var(--gold-soft);
  margin-bottom: 1.1rem;
  letter-spacing: 0.01em;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--cream);
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.hero-lead {
  max-width: 34rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-scroll {
  position: absolute;
  z-index: 2;
  bottom: 1.75rem;
  left: clamp(1.25rem, 4vw, 3.5rem);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.scroll-line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, var(--gold), transparent);
  transform-origin: top;
  animation: scroll-pulse 2.2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%,
  100% {
    transform: scaleY(0.55);
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@media (min-width: 900px) {
  .hero {
    align-items: center;
  }

  .hero-content {
    padding-bottom: 4rem;
  }

  .hero-media img {
    object-position: 62% top;
  }

  .hero-media-veil {
    background:
      linear-gradient(100deg, rgba(7, 11, 20, 0.96) 0%, rgba(7, 11, 20, 0.78) 36%, rgba(7, 11, 20, 0.15) 62%, rgba(7, 11, 20, 0.4) 100%),
      linear-gradient(to top, rgba(7, 11, 20, 0.75) 0%, transparent 40%);
  }

  .hero-scroll {
    display: flex;
  }
}

/* ——— Shared section bits ——— */
.section-inner {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding: clamp(4.5rem, 10vw, 7.5rem) clamp(1.25rem, 4vw, 3.5rem);
}

.eyebrow {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.35rem;
  text-wrap: balance;
}

.section-body {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ——— About ——— */
.about {
  background:
    radial-gradient(ellipse 70% 60% at 85% 20%, rgba(139, 30, 45, 0.14), transparent 55%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
  border-top: 1px solid rgba(201, 162, 39, 0.1);
}

.about .section-inner {
  display: grid;
  gap: 3.5rem;
}

@media (min-width: 900px) {
  .about .section-inner {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
    gap: 4.5rem;
  }
}

.quote {
  margin-top: 2.25rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  max-width: 28rem;
}

.quote p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--cream);
  line-height: 1.7;
}

.about-aside {
  position: relative;
  padding: 2rem 0 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .about-aside {
    padding: 0.5rem 0 0 1.5rem;
    border-top: none;
    border-right: 1px solid var(--line);
  }
}

.aside-mark {
  position: absolute;
  top: -0.4rem;
  left: 0;
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 1;
  color: rgba(201, 162, 39, 0.08);
  pointer-events: none;
  user-select: none;
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
}

.aside-list li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.aside-list strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cream);
}

.aside-list span {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ——— Path ——— */
.path {
  background:
    radial-gradient(ellipse 55% 50% at 10% 80%, rgba(201, 162, 39, 0.08), transparent 50%),
    var(--navy-900);
  border-top: 1px solid rgba(201, 162, 39, 0.1);
}

.path-header {
  margin-bottom: 3rem;
}

.path-steps {
  display: grid;
  gap: 0;
  counter-reset: none;
}

.path-step {
  padding: 2rem 0;
  border-top: 1px solid rgba(201, 162, 39, 0.16);
  display: grid;
  gap: 0.65rem;
  transition: background 0.35s ease;
}

.path-step:last-child {
  border-bottom: 1px solid rgba(201, 162, 39, 0.16);
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.12em;
}

.path-step h3 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 700;
}

.path-step p {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.02rem;
}

@media (min-width: 800px) {
  .path-step {
    grid-template-columns: 4.5rem 1fr;
    column-gap: 1.5rem;
    align-items: baseline;
    padding: 2.4rem 1rem;
  }

  .path-step h3,
  .path-step p {
    grid-column: 2;
  }

  .path-step:hover {
    background: rgba(255, 255, 255, 0.02);
  }
}

/* ——— Contact ——— */
.contact {
  padding: clamp(4.5rem, 10vw, 7.5rem) clamp(1.25rem, 4vw, 3.5rem);
  background:
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  border-top: 1px solid rgba(201, 162, 39, 0.1);
}

.contact-panel {
  width: min(720px, 100%);
  margin-inline: auto;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse at top, rgba(139, 30, 45, 0.22), transparent 55%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  border: 1px solid rgba(201, 162, 39, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.contact-panel .section-body {
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

.phone {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 700;
  color: var(--gold-soft);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
  transition: color 0.25s ease, letter-spacing 0.35s var(--ease-out);
}

.phone:hover {
  color: var(--cream);
  letter-spacing: 0.08em;
}

/* ——— Footer ——— */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 2rem 1.25rem 2.5rem;
  border-top: 1px solid rgba(201, 162, 39, 0.12);
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold-soft);
}

.footer-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ——— Reveal animations ——— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal {
  transition-duration: 1.05s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img {
    animation: none;
    transform: none;
  }

  .scroll-line {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
