/*
Theme Name:        Parc Elite
Theme URI:         https://theparceliteagency.com
Author:            Parc Elite Agency, LLC
Author URI:        https://theparceliteagency.com
Description:       One-page site for Parc Elite — professional services and B2B project management: government, RFPs, logistics, operations and consulting. Shares its design system with the High Notch Event Group site (its d/b/a events division).
Version:           1.0.0
Requires at least: 6.0
Tested up to:      6.8
Requires PHP:      7.4
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       parc-elite
Tags:              one-page, custom-colors, full-width-template
*/

/* ============================================================
   Shared foundation — same tokens as the High Notch Event Group
   site, since the two are one company (Parc Elite Agency, LLC
   d/b/a High Notch Event Group) and share a visual identity.
   ============================================================ */

:root {
  --bg: #0b0b0c;
  --ink: #101010;
  --acid: #d8f53f;          /* nav pill */
  --olive: #838f3a;         /* button */
  --olive-dark: #6f7b2c;
  --rust: #9a4a22;          /* active nav link */
  --paper: #ffffff;
  --shell: #edecea;         /* light section background */
  --ink-soft: #5b5b58;      /* body copy on light */

  --nav-h: 60px;
  --gutter: clamp(18px, 4vw, 56px);
  --max: 1240px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

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

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

ul { margin: 0; padding: 0; list-style: none; }

section { scroll-margin-top: calc(var(--nav-h) + 34px); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------
   Nav — floating pill
   ------------------------------------------------------------ */

.nav-wrap {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: clamp(12px, 1.8vw, 22px) var(--gutter);
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 clamp(16px, 2.2vw, 30px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--acid);
  border-radius: 999px;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

.nav.is-stuck {
  box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.65);
}

.nav__logo {
  font-size: clamp(15px, 1.35vw, 19px);
  font-weight: 800;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.9vw, 30px);
}

.nav__links a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: clamp(13px, 1.05vw, 14.5px);
  font-weight: 500;
  color: var(--ink);
  transition: color 0.25s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav__links a:hover::after,
.nav__links a:focus-visible::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-right: -6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.2s ease;
}

.nav[data-open="true"] .nav__toggle span:first-child { transform: translateY(3px) rotate(45deg); }
.nav[data-open="true"] .nav__toggle span:last-child  { transform: translateY(-3px) rotate(-45deg); }

/* ------------------------------------------------------------
   Type accents + reveal system (shared with High Notch)
   ------------------------------------------------------------ */

.hero__title em,
.service__title em,
.close__title em {
  font-family: "Instrument Serif", "Times New Roman", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.07em;
  letter-spacing: -0.005em;
}

.lines .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}

.lines .line > span {
  display: block;
  transform: translateY(105%);
}

.lines.is-in .line > span {
  transform: translateY(0);
  transition: transform 1s var(--ease);
}

.lines.is-in .line:nth-child(1) > span { transition-delay: 0.05s; }
.lines.is-in .line:nth-child(2) > span { transition-delay: 0.14s; }
.lines.is-in .line:nth-child(3) > span { transition-delay: 0.23s; }

.eyebrow {
  margin: 0 0 clamp(18px, 2.4vw, 30px);
  font-size: clamp(12.5px, 1.05vw, 14.5px);
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink);
}

/* --- button --- */

.btn {
  --btn-bg: var(--olive);
  --btn-fill: var(--acid);
  --btn-ink: var(--paper);
  --btn-ink-hover: var(--ink);

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 176px;
  padding: 15px 34px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.015em;
  overflow: hidden;
  transition: transform 0.4s var(--ease), background 0.4s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--btn-fill);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}

.btn > span { position: relative; z-index: 1; transition: color 0.3s ease; }

.btn:hover { transform: translateY(-2px); }
.btn:hover::before { transform: translateY(0); }
.btn:hover > span { color: var(--btn-ink-hover); }

.btn--acid {
  --btn-bg: var(--acid);
  --btn-fill: var(--ink);
  --btn-ink: var(--ink);
  --btn-ink-hover: var(--paper);
}

/* ------------------------------------------------------------
   01 / Hero — text only, no photography
   ------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  background: var(--bg);
}

/* faint grid, the one texture cue standing in for a photo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: clamp(48px, 6vw, 84px) clamp(48px, 6vw, 84px);
  mask-image: radial-gradient(120% 90% at 15% 20%, #000 0%, transparent 72%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding:
    calc(var(--nav-h) + clamp(46px, 8vh, 96px))
    var(--gutter)
    clamp(28px, 5.5vh, 62px);
  display: flex;
  flex-direction: column;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.6rem, 8.4vw, 7.1rem);
  font-weight: 800;
  line-height: 0.93;
  letter-spacing: -0.032em;
}

.hero__meta {
  margin: clamp(20px, 3vh, 34px) 0 0;
  max-width: 44ch;
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.005em;
  color: rgba(255, 255, 255, 0.86);
}

.hero__tags {
  margin: clamp(14px, 2vw, 20px) 0 0;
  max-width: 60ch;
  font-size: clamp(12.5px, 1.05vw, 14.5px);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--acid);
}

.hero__foot {
  margin-top: auto;
  padding-top: clamp(32px, 6vh, 70px);
  display: flex;
}

/* ------------------------------------------------------------
   02 / Services — rows that pin and stack like cards
   (same mechanism as the High Notch site, titles only —
   the brief gave categories, not descriptions, here)
   ------------------------------------------------------------ */

.services {
  --stack-top: calc(var(--nav-h) + 30px);
  --stack-step: 22px;

  background: #050506;
  color: var(--paper);
  padding-block: clamp(50px, 6.8vw, 100px) clamp(58px, 8vw, 118px);
}

.services__label {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(16px, 2.2vw, 28px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: clamp(12.5px, 1.05vw, 14.5px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

.service {
  position: sticky;
  top: calc(var(--stack-top) + var(--i, 0) * var(--stack-step));
  z-index: calc(var(--i, 0) + 1);
  background: hsl(240, 6%, calc(2.4% + var(--i, 0) * 0.75%));
}

.service::before,
.service:last-child::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.17);
}

.service::before { top: 0; }
.service:last-child::after { bottom: 0; }

.service__row {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  min-height: clamp(96px, 11vw, 168px);
  padding: clamp(16px, 2vw, 26px) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service__title {
  margin: 0 0 -0.16em;
  text-align: center;
  font-size: clamp(1.9rem, 5.6vw, 4.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.032em;
  overflow: hidden;
  padding-bottom: 0.16em;
}

.service__title > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1.05s var(--ease);
}

.service.is-in .service__title > span { transform: translateY(0); }

/* ------------------------------------------------------------
   03 / Closing — solid panel, no backdrop photo
   ------------------------------------------------------------ */

.close {
  min-height: 70svh;
  display: grid;
  place-items: center;
  padding: clamp(70px, 12vh, 130px) var(--gutter);
  background: var(--shell);
  color: var(--ink);
  text-align: center;
}

.close__title {
  margin: 0;
  font-size: clamp(1.8rem, 4.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.close__body {
  margin: clamp(16px, 2.2vw, 24px) auto 0;
  max-width: 52ch;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.72;
  color: var(--ink-soft);
}

.close .btn { margin-top: clamp(26px, 3.4vw, 42px); }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.footer {
  background: #070708;
  color: var(--paper);
  padding-block: clamp(50px, 7vw, 102px) clamp(26px, 3.2vw, 44px);
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 4.4vw, 82px);
}

.footer__head {
  margin: 0 0 clamp(14px, 1.8vw, 22px);
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer ul {
  display: grid;
  gap: clamp(7px, 0.8vw, 11px);
  align-content: start;
}

.footer li a {
  font-size: clamp(12.5px, 1.05vw, 14.5px);
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.25s ease;
}

.footer li a:hover { color: var(--acid); }

.footer__brands {
  max-width: var(--max);
  margin: clamp(46px, 6.5vw, 92px) auto 0;
  padding: 0 var(--gutter);
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.5);
}

.footer__brands a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.25s ease;
}

.footer__brands a:hover { color: var(--acid); }

/* ------------------------------------------------------------
   Reveal (fade-up) for non-masked elements
   ------------------------------------------------------------ */

.reveal:not(.hero__title) {
  opacity: 0;
  transform: translateY(18px);
}

.reveal:not(.hero__title).is-in {
  opacity: 1;
  transform: none;
  transition-property: opacity, transform;
  transition-duration: 0.9s;
  transition-timing-function: var(--ease);
}

.hero__meta.is-in { transition-delay: 0.16s; }
.hero__tags.is-in { transition-delay: 0.26s; }
.hero__foot .btn.is-in { transition-delay: 0.36s; }

.close__body.is-in { transition-delay: 0.1s; }
.close .btn.is-in { transition-delay: 0.2s; }

.footer__inner > .reveal.is-in:nth-child(2) { transition-delay: 0.08s; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 860px) {
  :root { --nav-h: 54px; }

  .nav__toggle { display: block; }

  .nav__links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 14px 22px 18px;
    background: var(--acid);
    border-radius: 26px;
    box-shadow: 0 18px 45px -20px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.35s var(--ease), visibility 0.3s;
  }

  .nav[data-open="true"] .nav__links {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__links a { font-size: 16px; padding: 8px 0; }

  .hero__foot { justify-content: flex-start; }
  .hero__foot .btn { width: 100%; }

  .service__row { padding-block: clamp(14px, 2vw, 22px); }

  .close .btn { width: 100%; }

  .footer__inner { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .service__title > span { transform: none !important; transition: none !important; }

  .lines .line > span,
  .reveal:not(.hero__title) {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}
