/* ============================================================
   PEARL ORIGINS — mercedes-benz.com mirror (multi-page)
   Two-tier nav · smaller serif hero · offset teaser feed
   ============================================================ */

:root {
  --black: #000000;
  --ink: #1a1a1a;
  --ink-soft: #333333;
  --gray: #767676;
  --line: #e2e2e2;
  --white: #ffffff;
  --cream: #faf9f6;
  --gold: #C9A24B;

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;

  --pagemax: 1440px;
  --pad: clamp(20px, 5vw, 80px);
  --nav-h: 112px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
em { font-style: italic; }

.label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 20px;
}

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.pill__chevron { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.pill:hover .pill__chevron { transform: translateX(3px); }
.pill--light { background: var(--white); color: var(--ink); }
.pill--light:hover { background: #ececec; }
.pill--dark { background: var(--ink); color: var(--white); }
.pill--dark:hover { background: #3a3a3a; }

/* ============================================================
   NAV — two-tier (emblem row + links row)
   ============================================================ */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; color: var(--white);
  background: var(--black);
}
/* logo bar (.nav__bar) stays locked; only the links row collapses on scroll */

.nav__bar {
  position: relative; display: flex; align-items: center;
  height: 64px; padding: 0 var(--pad);
}
.nav__burger {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 6px;
}
.nav__burger span { display: block; width: 24px; height: 1.5px; background: var(--white); transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav__brand {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: clamp(10px, 1.4vw, 20px); color: var(--gold);
}
.nav__brand svg { width: 44px; height: 44px; flex-shrink: 0; }
.nav__word { font-family: var(--serif); font-weight: 600; font-size: clamp(12px, 1.15vw, 16px); letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); white-space: nowrap; }
.nav__enquire {
  margin-left: auto; font-size: 14px; font-weight: 500; color: var(--white);
  border-bottom: 1px solid transparent; transition: border-color 0.25s;
}
.nav__enquire:hover { border-color: var(--white); }

.nav__links {
  display: flex; justify-content: center; align-items: center;
  max-width: 1080px; margin: 0 auto; padding: 0 var(--pad) 18px;
  max-height: 72px; overflow: hidden;
  transition: opacity 0.35s var(--ease), transform 0.4s var(--ease), max-height 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.links-hidden .nav__links {
  opacity: 0; transform: translateY(-12px); max-height: 0; padding-top: 0; padding-bottom: 0; pointer-events: none;
}
.nav__links a {
  flex: 1 1 0; text-align: center; position: relative;
  font-size: 13px; font-weight: 400; letter-spacing: 0.13em; text-transform: uppercase;
  color: rgba(255,255,255,0.82); padding: 4px 6px;
  transition: color 0.25s; white-space: nowrap;
}
.nav__links a:hover { color: var(--white); }
.nav__links a.is-active { color: var(--white); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: -3px; transform: translateX(-50%);
  width: 22px; height: 2px; background: var(--gold);
}

/* mobile drawer */
.drawer {
  position: fixed; inset: 64px 0 0 0; z-index: 95; background: rgba(0,0,0,0.97); color: var(--white);
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease); overflow-y: auto;
}
.drawer.is-open { opacity: 1; pointer-events: auto; }
.drawer__inner { padding: clamp(40px, 9vh, 90px) var(--pad); display: flex; flex-direction: column; gap: 4px; }
.drawer a { font-family: var(--serif); font-size: clamp(28px, 6vw, 44px); padding: 10px 0; transition: color 0.25s, padding-left 0.25s var(--ease); }
.drawer a:hover, .drawer a.is-active { color: var(--gold); padding-left: 12px; }

/* ============================================================
   HERO (home) — smaller serif title, bottom-left
   ============================================================ */

.hero {
  position: relative; margin-top: var(--nav-h);
  height: calc(100vh - var(--nav-h)); min-height: 560px; background: var(--black);
}
.hero__media {
  position: absolute; inset: 0; overflow: hidden;
  /* cinematic fallback shows if the photo fails to load */
  background:
    radial-gradient(ellipse 85% 60% at 68% 40%, rgba(201,162,75,0.30), transparent 62%),
    radial-gradient(ellipse 100% 70% at 28% 82%, rgba(44,24,16,0.88), transparent 70%),
    linear-gradient(#0d0d0d 0%, #14100a 55%, #000 100%);
}
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__fade { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,0.4) 0%, transparent 26%, transparent 54%, rgba(0,0,0,0.9) 100%); }
.hero__content {
  position: absolute; inset: auto auto clamp(56px, 10vh, 120px) 0;
  max-width: min(620px, 92vw); color: var(--white); padding: 0 var(--pad);
}
.hero__eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
  opacity: 0; animation: fadeUp 1s var(--ease) 0.2s forwards;
}
.hero__tag {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--white); margin-top: 24px;
  opacity: 0; animation: fadeUp 1.05s var(--ease) 0.95s forwards;
}
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 3.6vw, 50px); line-height: 1.1; margin-bottom: 16px;
  opacity: 0; animation: fadeUp 1.05s var(--ease) 0.38s forwards;
}
.hero__sub {
  font-size: clamp(14px, 1.2vw, 17px); font-weight: 500; line-height: 1.5; margin-bottom: 30px;
  opacity: 0; animation: fadeUp 1.05s var(--ease) 0.6s forwards;
}
.hero__content .pill { opacity: 0; animation: fadeUp 1.05s var(--ease) 0.82s forwards; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ============================================================
   HOME TEASER FEED — offset two columns
   ============================================================ */

.feed {
  max-width: var(--pagemax); margin: 0 auto;
  padding: clamp(70px, 11vh, 140px) var(--pad) clamp(80px, 12vh, 160px);
  display: flex; gap: clamp(28px, 5vw, 90px); align-items: flex-start;
}
.feed__col { flex: 1; display: flex; flex-direction: column; gap: clamp(70px, 11vh, 150px); min-width: 0; }
.feed__col--right { margin-top: clamp(80px, 16vh, 200px); }

.teaser { display: block; }
.teaser__media {
  display: block; aspect-ratio: 16 / 10; background-position: center; background-size: cover;
  margin-bottom: 24px; overflow: hidden; transform: scale(1.05);
  transition: transform 1.3s var(--ease), opacity 0.3s var(--ease);
}
.teaser.is-visible .teaser__media { transform: scale(1); }
.teaser:hover .teaser__media { opacity: 0.92; }
.teaser__label {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.teaser__title {
  display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(19px, 1.9vw, 28px);
  line-height: 1.22; margin-bottom: 12px; max-width: 22ch; transition: color 0.25s;
}
.teaser:hover .teaser__title { color: var(--gold); }
.teaser__text { display: block; font-size: 14px; color: var(--gray); max-width: 44ch; margin-bottom: 18px; }
.teaser__more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
}
.teaser__more .pill__chevron { width: 13px; height: 13px; }
.teaser:hover .teaser__more .pill__chevron { transform: translateX(4px); }

.teaser__media--story {
  background-image: url("../assets/images/story.jpg"),
    radial-gradient(ellipse 75% 65% at 40% 60%, rgba(201,162,75,0.30), transparent 60%),
    radial-gradient(ellipse 90% 80% at 78% 20%, rgba(30,22,14,0.92), #0d0b08);
}
.teaser__media--services {
  background-image: url("../assets/images/services.jpg"),
    radial-gradient(ellipse 70% 60% at 65% 70%, rgba(201,162,75,0.26), transparent 58%),
    radial-gradient(ellipse 90% 80% at 25% 25%, rgba(26,20,13,0.93), #0b0a07);
}
.teaser__media--coffee {
  background-image: url("../assets/images/coffee.jpg"),
    radial-gradient(ellipse 80% 70% at 60% 75%, rgba(201,162,75,0.34), transparent 60%),
    radial-gradient(ellipse 90% 80% at 20% 20%, rgba(44,24,16,0.92), #0e0b08);
}
.teaser__media--tourism {
  background-image: url("../assets/images/tourism.jpg"),
    radial-gradient(ellipse 75% 65% at 42% 42%, rgba(122,150,110,0.32), transparent 60%),
    radial-gradient(ellipse 90% 80% at 76% 80%, rgba(24,32,20,0.92), #0a0f0a);
}

/* ============================================================
   INNER PAGE HEADER
   ============================================================ */

.pagehead {
  position: relative; overflow: hidden; background: var(--black); color: var(--white);
  margin-top: var(--nav-h);
  padding: clamp(60px, 12vh, 130px) var(--pad) clamp(56px, 9vh, 110px);
}
.pagehead::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 85% at 82% 18%, rgba(201,162,75,0.20), transparent 60%);
}
.pagehead__inner { position: relative; max-width: var(--pagemax); margin: 0 auto; }
.pagehead__title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 68px); line-height: 1.08; }

/* ============================================================
   SECTION — OUR STORY
   ============================================================ */

.story { max-width: var(--pagemax); margin: 0 auto; padding: clamp(70px, 12vh, 150px) var(--pad) clamp(50px, 8vh, 100px); }
.story__intro { max-width: 1000px; }
.story__title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 54px); line-height: 1.12; margin-bottom: 42px; }
.story__body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); }
.story__body p { font-size: clamp(15px, 1.15vw, 17px); color: var(--ink-soft); }
.story__quote { max-width: 900px; margin: clamp(56px, 9vh, 110px) auto 0; text-align: center; }
.story__quote blockquote { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(23px, 3.2vw, 42px); line-height: 1.32; }
.story__quote figcaption { margin-top: 22px; font-size: 13px; letter-spacing: 0.06em; color: var(--gray); }

.stats { background: var(--black); color: var(--white); }
.stats__grid { max-width: var(--pagemax); margin: 0 auto; padding: clamp(54px, 8vh, 96px) var(--pad); display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stat { text-align: center; }
.stat__num { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 54px); color: var(--gold); margin-bottom: 12px; }
.stat__label { display: block; font-size: 13px; color: #bdbdbd; max-width: 22ch; margin: 0 auto; }

/* ============================================================
   SECTION — OUR SERVICES
   ============================================================ */

.services { max-width: var(--pagemax); margin: 0 auto; padding: clamp(70px, 12vh, 150px) var(--pad); }
.services__head { max-width: 760px; margin-bottom: clamp(48px, 7vh, 88px); }
.services__title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 52px); line-height: 1.12; margin-bottom: 28px; }
.services__title em { color: var(--gold); }
.services__intro { font-size: clamp(15px, 1.2vw, 18px); color: var(--ink-soft); max-width: 58ch; }
.services__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--white); padding: clamp(32px, 4vw, 56px); transition: background 0.3s var(--ease); }
.service:hover { background: var(--cream); }
.service__index { display: block; font-family: var(--serif); font-size: 22px; color: var(--gold); margin-bottom: 26px; }
.service__title { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 16px; }
.service p { font-size: 15px; color: var(--gray); max-width: 46ch; }
.services__cta { margin-top: clamp(44px, 6vh, 72px); }

/* ============================================================
   SECTION — EXPLORE UGANDA (features)
   ============================================================ */

.feature {
  max-width: var(--pagemax); margin: 0 auto; padding: clamp(50px, 8vh, 96px) var(--pad);
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  scroll-margin-top: var(--nav-h);
}
.feature--reverse .feature__media { order: 2; }
.feature__media { display: block; aspect-ratio: 4 / 3; background-position: center; background-size: cover; transition: opacity 0.3s var(--ease); }
.feature__media:hover { opacity: 0.9; }
.feature__title { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.9vw, 40px); line-height: 1.18; margin-bottom: 22px; }

/* Uganda [emblem] Coffee — centered heading band */
.coffeehead { max-width: var(--pagemax); margin: 0 auto; padding: clamp(56px, 9vh, 110px) var(--pad) 0; text-align: center; }
.coffeehead .label { text-align: center; }
.emblemhead {
  font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.4vw, 60px); line-height: 1.1;
  display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2.6vw, 34px); flex-wrap: wrap;
}
.emblemhead__mark { width: clamp(34px, 3.4vw, 50px); height: clamp(34px, 3.4vw, 50px); color: var(--gold); flex-shrink: 0; }

.feature__text p { font-size: clamp(15px, 1.1vw, 17px); color: var(--ink-soft); margin-bottom: 26px; }
.feature__link {
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 3px; transition: gap 0.25s var(--ease), color 0.25s, border-color 0.25s;
}
.feature__link:hover { gap: 14px; color: var(--gold); border-color: var(--gold); }
.feature__link .pill__chevron { width: 13px; height: 13px; }

.feature__media--coffee {
  background-image: url("../assets/images/coffee.jpg"),
    radial-gradient(ellipse 80% 70% at 65% 75%, rgba(201,162,75,0.34), transparent 60%),
    radial-gradient(ellipse 90% 80% at 20% 20%, rgba(44,24,16,0.92), #0e0b08);
}
.feature__media--tourism {
  background-image: url("../assets/images/tourism.jpg"),
    radial-gradient(ellipse 75% 65% at 40% 40%, rgba(122,150,110,0.34), transparent 60%),
    radial-gradient(ellipse 90% 80% at 75% 80%, rgba(24,32,20,0.92), #0a0f0a);
}

/* ============================================================
   SECTION — CONTACT
   ============================================================ */

.contact { max-width: 720px; margin: 0 auto; padding: clamp(70px, 12vh, 150px) var(--pad); }
.contact__title { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4vw, 50px); line-height: 1.15; margin-bottom: 18px; }
.contact__desc { font-size: 16px; color: var(--gray); margin-bottom: 44px; max-width: 52ch; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__field { display: block; margin-bottom: 20px; }
.form__field span { display: block; font-size: 13px; font-weight: 500; color: var(--ink-soft); margin-bottom: 8px; }
.form__field input, .form__field textarea {
  width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  color: var(--ink); font-family: var(--sans); font-size: 16px; padding: 13px 15px; transition: border-color 0.25s; resize: vertical;
}
.form__field input:focus, .form__field textarea:focus { outline: none; border-color: var(--ink); }
.form__field ::placeholder { color: #b5b5b5; }
.form .pill--dark { margin-top: 10px; }
.form__note { margin-top: 18px; font-size: 14px; color: var(--ink-soft); min-height: 1.5em; }

.contact__direct {
  margin-top: clamp(48px, 7vh, 76px); padding-top: 36px; border-top: 1px solid var(--line);
}
.contact__direct-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 14px;
}
.contact__direct-link {
  display: inline-block; font-family: var(--serif); font-size: clamp(18px, 2vw, 24px);
  color: var(--ink); margin-right: clamp(24px, 4vw, 48px); border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.contact__direct-link:hover { color: var(--gold); border-color: var(--gold); }

/* ============================================================
   FOLLOW + FOOTER
   ============================================================ */

.follow { border-top: 1px solid var(--line); padding: clamp(64px, 9vh, 110px) var(--pad); text-align: center; }
.follow__title { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 42px); margin-bottom: 40px; }
.follow__icons { display: flex; justify-content: center; gap: clamp(28px, 6vw, 80px); }
.follow__icons a { color: var(--ink); transition: color 0.25s; }
.follow__icons a:hover { color: var(--gray); }
.follow__icons svg { width: 30px; height: 30px; }

.footer { background: var(--black); color: #d6d6d6; padding: clamp(64px, 9vh, 100px) var(--pad) 48px; }
.footer__wordmark { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 46px); color: var(--white); margin-bottom: 52px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 40px; max-width: 940px; margin-bottom: 60px; }
.footer__heading { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; }
.footer__col a, .footer__col span { display: block; font-size: 14px; color: #b9b9b9; margin-bottom: 12px; transition: color 0.25s; }
.footer__col a:hover { color: var(--white); }
.footer__footnote { font-size: 12px; line-height: 1.7; color: #8b8b8b; max-width: 900px; border-top: 1px solid #262626; padding-top: 28px; margin-bottom: 20px; }
.footer__legal { font-size: 12px; color: #8b8b8b; }

/* ============================================================
   REVEAL
   ============================================================ */

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.feed__col--right .teaser { transition-delay: 0.09s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1000px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  :root { --nav-h: 64px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 48px 40px; }
}
@media (max-width: 820px) {
  .feed { flex-direction: column; gap: clamp(60px, 9vh, 100px); }
  .feed__col { gap: clamp(60px, 9vh, 100px); }
  .feed__col--right { margin-top: 0; }
  .story__body { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature--reverse .feature__media { order: -1; }
  .feature__media { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .nav__word { display: none; }
}
@media (max-width: 640px) {
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__cols { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__content { inset: auto 0 clamp(52px, 9vh, 110px) 0; max-width: none; text-align: center; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__eyebrow, .hero__title, .hero__sub, .hero__content .pill { animation: none; opacity: 1; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
