/* ============================================================
   KAMPUNG UMMAH — Global Design System
   Color theme: Green / Gold / Brown / Blue
   ============================================================ */

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

/* ── Custom Properties ──────────────────────────────────── */
:root {
  /* Greens */
  --g-950: #071408;
  --g-900: #0d2a0d;
  --g-800: #143d14;
  --g-700: #1e5220;
  --g-600: #2d6e2a;
  --g-500: #3d8a38;
  --g-400: #55a84e;
  --g-300: #78c46e;
  --g-200: #a8dda0;
  --g-100: #d8f5d0;

  /* Golds */
  --gold-900: #3a2500;
  --gold-800: #5e3c00;
  --gold-700: #835400;
  --gold-600: #a86c00;
  --gold-500: #c48718;
  --gold-400: #d4a030;
  --gold-300: #e8c050;
  --gold-200: #f5dc80;
  --gold-100: #fdf3c8;

  /* Browns */
  --br-900: #1e0c00;
  --br-800: #3a1800;
  --br-700: #5c2a0a;
  --br-600: #7a3c18;
  --br-500: #9a5228;
  --br-400: #b86c40;
  --br-300: #d49068;
  --br-200: #ecbfa0;
  --br-100: #f8e4d4;

  /* Blues */
  --bl-900: #08131e;
  --bl-800: #102030;
  --bl-700: #1a3448;
  --bl-600: #264e6e;
  --bl-500: #346898;
  --bl-400: #4a88be;
  --bl-300: #6aaee0;
  --bl-200: #9ccef5;
  --bl-100: #d0ecff;

  /* Neutrals */
  --cream: #f8f3e8;
  --parchment: #ede4d0;
  --sand: #d4c8a8;
  --warm-gray: #8a8070;
  --dark-text: #1a1410;
  --light-text: #f0ebe0;

  /* Semantic */
  --primary: var(--g-600);
  --primary-dark: var(--g-800);
  --accent: var(--gold-400);
  --accent-light: var(--gold-200);

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-arabic: 'Amiri', serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.2);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 40px rgba(212,160,48,0.3);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 200ms;
  --t-base: 400ms;
  --t-slow: 700ms;
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--dark-text);
  background: var(--g-950);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 var(--space-md);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--t-base) var(--ease-out),
              backdrop-filter var(--t-base) var(--ease-out);
}

.nav.scrolled {
  background: rgba(13, 42, 13, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212,160,48,0.2);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-300);
}

.nav-logo .logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-arabic);
  font-size: 1.1rem;
  color: var(--gold-300);
  background: rgba(13,42,13,0.6);
}

.nav-logo .logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold-200);
  line-height: 1.1;
}

.nav-logo .logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--g-300);
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240,235,220,0.7);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-300);
  background: rgba(212,160,48,0.12);
}

.nav-links .nav-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--g-400);
  margin-right: 4px;
  opacity: 0.8;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold-300);
  border-radius: 2px;
  transition: all var(--t-base) var(--ease-out);
}

/* ── Mobile nav ─────────────────────────────────────────── */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(7,20,8,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold-200);
  letter-spacing: 0.05em;
  transition: color var(--t-fast);
}

.nav-mobile a:hover { color: var(--g-300); }

.nav-mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  cursor: pointer;
  color: var(--gold-300);
  font-size: 1.5rem;
  padding: 8px;
}

/* ── Hero / Parallax ────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  transition: transform 0ms linear;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(7,20,8,0.88) 0%,
    rgba(13,42,13,0.70) 40%,
    rgba(26,61,26,0.40) 70%,
    rgba(30,50,20,0.60) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--space-md);
  max-width: 900px;
  margin-left: 8%;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold-400);
  border-radius: 2px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 1.0;
  color: var(--light-text);
  margin-bottom: var(--space-sm);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.9s var(--ease-out) 0.4s forwards;
}

.hero-title .accent { color: var(--gold-300); }
.hero-title .green-accent { color: var(--g-300); }

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(240,235,220,0.8);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: var(--space-md);
  font-weight: 300;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease-out) 0.6s forwards;
}

.hero-cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease-out) 0.8s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(240,235,220,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(212,160,48,0.5);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-mouse::before {
  content: '';
  width: 4px;
  height: 8px;
  background: var(--gold-300);
  border-radius: 2px;
  animation: scrollDot 1.5s ease-in-out infinite;
}

/* ── Page number indicator ──────────────────────────────── */
.page-indicator {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(240,235,220,0.2);
  border: 1px solid rgba(212,160,48,0.3);
  cursor: pointer;
  transition: all var(--t-base) var(--ease-out);
  text-decoration: none;
}

.page-dot:hover,
.page-dot.active {
  background: var(--gold-400);
  transform: scale(1.4);
  box-shadow: 0 0 8px rgba(212,160,48,0.5);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all var(--t-base) var(--ease-out);
}

.btn-primary {
  background: var(--gold-400);
  color: var(--g-900);
  box-shadow: 0 4px 20px rgba(212,160,48,0.4);
}

.btn-primary:hover {
  background: var(--gold-300);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212,160,48,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--light-text);
  border: 1.5px solid rgba(240,235,220,0.4);
}

.btn-outline:hover {
  border-color: var(--gold-300);
  color: var(--gold-300);
  background: rgba(212,160,48,0.1);
  transform: translateY(-2px);
}

.btn-green {
  background: var(--g-600);
  color: var(--light-text);
  box-shadow: 0 4px 20px rgba(45,110,42,0.4);
}

.btn-green:hover {
  background: var(--g-500);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(45,110,42,0.5);
}

/* ── Section Layouts ─────────────────────────────────────── */
.section {
  padding: var(--space-xl) var(--space-md);
  max-width: 1400px;
  margin: 0 auto;
}

.section-dark {
  background: var(--g-900);
  max-width: none;
  padding: var(--space-xl) var(--space-md);
}

.section-dark .section-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.section-leaf {
  background: var(--g-950);
  max-width: none;
  padding: var(--space-xl) var(--space-md);
}

.section-leaf .section-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.section-gold {
  background: linear-gradient(135deg, var(--gold-900) 0%, var(--br-800) 100%);
  max-width: none;
  padding: var(--space-xl) var(--space-md);
}

.section-gold .section-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.section-blue {
  background: linear-gradient(135deg, var(--bl-900) 0%, var(--bl-800) 100%);
  max-width: none;
  padding: var(--space-xl) var(--space-md);
}

.section-blue .section-inner {
  max-width: 1400px;
  margin: 0 auto;
}

/* ── Section Headers ─────────────────────────────────────── */
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-400);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-sm);
}

.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold-400);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--light-text);
  margin-bottom: var(--space-sm);
}

.section-title .highlight { color: var(--gold-300); }
.section-title .green-hl { color: var(--g-300); }
.section-title .blue-hl { color: var(--bl-300); }

.section-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(240,235,220,0.72);
  max-width: 640px;
  font-weight: 300;
}

.section-header { margin-bottom: var(--space-lg); }

.section-header-center {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header-center .section-label { justify-content: center; }
.section-header-center .section-label::before { display: none; }
.section-header-center .section-desc { margin: 0 auto; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212,160,48,0.25);
}

.card-gold {
  background: rgba(212,160,48,0.08);
  border-color: rgba(212,160,48,0.2);
}

.card-green {
  background: rgba(45,110,42,0.1);
  border-color: rgba(45,110,42,0.25);
}

.card-blue {
  background: rgba(52,104,152,0.1);
  border-color: rgba(52,104,152,0.25);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  font-size: 1.6rem;
}

.card-icon-gold { background: rgba(212,160,48,0.15); }
.card-icon-green { background: rgba(45,110,42,0.2); }
.card-icon-blue { background: rgba(52,104,152,0.2); }
.card-icon-brown { background: rgba(154,82,40,0.2); }

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--light-text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(240,235,220,0.65);
}

/* ── Grid Layouts ────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-md); }

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,160,48,0.3), transparent);
  margin: var(--space-lg) 0;
}

.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.divider-ornament::before,
.divider-ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,160,48,0.3));
}

.divider-ornament::after {
  background: linear-gradient(90deg, rgba(212,160,48,0.3), transparent);
}

.ornament-gem {
  width: 10px;
  height: 10px;
  background: var(--gold-400);
  transform: rotate(45deg);
  border-radius: 2px;
}

/* ── Quote blocks ────────────────────────────────────────── */
.quran-quote {
  position: relative;
  padding: var(--space-md) var(--space-lg);
  border-left: 4px solid var(--gold-400);
  margin: var(--space-md) 0;
}

.quran-quote .arabic {
  font-family: var(--font-arabic);
  font-size: 1.6rem;
  color: var(--gold-300);
  line-height: 2;
  direction: rtl;
  text-align: right;
  display: block;
  margin-bottom: var(--space-sm);
}

.quran-quote .translation {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(240,235,220,0.8);
  line-height: 1.7;
}

.quran-quote .reference {
  font-size: 0.78rem;
  color: var(--gold-400);
  letter-spacing: 0.1em;
  margin-top: 8px;
  display: block;
}

/* ── Parallax section ────────────────────────────────────── */
.parallax-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: -30%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(7,20,8,0.85) 0%,
    rgba(13,42,13,0.70) 100%
  );
}

.parallax-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--space-lg) var(--space-md);
  max-width: 1400px;
  margin: 0 auto;
}

/* ── Vision list ─────────────────────────────────────────── */
.vision-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vision-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius-md);
  transition: background var(--t-base);
}

.vision-item:hover {
  background: rgba(255,255,255,0.04);
}

.vision-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 48px;
  text-align: center;
  padding-top: 4px;
}

.vision-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-200);
  margin-bottom: 6px;
}

.vision-content p {
  font-size: 0.875rem;
  color: rgba(240,235,220,0.65);
  line-height: 1.7;
}

/* ── Achievement chips ───────────────────────────────────── */
.achieve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.achieve-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,160,48,0.15);
  border-radius: var(--radius-md);
  transition: all var(--t-base) var(--ease-out);
}

.achieve-chip:hover {
  background: rgba(212,160,48,0.1);
  border-color: rgba(212,160,48,0.35);
  transform: translateY(-3px);
}

.achieve-chip-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.achieve-chip h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--light-text);
  line-height: 1.2;
}

.achieve-chip p {
  font-size: 0.75rem;
  color: rgba(240,235,220,0.55);
  line-height: 1.4;
  margin-top: 2px;
}

/* ── Numbered step ───────────────────────────────────────── */
.step-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-sm);
  position: relative;
}

.step-item {
  text-align: center;
  padding: var(--space-md) var(--space-sm);
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-600), var(--gold-400));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--g-900);
  margin: 0 auto var(--space-sm);
  box-shadow: 0 4px 16px rgba(212,160,48,0.3);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--light-text);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.85rem;
  color: rgba(240,235,220,0.6);
  line-height: 1.6;
}

/* ── Stats bar ───────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.stat-item {
  text-align: center;
  padding: var(--space-sm);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-300);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(240,235,220,0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Tag pills ───────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag-gold { background: rgba(212,160,48,0.15); color: var(--gold-300); border: 1px solid rgba(212,160,48,0.3); }
.tag-green { background: rgba(45,110,42,0.15); color: var(--g-300); border: 1px solid rgba(45,110,42,0.3); }
.tag-blue { background: rgba(52,104,152,0.15); color: var(--bl-300); border: 1px solid rgba(52,104,152,0.3); }
.tag-brown { background: rgba(154,82,40,0.15); color: var(--br-300); border: 1px solid rgba(154,82,40,0.3); }

/* ── Feature highlight ───────────────────────────────────── */
.feature-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.feature-highlight.reverse { direction: rtl; }
.feature-highlight.reverse > * { direction: ltr; }

.feature-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.feature-image:hover img { transform: scale(1.04); }

/* ── Page footer ─────────────────────────────────────────── */
.page-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-md);
  border-top: 1px solid rgba(212,160,48,0.15);
  max-width: 1400px;
  margin: 0 auto;
}

.page-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(240,235,220,0.6);
  font-size: 0.85rem;
  transition: color var(--t-fast);
}

.page-nav-link:hover { color: var(--gold-300); }

.page-nav-link .arrow {
  font-size: 1.2rem;
  transition: transform var(--t-fast);
}

.page-nav-link:hover .arrow { transform: translateX(4px); }
.page-nav-link.prev:hover .arrow { transform: translateX(-4px); }

.page-nav-link .page-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: inherit;
}

.site-footer {
  background: var(--g-950);
  padding: var(--space-lg) var(--space-md) var(--space-md);
  border-top: 1px solid rgba(212,160,48,0.1);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-md);
  align-items: center;
}

.footer-brand .logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-300);
  margin-bottom: 4px;
}

.footer-brand p {
  font-size: 0.8rem;
  color: rgba(240,235,220,0.4);
  letter-spacing: 0.1em;
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.footer-links a {
  font-size: 0.8rem;
  color: rgba(240,235,220,0.4);
  transition: color var(--t-fast);
}

.footer-links a:hover { color: var(--gold-300); }

.footer-bottom {
  max-width: 1400px;
  margin: var(--space-md) auto 0;
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  font-size: 0.75rem;
  color: rgba(240,235,220,0.25);
}

/* ── Scroll animations ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }
.reveal-delay-6 { transition-delay: 600ms; }

/* ── Keyframes ───────────────────────────────────────────── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(212,160,48,0.2); }
  50% { box-shadow: 0 0 30px rgba(212,160,48,0.5); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.anim-float { animation: float 4s ease-in-out infinite; }
.anim-pulse { animation: pulse-glow 3s ease-in-out infinite; }

/* ── Decorative elements ─────────────────────────────────── */
.deco-dots {
  position: absolute;
  width: 200px;
  height: 200px;
  background-image: radial-gradient(circle, rgba(212,160,48,0.25) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  opacity: 0.4;
  pointer-events: none;
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(212,160,48,0.15);
  pointer-events: none;
}

.gradient-text {
  background: linear-gradient(135deg, var(--gold-300), var(--g-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Specialty badge ─────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.badge-gold {
  background: linear-gradient(135deg, var(--gold-700), var(--gold-500));
  color: var(--gold-100);
  box-shadow: 0 2px 12px rgba(212,160,48,0.3);
}

.badge-green {
  background: linear-gradient(135deg, var(--g-700), var(--g-500));
  color: var(--g-100);
  box-shadow: 0 2px 12px rgba(45,110,42,0.3);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-highlight { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 5rem;
  }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .hero-content {
    margin-left: 0;
    padding: 0 var(--space-sm);
  }

  .page-indicator { display: none; }

  .feature-highlight.reverse { direction: ltr; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; gap: var(--space-sm); }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

/* ── Progress bar ────────────────────────────────────────── */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--g-400), var(--gold-400));
  z-index: 200;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(212,160,48,0.5);
}

/* ── Image credit overlay ────────────────────────────────── */
.img-overlay {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.img-overlay img {
  width: 100%;
  display: block;
  transition: transform var(--t-slow) var(--ease-out);
}

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

.img-overlay-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(7,20,8,0.9), transparent);
}

/* ── Full-width image divider ────────────────────────────── */
.img-divider {
  width: 100%;
  height: 400px;
  position: relative;
  overflow: hidden;
}

.img-divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.img-divider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--g-900) 0%,
    transparent 30%,
    transparent 70%,
    var(--g-900) 100%
  );
}
