/* ============================================================
   PAGES.CSS — Karisyo Events
   Shared styles for all inner pages (events, about, contact).
   Load order: global.css → navbar.css → footer.css → pages.css → [page].css
   ============================================================ */


/* ── Page hero (inner pages) ────────────────────────────────── */
.page-hero {
  width: 100%;
  min-height: 52vh;
  background: var(--color-crimson);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 var(--gutter) clamp(4rem, 8vh, 6rem);
  position: relative;
  overflow: hidden;
}

/* Subtle butterfly watermark */
.page-hero-bg {
  position: absolute;
  right: -4vw;
  bottom: -4vw;
  width: clamp(260px, 40vw, 500px);
  height: clamp(260px, 40vw, 500px);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
}

.page-hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
}

.page-hero-title {
  font-family: var(--font-display);
  font-weight: normal;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1;
  color: var(--color-white);
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(30px);
}

.page-hero-title em {
  font-style: italic;
  color: var(--color-gold);
}

.page-hero-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.88rem, 1.5vw, 1.05rem);
  color: rgba(255,255,255,0.7);
  margin-top: 1.2rem;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
}

/* Divider line under hero */
.page-hero-rule {
  width: 44px;
  height: 2px;
  background: var(--color-gold);
  margin: 1.5rem auto 0;
  position: relative;
  z-index: 1;
  opacity: 0;
}


/* ── Page body wrapper ──────────────────────────────────────── */
.page-body {
  background: var(--color-bg);
}


/* ── Page section ───────────────────────────────────────────── */
.page-section {
  padding: clamp(6vh, 10vh, 12vh) var(--gutter);
  max-width: var(--max-width);
  margin-inline: auto;
}

.page-section-full {
  padding: clamp(6vh, 10vh, 12vh) var(--gutter);
}


/* ── Section label ──────────────────────────────────────────── */
.page-eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(16px);
}

.page-divider {
  width: 36px;
  height: 2px;
  background: var(--color-orange);
  margin-bottom: 2rem;
  opacity: 0;
}

.page-headline {
  font-family: var(--font-display);
  font-weight: normal;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.1;
  color: var(--color-crimson);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(24px);
}

.page-headline em {
  font-style: italic;
  color: var(--color-orange);
}

.page-body-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  line-height: 1.9;
  color: var(--color-teal);
  max-width: 680px;
  opacity: 0;
  transform: translateY(16px);
}


/* ── Shared card component ──────────────────────────────────── */
.page-card {
  background: var(--color-white);
  border: 1px solid rgba(62,78,80,0.08);
  padding: clamp(2rem, 3vw, 2.8rem);
  transition: box-shadow var(--dur-base) var(--ease-out-expo),
              transform  var(--dur-base) var(--ease-out-expo);
  opacity: 0;
  transform: translateY(30px);
}

.page-card:hover {
  box-shadow: 0 12px 40px rgba(167,34,39,0.08);
  transform: translateY(-4px);
}

.page-card-number {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--color-orange);
  margin-bottom: 1rem;
  display: block;
}

.page-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: normal;
  color: var(--color-crimson);
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.page-card-body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--color-teal);
  line-height: 1.8;
  opacity: 0.85;
}


/* ── CTA strip (shared) ─────────────────────────────────────── */
.page-cta-strip {
  background: var(--color-crimson);
  padding: clamp(6vh, 10vh, 14vh) var(--gutter);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.page-cta-headline {
  font-family: var(--font-display);
  font-weight: normal;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  color: var(--color-white);
  line-height: 1.08;
  opacity: 0;
  transform: translateY(30px);
}

.page-cta-headline em {
  font-style: italic;
  color: var(--color-gold);
}

.page-cta-btn {
  display: inline-block;
  padding: 0.95rem 3.5rem;
  border: 1.5px solid var(--color-white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-white);
  background: transparent;
  transition: background var(--dur-base) var(--ease-out-expo),
              color     var(--dur-base) var(--ease-out-expo);
  opacity: 0;
}

.page-cta-btn:hover {
  background: var(--color-white);
  color: var(--color-crimson);
}


/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .page-hero {
    min-height: 44vh;
    align-items: flex-start;
    padding-left: var(--gutter);
  }

  .page-section,
  .page-section-full {
    padding-top: 8vh;
    padding-bottom: 8vh;
  }
}

/* ══════════════════════════════════════════════════════════════
   PAGES-ENHANCED.CSS — Karisyo Events
   Design consistency layer for all inner pages.
   Load order: global.css → navbar.css → footer.css → pages.css → pages-enhanced.css → [page].css
══════════════════════════════════════════════════════════════ */

/* ── Page loader (consistent with home) ─────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--color-crimson);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.8rem;
  pointer-events: none;
}

.page-loader-logo {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--color-white);
  letter-spacing: 0.12em;
  overflow: hidden;
}

.page-loader-logo-inner {
  display: block;
  transform: translateY(100%);
}

.page-loader-bar-wrap {
  width: clamp(140px, 24vw, 220px);
  height: 1px;
  background: rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}

.page-loader-bar {
  position: absolute;
  inset: 0;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
}

/* ── Scroll progress bar ─────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-crimson), var(--color-orange), var(--color-gold));
  z-index: 999998;
  transform-origin: left;
}

/* ── Navbar: inner-page override (visible immediately) ──────── */
#navbar {
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

/* Crimson background on inner-page navbar */
#navbar {
  background: linear-gradient(to bottom, rgba(167,34,39,0.95) 0%, rgba(167,34,39,0) 100%);
  backdrop-filter: none;
}

/* Active nav link highlight */
.nav-right a.nav-active {
  opacity: 1;
  position: relative;
}

.nav-right a.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-gold);
}

/* ── Page hero enhancement ───────────────────────────────────── */
.page-hero {
  position: relative;
}

/* Grain overlay */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px;
  pointer-events: none;
}

/* Hero page number stamp */
.page-hero-num {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(4rem, 8vh, 6rem);
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 10rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.08);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ── Page section transitions ────────────────────────────────── */
.page-transition-line {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(62,78,80,0.12) 30%,
    rgba(62,78,80,0.12) 70%,
    transparent 100%
  );
  margin: 0;
}

/* ── Shared CTA strip enhancements ──────────────────────────── */
.page-cta-strip {
  position: relative;
  overflow: hidden;
}

.page-cta-strip::before {
  content: '';
  position: absolute;
  width: clamp(300px, 60vw, 700px);
  height: clamp(300px, 60vw, 700px);
  background: radial-gradient(circle, rgba(252,193,43,0.1) 0%, transparent 70%);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ── Typography boost ────────────────────────────────────────── */
.page-headline em {
  font-style: italic;
  color: var(--color-orange);
}

.page-cta-headline em {
  font-style: italic;
  color: var(--color-gold);
}

/* ── Section counter labels ──────────────────────────────────── */
.section-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(62,78,80,0.3);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.section-label::after {
  content: '';
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: currentColor;
}

/* ── Hover cards — consistent lift ──────────────────────────── */
.page-card,
.past-card,
.value-card,
.service-card {
  transition:
    box-shadow var(--dur-base) var(--ease-out-expo),
    transform  var(--dur-base) var(--ease-out-expo),
    border-color var(--dur-base) var(--ease-out-expo) !important;
}

/* ── Responsive global rules ─────────────────────────────────── */
@media (max-width: 768px) {
  .page-hero-num { display: none; }
  .section-label { margin-bottom: 1.2rem; }
}