/*
Theme Name: Performance Capability
Theme URI: https://performancecapability.com/
Author: Performance Capability
Author URI: https://performancecapability.com/
Description: Custom WordPress theme for Performance Capability — The Psychology of Human Excellence.  Mobile, tablet, and desktop responsive.  Includes 26 custom page templates matching the original handover site.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
License URI: https://performancecapability.com/
Text Domain: performance-capability
Tags: business, portfolio, one-column, custom-menu, featured-images, full-width-template, theme-options
*/


/* ============ NAV + RESPONSIVE OVERLAY ============ */

  /* ─── NAV RESET & BASE ─── */
  .pc-nav, .pc-nav *, .pc-nav *::before, .pc-nav *::after,
  .pc-nav__drawer, .pc-nav__drawer *, .pc-nav__drawer *::before, .pc-nav__drawer *::after { box-sizing: border-box; }

  /* Nav overlaps the hero so the transparent initial state is visible. */

  .pc-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.35s ease, border-color 0.35s ease;
    font-family: "Barlow", sans-serif;
  }
  .pc-nav.scrolled {
    background: #000000;
    border-bottom-color: rgba(139,26,26,0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  /* Logo */
  .pc-nav__logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
  .pc-nav__logo img { height: 85px; width: auto; display: block; }

  /* Main links container */
  .pc-nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  /* Top-level items */
  .pc-nav__item { position: relative; }
  .pc-nav__item > a,
  .pc-nav__item > span {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(240,236,228,0.65);
    text-decoration: none;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
  }
  .pc-nav__item > a:hover,
  .pc-nav__item > span:hover,
  .pc-nav__item.open > a,
  .pc-nav__item.open > span { color: #ffffff; }
  .pc-nav__item > a.active,
  .pc-nav__item.active > a,
  .pc-nav__item.active > span { border-bottom-color: #8B1A1A; color: #fff; }
  .pc-nav__dropdown li a.active {
    color: #ffffff;
    background: rgba(139,26,26,0.12);
    border-left-color: #8B1A1A;
    padding-left: 24px;
  }

  /* Dropdown arrow */
  .pc-nav__arrow {
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid rgba(240,236,228,0.4);
    transition: transform 0.2s;
    flex-shrink: 0;
  }
  .pc-nav__item.open .pc-nav__arrow { transform: rotate(180deg); border-top-color: #fff; }

  /* Dropdown panel */
  .pc-nav__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 240px;
    background: rgba(14,14,14,0.98);
    border: 1px solid rgba(139,26,26,0.2);
    border-top: 2px solid #8B1A1A;
    padding: 8px 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .pc-nav__item:hover .pc-nav__dropdown,
  .pc-nav__item.open .pc-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .pc-nav__dropdown li a {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(240,236,228,0.55);
    text-decoration: none;
    display: block;
    padding: 10px 20px;
    transition: color 0.15s, background 0.15s, padding-left 0.15s;
    white-space: nowrap;
    border-left: 2px solid transparent;
  }
  .pc-nav__dropdown li a:hover {
    color: #ffffff;
    background: rgba(139,26,26,0.08);
    padding-left: 24px;
    border-left-color: #8B1A1A;
  }
  .pc-nav__dropdown li + li { border-top: 1px solid rgba(255,255,255,0.04); }

  /* Right side: CTA + Login */
  .pc-nav__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }
  .pc-nav__start {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #ffffff;
    background: #8B1A1A;
    text-decoration: none;
    padding: 10px 22px;
    border: 1px solid #8B1A1A;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
  }
  .pc-nav__start:hover { background: #a82020; border-color: #a82020; }

  /* ─── MOBILE HAMBURGER ─── */
  .pc-nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
  }
  .pc-nav__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: rgba(240,236,228,0.8);
    transition: all 0.3s ease;
  }
  .pc-nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .pc-nav__burger.open span:nth-child(2) { opacity: 0; }
  .pc-nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ─── MOBILE DRAWER ─── */
  .pc-nav__drawer {
    position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    background: rgba(12,12,12,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow-y: auto;
    padding: 24px 0 48px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 9998;
    border-top: 1px solid rgba(139,26,26,0.3);
  }
  .pc-nav__drawer.open { transform: translateX(0); }

  .pc-drawer__section { border-bottom: 1px solid rgba(255,255,255,0.05); }
  .pc-drawer__top {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(240,236,228,0.9);
    padding: 18px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
  }
  .pc-drawer__top a { color: inherit; text-decoration: none; flex: 1; }
  .pc-drawer__toggle {
    color: #8B1A1A;
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 0.2s;
    padding-left: 16px;
  }
  .pc-drawer__section.open .pc-drawer__toggle { transform: rotate(45deg); }
  .pc-drawer__sub {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .pc-drawer__section.open .pc-drawer__sub { max-height: 400px; }
  .pc-drawer__sub li a {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(240,236,228,0.45);
    text-decoration: none;
    display: block;
    padding: 12px 28px 12px 40px;
    border-left: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
  }
  .pc-drawer__sub li a:hover { color: #fff; border-left-color: #8B1A1A; }
  .pc-drawer__sub li a.active { color: #fff; border-left-color: #8B1A1A; background: rgba(139,26,26,0.08); }
  .pc-drawer__section.active > .pc-drawer__top { color: #fff; }
  .pc-drawer__section.active > .pc-drawer__top a { color: #fff; }
  .pc-drawer__actions {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* ─── RESPONSIVE ─── */
  @media (max-width: 1024px) {
    .pc-nav { padding: 0 24px; }
    .pc-nav__links, .pc-nav__actions { display: none; }
    .pc-nav__burger { display: flex; }
  }


  /* ────────────────────────────────────────────────────────────
    /* ─── PC GLOBAL MOBILE RESPONSIVE OVERLAY ─── */
    Applies to every GHL page that loads this header.  Targets
    the common layout patterns used across all 26 pages so we
    don't have to edit each page individually.
    ──────────────────────────────────────────────────────────── */

  /* prevent horizontal scroll caused by any wide element */
  html, body { max-width: 100vw; overflow-x: hidden; }
  /* Dark base behind the transparent nav so any page without an explicit html background still looks right */
  html { background: #111111; }

  /* responsive media */
  img, video, iframe, embed, object, svg { max-width: 100%; height: auto; }

  /* responsive type — caps the giant hero/H1 sizes on small screens */
  @media (max-width: 1024px) {
    h1, .hero-title, .hero h1, [class*="hero"] h1 {
      font-size: clamp(2rem, 7vw, 3.4rem) !important;
      line-height: 1.15 !important;
    }
    h2 { font-size: clamp(1.5rem, 5vw, 2.4rem) !important; line-height: 1.2 !important; }
    h3 { font-size: clamp(1.15rem, 4vw, 1.8rem) !important; }
  }

  @media (max-width: 768px) {
    /* tighter type for phones */
    h1, .hero-title, .hero h1, [class*="hero"] h1 {
      font-size: clamp(1.7rem, 8.5vw, 2.6rem) !important;
    }
    h2 { font-size: clamp(1.3rem, 6.5vw, 2rem) !important; }
    body, p, li { font-size: 1rem !important; line-height: 1.55 !important; }

    /* convert common grid layouts to single column on phones */
    [style*="grid-template-columns"],
    .grid, .columns, .row, .two-col, .three-col, .four-col,
    [class*="-grid"], [class*="grid-"],
    [class*="-cols"], [class*="cols-"],
    [class*="columns-"] {
      display: block !important;
      grid-template-columns: 1fr !important;
    }
    [class*="grid-"] > *, .grid > *, .columns > * { margin-bottom: 20px; }

    /* cap large desktop paddings that look ridiculous on phones */
    section, .section, .hero, [class*="hero"], [class*="-section"] {
      padding-left: 20px !important;
      padding-right: 20px !important;
    }
    .container, .wrapper, [class*="container"], [class*="wrapper"] {
      padding-left: 20px !important;
      padding-right: 20px !important;
      max-width: 100% !important;
    }

    /* tables become horizontally scrollable rather than overflowing */
    table { display: block; overflow-x: auto; max-width: 100%; white-space: nowrap; }

    /* buttons / CTAs full-width on phone */
    .btn, .cta, .cta-btn, button.cta, [class*="btn-"]:not(.pc-nav__burger):not(.pc-nav__burger *),
    [class*="-btn"]:not(.pc-nav__burger):not(.pc-nav__burger *) {
      max-width: 100% !important;
    }

    /* flex rows that hold side-by-side cards should wrap on mobile */
    [style*="display:flex"], [style*="display: flex"], .flex, .row-flex {
      flex-wrap: wrap !important;
    }

    /* ensure inline width="..." doesn't break layout */
    [width] { max-width: 100% !important; }
  }

  @media (max-width: 480px) {
    section, .section, .hero, [class*="hero"], [class*="-section"] {
      padding-left: 16px !important;
      padding-right: 16px !important;
    }
    body { font-size: 0.95rem !important; }
    h1, .hero-title, .hero h1, [class*="hero"] h1 {
      font-size: clamp(1.5rem, 9vw, 2.2rem) !important;
    }
  }

  @media (max-width: 1024px) {
    .pc-nav { height: 64px; padding: 0 16px; }
    .pc-nav__logo img { height: 48px; }
  }

  

/* ============ FOOTER ============ */

.pc-footer {
  background: #0a0a0a;
  padding: 44px 64px;
  border-top: 1px solid rgba(255,255,255,.04);
  font-family: "Barlow", sans-serif;
  color: rgba(240,236,228,.55);
}
.pc-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.pc-footer__logo img { height: 70px; width: auto; opacity: .4; display: block; }
.pc-footer__links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.pc-footer__links a {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240,236,228,.55);
  text-decoration: none;
  transition: color 0.2s;
}
.pc-footer__links a:hover { color: #fff; }
.pc-footer__copy {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240,236,228,.35);
}
@media (max-width: 768px) {
  .pc-footer { padding: 40px 24px; }
  .pc-footer__inner { flex-direction: column; align-items: flex-start; }
}

