/* =============================================================
   ORDER OF MALTA JORDAN — shared design system
   Tokens, typography, buttons, nav, footer, utilities.
   Each page links this file + its own page-specific styles.
   ============================================================= */

@font-face {
  font-family: 'URW Gothic';
  src: url('../public/fonts/URWGothic-Book.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'URW Gothic';
  src: url('../public/fonts/URWGothic-BookOblique.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'URW Gothic';
  src: url('../public/fonts/URWGothic-Demi.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --red: #FF0000;
  --red-deep: #C60000;
  --ink: #0B0B0B;
  --mute: #5F5A52;
  --paper: #FFFFFF;
  --paper-warm: #FBFAF7;
  --line: #E8E4DD;

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'URW Gothic', 'Century Gothic', system-ui, sans-serif;
  --ease: cubic-bezier(.2,0,0,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 640px) { .container { padding: 0 22px; } }

.section { padding: 120px 0; }
.section--tight { padding: 90px 0; }
@media (max-width: 640px) { .section { padding: 80px 0; } }

/* ----- TYPOGRAPHY PRIMITIVES ----- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--red); font-weight: 700;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 28px; height: 1px;
  background: var(--red); vertical-align: middle; margin-right: 12px; transform: translateY(-2px);
}

.display { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.005em; color: var(--ink); }
.display-xl { font-size: clamp(48px, 6.5vw, 92px); }
.display-lg { font-size: clamp(40px, 4.5vw, 64px); }
.display-md { font-size: clamp(28px, 3vw, 40px); }
.display em { font-style: italic; color: var(--red); font-weight: 500; }

.lede {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(18px, 1.4vw, 22px); color: var(--mute); line-height: 1.5;
}

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 16px 28px; text-decoration: none;
  border: 1px solid; transition: all .3s var(--ease);
  cursor: pointer;
}
.btn--red { background: var(--red); color: #fff; border-color: var(--red); }
.btn--red:hover { background: transparent; color: var(--red); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost-light:hover { background: #fff; color: var(--red); border-color: #fff; }
.btn--ghost-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost-dark:hover { background: var(--ink); color: #fff; }
.btn .arrow { width: 22px; height: 1px; background: currentColor; position: relative; }
.btn .arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px; border-right: 1px solid currentColor; border-top: 1px solid currentColor;
  transform: rotate(45deg);
}

/* ----- RED BAND ----- */
.band {
  background: var(--red); color: #fff;
  padding: 120px 0; text-align: center; position: relative; overflow: hidden;
}
.band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.08) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(0,0,0,.12) 0%, transparent 55%);
}
.band__inner { position: relative; z-index: 2; max-width: 940px; margin: 0 auto; padding: 0 40px; }
.band__mark {
  font-family: var(--serif); font-style: italic; font-size: 15px;
  color: rgba(255,255,255,.75); letter-spacing: .02em; margin-bottom: 24px;
}
.band__mark::before, .band__mark::after {
  content: ""; display: inline-block; width: 32px; height: 1px;
  background: rgba(255,255,255,.5); vertical-align: middle; margin: 0 16px; transform: translateY(-2px);
}
.band h2 {
  font-family: var(--serif); font-size: clamp(34px, 4.2vw, 60px);
  font-weight: 400; line-height: 1.12; margin-bottom: 40px; color: #fff;
}
.band h2 em { font-style: italic; font-weight: 500; color: #fff; border-bottom: 1px solid rgba(255,255,255,.6); padding-bottom: 2px; }

/* ----- NAV (fixed, transparent over hero → solid on scroll) ----- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-scrolled,
.nav--solid {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,.2);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(24px, 4vw, 64px); }
@media (max-width: 640px) { .nav__inner { padding: 14px 22px; } }

.nav__brand { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.nav__brand-logo-wrap { position: relative; display: inline-block; height: 48px; }
.nav__brand-logo { height: 48px; width: auto; display: block; transition: opacity .3s var(--ease); }
.nav__brand-logo--light { filter: url(#drop-black); }
.nav__brand-logo--dark { position: absolute; inset: 0; opacity: 0; }
.nav.is-scrolled .nav__brand-logo--light,
.nav--solid .nav__brand-logo--light { opacity: 0; }
.nav.is-scrolled .nav__brand-logo--dark,
.nav--solid .nav__brand-logo--dark { opacity: 1; }

.nav__links { display: flex; gap: 34px; align-items: center; }
.nav__links a {
  color: #fff; text-decoration: none;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  position: relative; padding: 8px 0;
  transition: color .25s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }
.nav.is-scrolled .nav__links a,
.nav--solid .nav__links a { color: var(--ink); }

.nav__right { display: flex; align-items: center; gap: 22px; }
.nav__lang {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; text-decoration: none; opacity: .82;
  transition: color .25s var(--ease), opacity .25s var(--ease);
}
.nav__lang:hover { opacity: 1; color: var(--red); }
.nav.is-scrolled .nav__lang,
.nav--solid .nav__lang { color: var(--ink); opacity: .8; }
.nav.is-scrolled .nav__lang:hover,
.nav--solid .nav__lang:hover { color: var(--red); opacity: 1; }

.nav__cta {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  background: var(--red); color: #fff !important; text-decoration: none;
  padding: 14px 28px; border: 1px solid var(--red);
  transition: background .25s var(--ease);
}
.nav__cta:hover { background: var(--red-deep); border-color: var(--red-deep); }

.nav__hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 8px;
}
.nav__hamburger span { width: 22px; height: 1.5px; background: #fff; transition: all .4s var(--ease); }
.nav.is-scrolled .nav__hamburger span,
.nav--solid .nav__hamburger span { background: var(--ink); }
.nav__hamburger.is-active span:nth-child(1) { transform: rotate(45deg) translate(4.5px,4.5px); }
.nav__hamburger.is-active span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px,-4.5px); }

.nav__mobile {
  position: fixed; inset: 0; background: rgba(11,11,11,.97); z-index: 59;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.8rem; opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease);
}
.nav__mobile.is-active { opacity: 1; pointer-events: all; }
.nav__mobile a {
  font-family: var(--serif); font-size: 2rem; font-weight: 400;
  color: rgba(255,255,255,.6); transition: color .25s var(--ease);
}
.nav__mobile a:hover, .nav__mobile a.is-active { color: var(--red); }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
}

/* ----- FOOTER ----- */
.footer {
  background: var(--paper-warm); color: var(--ink);
  padding: 110px 0 36px;
  position: relative; border-top: 1px solid var(--line);
}
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--red); }

.footer__top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 80px;
  padding-bottom: 72px; border-bottom: 1px solid var(--line);
  max-width: 1280px; margin: 0 auto; padding-inline: 40px;
}

.footer__brand img { height: 68px; width: auto; margin-bottom: 24px; }
.footer__serif {
  font-family: var(--serif); font-size: 30px;
  color: var(--ink); font-weight: 500; font-style: italic;
  margin: 0 0 18px; line-height: 1.2;
}
.footer__brand p { font-size: 14px; line-height: 1.8; max-width: 340px; color: var(--mute); }

.footer__col h4 {
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 26px; font-weight: 700;
  position: relative; padding-bottom: 16px;
}
.footer__col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 1px; background: var(--red); }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer__col li { font-size: 14px; color: var(--mute); }
.footer__col a {
  color: var(--mute); text-decoration: none;
  font-size: 14px; letter-spacing: .02em;
  transition: color .25s var(--ease), padding-left .3s var(--ease);
  position: relative; display: inline-block;
}
.footer__col a:hover { color: var(--red); padding-left: 14px; }
.footer__col a::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 0; height: 1px; background: var(--red);
  transition: width .3s var(--ease);
}
.footer__col a:hover::before { width: 8px; }

.footer__bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 32px 40px 0; font-size: 12px; color: var(--mute); letter-spacing: .06em;
  max-width: 1280px; margin: 0 auto; flex-wrap: wrap; gap: 12px;
}
.footer__bar a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
.footer__bar a:hover { color: var(--red); }

@media (max-width: 1024px) { .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 640px) {
  .footer { padding: 72px 0 28px; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; padding-bottom: 48px; padding-inline: 22px; }
  .footer__bar { padding-inline: 22px; }
}

/* ----- PAGE HEAD (inner page hero — white bg, serif display) ----- */
.page-head {
  background: var(--paper);
  padding: 170px 0 80px;
  border-bottom: 1px solid var(--line);
}
.page-head__title { margin: 22px 0 24px; max-width: 920px; }
.page-head__lead {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55;
  color: var(--mute); max-width: 680px;
}
@media (max-width: 640px) { .page-head { padding: 130px 0 60px; } }

/* ----- DARK-HERO (photo hero for inner pages) ----- */
.page-hero {
  position: relative; min-height: 64vh; color: #fff; overflow: hidden;
  display: flex; align-items: center; background: var(--ink);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,11,.45) 0%, rgba(11,11,11,.25) 40%, rgba(11,11,11,.82) 100%);
}
.page-hero__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.page-hero__inner {
  position: relative; z-index: 2; width: 100%; max-width: 1280px;
  margin: 0 auto; padding: 140px 40px 80px;
}
.page-hero .eyebrow { color: rgba(255,255,255,.85); }
.page-hero .eyebrow::before { background: rgba(255,255,255,.6); }
.page-hero__title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 5.4vw, 82px);
  line-height: 1.05; letter-spacing: -0.01em; color: #fff; margin: 22px 0 22px; max-width: 820px;
}
.page-hero__title em { font-style: italic; color: var(--red); font-weight: 500; }
.page-hero__sub {
  font-size: 17px; line-height: 1.65; color: rgba(255,255,255,.82); max-width: 560px;
}
@media (max-width: 640px) { .page-hero__inner { padding: 110px 22px 60px; } }

/* ----- REVEAL ----- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
