/*
Theme Name: P5 ROCK
Theme URI: https://p5prive.com
Author: P5 Rock
Author URI: https://p5prive.com
Description: Ultra-premium dark luxury theme for P5 Rock Asset Management — crafted for HNI, NRI, and institutional investors. PHP 8.4 compatible.
Version: 2.0.0
License: Private
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: p5rock
Tags: dark, luxury, finance, investment, premium
*/

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

:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-dim: #8B7035;
  --black: #080808;
  --dark: #0D0D0D;
  --dark-2: #121212;
  --dark-3: #1A1A1A;
  --dark-4: #222222;
  --white: #FFFFFF;
  --white-80: rgba(255,255,255,0.80);
  --white-70: rgba(255,255,255,0.70);
  --white-60: rgba(255,255,255,0.60);
  --white-30: rgba(255,255,255,0.30);
  --white-10: rgba(255,255,255,0.08);
  --white-05: rgba(255,255,255,0.05); /* V1.13 - Very subtle white */
  --gold-rgba: rgba(201,168,76,0.15);
  --gold-border: rgba(201,168,76,0.30);
  --font-display: 'Cormorant Garamond', 'Garamond', Georgia, serif;
  --font-body: 'Jost', 'Helvetica Neue', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --max-w: 1280px;
  --section-pad: 120px 0;
  --transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}

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

body {
  background: var(--black);
  color: var(--white-80);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=Jost:wght@200;300;400;500;600&family=DM+Mono:wght@300;400&display=swap');

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--white); line-height: 1.15; }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 300; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 300; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 400; }
h4 { font-size: 1.2rem; font-weight: 500; }
p { font-size: 1rem; line-height: 1.8; color: var(--white-60); }
a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }
strong { color: var(--white); font-weight: 500; }
em { font-style: italic; color: var(--gold); }

.gold { color: var(--gold); }
.gold-light { color: var(--gold-light); }
.white { color: var(--white); }
.italic { font-style: italic; font-family: var(--font-display); }

/* === LAYOUT === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 40px; }
section { padding: var(--section-pad); position: relative; }

/* === HEADER / NAV === */
/* ═══════════════════════════════════════════════════════════════════════════ */
/* HEADER & NAVIGATION - V1.17 - PREMIUM DESKTOP MENU                         */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* ── Header Bar ────────────────────────────────────────────────────────────── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 28px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  transition: all 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  border-bottom: 1px solid transparent;
  background: transparent;
}

/* Scrolled — compact glass bar with gold underline */
#site-header.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--gold-border);
  padding: 14px 48px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}

/* ── Logo ──────────────────────────────────────────────────────────────────── */
.site-logo { flex-shrink: 0; }
.site-logo a { display: flex; align-items: center; text-decoration: none; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.05em;
  transition: var(--transition);
}
.logo-text span { color: var(--gold); }
.site-logo a:hover .logo-text { color: var(--gold-light); }
.site-logo a:hover .logo-text span { color: var(--white); }

/* ── Primary Navigation ────────────────────────────────────────────────────── */
#primary-nav { flex: 1; }

#primary-nav .primary-menu,
#primary-nav > ul {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
  justify-content: center;
}

/* ── Top-Level Menu Items ──────────────────────────────────────────────────── */
#primary-nav .menu-item {
  position: relative;
  margin: 0;
  padding: 0;
}

#primary-nav .menu-item > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-70);
  text-decoration: none;
  position: relative;
  transition: color 0.35s ease;
}

/* Gold underline — animated from center */
#primary-nav .menu-item > a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), left 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

#primary-nav .menu-item > a:hover {
  color: var(--gold);
}
#primary-nav .menu-item > a:hover::after {
  width: 60%;
  left: 20%;
}

/* Current / Active page — persistent gold underline */
#primary-nav .current-menu-item > a,
#primary-nav .current-menu-ancestor > a,
#primary-nav .current-menu-parent > a {
  color: var(--gold);
}
#primary-nav .current-menu-item > a::after,
#primary-nav .current-menu-ancestor > a::after,
#primary-nav .current-menu-parent > a::after {
  width: 60%;
  left: 20%;
  background: var(--gold);
}

/* ── Dropdown Chevron ──────────────────────────────────────────────────────── */
#primary-nav .menu-item-has-children > a {
  padding-right: 12px;
}
#primary-nav .menu-item-has-children > a::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 6px;
  transition: transform 0.35s ease, border-color 0.35s ease;
  order: 2;
}
#primary-nav .menu-item-has-children:hover > a::before {
  transform: rotate(-135deg) translateY(-1px);
  border-color: var(--gold);
}

/* ── Dropdown Panel ────────────────────────────────────────────────────────── */
#primary-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 280px;
  padding: 0;
  margin: 0;
  list-style: none;
  z-index: 1001;

  /* Start hidden */
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(12px);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Spacing for hover bridge */
  padding-top: 18px;
}

/* Inner container — the visible dropdown box */
#primary-nav .sub-menu::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 12, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--gold-border);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.5),
    0 0 0 1px rgba(201,168,76,0.08),
    inset 0 1px 0 rgba(255,255,255,0.03);
  z-index: -1;
}

/* Gold accent line at top of dropdown */
#primary-nav .sub-menu::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  z-index: 1;
}

/* Show on hover — smooth reveal */
#primary-nav .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ── Dropdown Items ────────────────────────────────────────────────────────── */
#primary-nav .sub-menu .menu-item {
  display: block;
  margin: 0;
  padding: 0;
  position: relative;
}

#primary-nav .sub-menu .menu-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 28px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--white-60);
  text-transform: none;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  margin-top: 0;
}

/* First item gets top padding for the gold line */
#primary-nav .sub-menu .menu-item:first-child a {
  padding-top: 22px;
}
#primary-nav .sub-menu .menu-item:last-child a {
  padding-bottom: 20px;
}

/* Hover state — gold accent slide */
#primary-nav .sub-menu .menu-item a:hover {
  color: var(--white);
  background: linear-gradient(90deg, rgba(201,168,76,0.08), transparent 80%);
  border-left-color: var(--gold);
  padding-left: 32px;
}

/* Active sub-item */
#primary-nav .sub-menu .current-menu-item > a {
  color: var(--gold);
  border-left-color: var(--gold);
}

/* Subtle divider between dropdown items */
#primary-nav .sub-menu .menu-item + .menu-item a {
  border-top: 1px solid rgba(255,255,255,0.03);
}

/* ── Header Right Actions ──────────────────────────────────────────────────── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--white-60);
  text-decoration: none;
  transition: all 0.35s ease;
  padding: 8px 0;
}
.header-phone svg {
  width: 15px;
  height: 15px;
  opacity: 0.6;
  transition: all 0.35s ease;
}
.header-phone:hover {
  color: var(--gold-light);
}
.header-phone:hover svg {
  opacity: 1;
  stroke: var(--gold);
}

/* CTA Button */
.nav-cta {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-border);
  padding: 11px 28px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.nav-cta::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; right: 100%; bottom: 0;
  background: linear-gradient(90deg, transparent, var(--gold-rgba), transparent);
  transition: all 0.5s ease;
}
.nav-cta:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: 0 4px 20px rgba(201,168,76,0.15);
  transform: translateY(-1px);
}
.nav-cta:hover::before {
  left: -10%;
  right: -10%;
}

/* ── Hamburger (hidden on desktop, shown on mobile) ────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: transparent;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.35s ease;
  border-radius: 2px;
}

/* === BUTTONS === */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; padding: 16px 36px; transition: var(--transition); cursor: pointer; border: none; text-decoration: none; }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-light); color: var(--black); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(201,168,76,0.25); }
.btn-outline { background: transparent; color: var(--gold); border: 1px solid var(--gold-border); }
.btn-outline:hover { background: var(--gold-rgba); border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white-60); border: 1px solid var(--white-30); }
.btn-ghost:hover { border-color: var(--white-60); color: var(--white); }
.btn svg { width: 16px; height: 16px; stroke-width: 1.5; }

/* === GOLD LINE DECORATOR === */
.gold-line { display: block; width: 60px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); margin-bottom: 24px; }
.gold-line-center { display: block; width: 60px; height: 1px; background: var(--gold); margin: 0 auto 24px; }
.section-label { font-size: 0.65rem; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; display: block; }

/* === HERO === */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  background: var(--black);
  overflow: hidden;
  position: relative;
  padding: 0;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 70% at 60% 50%, rgba(201,168,76,0.06) 0%, transparent 60%),
              radial-gradient(ellipse 50% 50% at 20% 80%, rgba(201,168,76,0.04) 0%, transparent 50%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.035;
  background-image: linear-gradient(var(--gold) 1px, transparent 1px), linear-gradient(90deg, var(--gold) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-content { position: relative; z-index: 2; padding: 160px 40px 120px; max-width: var(--max-w); margin: 0 auto; width: 100%; }
.hero-eyebrow { font-size: 0.65rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); margin-bottom: 32px; display: flex; align-items: center; gap: 16px; }
.hero-eyebrow::before { content: ''; display: block; width: 40px; height: 1px; background: var(--gold); }
.hero-headline { font-family: var(--font-display); font-size: clamp(3.5rem, 8vw, 7rem); font-weight: 300; line-height: 1.05; color: var(--white); margin-bottom: 16px; }
.hero-headline em { font-style: italic; color: var(--gold); display: block; }
.hero-sub { font-size: 1.05rem; color: var(--white-60); max-width: 560px; margin-bottom: 48px; line-height: 1.8; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badge { position: absolute; right: 80px; bottom: 80px; width: 140px; height: 140px; border-radius: 50%; border: 1px solid var(--gold-border); display: flex; flex-direction: column; align-items: center; justify-content: center; animation: spin-slow 20s linear infinite; }
.hero-badge span { font-family: var(--font-display); color: var(--gold); font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; text-align: center; }
.hero-scroll { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--white-30); font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; animation: bounce 2s infinite; }
.hero-scroll::after { content: ''; display: block; width: 1px; height: 40px; background: linear-gradient(var(--gold), transparent); }

@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.animate-fade-up { opacity: 0; animation: fadeUp 0.9s ease forwards; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }

/* === SECTION STYLES === */
.section-dark { background: var(--dark); }
.section-darker { background: var(--dark-2); }
.section-black { background: var(--black); }

/* === TRUST STRIP === */
/* V1.3 - Trust strip removed from layout
#trust-strip {
  padding: 40px 0;
  border-top: 1px solid var(--white-10);
  border-bottom: 1px solid var(--white-10);
  background: var(--dark-2);
}
.trust-strip-inner { display: flex; align-items: center; justify-content: center; gap: 60px; flex-wrap: wrap; }
.trust-item { font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--white-30); display: flex; align-items: center; gap: 12px; }
.trust-item::before { content: '◆'; color: var(--gold); font-size: 0.5rem; }
*/

/* === STATS / METRICS === */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.stat-card {
  background: var(--dark-3);
  padding: 48px 32px;
  text-align: center;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--gold); transform: scaleX(0); transition: var(--transition); }
.stat-card:hover::before { transform: scaleX(1); }
.stat-card:hover { background: var(--dark-4); }
.stat-number { font-family: var(--font-display); font-size: 3.5rem; font-weight: 300; color: var(--gold); line-height: 1; display: block; margin-bottom: 8px; }
.stat-label { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white-30); }

/* === PHILOSOPHY / P5 FRAMEWORK === */
.p5-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; }
.p5-card {
  background: var(--dark-3);
  padding: 40px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.p5-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: var(--transition); }
.p5-card:hover::after { transform: scaleX(1); }
.p5-card:hover { background: var(--dark-4); }
.p5-letter { font-family: var(--font-display); font-size: 5rem; font-weight: 200; color: var(--gold-border); line-height: 1; display: block; margin-bottom: 16px; transition: var(--transition); }
.p5-card:hover .p5-letter { color: var(--gold); }
.p5-word { font-family: var(--font-display); font-size: 1.3rem; color: var(--white); margin-bottom: 12px; display: block; }
.p5-desc { font-size: 0.82rem; color: var(--white-30); line-height: 1.7; }

/* === SOLUTIONS GRID === */
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; }
.solution-card {
  background: var(--dark-3);
  padding: 48px 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.solution-card:hover { background: var(--dark-4); }
.solution-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(ellipse at 100% 0%, var(--gold-rgba), transparent 60%); opacity: 0; transition: var(--transition); }
.solution-card:hover::before { opacity: 1; }
.solution-icon { width: 48px; height: 48px; margin-bottom: 28px; opacity: 0.7; }
.solution-icon img, .solution-icon svg { width: 100%; height: 100%; }
.solution-card h3 { font-size: 1.4rem; margin-bottom: 14px; }
.solution-card p { font-size: 0.88rem; margin-bottom: 24px; }
.solution-card ul { list-style: none; margin-bottom: 28px; }
.solution-card ul li { font-size: 0.82rem; color: var(--white-60); padding: 6px 0; border-bottom: 1px solid var(--white-10); display: flex; gap: 10px; align-items: center; }
.solution-card ul li::before { content: '–'; color: var(--gold); flex-shrink: 0; }
.solution-tag { font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-border); padding: 6px 14px; display: inline-block; }

/* === WHO WE SERVE === */
.serve-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--white-10); margin-bottom: 60px; overflow-x: auto; }
.serve-tab { padding: 16px 28px; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white-30); cursor: pointer; transition: var(--transition); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; border-top: none; border-left: none; border-right: none; font-family: var(--font-body); }
.serve-tab.active, .serve-tab:hover { color: var(--gold); border-bottom-color: var(--gold); }
.serve-panel { display: none; animation: fadeUp 0.5s ease forwards; }
.serve-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.serve-panel-content h3 { font-size: 2.2rem; margin-bottom: 16px; }
.serve-panel-content p { margin-bottom: 24px; }
.serve-list { list-style: none; }
.serve-list li { padding: 12px 0; border-bottom: 1px solid var(--white-10); font-size: 0.88rem; color: var(--white-60); display: flex; gap: 12px; }
.serve-list li::before { content: '◆'; color: var(--gold); font-size: 0.5rem; flex-shrink: 0; margin-top: 6px; }
.serve-panel-visual { background: var(--dark-3); padding: 48px; position: relative; overflow: hidden; }
.serve-panel-visual::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, var(--gold-rgba), transparent); }
.serve-outcome { background: var(--dark-4); padding: 24px 28px; margin-top: 24px; border-left: 2px solid var(--gold); }
.serve-outcome span { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 8px; }
.serve-outcome p { font-size: 0.88rem; margin: 0; }

/* === JOURNEY / PROCESS === */
.journey-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; }
.journey-steps::before { content: ''; position: absolute; top: 36px; left: 8.33%; right: 8.33%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-border) 20%, var(--gold-border) 80%, transparent); }
.journey-step { padding: 24px 16px; text-align: center; position: relative; }
.step-number { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--gold-border); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; font-family: var(--font-display); font-size: 1.4rem; color: var(--gold); background: var(--dark); position: relative; z-index: 1; transition: var(--transition); }
.journey-step:hover .step-number { background: var(--gold-rgba); border-color: var(--gold); }
.journey-step h4 { font-size: 0.85rem; color: var(--white); margin-bottom: 8px; letter-spacing: 0.05em; }
.journey-step p { font-size: 0.75rem; color: var(--white-30); }

/* === OPPORTUNITIES === */
.opp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.opp-card {
  background: var(--dark-3);
  border: 1px solid var(--white-10);
  padding: 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.opp-card:hover { border-color: var(--gold-border); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.opp-badge { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; background: var(--gold-rgba); color: var(--gold); padding: 6px 14px; display: inline-block; margin-bottom: 20px; border: 1px solid var(--gold-border); }
.opp-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.opp-card p { font-size: 0.82rem; margin-bottom: 20px; }
.opp-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.opp-meta-item { font-size: 0.7rem; color: var(--white-30); }
.opp-meta-item strong { display: block; font-size: 1rem; color: var(--gold); font-family: var(--font-display); font-weight: 400; }

/* === MEMBERSHIP === */
.membership-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 500px; }
.membership-left { background: var(--dark-2); padding: 80px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--gold-border); }
.membership-right { background: var(--dark-3); padding: 80px; display: flex; flex-direction: column; justify-content: center; }
.membership-benefits { list-style: none; margin: 32px 0; }
.membership-benefits li { padding: 14px 0; border-bottom: 1px solid var(--white-10); display: flex; gap: 14px; font-size: 0.88rem; color: var(--white-60); }
.membership-benefits li::before { content: '✦'; color: var(--gold); font-size: 0.7rem; flex-shrink: 0; margin-top: 2px; }

/* === FINAL CTA === */
#final-cta {
  background: var(--dark-2);
  text-align: center;
  padding: 140px 40px;
  position: relative;
  overflow: hidden;
}
#final-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(201,168,76,0.08), transparent); }
.final-cta-quote { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.8rem); font-weight: 300; color: var(--white); margin-bottom: 24px; line-height: 1.2; font-style: italic; }
.final-cta-sub { color: var(--white-60); max-width: 600px; margin: 0 auto 48px; font-size: 1.05rem; }
.final-cta-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.final-divider { width: 1px; height: 60px; background: var(--gold-border); margin: 0 auto 40px; }

/* === TEXT SPLIT SECTION === */
.text-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.text-split-left {}
.text-split-right {}

/* === INNER PAGE HERO === */
.page-hero {
  min-height: 60vh;
  display: flex; align-items: flex-end;
  background: var(--black);
  padding: 180px 40px 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 60% at 30% 60%, rgba(201,168,76,0.05), transparent); }
.page-hero-content { position: relative; z-index: 2; max-width: var(--max-w); margin: 0 auto; width: 100%; }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 5rem); margin-bottom: 20px; }
.page-hero p { font-size: 1.1rem; max-width: 600px; }
.breadcrumb { font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--white-30); margin-bottom: 20px; }
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: var(--white-30); margin: 0 8px; }

/* === RICH CONTENT SECTIONS === */
.content-block { padding: 80px 0; border-bottom: 1px solid var(--white-10); }
.content-block:last-child { border-bottom: none; }
.content-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.content-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.content-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

.feature-card { padding: 40px 32px; background: var(--dark-3); transition: var(--transition); }
.feature-card:hover { background: var(--dark-4); transform: translateY(-4px); }
.feature-card h4 { font-size: 1.1rem; margin-bottom: 12px; color: var(--white); }
.feature-card p { font-size: 0.85rem; }
.feature-number { font-family: var(--font-display); font-size: 3rem; color: var(--gold-border); font-weight: 200; display: block; margin-bottom: 16px; line-height: 1; }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pill { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; border: 1px solid var(--gold-border); color: var(--gold); padding: 8px 16px; }

/* === ACCORDION === */
.accordion-item { border-bottom: 1px solid var(--white-10); }
.accordion-trigger { width: 100%; background: none; border: none; text-align: left; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-family: var(--font-display); font-size: 1.2rem; color: var(--white); gap: 20px; }
.accordion-trigger::after { content: '+'; color: var(--gold); font-size: 1.5rem; font-weight: 200; flex-shrink: 0; transition: var(--transition); }
.accordion-item.open .accordion-trigger::after { content: '–'; }
.accordion-body { display: none; padding-bottom: 24px; }
.accordion-item.open .accordion-body { display: block; }
.accordion-body p { font-size: 0.9rem; }

/* === CONTACT FORM === */
.contact-form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.form-group { margin-bottom: 28px; }
.form-group label { display: block; font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--white-60); margin-bottom: 10px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: var(--dark-3); border: 1px solid var(--white-10);
  color: var(--white); padding: 14px 18px; font-family: var(--font-body); font-size: 0.9rem;
  transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold-border); background: var(--dark-4); }
.form-group textarea { height: 140px; resize: none; }
.form-group select option { background: var(--dark-2); }
.form-note { font-size: 0.75rem; color: var(--white-30); margin-top: 16px; line-height: 1.6; }

/* === FOOTER === */
#site-footer {
  background: var(--dark-2);
  border-top: 1px solid var(--gold-border);
  padding: 80px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-brand .logo-text { font-family: var(--font-display); font-size: 1.8rem; color: var(--white); letter-spacing: 0.05em; }
.footer-brand .logo-text span { color: var(--gold); }
.footer-brand p { font-size: 0.85rem; color: var(--white-30); margin-top: 16px; line-height: 1.8; }
.footer-tagline { font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-dim); margin-top: 12px; display: block; }
.footer-col h5 { font-family: var(--font-body); font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.82rem; color: var(--white-30); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--white-10); padding: 28px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { font-size: 0.72rem; color: var(--white-30); }
.footer-bottom-links { display: flex; gap: 28px; }
.footer-bottom-links a { font-size: 0.68rem; color: var(--white-30); letter-spacing: 0.1em; }
.footer-bottom-links a:hover { color: var(--gold); }

/* ── Footer Accordion (expandable on mobile) ──────────────────────────────── */
.footer-accordion-toggle {
  display: none; /* Hidden on desktop */
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
}
.footer-accordion-toggle h5 {
  margin: 0;
  pointer-events: none;
}
.footer-acc-icon {
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 200;
  font-family: var(--font-display);
  line-height: 1;
  transition: var(--transition);
  pointer-events: none;
}
/* On desktop, accordion content is always visible */
.footer-accordion-content {
  list-style: none;
}

/* === QUOTE BLOCK === */
.quote-block { border-left: 2px solid var(--gold); padding: 28px 36px; background: var(--dark-3); margin: 40px 0; }
.quote-block blockquote { font-family: var(--font-display); font-size: 1.5rem; font-style: italic; color: var(--white); line-height: 1.5; }
.quote-block cite { display: block; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-top: 16px; font-style: normal; }

/* === DIVIDER === */
.gold-divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-border) 30%, var(--gold-border) 70%, transparent); margin: 20px 0; }

/* === INSIGHT CARD === */
.insight-card { background: var(--dark-3); padding: 36px; border: 1px solid var(--white-10); transition: var(--transition); }
.insight-card:hover { border-color: var(--gold-border); }
.insight-cat { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; display: block; }
.insight-card h4 { font-size: 1.1rem; margin-bottom: 12px; }
.insight-card p { font-size: 0.82rem; }
.insight-card .read-more { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; }
.insight-card .read-more::after { content: '→'; }

/* === SCROLL REVEAL === */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .p5-grid { grid-template-columns: repeat(3, 1fr); }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .serve-panel.active { grid-template-columns: 1fr; }
  .journey-steps { grid-template-columns: repeat(3, 1fr); }
  .journey-steps::before { display: none; }
  .membership-wrap { grid-template-columns: 1fr; }

  /* Tighten desktop nav at smaller screens */
  #site-header { padding: 20px 28px; gap: 20px; }
  #site-header.scrolled { padding: 12px 28px; }
  #primary-nav .primary-menu,
  #primary-nav > ul { gap: 2px; }
  #primary-nav .menu-item > a { padding: 10px 12px; font-size: 0.68rem; letter-spacing: 0.1em; }
  .header-phone span { display: none; }
  .nav-cta { padding: 9px 18px; font-size: 0.6rem; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .container-sm { padding: 0 20px; }
  :root { --section-pad: 64px 0; }

  /* ── Grids ── */
  .stats-grid, .p5-grid, .solutions-grid, .opp-grid, .content-grid-2, .content-grid-3, .content-grid-4 { grid-template-columns: 1fr; }
  .text-split { grid-template-columns: 1fr; gap: 36px; }
  .contact-form-wrap { grid-template-columns: 1fr; gap: 40px; }

  /* ── Hero ── */
  .hero-badge { display: none; }
  .hero-ctas { flex-direction: column; gap: 12px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  h1 { font-size: clamp(2rem, 7vw, 3.2rem); }
  h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
  .hero-sub { font-size: 0.9rem; }

  /* ── Navigation ── */
  #primary-nav { display: none; }
  .hamburger { display: flex; }
  #site-header { padding: 16px 20px; gap: 12px; }
  #site-header.scrolled { padding: 12px 20px; }
  .header-actions { display: flex !important; gap: 16px; }
  .header-phone { font-size: 0; padding: 8px; }
  .header-phone svg { width: 20px; height: 20px; opacity: 1; }
  .nav-cta {
    padding: 10px 12px !important;
    font-size: 0 !important;
    min-width: 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    overflow: visible;
  }
  .nav-cta::before {
    content: '→';
    font-size: 1.2rem;
    color: var(--gold);
    position: static;
    background: none;
  }

  /* ── Page hero ── */
  .page-hero { padding: 120px 20px 48px; }
  .page-hero h1 { font-size: clamp(1.8rem, 6vw, 3rem); }

  /* ── Stats grid (2 col on tablet/phone) ── */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-number { font-size: clamp(2rem, 6vw, 3rem); }

  /* ── Cards ── */
  .opp-card { padding: 24px 20px; }
  .opp-meta { gap: 12px; }
  .opp-meta-item { min-width: 0; }
  .p5-card { padding: 28px 20px; }
  .solution-card { padding: 28px 20px; }
  .feature-card { padding: 24px 20px; }
  .insight-card { padding: 28px 20px; }

  /* ── Solutions grid (2 col on mobile) ── */
  .solutions-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* ── Journey steps ── */
  .journey-steps { grid-template-columns: 1fr 1fr; }
  .membership-left, .membership-right { padding: 40px 24px; }

  /* ── Forms — prevent iOS zoom (font must be 16px+) ── */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px !important;
    padding: 14px 16px;
  }
  .form-group label { font-size: 0.72rem; margin-bottom: 6px; }
  .form-group { margin-bottom: 16px; }
  .contact-form-wrap .content-grid-2 { grid-template-columns: 1fr; gap: 0; }

  /* ── Buttons ── */
  .btn { padding: 14px 28px; font-size: 0.68rem; }

  /* ── Accordion items ── */
  .accordion-trigger { padding: 16px 20px; font-size: 0.88rem; }

  /* ── Quote block ── */
  .quote-block { padding: 20px 24px; }
  .quote-block blockquote { font-size: 1.2rem; }

  /* ── Serve tabs ── */
  .serve-tabs { gap: 8px; flex-wrap: wrap; }
  .serve-tab { padding: 10px 16px; font-size: 0.6rem; }

  /* ═══════════════════════════════════════════
     FOOTER — EXPANDABLE ACCORDION ON MOBILE
  ═══════════════════════════════════════════ */
  .footer-grid { grid-template-columns: 1fr; gap: 0; margin-bottom: 32px; }
  .footer-brand { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--white-10); }
  .footer-brand p { font-size: 0.82rem; }
  .pill-list { gap: 8px; }
  .pill { font-size: 0.58rem; padding: 6px 12px; }

  /* Show accordion toggle on mobile */
  .footer-accordion-toggle {
    display: flex;
    padding: 18px 0;
    border-bottom: 1px solid var(--white-10);
  }
  .footer-accordion-toggle h5 { margin: 0; }
  .footer-acc-icon { font-size: 1.6rem; }

  /* Hide content by default on mobile */
  .footer-accordion .footer-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0;
  }

  /* Expanded state */
  .footer-accordion.open .footer-accordion-content {
    max-height: 400px;
    padding: 16px 0 8px;
  }
  .footer-accordion.open .footer-acc-icon {
    content: '';
  }
  .footer-accordion.open .footer-accordion-toggle {
    border-bottom-color: var(--gold-border);
  }

  /* Footer bottom */
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; padding: 24px 0; }
  .footer-bottom-links { justify-content: center; gap: 20px; flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════
   SMALL PHONES (480px)
═══════════════════════════════════════════════ */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  :root { --section-pad: 48px 0; }
  h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .solutions-grid { grid-template-columns: 1fr; }
  .journey-steps { grid-template-columns: 1fr; }
  .page-hero { padding: 100px 16px 36px; }
  .opp-card { padding: 20px 16px; }
  .opp-meta { flex-direction: column; gap: 8px; }
  .footer-accordion-toggle { padding: 14px 0; }
  .membership-left, .membership-right { padding: 32px 20px; }
}

/* ═══════════════════════════════════════════════
   TOUCH DEVICES — disable "stuck" hover states
═══════════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
  .opp-card:hover { transform: none; box-shadow: none; }
  .p5-card:hover { transform: none; }
  .solution-card:hover { transform: none; }
  .btn:hover { transform: none; }
  .insight-card:hover { transform: none; }
  /* Ensure proper touch targets */
  .btn { min-height: 44px; }
  .footer-accordion-toggle { min-height: 48px; }
  .footer-col ul li a { display: block; padding: 6px 0; }
}

/* === UTILITY === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Mobile Nav */
#mobile-nav {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, var(--black) 0%, var(--dark) 100%);
  z-index: 999;
  padding: 100px 40px 60px;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}
#mobile-nav.open { display: flex; }

/* V1.14 - Force mobile menu to be vertical */
#mobile-nav .mobile-menu-list,
#mobile-nav ul,
#mobile-nav .menu {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
}

/* V1.14 - Force ALL mobile menu items to be block (vertical) */
#mobile-nav li,
#mobile-nav .menu-item,
#mobile-nav .mobile-menu-list > li {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* V1.14 - Remove any separators or inline display */
#mobile-nav li::before,
#mobile-nav li::after {
  content: none !important;
  display: none !important;
}

/* V1.16 - Premium mobile menu styling */
#mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: none !important;
  color: var(--white-80);
  padding: 18px 0;
  border-bottom: none;
  text-decoration: none;
  display: block !important;
  width: 100% !important;
  transition: all 0.3s ease;
}
#mobile-nav a:hover {
  color: var(--gold);
  padding-left: 12px;
}

/* V1.16 - Parent menu items - UPPERCASE */
#mobile-nav .mobile-menu-list > li > a,
#mobile-nav > ul > li > a,
#mobile-nav .menu > li > a {
  font-size: 1.4rem !important;
  font-weight: 400 !important;
  color: var(--white) !important;
  padding: 20px 0 !important;
  border-bottom: 1px solid var(--white-05) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

/* V1.14 - Mobile dropdown functionality */
#mobile-nav .menu-item-has-children > a {
  position: relative;
  padding-right: 50px !important;
}
#mobile-nav .menu-item-has-children > a::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  font-weight: 200;
  color: var(--gold);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#mobile-nav .menu-item-has-children.open > a::after {
  content: '−';
  transform: translateY(-50%) rotate(0deg);
}

/* Mobile sub-menu (hidden by default) */
#mobile-nav .sub-menu {
  max-height: 0 !important;
  overflow: hidden !important;
  transition: max-height 0.4s ease !important;
  padding-left: 0 !important;
  margin-top: 0 !important;
  list-style: none !important;
  background: rgba(0,0,0,0.3) !important;
  border-radius: 8px !important;
  margin-bottom: 8px !important;
  display: flex !important;
  flex-direction: column !important;
  /* Reset nuclear overrides */
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  clip: auto !important;
  clip-path: none !important;
  left: auto !important;
  height: auto !important;
}
#mobile-nav .menu-item-has-children.open > .sub-menu {
  max-height: 1000px !important;
  padding: 12px 0 !important;
  margin-top: 12px !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
  position: relative !important;
  clip: auto !important;
  clip-path: none !important;
}
#mobile-nav .sub-menu li {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  width: 100% !important;
}
#mobile-nav .sub-menu a {
  font-size: 1.05rem !important;
  font-weight: 300 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  color: var(--white-60) !important;
  padding: 14px 24px !important;
  border-bottom: none !important;
  display: block !important;
  width: 100% !important;
}
#mobile-nav .sub-menu a:hover {
  color: var(--gold) !important;
  background: rgba(201,168,76,0.08) !important;
  padding-left: 32px !important;
}

/* V1.14 - Premium close button */
.mobile-nav-close {
  position: absolute;
  top: 32px;
  right: 32px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--white-10);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.mobile-nav-close:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
  color: var(--gold);
  transform: rotate(90deg);
}

/* Active page */
.current-menu-item > a { color: var(--gold) !important; }

/* Thin horizontal gold rule */
hr.gold { border: none; border-top: 1px solid var(--gold-border); margin: 0; }

/* ═══════════════════════════════════════════════════════════════════════════ */
/* V1.17 - CLEAN MENU RULES                                                    */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* Hide WordPress breadcrumbs and secondary navs */
.breadcrumb, .breadcrumbs, .nav-links, #breadcrumb, #breadcrumbs {
  display: none;
}

/* Hide stray nav outside header */
#site-header + nav:not(#primary-nav) { display: none; }


/* ═══════════════════════════════════════════════════════════════════════════ */
/* V1.17 - FRONTEND LIVE EDITOR (Live Composer Style)                          */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* Editor Toolbar - Fixed Top */
#p5-editor-toolbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99999;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-bottom: 2px solid var(--gold);
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 52px;
  font-family: var(--font-body);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.p5e-toolbar-left { display: flex; align-items: center; gap: 20px; }
.p5e-toolbar-right { display: flex; align-items: center; gap: 12px; }
.p5e-logo { color: var(--gold); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; }
.p5e-status { color: rgba(255,255,255,0.5); font-size: 0.72rem; letter-spacing: 0.05em; }

.p5e-btn {
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 20px;
  cursor: pointer; border: none; transition: all 0.3s ease;
}
.p5e-btn-save {
  background: var(--gold); color: var(--black);
}
.p5e-btn-save:hover:not(:disabled) { background: var(--gold-light); transform: translateY(-1px); }
.p5e-btn-save:disabled { opacity: 0.4; cursor: not-allowed; }
.p5e-btn-cancel {
  background: transparent; color: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.15);
}
.p5e-btn-cancel:hover { color: #ff6b6b; border-color: #ff6b6b; }

/* Shift page down when editor is active */
body.p5-editor-active #site-header { top: 52px; }
body.p5-editor-active #mobile-nav { top: 52px; }

/* Editable elements - highlight on hover */
.p5e-editable {
  position: relative;
  cursor: pointer;
  transition: outline 0.2s ease, background 0.2s ease;
  outline: 2px dashed transparent;
  outline-offset: 4px;
}
.p5e-editable:hover {
  outline-color: rgba(201,168,76,0.4);
  background: rgba(201,168,76,0.03);
}

/* Active editing state */
.p5e-editable.p5e-editing {
  outline: 2px solid var(--gold) !important;
  outline-offset: 6px;
  background: rgba(201,168,76,0.06) !important;
  min-height: 1em;
}
.p5e-editable.p5e-editing:focus { outline-color: var(--gold-light); }

/* Floating format bar */
#p5e-format-bar {
  position: absolute; z-index: 99998;
  background: #1a1a2e; border: 1px solid var(--gold-border);
  border-radius: 6px; padding: 4px; gap: 2px;
  display: flex; align-items: center;
  transform: translateX(-50%);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}
#p5e-format-bar button {
  background: transparent; border: none; color: var(--white-70);
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.85rem; border-radius: 4px;
  transition: all 0.2s ease; font-family: var(--font-body);
}
#p5e-format-bar button:hover { background: var(--gold-rgba); color: var(--gold); }

/* Admin Bar toggle button */
#wp-admin-bar-p5-frontend-editor a {
  color: var(--gold) !important; font-weight: 500 !important;
}

/* Responsive */
@media (max-width: 768px) {
  #p5-editor-toolbar { padding: 0 12px; height: 48px; }
  .p5e-logo { font-size: 0.65rem; }
  .p5e-status { display: none; }
  .p5e-btn { padding: 6px 12px; font-size: 0.6rem; }
}
