/* ============================================================
   PES — Premier Expediting Services — Site Styles
   Eagle Digital | css/site.css
   ============================================================ */

:root {
  --ink:        #0A0A0A;
  --ink-mid:    #131313;
  --ink-line:   #262626;
  --paper:      #F6F7F9;
  --white:      #FFFFFF;
  --line:       #E3E7ED;
  --text:       #14181F;
  --steel:      #4B5768;
  --muted:      #8993A4;
  --red:        #D6293A;
  --red-dim:    rgba(214,41,58,0.09);
  --red-line:   rgba(214,41,58,0.28);
  --green:      #1F9D63;

  --display: 'Oswald', sans-serif;
  --mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--paper);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
@media (max-width: 780px) {
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-transform: uppercase;
}
.h-display { font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 600; }
.h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 600; }
.h3 { font-size: 1.4rem; font-weight: 600; }
.lead { font-size: 1.15rem; color: var(--steel); max-width: 54ch; }
.muted { color: var(--muted); }
.text-balance { text-wrap: balance; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--red); font-weight: 600;
}
.eyebrow::before {
  content: ''; width: 22px; height: 2px; background: var(--red);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white);
  font-weight: 600; font-size: 0.86rem; letter-spacing: 0.02em;
  padding: 0.9rem 1.6rem; border-radius: 3px; border: none;
  text-decoration: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { background: #B81F2E; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(214,41,58,0.28); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { background: var(--ink); color: var(--white); box-shadow: none; }
.btn--onink { border-color: rgba(255,255,255,0.25); color: var(--white); }
.btn--onink:hover { background: var(--white); color: var(--ink); }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.78rem; }
.txtlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); text-decoration: none; font-size: 0.9rem; }
.txtlink .arrow { transition: transform 0.2s; }
.txtlink:hover .arrow { transform: translateX(3px); }

/* ── Header / Nav ───────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,10,10,0.0);
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, padding 0.25s;
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--ink-line);
  padding: 10px 0;
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; text-decoration: none; line-height: 1; }
.brand__logo { height: 64px; width: auto; display: block; transition: height 0.25s; }
.site-header.scrolled .brand__logo { height: 44px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  color: rgba(255,255,255,0.78); text-decoration: none;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 500; transition: color 0.2s;
}
.nav a:hover, .nav a.is-active { color: var(--white); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
  color: rgba(255,255,255,0.85); font-size: 0.8rem; text-decoration: none;
  font-family: var(--mono); letter-spacing: 0.02em; white-space: nowrap;
}
.header-phone strong { color: var(--white); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; z-index: 1100;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; background: var(--ink);
  z-index: 1050; display: flex; flex-direction: column;
  padding: 100px 32px 40px; gap: 22px;
  transform: translateY(-100%); transition: transform 0.3s ease;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  color: var(--white); text-decoration: none; font-family: var(--display);
  font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0.02em;
  border-bottom: 1px solid var(--ink-line); padding-bottom: 14px;
}
.mobile-menu .header-phone { font-size: 1rem; margin-top: 10px; }

@media (max-width: 980px) {
  .nav { display: none; }
  .header-phone { display: none; }
  .nav-toggle { display: flex; }
}

/* ── Floating CTA ───────────────────────────────────────────── */
.float-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  background: var(--red); color: var(--white); text-decoration: none;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.85rem 1.3rem; border-radius: 40px;
  box-shadow: 0 10px 28px rgba(214,41,58,0.35);
  display: flex; align-items: center; gap: 8px;
  transition: transform 0.2s;
}
.float-cta:hover { transform: translateY(-2px); }
@media (max-width: 600px) { .float-cta { left: 22px; right: 22px; justify-content: center; } }

/* ── Pitch tab (site-wide, not part of the PES brand) ────────── */
.pitch-tab {
  position: fixed; right: 0; top: 50%; z-index: 950;
  transform: translateY(-50%);
  background: var(--ink); color: var(--white); text-decoration: none;
  padding: 12px 14px 12px 16px; border-radius: 8px 0 0 8px;
  max-width: 168px;
  box-shadow: -6px 0 24px rgba(0,0,0,0.3);
  border: 1px solid var(--ink-line); border-right: none;
  display: flex; flex-direction: column; gap: 4px;
  transition: padding-right 0.2s, transform 0.2s;
}
.pitch-tab:hover { padding-right: 22px; }
.pitch-tab__label {
  font-family: var(--display); font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.2; color: var(--white);
}
.pitch-tab__contact {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.02em;
  line-height: 1.45; color: var(--red);
}
@media (max-width: 640px) { .pitch-tab { display: none; } }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: var(--ink); padding: 172px 0 88px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(214,41,58,0.06) 0 1px, transparent 1px 64px);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero__title { color: var(--white); margin-top: 18px; }
.hero__title em { color: var(--red); font-style: normal; }
.hero p.lead { color: rgba(255,255,255,0.68); margin-top: 18px; }
.hero__cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
@media (max-width: 980px) {
  .hero { padding: 140px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; }
}

/* ── Placeholder "plate" (no real photography yet) ─────────── */
.plate {
  position: relative; background: #1A1A1A; color: #8A8A8A;
  border: 1.5px solid var(--ink-line); overflow: hidden; border-radius: 4px;
  display: grid; place-items: center; min-height: 140px;
}
.plate--onwhite { background: #EDEFF3; color: #8993A4; border-color: var(--line); }
.plate::before, .plate::after {
  content: ''; position: absolute; width: 16px; height: 16px;
  border: 1.5px solid rgba(214,41,58,0.45); pointer-events: none;
}
.plate::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.plate::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.plate__cap {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 600; text-align: center; padding: 0 20px;
}
.plate--rec {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--red);
}
.plate--rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: recpulse 1.6s ease-in-out infinite; }
@keyframes recpulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .plate--rec i { animation: none; } }

/* ── Stat band ──────────────────────────────────────────────── */
.statband {
  background: var(--ink-mid); border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 30px 20px; text-align: center;
  border-right: 1px solid var(--ink-line);
}
.stat:last-child { border-right: 0; }
.stat__n { font-family: var(--display); font-size: 2.1rem; color: var(--red); font-weight: 600; }
.stat__l { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-top: 6px; }
@media (max-width: 780px) {
  .statband { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--ink-line); }
}

/* ── Section head ───────────────────────────────────────────── */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head .h2 { margin-top: 12px; }

/* ── Service / card grids ──────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .card-grid, .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid, .card-grid--3, .card-grid--2 { grid-template-columns: 1fr; } }

.svc-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 5px;
  padding: 28px 24px; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.svc-card:hover { border-color: var(--red-line); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(10,10,10,0.06); }
.svc-card__no { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.1em; }
.svc-card__icon { font-size: 1.7rem; margin: 12px 0 14px; color: var(--red); }
.svc-card__title { font-size: 1.15rem; margin-bottom: 8px; }
.svc-card__desc { color: var(--steel); font-size: 0.92rem; }
.svc-card__meta { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }

/* ── Split sections ─────────────────────────────────────────── */
.split { background: var(--white); }
.split__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .split__grid { grid-template-columns: 1fr; gap: 32px; } }
.split--ink { background: var(--ink); }
.split--ink h2, .split--ink h3 { color: var(--white); }
.split--ink p { color: rgba(255,255,255,0.68); }

.checklist { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: var(--steel); list-style: none; }
.checklist .tick { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--red-dim); color: var(--red); display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; margin-top: 2px; }
.split--ink .checklist li { color: rgba(255,255,255,0.75); }
.split--ink .checklist .tick { background: rgba(214,41,58,0.16); color: var(--red); }

/* ── Divide rules ───────────────────────────────────────────── */
.divide-top { border-top: 1px solid var(--line); }
.divide-bottom { border-bottom: 1px solid var(--line); }

/* ── Timeline (About) ───────────────────────────────────────── */
.timeline { position: relative; padding-left: 32px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 36px; }
.timeline__item { position: relative; }
.timeline__item::before {
  content: ''; position: absolute; left: -39px; top: 3px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--red); border: 3px solid var(--paper);
}
.timeline__year { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--red); font-weight: 700; }
.timeline__title { margin-top: 4px; font-size: 1.15rem; }
.timeline__desc { color: var(--steel); font-size: 0.92rem; margin-top: 6px; max-width: 60ch; }

/* ── Certification badges ──────────────────────────────────── */
.cert-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 900px) { .cert-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
.cert {
  background: var(--white); border: 1px solid var(--line); border-radius: 5px;
  padding: 22px 14px; text-align: center;
}
.cert__icon { font-size: 1.5rem; margin-bottom: 10px; color: var(--ink); }
.cert__label { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); }

/* ── Team ───────────────────────────────────────────────────── */
.founder-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .founder-grid { grid-template-columns: 1fr; } }

/* ── CTA band ───────────────────────────────────────────────── */
.cta-band {
  background: var(--red); padding: 64px 0; text-align: center;
  background-image: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.12), transparent 60%);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.85); margin: 14px auto 28px; max-width: 52ch; }
.cta-band .btn--ghost { border-color: rgba(255,255,255,0.5); color: var(--white); }
.cta-band .btn--ghost:hover { background: var(--white); color: var(--red); }

/* ── Contact ────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 36px; }
.form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row2, .form-row3 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line); border-radius: 3px; padding: 0.75rem 0.9rem;
  font-family: 'Inter', sans-serif; font-size: 0.92rem; color: var(--text); outline: none;
  transition: border-color 0.2s; width: 100%; background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); }
.field textarea { resize: vertical; min-height: 100px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.info-card { background: var(--ink); color: var(--white); border-radius: 6px; padding: 36px; }
.info-card h3 { color: var(--white); }
.info-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--ink-line); }
.info-row:last-child { border-bottom: 0; }
.info-row__icon { font-size: 1.1rem; color: var(--red); }
.info-row__label { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.info-row__val { font-size: 0.94rem; color: rgba(255,255,255,0.85); margin-top: 2px; }
.info-row__val a { color: inherit; text-decoration: none; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.6); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--ink-line); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand__logo { height: 42px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 0.86rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.8); margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.86rem; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--red); }
.footer-col--portal a { color: #F0616E; font-weight: 600; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 0.76rem; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* ── Icons ──────────────────────────────────────────────────── */
svg.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; }

/* ── Misc ───────────────────────────────────────────────────── */
.tag-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.tag { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); border: 1px solid var(--line); padding: 6px 12px; border-radius: 20px; }

/* ── 404 ────────────────────────────────────────────────────── */
.page-404 { min-height: 74vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.page-404::after {
  content: '404'; font-family: var(--display); font-weight: 700;
  font-size: clamp(9rem, 26vw, 20rem); line-height: 1; letter-spacing: -0.02em;
  color: rgba(255,255,255,0.045); position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); pointer-events: none; user-select: none;
}
.page-404-inner { position: relative; z-index: 1; max-width: 560px; padding: 0 20px; }
