/* ============================================================
   ELLARA SAFARIS — Design System
   Four Generations in the Wild
   ============================================================ */

:root {
  /* Racing green · beige · cream — heritage luxury */
  --ink: #16211b;            /* deep racing green (darkest) */
  --charcoal: #1f2d25;       /* racing green (dark sections) */
  --espresso: #2c352e;       /* body text — green-charcoal */
  --brass: #b3a077;          /* soft champagne-beige */
  --brass-light: #c9b88f;    /* pale champagne */
  --brass-pale: #ddcfa9;     /* lightest champagne */
  --ivory: #f8f6ef;          /* cream-white */
  --cream: #faf8f2;          /* page background */
  --sand: #ece7d8;           /* warm beige section */
  --stone: #8b8a76;          /* sage-stone */
  --taupe: #56604f;          /* pastel racing green, deep */
  --sage: #a9b8a5;           /* pastel racing green, light */
  --terracotta: #c07a5b;     /* clay accent — from the original Ellara site */
  --terracotta-deep: #a86046;
  --serif: 'Playfair Display', 'Didot', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Futura', 'Century Gothic', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  color: var(--espresso);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--ink); }

a { color: var(--brass); text-decoration: none; transition: color .3s; }
a:hover { color: var(--taupe); }

/* ---------- utilities ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 6vw; }
.narrow { max-width: 760px; margin: 0 auto; }
.center { text-align: center; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.eyebrow::before, .eyebrow.rule-both::after {
  content: "";
  width: 48px; height: 1px;
  background: var(--brass);
}
.eyebrow.no-rule::before { display: none; }

.display {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.12;
  letter-spacing: .5px;
}
.display em { font-style: italic; color: var(--brass); }

.lede { font-size: 20px; line-height: 1.8; color: var(--taupe); }

.diamond-rule {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin: 34px auto;
}
.diamond-rule::before, .diamond-rule::after {
  content: ""; width: 120px; height: 1px; background: var(--brass);
}
.diamond-rule span {
  width: 8px; height: 8px; background: var(--brass);
  transform: rotate(45deg); display: block;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 17px 42px;
  border: 1px solid var(--brass);
  color: var(--brass-light);
  background: transparent;
  cursor: pointer;
  transition: all .35s ease;
}
.btn:hover { background: var(--brass); color: var(--ink); }
.btn.solid { background: var(--terracotta); border-color: var(--terracotta); color: var(--cream); }
.btn.solid:hover { background: var(--terracotta-deep); border-color: var(--terracotta-deep); color: var(--cream); }
.btn.dark { color: var(--taupe); border-color: var(--taupe); }
.btn.dark:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--ivory); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 26px 4vw;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .4s ease, padding .4s ease, box-shadow .4s;
}
.site-header.scrolled {
  background: rgba(22, 33, 27, .97);
  padding: 14px 4vw;
  box-shadow: 0 1px 0 rgba(201,184,143,.3);
}
.brand { display: flex; align-items: center; gap: 16px; }
.brand img { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: 'Fraunces', var(--serif); font-size: 30px; letter-spacing: .5px;
  color: var(--ivory); font-weight: 500; line-height: 1.15;
}
.brand-tag {
  font-size: 11px; letter-spacing: 3.6px; text-transform: uppercase;
  color: var(--brass-pale); margin-top: 3px;
}
.footer-brand img { width: 62px; margin-bottom: 18px; }
.footer-brand .fb-name {
  display: block; font-family: 'Fraunces', var(--serif);
  font-size: 32px; font-weight: 500; color: var(--ivory); line-height: 1.1;
}
.footer-brand .fb-sub {
  display: block; font-size: 11px; letter-spacing: 9px;
  color: var(--brass-light); margin-top: 8px;
}
.footer-brand .fb-tag {
  font-size: 11.5px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--sand); opacity: .6; margin-top: 16px;
}
.site-nav { display: flex; align-items: center; gap: 38px; }
.site-nav a {
  font-size: 12.5px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--ivory); position: relative; padding-bottom: 4px;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--brass-light);
  transition: width .3s;
}
.site-nav a:hover::after, .site-nav a.active::after { width: 100%; }
.site-nav a.active { color: var(--brass-light); }
.site-nav .btn { padding: 11px 26px; font-size: 11px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 1.5px; background: var(--ivory); margin: 6px 0; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  color: var(--ivory);
}
.hero.short { min-height: 68vh; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(22,33,27,.62) 0%, rgba(22,33,27,.28) 55%, rgba(22,33,27,.2) 100%),
    linear-gradient(180deg, rgba(22,33,27,.45) 0%, rgba(22,33,27,.15) 40%, rgba(22,33,27,.85) 100%);
}
.hero .eyebrow, .hero h1, .hero .lede, .hero h1 em {
  text-shadow: 0 2px 22px rgba(10,14,11,.75), 0 1px 4px rgba(10,14,11,.5);
}
.hero .eyebrow { color: var(--brass-pale); }
.hero-inner { position: relative; z-index: 2; padding: 0 6vw 11vh; max-width: 900px; }
.hero h1 {
  color: var(--ivory);
  font-size: clamp(44px, 6.2vw, 84px);
  font-weight: 500; line-height: 1.06; letter-spacing: 1px;
}
.hero h1 em { font-style: italic; color: var(--brass-pale); }
.hero .lede { color: var(--sand); max-width: 620px; margin-top: 24px; }
.hero-actions { margin-top: 40px; display: flex; gap: 20px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 34px; right: 5vw; z-index: 2;
  font-size: 10px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--sand); writing-mode: vertical-rl;
}

/* ---------- sections ---------- */
section { padding: 110px 0; }
section.tight { padding: 80px 0; }
.on-dark { background: var(--charcoal); color: var(--sand); }
.on-dark h2, .on-dark h3 { color: var(--ivory); }
.on-dark .lede { color: var(--sand); }
.on-ink { background: var(--ink); color: var(--sand); }
.on-ink h2 { color: var(--ivory); }
.on-sand { background: var(--sand); }

/* editorial split rows */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px); align-items: center;
}
.split.reverse > .split-media { order: 2; }
.split-media { position: relative; }
.split-media img {
  width: 100%; height: 700px; object-fit: cover;
}
.split-media::after {
  content: ""; position: absolute; inset: 18px;
  border: 1px solid rgba(236,231,216,.65);
  pointer-events: none;
}
.split-body h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.15; margin-bottom: 26px; }
.split-body p { margin-bottom: 20px; }
.split-body .btn { margin-top: 14px; }

/* card grids */
.grid { display: grid; gap: 30px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card { position: relative; overflow: hidden; background: var(--charcoal); }
.card img {
  width: 100%; height: 620px; object-fit: cover;
  transition: transform 1.2s ease, opacity .6s;
  opacity: .92;
}
.card:hover img { transform: scale(1.05); opacity: 1; }
.card .card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,33,27,.3) 0%, rgba(22,33,27,.38) 38%, rgba(22,33,27,.95) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 34px 30px;
}
.card .card-kicker {
  font-size: 10.5px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--brass-pale); margin-bottom: 8px;
  text-shadow: 0 1px 10px rgba(0,0,0,.75);
}
.card h3 { color: var(--ivory); font-size: 30px; font-weight: 500; text-shadow: 0 2px 14px rgba(0,0,0,.65); }
.card p { color: var(--sand); font-size: 14.5px; line-height: 1.6; margin-top: 8px; max-width: 92%; text-shadow: 0 1px 10px rgba(0,0,0,.7); }
.card .card-link {
  margin-top: 16px; font-size: 11.5px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--brass-pale);
}
.card.tall img { height: 740px; }
.card.short img { height: 500px; }

/* full-bleed image banner */
.banner {
  position: relative; min-height: 74vh;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
  background-attachment: fixed;
}
.banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,33,27,.55), rgba(22,33,27,.66));
}
.banner-inner h2, .banner-inner p, .banner-inner .eyebrow {
  text-shadow: 0 2px 20px rgba(10,14,11,.7), 0 1px 4px rgba(10,14,11,.5);
}
.banner-inner {
  position: relative; z-index: 2; text-align: center;
  color: var(--ivory); padding: 90px 6vw; max-width: 860px;
  background: radial-gradient(ellipse 70% 60% at center, rgba(16,24,19,.5) 0%, rgba(16,24,19,.28) 55%, transparent 78%);
  border-radius: 50%;
}
.banner-inner p { color: #f2efe4; }
.banner-inner h2 {
  color: var(--ivory); font-size: clamp(34px, 4.6vw, 62px); line-height: 1.12;
}
.banner-inner h2 em { font-style: italic; color: var(--brass-pale); }
.banner-inner p { color: var(--sand); font-size: 19px; margin-top: 22px; }
.banner-inner .btn { margin-top: 36px; }
@media (max-width: 820px) { .banner { background-attachment: scroll; min-height: 56vh; } }

/* region header */
.region-head {
  display: flex; align-items: baseline; gap: 26px;
  margin: 90px 0 40px;
}
.region-head:first-of-type { margin-top: 0; }
.region-head h2 { font-size: clamp(30px, 3.4vw, 44px); white-space: nowrap; }
.region-head::after { content: ""; height: 1px; background: var(--brass); flex: 1; opacity: .5; }
.region-head .region-note {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--stone);
  white-space: nowrap;
}

/* stats / legacy band */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px; text-align: center;
}
.stat .num {
  font-family: var(--serif); font-size: 64px; color: var(--brass-light);
  line-height: 1;
}
.stat .label {
  font-size: 11.5px; letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--stone); margin-top: 12px;
}
.on-dark .stat .label, .on-ink .stat .label { color: var(--sand); opacity: .75; }

/* quote */
.quote { max-width: 880px; margin: 0 auto; text-align: center; }
.quote blockquote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(26px, 3vw, 38px); line-height: 1.45; color: var(--ivory);
}
.quote cite {
  display: block; margin-top: 28px; font-family: var(--sans);
  font-style: normal; font-size: 12px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--brass-light);
}

/* timeline (generations) */
.timeline { position: relative; max-width: 840px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px; background: rgba(169,184,165,.45);
}
.era {
  position: relative; width: 46%;
  padding: 0 0 70px;
}
.era:nth-child(odd) { margin-left: 0; text-align: right; }
.era:nth-child(even) { margin-left: 54%; text-align: left; }
.era::before {
  content: ""; position: absolute; top: 8px;
  width: 10px; height: 10px; background: var(--brass);
  transform: rotate(45deg);
}
.era:nth-child(odd)::before { right: -9.2%; }
.era:nth-child(even)::before { left: -9.2%; }
.era .gen {
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--brass-light); margin-bottom: 6px;
}
.era h3 { font-size: 28px; color: var(--ivory); margin-bottom: 10px; }
.era p { font-size: 15px; color: var(--sand); opacity: .85; }

/* itinerary blocks */
.journey {
  display: grid; grid-template-columns: 1.1fr .9fr;
  background: #fff; margin-bottom: 60px;
  box-shadow: 0 30px 60px -35px rgba(22,33,27,.3);
}
.journey.reverse { grid-template-columns: .9fr 1.1fr; }
.journey.reverse .journey-media { order: 2; }
.journey-media img { width: 100%; height: 100%; min-height: 640px; object-fit: cover; }
.journey-body { padding: clamp(36px, 4vw, 70px); }
.journey-body .meta {
  display: flex; gap: 26px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--brass); margin-bottom: 18px;
}
.journey-body h3 { font-size: clamp(28px, 2.8vw, 38px); margin-bottom: 18px; }
.journey-body ul { list-style: none; margin: 22px 0; }
.journey-body li {
  padding: 10px 0 10px 26px; position: relative;
  border-bottom: 1px solid var(--sand); font-size: 15.5px;
}
.journey-body li::before {
  content: ""; position: absolute; left: 2px; top: 19px;
  width: 7px; height: 7px; background: var(--brass); transform: rotate(45deg);
}
.journey-body .from {
  font-family: var(--serif); font-size: 19px; font-style: italic;
  color: var(--taupe); margin: 18px 0 24px;
}

/* referral band */
.referral-band { text-align: center; position: relative; }
.referral-band .seal { width: 110px; margin: 0 auto 34px; opacity: .95; }
.referral-band h2 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 24px; }
.referral-band p { max-width: 640px; margin: 0 auto 14px; }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block; font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--stone); margin-bottom: 8px;
}
input, select, textarea {
  width: 100%; padding: 15px 16px;
  font-family: var(--sans); font-size: 15.5px; font-weight: 300;
  color: var(--espresso);
  background: #fff; border: 1px solid #d9d6c8;
  transition: border-color .3s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brass); }
textarea { min-height: 150px; resize: vertical; }

/* footer */
.site-footer { background: var(--ink); color: var(--sand); padding: 90px 0 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px; margin-bottom: 70px;
}
.footer-grid h4 {
  color: var(--brass-light); font-family: var(--sans);
  font-size: 11.5px; letter-spacing: 4px; text-transform: uppercase;
  font-weight: 400; margin-bottom: 20px;
}
.footer-grid p, .footer-grid a { font-size: 14.5px; color: var(--sand); opacity: .85; }
.footer-grid a { display: block; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--brass-pale); opacity: 1; }
.footer-logo { width: 220px; margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(201,184,143,.22); padding-top: 30px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: 12.5px; opacity: .65;
}

/* page hero (interior) */
.page-hero {
  position: relative; min-height: 82vh;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
}
.page-hero.short { min-height: 66vh; }
.page-hero .lede, .hero .lede { color: #f2efe4; opacity: .96; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,33,27,.62), rgba(22,33,27,.82));
}
.page-hero h1, .page-hero .lede, .page-hero .eyebrow {
  text-shadow: 0 2px 22px rgba(10,14,11,.75), 0 1px 4px rgba(10,14,11,.5);
}
.page-hero .eyebrow { color: var(--brass-pale); }
.page-hero .hero-inner { padding-bottom: 10vh; }
.page-hero h1 { color: var(--ivory); font-size: clamp(40px, 5vw, 68px); }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .site-nav {
    position: fixed; inset: 0; background: rgba(20,16,11,.98);
    flex-direction: column; justify-content: center; gap: 34px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; position: relative; z-index: 110; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > .split-media { order: 0; }
  .split-media img { height: 440px; }
  .journey, .journey.reverse { grid-template-columns: 1fr; }
  .journey.reverse .journey-media { order: 0; }
  .grid.cols-3, .grid.cols-2, .grid.cols-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 6px; }
  .era, .era:nth-child(odd), .era:nth-child(even) {
    width: auto; margin-left: 32px; text-align: left;
  }
  .era:nth-child(odd)::before, .era:nth-child(even)::before { left: -31px; right: auto; }
  section { padding: 70px 0; }
}
