/* ================================================================
   EYE SEE TOUR — DESIGN SYSTEM
   Token-based, Bootstrap-augmented CSS design system.
   Institutional-grade. Premium. Human-centered.
   ================================================================ */

/* ── 1. DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Brand Palette */
  --est-green-900:  #0D2318;
  --est-green-800:  #1A3D2B;   /* Primary brand green */
  --est-green-700:  #1F4D34;
  --est-green-600:  #2E6644;
  --est-green-500:  #3D8056;
  --est-green-100:  #E8F5EE;

  --est-gold-600:   #B8860B;
  --est-gold-500:   #D4A853;   /* Primary gold */
  --est-gold-400:   #E8C47A;
  --est-gold-100:   #FDF6E3;

  --est-terra-700:  #8B3A1A;
  --est-terra-600:  #A0522D;
  --est-terra-500:  #C4622D;   /* Terracotta accent */

  /* Neutrals */
  --est-white:      #FFFFFF;
  --est-cream-100:  #FAFAF8;
  --est-cream-200:  #F4F0E8;
  --est-cream-300:  #EDE8DE;
  --est-stone-200:  #E5E1D8;
  --est-stone-400:  #C8C2B6;
  --est-stone-600:  #8B8578;
  --est-dark-400:   #4A4A4A;
  --est-dark-700:   #1F1F1F;
  --est-dark-900:   #0F0F0F;

  /* Semantic Colors */
  --est-color-primary:        var(--est-green-800);
  --est-color-primary-hover:  var(--est-green-700);
  --est-color-secondary:      var(--est-gold-500);
  --est-color-accent:         var(--est-terra-500);
  --est-color-success:        #059669;
  --est-color-error:          #DC2626;
  --est-color-wa:             #25D366;

  /* Background Tokens */
  --est-bg-body:    var(--est-cream-100);
  --est-bg-light:   var(--est-white);
  --est-bg-cream:   var(--est-cream-200);
  --est-bg-dark:    var(--est-green-800);
  --est-bg-section: var(--est-cream-100);

  /* Text Tokens */
  --est-text-primary:   var(--est-dark-700);
  --est-text-secondary: var(--est-dark-400);
  --est-text-muted:     var(--est-stone-600);
  --est-text-light:     rgba(255,255,255,0.90);
  --est-text-light-muted: rgba(255,255,255,0.68);

  /* Typography */
  --est-font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --est-lh-base:    1.7;
  --est-lh-tight:   1.25;
  --est-lh-heading: 1.15;

  /* Font Weights */
  --est-fw-light:    300;
  --est-fw-normal:   400;
  --est-fw-medium:   500;
  --est-fw-semibold: 600;
  --est-fw-bold:     700;
  --est-fw-black:    800;

  /* Font Sizes */
  --est-fs-xs:   0.75rem;    /* 12px */
  --est-fs-sm:   0.875rem;   /* 14px */
  --est-fs-base: 1rem;       /* 16px */
  --est-fs-md:   1.0625rem;  /* 17px */
  --est-fs-lg:   1.125rem;   /* 18px */
  --est-fs-xl:   1.25rem;    /* 20px */
  --est-fs-2xl:  1.5rem;     /* 24px */
  --est-fs-3xl:  1.875rem;   /* 30px */
  --est-fs-4xl:  2.25rem;    /* 36px */
  --est-fs-5xl:  3rem;       /* 48px */
  --est-fs-6xl:  3.75rem;    /* 60px */
  --est-fs-7xl:  4.5rem;     /* 72px */

  /* Spacing Scale */
  --est-sp-1:  0.25rem;
  --est-sp-2:  0.5rem;
  --est-sp-3:  0.75rem;
  --est-sp-4:  1rem;
  --est-sp-5:  1.25rem;
  --est-sp-6:  1.5rem;
  --est-sp-8:  2rem;
  --est-sp-10: 2.5rem;
  --est-sp-12: 3rem;
  --est-sp-16: 4rem;
  --est-sp-20: 5rem;
  --est-sp-24: 6rem;
  --est-sp-32: 8rem;

  /* Border Radius */
  --est-radius-xs:  4px;
  --est-radius-sm:  8px;
  --est-radius-md:  12px;
  --est-radius-lg:  20px;
  --est-radius-xl:  28px;
  --est-radius-2xl: 40px;
  --est-radius-full: 9999px;

  /* Shadows */
  --est-shadow-xs: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --est-shadow-sm: 0 2px 8px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.04);
  --est-shadow-md: 0 4px 20px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.05);
  --est-shadow-lg: 0 8px 40px rgba(0,0,0,0.13), 0 3px 10px rgba(0,0,0,0.06);
  --est-shadow-xl: 0 16px 60px rgba(0,0,0,0.16), 0 6px 20px rgba(0,0,0,0.08);
  --est-shadow-card: 0 2px 16px rgba(26,61,43,0.08);
  --est-shadow-card-hover: 0 8px 32px rgba(26,61,43,0.16);

  /* Transitions */
  --est-ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --est-ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --est-ease-in:    cubic-bezier(0.4, 0, 1, 1);
  --est-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --est-duration-fast:   150ms;
  --est-duration-base:   250ms;
  --est-duration-slow:   400ms;
  --est-duration-slower: 600ms;

  /* Layout */
  --est-nav-height:    72px;
  --est-section-py:    96px;
  --est-section-py-sm: 64px;
  --est-container-xl:  1280px;
}


/* ── 2. BASE RESET & BODY ──────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

.est-body {
  font-family: var(--est-font);
  font-size: var(--est-fs-base);
  font-weight: var(--est-fw-normal);
  line-height: var(--est-lh-base);
  color: var(--est-text-primary);
  background-color: var(--est-bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  background: var(--est-color-primary);
  color: var(--est-white);
  padding: 12px 20px;
  border-radius: var(--est-radius-sm);
  font-weight: var(--est-fw-semibold);
  text-decoration: none;
  transition: top var(--est-duration-base) var(--est-ease);
}
.skip-nav:focus { top: 16px; }

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


/* ── 3. TYPOGRAPHY SYSTEM ─────────────────────────────────────── */
.est-section-eyebrow {
  display: inline-block;
  font-size: var(--est-fs-xs);
  font-weight: var(--est-fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--est-color-secondary);
  margin-bottom: var(--est-sp-3);
}
.est-eyebrow-light { color: var(--est-gold-400); }

.est-section-title {
  font-size: clamp(var(--est-fs-3xl), 4vw, var(--est-fs-5xl));
  font-weight: var(--est-fw-black);
  line-height: var(--est-lh-heading);
  letter-spacing: -0.02em;
  color: var(--est-text-primary);
  margin-bottom: var(--est-sp-4);
}
.est-title-light   { color: var(--est-text-light); }
.est-text-gold     { color: var(--est-gold-400); }

.est-section-subtitle {
  font-size: var(--est-fs-lg);
  color: var(--est-text-secondary);
  line-height: var(--est-lh-base);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.est-body-light { color: var(--est-text-light-muted); margin-bottom: var(--est-sp-4); }
.est-section-link {
  display: inline-flex;
  align-items: center;
  gap: var(--est-sp-1);
  font-size: var(--est-fs-sm);
  font-weight: var(--est-fw-semibold);
  color: var(--est-color-primary);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color var(--est-duration-base) var(--est-ease),
              color var(--est-duration-base) var(--est-ease);
  white-space: nowrap;
}
.est-section-link:hover {
  color: var(--est-green-600);
  border-bottom-color: var(--est-green-600);
}


/* ── 4. SECTION LAYOUT ────────────────────────────────────────── */
.est-section {
  padding-top: var(--est-section-py);
  padding-bottom: var(--est-section-py);
}
.est-section-header {
  margin-bottom: var(--est-sp-12);
}

/* Section Colour Variants */
.est-section-white  { background: var(--est-white); }
.est-section-light  { background: var(--est-cream-100); }
.est-section-cream  { background: var(--est-cream-200); }
.est-section-dark   { background: var(--est-bg-dark); }
.est-section-cta    { background: var(--est-green-900); }

@media (max-width: 768px) {
  .est-section {
    padding-top: var(--est-section-py-sm);
    padding-bottom: var(--est-section-py-sm);
  }
}


/* ── 5. NAVIGATION ────────────────────────────────────────────── */
.est-navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.est-navbar {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--est-stone-200);
  padding: 0;
  height: var(--est-nav-height);
  transition: background var(--est-duration-base) var(--est-ease),
              box-shadow var(--est-duration-base) var(--est-ease);
}
.est-navbar.scrolled {
  box-shadow: var(--est-shadow-md);
  background: rgba(255,255,255,0.98);
}

.est-navbar-container {
  display: flex;
  align-items: center;
  height: var(--est-nav-height);
}

/* Brand */
.est-brand {
  display: flex;
  align-items: center;
  gap: var(--est-sp-3);
  text-decoration: none;
}
.est-brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--est-radius-sm);
  background: var(--est-color-primary);
  color: var(--est-white);
  font-size: 1.125rem;
  flex-shrink: 0;
}
.est-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.est-brand-name {
  font-size: var(--est-fs-md);
  font-weight: var(--est-fw-bold);
  color: var(--est-color-primary);
  letter-spacing: -0.01em;
}
.est-brand-tagline {
  font-size: var(--est-fs-xs);
  color: var(--est-text-muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* Nav Links */
.est-nav-links { align-items: center; gap: var(--est-sp-1); }
.est-nav-link {
  font-size: var(--est-fs-sm);
  font-weight: var(--est-fw-medium);
  color: var(--est-text-secondary) !important;
  padding: var(--est-sp-2) var(--est-sp-3) !important;
  border-radius: var(--est-radius-xs);
  transition: color var(--est-duration-fast) var(--est-ease),
              background var(--est-duration-fast) var(--est-ease);
  letter-spacing: 0.01em;
}
.est-nav-link:hover,
.est-nav-link.active,
.est-nav-link.show {
  color: var(--est-color-primary) !important;
  background: var(--est-green-100);
}
.est-nav-wa { color: var(--est-color-wa) !important; }
.est-nav-wa:hover { background: rgba(37,211,102,0.10) !important; }

/* Dropdown */
.est-dropdown {
  border: 1px solid var(--est-stone-200);
  border-radius: var(--est-radius-md);
  box-shadow: var(--est-shadow-lg);
  padding: var(--est-sp-2);
  min-width: 220px;
  margin-top: var(--est-sp-2) !important;
}
.est-dropdown-item {
  border-radius: var(--est-radius-xs);
  font-size: var(--est-fs-sm);
  font-weight: var(--est-fw-medium);
  color: var(--est-text-secondary);
  padding: var(--est-sp-2) var(--est-sp-3);
  transition: all var(--est-duration-fast) var(--est-ease);
}
.est-dropdown-item:hover {
  background: var(--est-green-100);
  color: var(--est-color-primary);
}
.est-divider { border-color: var(--est-stone-200); }

/* Nav CTA */
.est-nav-cta {
  font-size: var(--est-fs-sm);
  font-weight: var(--est-fw-semibold);
  padding: 0.5rem 1.25rem;
  flex-shrink: 0;
}

/* Mobile Toggle */
.est-nav-toggle {
  border: none;
  background: none;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.est-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--est-color-primary);
  border-radius: 2px;
  transition: all var(--est-duration-base) var(--est-ease);
}


/* ── 6. BUTTONS ───────────────────────────────────────────────── */
.btn { font-weight: var(--est-fw-semibold); border-radius: var(--est-radius-sm); }

.est-btn-primary {
  background: var(--est-color-primary);
  color: var(--est-white) !important;
  border: 2px solid var(--est-color-primary);
  padding: 0.6875rem 1.5rem;
  transition: all var(--est-duration-base) var(--est-ease);
}
.est-btn-primary:hover, .est-btn-primary:focus {
  background: var(--est-green-700);
  border-color: var(--est-green-700);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,61,43,0.30);
}

.est-btn-outline-primary {
  background: transparent;
  color: var(--est-color-primary) !important;
  border: 2px solid var(--est-color-primary);
  padding: 0.6875rem 1.5rem;
  transition: all var(--est-duration-base) var(--est-ease);
}
.est-btn-outline-primary:hover, .est-btn-outline-primary:focus {
  background: var(--est-color-primary);
  color: var(--est-white) !important;
  transform: translateY(-1px);
}

.est-btn-outline-secondary {
  background: transparent;
  color: var(--est-text-secondary) !important;
  border: 2px solid var(--est-stone-400);
  padding: 0.6875rem 1.5rem;
  transition: all var(--est-duration-base) var(--est-ease);
}
.est-btn-outline-secondary:hover {
  background: var(--est-cream-200);
  border-color: var(--est-stone-600);
}

.est-btn-hero-primary {
  background: var(--est-color-secondary);
  color: var(--est-dark-900) !important;
  border: 2px solid var(--est-color-secondary);
  padding: 0.875rem 2rem;
  font-size: var(--est-fs-md);
  border-radius: var(--est-radius-md);
  transition: all var(--est-duration-base) var(--est-ease);
}
.est-btn-hero-primary:hover, .est-btn-hero-primary:focus {
  background: var(--est-gold-400);
  border-color: var(--est-gold-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,168,83,0.40);
}

.est-btn-hero-secondary {
  background: rgba(255,255,255,0.12);
  color: var(--est-white) !important;
  border: 2px solid rgba(255,255,255,0.40);
  padding: 0.875rem 2rem;
  font-size: var(--est-fs-md);
  border-radius: var(--est-radius-md);
  backdrop-filter: blur(8px);
  transition: all var(--est-duration-base) var(--est-ease);
}
.est-btn-hero-secondary:hover, .est-btn-hero-secondary:focus {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.70);
  transform: translateY(-2px);
}

.est-btn-gold {
  background: var(--est-color-secondary);
  color: var(--est-dark-900) !important;
  border: 2px solid var(--est-color-secondary);
  padding: 0.6875rem 1.5rem;
  transition: all var(--est-duration-base) var(--est-ease);
}
.est-btn-gold:hover {
  background: var(--est-gold-400);
  border-color: var(--est-gold-400);
  transform: translateY(-1px);
}

.est-btn-wa {
  background: var(--est-color-wa);
  color: var(--est-white) !important;
  border: 2px solid var(--est-color-wa);
  padding: 0.6875rem 1.5rem;
  transition: all var(--est-duration-base) var(--est-ease);
}
.est-btn-wa:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}

.est-btn-card {
  background: transparent;
  color: var(--est-color-primary) !important;
  border: 1.5px solid var(--est-color-primary);
  padding: 0.4375rem 1rem;
  font-size: var(--est-fs-sm);
  transition: all var(--est-duration-fast) var(--est-ease);
}
.est-btn-card:hover {
  background: var(--est-color-primary);
  color: var(--est-white) !important;
}

.est-btn-large { padding: 1rem 2.5rem; font-size: var(--est-fs-lg); }


/* ── 7. HERO SECTION ──────────────────────────────────────────── */
/* Hero scale: Release A step 2. Calm and premium: no longer full-screen, solid gold instead of gradient text,
   lighter weights, smaller type. */
.est-hero {
  position: relative;
  min-height: 600px;
  min-height: min(78svh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--est-white);
}

.est-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.est-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.est-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10,25,18,0.82) 0%,
    rgba(26,61,43,0.70) 50%,
    rgba(10,25,18,0.75) 100%
  );
}
/* Gradient fallback when no hero image exists */
.est-hero:not(:has(.est-hero-img)) .est-hero-bg,
.est-hero-img:not([src]) ~ .est-hero-overlay {
  background: linear-gradient(
    160deg,
    #0D2318 0%,
    #1A3D2B 45%,
    #0F2B1E 100%
  );
}
.est-hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.90' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}

.est-hero-content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--est-nav-height) + var(--est-sp-8));
  padding-bottom: var(--est-sp-16);
}

.est-hero-eyebrow { margin-bottom: var(--est-sp-5); }
.est-eyebrow-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.95);
  font-size: var(--est-fs-sm);
  font-weight: var(--est-fw-medium);
  padding: 0.375rem 1rem;
  border-radius: var(--est-radius-full);
  backdrop-filter: blur(8px);
  letter-spacing: 0.02em;
}

.est-hero-headline {
  font-size: clamp(var(--est-fs-4xl), 3.8vw, 3.5rem);
  font-weight: var(--est-fw-bold);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--est-white);
  margin-bottom: var(--est-sp-4);
}
.est-hero-highlight {
  display: block;
  max-width: 44rem;
  margin: var(--est-sp-4) auto 0;
  font-size: clamp(var(--est-fs-md), 1.5vw, var(--est-fs-xl));
  font-weight: var(--est-fw-medium);
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--est-gold-400);
}

.est-hero-subtext {
  font-size: clamp(var(--est-fs-base), 1.2vw, var(--est-fs-lg));
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto var(--est-sp-8);
}

.est-hero-actions {
  display: flex;
  gap: var(--est-sp-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--est-sp-10);
}

/* Hero Stats */
.est-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--est-radius-xl);
  backdrop-filter: blur(12px);
  padding: var(--est-sp-4) var(--est-sp-6);
  flex-wrap: wrap;
  gap: var(--est-sp-6);
}
.est-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--est-sp-1);
}
.est-stat-number {
  font-size: var(--est-fs-xl);
  font-weight: var(--est-fw-bold);
  color: var(--est-gold-400);
  letter-spacing: -0.02em;
  line-height: 1;
}
.est-stat-label {
  font-size: var(--est-fs-xs);
  color: rgba(255,255,255,0.70);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: var(--est-fw-medium);
}
.est-hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.20);
  display: none;
}
@media (min-width: 576px) {
  .est-hero-stats { gap: 0; }
  .est-hero-stat-divider { display: block; }
  .est-hero-stat { padding: 0 var(--est-sp-6); }
}

/* Scroll Hint */
.est-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.est-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.60), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1.0; transform: scaleY(1.2); }
}


/* ── 8. PAGE HERO (inner pages) ───────────────────────────────── */
.est-page-hero {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--est-white);
  overflow: hidden;
}
.est-page-hero-sm { min-height: 380px; }

.est-page-hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--est-nav-height) + var(--est-sp-16)) 0 var(--est-sp-16);
}
.est-page-hero-title {
  font-size: clamp(var(--est-fs-3xl), 5vw, var(--est-fs-5xl));
  font-weight: var(--est-fw-black);
  letter-spacing: -0.025em;
  line-height: var(--est-lh-heading);
  color: var(--est-white);
  margin-bottom: var(--est-sp-4);
}
.est-page-hero-subtitle {
  font-size: var(--est-fs-lg);
  color: rgba(255,255,255,0.78);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.65;
}
