/*
Theme Name:  EWT Theme
Theme URI:   https://exclusivewildernesstrails.com
Description: Exclusive Wilderness Trails — Full custom dark luxury WordPress theme. Built by Vanquish Brand Design.
Version:     1.0.0
Author:      Vanquish Brand Design
Author URI:  https://vanquish.co.ke
Text Domain: ewt
*/

/* ============================================================
   TABLE OF CONTENTS
   1. CSS Custom Properties (Design Tokens)
   2. @font-face Declarations
   3. Base Reset
   4. Body & Typography Defaults
   5. Utility Classes
   ============================================================ */


/* ============================================================
   1. CSS CUSTOM PROPERTIES — DESIGN TOKENS
   All colours, spacing, and typography values live here.
   Never hardcode hex values anywhere else in the codebase.
   ============================================================ */
:root {

  /* --- Backgrounds --- */
  --ewt-black:      #100E0B;   /* Page background — dark espresso          */
  --ewt-charcoal:   #171410;   /* Nav scrolled state, hero overlays         */
  --ewt-surface:    #1F1B16;   /* Cards, panels, content blocks             */
  --ewt-surface-2:  #2A251E;   /* Hover states, elevated surfaces           */
  --ewt-border:     #36302A;   /* Dividers, card borders                    */
  --ewt-footer:     #0D0B08;   /* Footer background — deepest tone          */

  /* --- Accent: Acacia Gold --- */
  --ewt-bronze:     #BF8C45;   /* Primary: rules, CTAs, eyebrows, links     */
  --ewt-ember:      #9A6E30;   /* Secondary: hover states, gradients        */
  --ewt-gold-light: #D2A464;   /* Brighter gold — price / stat numerals only */

  /* --- Text --- */
  --ewt-offwhite:   #EDE6D8;   /* Body copy — warm parchment                */
  --ewt-white:      #F5EFE4;   /* Headings (h1–h6) — brighter than offwhite */
  --ewt-muted:      #968C7F;   /* Metadata, labels, nav, footer, captions   */
  --ewt-ghost:      #4E463D;   /* Placeholders, disabled states             */

  /* --- Utility --- */
  --ewt-whatsapp:   #25D366;   /* WhatsApp CTA only — sole off-palette tone */

  /* --- Spacing --- */
  --ewt-max-width:  1200px;
  --ewt-pad-x:      80px;
  --ewt-pad-x-sm:   24px;
  --ewt-section-y:  120px;
  --ewt-section-y-sm: 80px;

  /* --- Typography --- */
  --ewt-font-display: 'Quine', Georgia, 'Times New Roman', serif;
  --ewt-font-body:    'Aileron', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* --- Transitions --- */
  --ewt-ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ewt-ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
}


/* ============================================================
   2. @FONT-FACE DECLARATIONS
   All fonts are self-hosted. Never load from Google CDN.
   Files live in assets/fonts/.
   ============================================================ */

/* Quine — display serif, headings only */
/* Path: wp-content/themes/ewt-theme/assets/fonts/quine-regular.woff */
@font-face {
  font-family: 'Quine';
  src: url('assets/fonts/quine-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Aileron — full weight stack for body and UI */
@font-face {
  font-family: 'Aileron';
  src: url('assets/fonts/Aileron-Thin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aileron';
  src: url('assets/fonts/Aileron-ThinItalic.otf') format('opentype');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Aileron';
  src: url('assets/fonts/Aileron-UltraLight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aileron';
  src: url('assets/fonts/Aileron-UltraLightItalic.otf') format('opentype');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Aileron';
  src: url('assets/fonts/Aileron-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aileron';
  src: url('assets/fonts/Aileron-LightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Aileron';
  src: url('assets/fonts/Aileron-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aileron';
  src: url('assets/fonts/Aileron-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Aileron';
  src: url('assets/fonts/Aileron-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aileron';
  src: url('assets/fonts/Aileron-SemiBoldItalic.otf') format('opentype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Aileron';
  src: url('assets/fonts/Aileron-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aileron';
  src: url('assets/fonts/Aileron-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Aileron';
  src: url('assets/fonts/Aileron-Heavy.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aileron';
  src: url('assets/fonts/Aileron-HeavyItalic.otf') format('opentype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Aileron';
  src: url('assets/fonts/Aileron-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aileron';
  src: url('assets/fonts/Aileron-BlackItalic.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}


/* ============================================================
   3. BASE RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--ewt-black);
  color: var(--ewt-offwhite);
  font-family: var(--ewt-font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* Remove default focus outline — replaced with custom below */
:focus { outline: none; }
:focus-visible {
  outline: 1px solid var(--ewt-bronze);
  outline-offset: 3px;
}


/* ============================================================
   4. TYPOGRAPHY DEFAULTS
   ============================================================ */

/* Display headings — Quine serif */
h1, h2, h3 {
  font-family: var(--ewt-font-display);
  font-weight: 400;
  color: var(--ewt-white);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem);   letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 3rem);  letter-spacing: -0.015em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 2rem); }

/* Subheadings and UI — Aileron */
h4, h5, h6 {
  font-family: var(--ewt-font-body);
  font-weight: 400;
  color: var(--ewt-white);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

h4 { font-size: 1.125rem; }
h5 { font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; }
h6 { font-size: 0.75rem;  letter-spacing: 0.12em; text-transform: uppercase; }

p {
  color: var(--ewt-offwhite);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  max-width: 68ch;
}

/* Eyebrow / label — bronze uppercase Aileron */
.ewt-eyebrow {
  font-family: var(--ewt-font-body);
  font-size: 0.6875rem;       /* 11px */
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ewt-bronze);
  display: block;
}

/* Pull quote / large editorial text */
.ewt-pull-quote {
  font-family: var(--ewt-font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--ewt-offwhite);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Quine enforcement — explicit declarations on all display elements.
   Ensures Quine renders regardless of inheritance chain or inline
   style blocks overriding component-level selectors. */
h1,
h2,
h3,
.ewt-pull-quote,
.ewt-hero__headline,
.ewt-testi__q,
.ewt-safari-card__title,
.ewt-blog-card__body h3,
.ewt-exp-card__body h3,
.ewt-trek__num {
  font-family: var(--ewt-font-display);
  font-weight: 400;
}


/* ============================================================
   5. UTILITY CLASSES
   ============================================================ */

/* --- Container --- */
.ewt-container {
  width: 100%;
  max-width: var(--ewt-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--ewt-pad-x);
  padding-right: var(--ewt-pad-x);
}

/* --- Section spacing --- */
.ewt-section {
  padding-top: var(--ewt-section-y);
  padding-bottom: var(--ewt-section-y);
}

/* --- Bronze rule --- */
.ewt-rule {
  display: block;
  width: 44px;
  height: 1px;
  background-color: var(--ewt-bronze);
  margin-bottom: 1.25rem;
}

/* Animated rule — drawn via JS on scroll entry */
.ewt-rule--animated {
  width: 0;
  transition: width 1.2s var(--ewt-ease-out);
}
.ewt-rule--animated.is-visible {
  width: 44px;
}

/* --- Buttons --- */
.ewt-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ewt-font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  transition: background-color 0.25s var(--ewt-ease),
              color 0.25s var(--ewt-ease),
              border-color 0.25s var(--ewt-ease);
  cursor: pointer;
  border: none;
}

/* Primary — bronze fill */
.ewt-btn--primary {
  background-color: var(--ewt-bronze);
  color: var(--ewt-black);
}
.ewt-btn--primary:hover {
  background-color: var(--ewt-ember);
}

/* Ghost — bronze border, transparent fill */
.ewt-btn--ghost {
  background-color: transparent;
  color: var(--ewt-bronze);
  border: 1px solid var(--ewt-bronze);
}
.ewt-btn--ghost:hover {
  background-color: var(--ewt-bronze);
  color: var(--ewt-black);
}

/* --- Surface / card background --- */
.ewt-surface   { background-color: var(--ewt-surface); }
.ewt-surface-2 { background-color: var(--ewt-surface-2); }

/* --- Text helpers --- */
.ewt-text-bronze  { color: var(--ewt-bronze); }
.ewt-text-muted   { color: var(--ewt-muted); }
.ewt-text-offwhite{ color: var(--ewt-offwhite); }

/* --- Scroll-reveal base state --- */
.ewt-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ewt-ease-out),
              transform 0.7s var(--ewt-ease-out);
}
.ewt-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children
   NOTE: scroll-reveal.js observes each child of .ewt-reveal-group
   individually and adds .is-visible directly to that child when it
   intersects — it never adds .is-visible to the group wrapper itself.
   These selectors target the child's own .is-visible class to match
   that behaviour. (Previously targeted .ewt-reveal-group.is-visible > *,
   which required the class on the parent — since JS never does that,
   group children never revealed at all.) */
.ewt-reveal-group > * {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ewt-ease-out),
              transform 0.7s var(--ewt-ease-out);
}
.ewt-reveal-group > *:nth-child(1) { transition-delay: 0s; }
.ewt-reveal-group > *:nth-child(2) { transition-delay: 0.1s; }
.ewt-reveal-group > *:nth-child(3) { transition-delay: 0.2s; }
.ewt-reveal-group > *:nth-child(4) { transition-delay: 0.3s; }
.ewt-reveal-group > *:nth-child(5) { transition-delay: 0.4s; }
.ewt-reveal-group > *.is-visible { opacity: 1; transform: translateY(0); }

/* --- Reduced motion overrides --- */
@media (prefers-reduced-motion: reduce) {
  .ewt-reveal,
  .ewt-reveal-group > *,
  .ewt-rule--animated {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .ewt-rule--animated { width: 44px; }
}

/* --- Responsive padding --- */
@media (max-width: 768px) {
  .ewt-container {
    padding-left: var(--ewt-pad-x-sm);
    padding-right: var(--ewt-pad-x-sm);
  }
  .ewt-section {
    padding-top: var(--ewt-section-y-sm);
    padding-bottom: var(--ewt-section-y-sm);
  }
}
