/* ─────────────────────────────────────────────────────
   MLANGO GOLD  ·  Design System
   Milky Luxury · Premium Corporate · Tanzania
───────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ─── DESIGN TOKENS ────────────────────────────────── */
:root {
  /* Palette */
  --bg:           #F8F6F2;
  --bg-warm:      #F2EDE4;
  --bg-alt:       #FFFFFE;
  --surface:      #FFFFFF;
  --border:       #E8E2D5;
  --border-light: #F0EBE2;

  --gold:         #C9A646;
  --gold-light:   #E3D5B5;
  --gold-dark:    #8E6F2C;
  --gold-pale:    #FAF8F2;
  --gold-mid:     #D4B56A;

  --text-primary: #2A2418;
  --text-muted:   #6B5C48;
  --text-light:   #9C8D7C;

  /* Shadows — warm-tinted, never cold grey */
  --shadow-xs: 0 1px 3px rgba(42,36,24,0.05);
  --shadow-sm: 0 2px 10px rgba(42,36,24,0.07), 0 1px 3px rgba(42,36,24,0.04);
  --shadow-md: 0 8px 28px rgba(42,36,24,0.09), 0 2px 6px rgba(42,36,24,0.05);
  --shadow-lg: 0 20px 48px rgba(42,36,24,0.12), 0 4px 10px rgba(42,36,24,0.06);
  --shadow-gold: 0 8px 28px rgba(201,166,70,0.20);

  /* Typography */
  --font-head:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-quote: Georgia, 'Times New Roman', serif;

  /* Spacing scale */
  --sp-4:  0.4rem;
  --sp-8:  0.8rem;
  --sp-12: 1.2rem;
  --sp-16: 1.6rem;
  --sp-20: 2.0rem;
  --sp-24: 2.4rem;
  --sp-32: 3.2rem;
  --sp-40: 4.0rem;
  --sp-48: 4.8rem;
  --sp-64: 6.4rem;
  --sp-80: 8.0rem;
  --sp-96: 9.6rem;

  /* Radii */
  --r-sm:   0.8rem;
  --r-md:   1.4rem;
  --r-lg:   2.0rem;
  --r-xl:   2.8rem;
  --r-pill: 10rem;

  /* Easing */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── RESET ──────────────────────────────────────── */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ─── BASE ───────────────────────────────────────── */
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.6rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── PAGE ENTRANCE ──────────────────────────────── */
body {
  animation: pageIn 0.45s var(--ease) both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
body.page-exit {
  animation: pageOut 0.25s var(--ease) both;
  pointer-events: none;
}
@keyframes pageOut {
  to { opacity: 0; transform: translateY(-8px); }
}

/* ─── TYPOGRAPHY ─────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(3.8rem, 5.5vw, 6.4rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(2.8rem, 3.5vw, 4.0rem);
  margin-bottom: var(--sp-24);
}

h3 {
  font-size: clamp(2.0rem, 2.2vw, 2.6rem);
  font-weight: 500;
  margin-bottom: var(--sp-12);
}

h4 {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

p {
  color: var(--text-muted);
  line-height: 1.72;
}

.text-muted  { color: var(--text-muted); font-size: 1.4rem; }
.text-light  { color: var(--text-light); }
.text-gold   { color: var(--gold-dark); }

.lead {
  font-size: 1.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 580px;
}

/* Eyebrow label — used above h1/h2 */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: var(--sp-16);
}

blockquote, .pullquote {
  font-family: var(--font-quote);
  font-size: 2.0rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--text-primary);
  padding-left: var(--sp-24);
  border-left: 2.5px solid var(--gold);
  margin: var(--sp-32) 0;
}

strong { color: var(--text-primary); font-weight: 600; }
small  { font-size: 1.2rem; color: var(--text-light); line-height: 1.5; }

/* ─── LAYOUT ─────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-40);
}

section { padding: var(--sp-80) 0; }
.section-sm  { padding: var(--sp-48) 0; }
.section-lg  { padding: var(--sp-96) 0; }

/* Alternating section backgrounds */
.section-alt  { background: var(--surface); }
.section-warm { background: var(--bg-warm); }
.section-gold { background: var(--gold-pale); border-top: 1px solid var(--gold-light); border-bottom: 1px solid var(--gold-light); }

/* ─── GRID UTILITIES ─────────────────────────────── */
/* Legacy — auto-fill so inline grids work without span classes */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: var(--sp-24);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-32);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-24);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-24);
}

/* Asymmetric split layouts */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-64);
  align-items: start;
}

/* ─── HERO — HOME ────────────────────────────────── */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--sp-96) 0 var(--sp-80);
  background: linear-gradient(150deg,
    #F8F6F2 0%,
    #EDE5D5 50%,
    #E5D9C4 100%
  );
}

/* Radial gold glow — top right */
.hero::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -10%;
  width: 60%;
  height: 130%;
  background: radial-gradient(ellipse at 60% 40%,
    rgba(201,166,70,0.10) 0%,
    transparent 65%
  );
  pointer-events: none;
}

/* Gold line at bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,166,70,0.45), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-content h1 { margin-bottom: var(--sp-24); }
.hero-content .lead { margin-bottom: var(--sp-40); }

.hero-actions {
  display: flex;
  gap: var(--sp-16);
  flex-wrap: wrap;
  align-items: center;
}

/* ─── INNER PAGE HERO ────────────────────────────── */
.page-hero {
  padding: var(--sp-80) 0 var(--sp-64);
  background: linear-gradient(150deg, #F8F6F2 0%, #EDE5D5 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -6%;
  width: 48%;
  height: 140%;
  background: radial-gradient(ellipse,
    rgba(201,166,70,0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 820px; margin-bottom: var(--sp-20); }
.page-hero .lead { color: var(--text-muted); }

/* ─── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  padding: 1.35rem 2.8rem;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 1.4rem;
  font-family: var(--font-body);
  border: 1.5px solid transparent;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    background 0.22s var(--ease),
    color 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.btn-primary {
  background: var(--gold);
  color: var(--text-primary);
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-secondary {
  background: transparent;
  border-color: rgba(201,166,70,0.6);
  color: var(--gold-dark);
}
.btn-secondary:hover {
  background: var(--gold-pale);
  border-color: var(--gold-dark);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Text link button */
.btn-tertiary {
  background: none;
  border: none;
  color: var(--gold-dark);
  padding: 0;
  border-radius: 0;
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  position: relative;
}
.btn-tertiary::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform-origin: left;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.btn-tertiary:hover { color: var(--gold); }
.btn-tertiary:hover::after {
  background: var(--gold-mid);
  transform: scaleX(0.5);
}

/* ─── CARDS ──────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-32);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    border-color 0.28s var(--ease);
  box-shadow: var(--shadow-xs);
}

/* Top border reveal on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.38s var(--ease);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-light);
}
.card:hover::before { transform: scaleX(1); }

/* Variants */
.card-featured {
  background: var(--bg-warm);
  border-color: var(--gold-light);
  border-left: 3px solid var(--gold);
}
.card-featured::before { display: none; }

.card-dark {
  background: var(--bg);
  border-color: var(--border);
}

/* Quote card — large decorative quotemark */
.card-quote {
  background: var(--bg);
}
.card-quote::after {
  content: '\201C';
  font-family: var(--font-quote);
  font-size: 14rem;
  color: var(--gold-light);
  position: absolute;
  top: -2.4rem; right: 1.6rem;
  line-height: 1;
  pointer-events: none;
  opacity: 0.7;
}

/* ─── STAT CARDS ─────────────────────────────────── */
.stat-card {
  text-align: center;
  padding: var(--sp-40) var(--sp-24);
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s var(--ease);
}

.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-card:hover::after { transform: scaleX(1); }

.stat-number {
  font-family: var(--font-head);
  font-size: clamp(3.8rem, 4.5vw, 5.6rem);
  font-weight: 500;
  color: var(--gold-dark);
  line-height: 1;
  display: block;
  margin-bottom: var(--sp-8);
  letter-spacing: -0.025em;
}

.stat-card > span:not(.stat-number) {
  font-size: 1.35rem;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  margin-top: var(--sp-4);
}

.stat-card small {
  display: block;
  margin-top: var(--sp-8);
  color: var(--text-light);
}

/* ─── TIMELINE ───────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 3.2rem;
  border-left: 1.5px solid var(--gold-light);
}

.timeline-item {
  margin-bottom: var(--sp-32);
  position: relative;
}

/* Gold dot */
.timeline-item::before {
  content: '';
  position: absolute;
  left: -3.9rem; top: 0.5rem;
  width: 1.4rem; height: 1.4rem;
  background: var(--gold);
  border-radius: 50%;
  border: 2.5px solid var(--bg);
  box-shadow: 0 0 0 2px var(--gold-light);
  transition: transform 0.2s var(--ease);
}

.timeline-item:hover::before { transform: scale(1.25); }

.timeline-item strong {
  display: inline-block;
  color: var(--gold-dark);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
  font-family: var(--font-body);
}

/* ─── CAROUSEL ───────────────────────────────────── */
.carousel-container {
  position: relative;
  overflow: hidden;
  padding-bottom: var(--sp-8);
}

.carousel-track {
  display: flex;
  gap: var(--sp-24);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-card {
  min-width: calc(50% - 1.2rem);   /* 2 visible on desktop — 3rd always "next" */
  flex-shrink: 0;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--sp-32);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.carousel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.carousel-card h3    { margin-bottom: var(--sp-12); }
.carousel-card p     { margin-bottom: var(--sp-20); }

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 4.4rem; height: 4.4rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s var(--ease);
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  box-shadow: var(--shadow-gold);
  transform: translateY(-50%) scale(1.08);
}

.carousel-prev { left: -1.8rem; }
.carousel-next { right: -1.8rem; }

/* ─── PROGRESS BARS ──────────────────────────────── */
.progress-item { margin-bottom: var(--sp-4); }

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--sp-8);
}

.progress-label { font-size: 1.4rem; font-weight: 500; }
.progress-value { font-size: 1.4rem; font-weight: 600; color: var(--gold-dark); }
.progress-target { font-size: 1.2rem; color: var(--text-light); margin-top: var(--sp-8); }

.progress-track {
  background: var(--border);
  border-radius: var(--r-pill);
  height: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-radius: var(--r-pill);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── FORMS ──────────────────────────────────────── */
.form-group { margin-bottom: var(--sp-20); }

.form-label {
  display: block;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: var(--sp-8);
}

input, textarea, select {
  width: 100%;
  padding: 1.3rem 1.6rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 1.5rem;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  appearance: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,166,70,0.12);
  background: var(--surface);
}

textarea { resize: vertical; min-height: 140px; }

::placeholder { color: var(--text-light); }

/* ─── MAP ────────────────────────────────────────── */
.map-container {
  background: var(--surface);
  border-radius: var(--r-lg);
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* ─── DIVIDERS ───────────────────────────────────── */
hr, .divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--sp-48) 0;
}

.divider-gold { border-top-color: var(--gold-light); }

/* ─── ANIMATIONS ─────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-out);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for grid children */
.stagger > *:nth-child(1) { transition-delay: 0.05s; }
.stagger > *:nth-child(2) { transition-delay: 0.15s; }
.stagger > *:nth-child(3) { transition-delay: 0.25s; }
.stagger > *:nth-child(4) { transition-delay: 0.35s; }
.stagger > *:nth-child(5) { transition-delay: 0.45s; }
.stagger > *:nth-child(6) { transition-delay: 0.55s; }

/* ─── NAVBAR — SCROLLED STATE ────────────────────── */
.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(248,246,242,0.98);
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .hero { min-height: 76vh; }
  section { padding: var(--sp-64) 0; }
  .section-lg { padding: var(--sp-80) 0; }
  .container { padding: 0 var(--sp-32); }
}

@media (max-width: 768px) {
  section { padding: var(--sp-48) 0; }
  .section-sm { padding: var(--sp-32) 0; }
  .hero { min-height: auto; padding: var(--sp-80) 0 var(--sp-64); }
  .page-hero { padding: var(--sp-64) 0 var(--sp-48); }

  .grid-2, .grid-3, .grid-4, .split {
    grid-template-columns: 1fr;
    gap: var(--sp-20);
  }

  .carousel-card     { min-width: 100%; }
  .carousel-prev,
  .carousel-next     { display: none; }

  .card { padding: var(--sp-24); }
  blockquote, .pullquote { font-size: 1.7rem; }
}

@media (max-width: 480px) {
  html { font-size: 58%; }
  .container { padding: 0 var(--sp-20); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════
   IMAGE SYSTEM & MOTION DESIGN
   Premium animations: parallax, Ken Burns, reveal,
   hover-zoom, overlay treatment
═══════════════════════════════════════════════════ */

/* ─── HERO WITH BACKGROUND IMAGE ────────────────── */
.hero.has-image,
.page-hero.has-image {
  background: #1a1208; /* fallback while image loads */
  isolation: isolate;
}

/* Image layer — overflows section for parallax travel */
.hero-img-wrap {
  position: absolute;
  inset: -18% 0;              /* extra height = parallax travel room */
  z-index: 0;
  overflow: hidden;
  will-change: transform;
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  will-change: transform;
}

/* Darkening overlay — keeps text readable over any image */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    155deg,
    rgba(15,10,4,0.72)  0%,
    rgba(25,16,6,0.58)  45%,
    rgba(10,7,2,0.50)  100%
  );
  pointer-events: none;
}

/* ─── PAGE-HERO IMAGE WRAP (inner pages) ────────── */
.page-hero-img-wrap {
  position: absolute;
  inset: -18% 0;
  z-index: 0;
  overflow: hidden;
  will-change: transform;
}

.page-hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  will-change: transform;
}

/* Gold rim at the bottom of hero images — brand touch */
.hero-overlay::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,166,70,0.5), transparent);
}

/* Hero content sits above overlay */
.hero.has-image .container,
.page-hero.has-image .container {
  position: relative;
  z-index: 2;
}

/* Text color adjustments when on dark image background */
.hero.has-image .hero-content h1,
.page-hero.has-image h1 {
  color: #fff;
  text-shadow: 0 2px 32px rgba(0,0,0,0.3);
}

.hero.has-image .eyebrow,
.page-hero.has-image .eyebrow {
  color: var(--gold-mid);
}

.hero.has-image .lead,
.page-hero.has-image .lead {
  color: rgba(255,255,255,0.80);
}

/* Override btn-secondary for dark hero backgrounds */
.hero.has-image .btn-secondary,
.page-hero.has-image .btn-secondary {
  border-color: rgba(255,255,255,0.45);
  color: rgba(255,255,255,0.90);
}
.hero.has-image .btn-secondary:hover,
.page-hero.has-image .btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

/* ─── KEN BURNS EFFECT ───────────────────────────── */
/* Slow, dreamy zoom + drift — never loops abruptly  */
@keyframes kenBurns {
  0%   { transform: scale(1.00) translate(0%,     0%   ); }
  35%  { transform: scale(1.07) translate(-0.6%,  -0.4%); }
  70%  { transform: scale(1.10) translate( 0.4%,  -0.8%); }
  100% { transform: scale(1.00) translate(0%,     0%   ); }
}

.ken-burns {
  animation: kenBurns 30s ease-in-out infinite;
  will-change: transform;
  transform-origin: center center;
}

/* ─── IMAGE SCROLL REVEAL ────────────────────────── */
/* Images enter at scale(1.06) → scale(1), fade-up  */
.img-reveal {
  opacity: 0;
  transform: scale(1.06) translateY(18px);
  transition:
    opacity  0.95s cubic-bezier(0, 0, 0.2, 1),
    transform 0.95s cubic-bezier(0, 0, 0.2, 1);
  will-change: opacity, transform;
}

.img-reveal.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ─── HOVER ZOOM ON IMAGE WRAPPERS ───────────────── */
/* Wrap any <img> or bg-image div in .img-hover-zoom  */
.img-hover-zoom {
  overflow: hidden;
  border-radius: inherit;
  position: relative;
  display: block;
}

.img-hover-zoom img,
.img-hover-zoom .img-inner {
  transition: transform 0.70s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  display: block;
  width: 100%;
}

.img-hover-zoom:hover img,
.img-hover-zoom:hover .img-inner {
  transform: scale(1.07);
}

/* ─── SECTION SPLIT IMAGES ───────────────────────── */
/* Used in about, operations, sustainability splits    */
.section-img {
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  /* Restrained aspect ratio — 4:3 landscape          */
  aspect-ratio: 4 / 3;
}

.section-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.70s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.section-img:hover img { transform: scale(1.05); }

/* Taller variant for portrait compositions */
.section-img-tall { aspect-ratio: 3 / 4; }

/* Subtle gold border treatment */
.section-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(201,166,70,0.18);
  pointer-events: none;
  z-index: 2;
}

/* Image caption overlay */
.img-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--sp-16) var(--sp-20);
  background: linear-gradient(0deg, rgba(0,0,0,0.60) 0%, transparent 100%);
  color: rgba(255,255,255,0.88);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  z-index: 3;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}

/* ─── FULL-BLEED SECTION WITH BG IMAGE ──────────── */
/* E.g. the "testimonial" or "stat" sections          */
.section-with-image {
  position: relative;
  isolation: isolate;
}

.section-with-image .section-bg-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.section-with-image .section-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;  /* Very low opacity — tint, not full image */
}

/* ─── PARALLAX ELEMENTS (JS-driven) ─────────────── */
/* .parallax-img is moved by animations.js            */
.parallax-img {
  will-change: transform;
  transition: none !important;  /* JS owns this transform */
}

/* ─── CARD HOVER IMAGE LIFT ──────────────────────── */
/* Cards already have translateY hover — images inside
   get a matching zoom so they feel connected          */
.card .card-img-wrap {
  border-radius: calc(var(--r-lg) - 2px);
  overflow: hidden;
  margin: calc(-1 * var(--sp-32));
  margin-bottom: var(--sp-24);
}

.card .card-img-wrap img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.60s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.card:hover .card-img-wrap img { transform: scale(1.06); }

/* ─── STATS SECTION — SUBTLE BG TEXTURE ─────────── */
/* A very faint background image adds material depth  */
.stats-with-bg {
  position: relative;
  isolation: isolate;
}

.stats-with-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url('../assets/images/section-mine.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.04;   /* near-invisible texture */
  filter: grayscale(100%);
}

/* ─── LOADING STATE (while image downloads) ─────── */
.img-skeleton {
  background: linear-gradient(
    90deg,
    var(--border) 25%,
    var(--bg-warm) 50%,
    var(--border) 75%
  );
  background-size: 200% 100%;
  animation: skeleton 1.5s ease infinite;
}

@keyframes skeleton {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── REDUCED MOTION OVERRIDES ───────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ken-burns          { animation: none; }
  .img-reveal         { opacity: 1; transform: none; transition: none; }
  .img-hover-zoom img,
  .img-hover-zoom .img-inner { transition: none; }
  .section-img img    { transition: none; }
  .parallax-img       { transform: none !important; }
}
