/*
Theme Name: P&R Power Systems
Theme URI: https://prpowersystems.uk
Author: 6970 Design
Author URI: https://6970.design
Description: Custom WordPress theme for P&R Power Systems, featuring full-screen scrollable sections and case study posts.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pr-power-systems
Tags: custom-background, custom-logo, custom-menu, featured-images, full-width-template
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --pr-orange: #E84E0F;
  --pr-orange-light: #FF6B2B;
  --pr-navy: #1A2B45;
  --pr-navy-dark: #0F1E33;
  --pr-sky: #7FB3CC;
  --pr-white: #FFFFFF;
  --pr-light-grey: #F5F5F5;
  --pr-text: #2C2C2C;

  --font-heading: 'Barlow', 'Arial Black', sans-serif;
  --font-body: 'Barlow', Arial, sans-serif;
  --font-mono: 'Courier New', monospace;

  --transition-base: 0.35s ease;
  --section-padding: 100px 60px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--pr-text);
  background: var(--pr-white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.pr-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pr-orange);
  margin-bottom: 12px;
  display: block;
}

.pr-section-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 0.5em;
}

.pr-section-title--light { color: var(--pr-white); }
.pr-section-title--dark { color: var(--pr-navy); }
.pr-section-title--orange { color: var(--pr-orange); }

.pr-body-text {
  font-size: 1rem;
  line-height: 1.75;
  max-width: 680px;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ============================================================
   SITE HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
  background: var(--pr-navy-dark);
  box-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.site-logo img {
  width: 100px;
  height: auto;
}

.site-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--pr-white);
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-logo .logo-text .ampersand {
  color: var(--pr-sky);
  font-style: italic;
  font-weight: 400;
}

.logo-badge {
  background: var(--pr-navy);
  padding: 10px 18px;
  border-radius: 4px;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.logo-badge .logo-pr {
  font-size: 2rem;
  font-weight: 900;
  color: var(--pr-white);
  line-height: 1;
}

.logo-badge .logo-amp {
  font-size: 1.2rem;
  color: var(--pr-sky);
  font-style: italic;
}

.logo-badge .logo-sub {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--pr-white);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

.nav-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Primary Navigation */
.primary-nav ul {
  display: flex;
  gap: 36px;
  align-items: center;
}

.primary-nav a {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition-base);
  position: relative;
  padding-bottom: 4px;
}

.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--pr-orange);
  transition: width var(--transition-base);
}

.primary-nav a:hover,
.primary-nav a.current-menu-item {
  color: var(--pr-white);
}

.primary-nav a:hover::after,
.primary-nav a.current-menu-item::after { width: 100%; }


.nav-cta {
  background: var(--pr-orange) !important;
  color: var(--pr-white) !important;
  padding: 10px 22px !important;
  border-radius: 3px;
  letter-spacing: 0.1em !important;
  transition: background var(--transition-base) !important;
}

.nav-cta:hover { background: var(--pr-orange-light) !important; }
.nav-cta::after { display: none !important; }

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--pr-white);
  transition: all var(--transition-base);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--pr-orange);
  background-size: cover;
  background-position: center;
}

/* Orange tint over the full-width background image */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(232, 78, 15, 0.55);
  z-index: 1;
  pointer-events: none;
}

.hero-cols {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  z-index: 2;
}

.hero-col {
  position: relative;
  overflow: hidden;
}

/* Side columns — transparent so the orange image background shows through */
.hero-col:nth-child(1),
.hero-col:nth-child(3) {
  background: transparent;
}

/* Centre column — transparent, all orange background shows through */
.hero-col:nth-child(2) {
  background: transparent;
}

/* Centre column img hidden — full-width background image handles the visual */
.hero-col:nth-child(2) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 120px 40px 80px;
  text-align: center;
}

.hero-logo-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.hero-logo-img {
  width: auto;
  height: 400px;
  display: block;
}

.hero-tagline {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  max-width: 560px;
  margin: 0 auto;
}

.hero-subdesc {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  margin-top: 10px;
  letter-spacing: 0.05em;
}

.hero-cta-group {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,1);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll-hint::after {
  content: '';
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,1);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   INTRODUCTION SECTION
   ============================================================ */
.intro-section {
  padding: 120px 40px;
  background: var(--pr-white);
}

.intro-section .grid-2 {
  gap: 80px;
}

.intro-left .pr-section-title {
  margin-bottom: 30px;
}

.intro-body p {
  margin-bottom: 1.2em;
  color: #444;
}

.key-contacts {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-card {
  border-left: 3px solid var(--pr-orange);
  padding-left: 18px;
}

.contact-card .label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pr-orange);
  margin-bottom: 4px;
}

.contact-card .name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--pr-navy);
  margin-bottom: 2px;
}

.contact-card .role {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 6px;
}

.contact-card a {
  font-size: 0.85rem;
  color: var(--pr-orange);
  display: block;
  transition: color var(--transition-base);
}

.contact-card a:hover { color: var(--pr-navy); }

/* ============================================================
   EXPERTISE SECTION
   ============================================================ */
.expertise-section {
  padding: 120px 40px;
  background: var(--pr-orange) url('images/expertise-bg.png') center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

.expertise-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(232, 78, 15, 0.55);
  pointer-events: none;
  z-index: 0;
}

.expertise-section .container {
  position: relative;
  z-index: 1;
}

.expertise-header {
  text-align: center;
  margin-bottom: 70px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.expertise-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  aspect-ratio: 1;
  min-width: 0;
  padding: 24px 20px;
  text-align: center;
  opacity: 0.9;
  box-shadow: 0 0 0 0px rgba(232, 78, 15, 0), 0 0 0px 0px rgba(232, 78, 15, 0);
  transition: transform 0.3s ease,
              background 0.3s ease,
              border-color 0.6s ease,
              box-shadow 0.6s ease,
              opacity 0.3s ease;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.expertise-item:hover {
  opacity: 1;
  background: rgba(255,255,255,0.09);
  transform: translateY(-4px);
  border-color: rgba(232, 78, 15, 0.8);
  box-shadow: 0 0 0 4px rgba(232, 78, 15, 0.35), 0 0 20px 4px rgba(232, 78, 15, 0.15);
}

/* Edge circles — sky blue gradient (first and last of each row) */
.expertise-item:nth-child(4n+1),
.expertise-item:nth-child(4n) {
  background: linear-gradient(to top, #a8d4e6, var(--pr-sky));
  border-color: rgba(127, 179, 204, 0.4);
}

.expertise-item:nth-child(4n+1):hover,
.expertise-item:nth-child(4n):hover {
  background: linear-gradient(to top, #bde0ef, #96c9e0);
}

/* Centre circles — navy gradient (second and third of each row) */
.expertise-item:nth-child(4n+2),
.expertise-item:nth-child(4n+3) {
  background: linear-gradient(to top, var(--pr-navy), var(--pr-navy-dark));
  border-color: rgba(255,255,255,0.12);
}

.expertise-item:nth-child(4n+2):hover,
.expertise-item:nth-child(4n+3):hover {
  background: linear-gradient(to top, #243d5e, var(--pr-navy));
}

.expertise-item p {
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* Centre node */
.expertise-centre {
  display: flex;
  align-items: center;
  justify-content: center;
}

.expertise-centre .pr-badge {
  width: 90px;
  height: 90px;
  background: var(--pr-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--pr-white);
  letter-spacing: -0.03em;
}

/* ============================================================
   CASE STUDIES SECTION (Homepage preview)
   ============================================================ */
.case-studies-section {
  padding: 120px 40px;
  background: var(--pr-light-grey);
}

/* Case studies archive page wrappers */
.cs-archive-grid-wrap {
  padding: 80px 40px;
  background: var(--pr-light-grey);
}

.cs-archive-cta {
  background: var(--pr-navy);
  padding: 80px 40px;
  text-align: center;
}

.case-studies-header {
  margin-bottom: 60px;
}

.case-studies-header .pr-body-text {
  color: #555;
  margin-top: 16px;
}

.case-study-placeholder {
  background: var(--pr-navy);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.case-study-card {
  background: var(--pr-white);
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.case-study-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 50px rgba(0,0,0,0.14);
}

.case-study-card__image {
  display: block;
  position: relative;
  height: 240px;
  overflow: hidden;
  cursor: pointer;
}

.case-study-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: saturate(0.5) brightness(0.85);
}

.case-study-card:hover .case-study-card__image img {
  transform: scale(1.05);
}

.case-study-card__num {
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: 52px;
  height: 52px;
  background: var(--pr-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--pr-white);
  z-index: 2;
}

.case-study-card__sector {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--pr-navy);
  color: var(--pr-white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
}

.case-study-card__body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-study-card__title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--pr-navy);
  margin-bottom: 4px;
  line-height: 1.3;
}

.case-study-card__subtitle {
  font-size: 0.82rem;
  color: var(--pr-orange);
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}

.case-study-card__excerpt {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #555;
  flex: 1;
  margin-bottom: 20px;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pr-orange);
  transition: gap var(--transition-base);
}

.btn-read-more svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-base);
}

.btn-read-more:hover gap { gap: 14px; }
.btn-read-more:hover svg { transform: translateX(4px); }

.case-studies-cta {
  text-align: center;
  margin-top: 50px;
}

/* ============================================================
   TEAM SECTION
   ============================================================ */
.team-section {
  padding: 120px 40px;
  background: var(--pr-white);
}

.team-photo-placeholder {
  background: var(--pr-navy);
  aspect-ratio: 3/4;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 60px;
}

.team-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
}

.team-card__photo {
  position: relative;
}

.team-card__photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
}


.team-card__info {}

.team-card__name {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--pr-navy);
  margin-bottom: 2px;
}

.team-card__role-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pr-navy);
  margin-bottom: 2px;
}

.team-card__role-sub {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pr-orange);
  margin-bottom: 12px;
}

.team-card__creds {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 16px;
  line-height: 1.5;
}

.team-card__bio {
  font-size: 0.84rem;
  line-height: 1.7;
  color: #555;
  font-style: italic;
  border-left: 3px solid var(--pr-orange);
  padding-left: 16px;
  max-height: 160px;
  overflow: hidden;
  position: relative;
}

.team-card__bio.expanded { max-height: none; }

.team-card__bio::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(transparent, var(--pr-white));
}

.team-card__bio.expanded::after { display: none; }

.read-more-bio {
  background: none;
  border: none;
  color: var(--pr-orange);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 10px;
  padding: 0;
  transition: color var(--transition-base);
}

.read-more-bio:hover { color: var(--pr-navy); }

/* ============================================================
   CONTACT / CTA SECTION
   ============================================================ */
.contact-section {
  padding: 120px 40px;
  background: var(--pr-orange);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contact-section::before,
.contact-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}

.contact-section::before {
  width: 600px; height: 600px;
  top: -200px; left: -150px;
}

.contact-section::after {
  width: 400px; height: 400px;
  bottom: -100px; right: -100px;
}

/* Stormtroopers — rise from bottom when section enters viewport */
.contact-troopers {
  position: absolute;
  bottom: 0;
  right: 5%;
  height: 30%;
  width: auto;
  pointer-events: none;
  z-index: 1;            /* sits behind .container (z-index: 2) */
  transform: translateY(110%);
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1); /* spring-like rise */
  will-change: transform;
  user-select: none;
  /* mix-blend-mode: screen; */ /* uncomment if PNG has a black (non-transparent) background */
}

.contact-troopers.risen {
  transform: translateY(0%);
}

.contact-section .container {
  position: relative;
  z-index: 2;
}

.contact-section .pr-eyebrow {
  color: rgba(255,255,255,0.7);
}

.contact-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-ghost-white {
  background: rgba(255,255,255,0.15);
  color: white;
  border-color: transparent;
}

.contact-section .pr-section-title {
  color: var(--pr-white);
  margin-bottom: 16px;
}

.contact-section .pr-body-text {
  color: rgba(255,255,255,0.85);
  margin: 0 auto 50px;
  font-size: 1.1rem;
}

.contact-cards {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.contact-info-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 32px 40px;
  border-radius: 4px;
  text-align: left;
  min-width: 260px;
  backdrop-filter: blur(10px);
}

.contact-info-card .name {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--pr-white);
  margin-bottom: 2px;
}

.contact-info-card .title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
}

.contact-info-card a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.9);
  font-size: 0.88rem;
  margin-bottom: 6px;
  transition: color var(--transition-base);
  overflow-wrap: break-word;
  word-break: break-all;
}

.contact-info-card a:hover { color: var(--pr-white); }

.contact-info-card svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: rgba(255,255,255,0.6);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--pr-orange);
  color: var(--pr-white);
  border-color: var(--pr-orange);
}

.btn-primary:hover {
  background: var(--pr-orange-light);
  border-color: var(--pr-orange-light);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--pr-white);
  border-color: rgba(255,255,255,0.6);
}

.btn-outline-white:hover {
  background: var(--pr-white);
  color: var(--pr-orange);
  border-color: var(--pr-white);
}

.btn-outline-navy {
  background: transparent;
  color: var(--pr-navy);
  border-color: var(--pr-navy);
}

.btn-outline-navy:hover {
  background: var(--pr-navy);
  color: var(--pr-white);
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--pr-navy-dark);
  color: rgba(255,255,255,0.6);
  padding: 60px 40px 30px;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  width: 100px;
  height: auto;
}

.footer-brand .logo-text {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--pr-white);
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pr-orange);
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition-base);
}

.footer-col ul li a:hover { color: var(--pr-white); }

.footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  transition: color var(--transition-base);
}

.footer-bottom a:hover { color: var(--pr-white); }

/* ============================================================
   SINGLE CASE STUDY PAGE
   ============================================================ */
.case-study-hero {
  min-height: 60vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 80px 40px 60px;
  overflow: hidden;
  background: var(--pr-navy);
}

.case-study-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  filter: saturate(0.3);
}

.case-study-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--pr-navy) 10%, transparent);
  z-index: 1;
}

.case-study-hero__content {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}

.case-study-hero__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--pr-orange);
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--pr-white);
  margin-bottom: 20px;
}

.case-study-hero__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--pr-white);
  text-transform: uppercase;
  line-height: 1.1;
  max-width: 800px;
}

.case-study-hero__subtitle {
  font-size: 1.1rem;
  color: var(--pr-orange);
  font-weight: 700;
  margin-top: 10px;
}

.case-study-body {
  padding: 80px 40px;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: start;
}

.case-study-content p {
  margin-bottom: 1.4em;
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
}

.case-study-sidebar {
  position: sticky;
  top: 100px;
}

.case-study-meta-card {
  background: var(--pr-navy);
  padding: 32px;
  border-radius: 4px;
  margin-bottom: 24px;
}

.case-study-meta-card h4 {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pr-orange);
  margin-bottom: 20px;
}

.meta-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.meta-item .meta-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 3px;
}

.meta-item .meta-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--pr-white);
}

.back-to-cs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pr-orange);
  margin-bottom: 40px;
  transition: gap var(--transition-base);
}

.back-to-cs:hover { gap: 14px; }

/* ============================================================
   PAGE TEMPLATE - GENERIC
   ============================================================ */
.page-hero {
  min-height: 40vh;
  background: var(--pr-navy);
  display: flex;
  align-items: center;
  padding: 140px 40px 80px;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--pr-white);
  text-transform: uppercase;
}

.page-content {
  padding: 80px 40px;
  max-width: 900px;
  margin: 0 auto;
}

/* ============================================================
   CASE STUDIES ARCHIVE PAGE
   ============================================================ */
.archive-grid {
  padding: 80px 40px;
}

.archive-grid .container {
  max-width: 1320px;
}

/* ============================================================
   SCROLL INDICATOR / SECTION NAV
   ============================================================ */
.section-nav {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-nav__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 1.5px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
}

.section-nav__dot:hover,
.section-nav__dot.active {
  background: var(--pr-orange);
  border-color: var(--pr-orange);
  transform: scale(1.4);
}

.section-nav__dot[data-label]::before {
  content: attr(data-label);
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pr-white);
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.section-nav__dot:hover[data-label]::before { opacity: 1; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(1) { transition-delay: 0.1s; }
.fade-up:nth-child(2) { transition-delay: 0.2s; }
.fade-up:nth-child(3) { transition-delay: 0.3s; }
.fade-up:nth-child(4) { transition-delay: 0.4s; }

/* ============================================================
   DIVIDER
   ============================================================ */
.section-divider {
  height: 4px;
  background: linear-gradient(to right, var(--pr-orange), var(--pr-sky), var(--pr-navy));
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .expertise-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .team-card { grid-template-columns: 160px 1fr; }
}

@media (max-width: 900px) {
  :root { --section-padding: 80px 30px; }

  .grid-2 { grid-template-columns: 1fr; gap: 50px; }
  .grid-3, .case-studies-grid { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  /* All sections: zero horizontal padding, let .container's 40px handle gutters consistently */
  .intro-section { padding: 80px 0; }
  .expertise-section { padding: 80px 0; }
  .case-studies-section { padding: 80px 0; }
  .team-section { padding: 80px 0; }
  .contact-section { padding: 80px 0 200px; }
  .cs-archive-grid-wrap { padding: 60px 0; }
  .cs-archive-cta { padding: 60px 0; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .case-study-body { grid-template-columns: 1fr; padding: 60px 20px; gap: 40px; }
  .case-study-sidebar { position: static; }

  /* Full-screen mobile menu overlay — fade in/out via opacity */
  .primary-nav {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 998;
    background: var(--pr-navy);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .primary-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .primary-nav ul li a {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pr-white);
    padding: 12px 40px;
    transition: color 0.2s ease;
  }

  .primary-nav ul li a:hover { color: var(--pr-orange); }

  /* Reset desktop ::after underline — not needed in overlay */
  .primary-nav ul li a::after { display: none !important; }

  /* Reset nav-cta orange block — plain text link in overlay */
  .primary-nav ul li a.nav-cta {
    background: transparent !important;
    color: var(--pr-white) !important;
    padding: 12px 40px !important;
    border-radius: 0;
  }

  /* Header gets solid background when menu is open */
  .site-header.menu-open { background: var(--pr-navy-dark); }

  /* Logo and hamburger sit above overlay */
  .site-logo { position: relative; z-index: 1001; }
  .menu-toggle { display: flex; position: relative; z-index: 1001; }

  /* Hamburger → X */
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section-nav { display: none; }
  .contact-troopers { height: 150px; right: 0; }
}

@media (max-width: 600px) {
  .hero-logo-img { width: auto; height: 220px; }
  .hero-content { padding-bottom: 140px; }
  .hero-cta-group a:nth-child(2) { display: none; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .expertise-section { padding: 60px 0; }
  .expertise-item p { font-size: 0.85rem; }
  .contact-section { padding: 60px 0 160px; }
  .contact-cards { flex-direction: column; gap: 20px; }
  .contact-info-card { min-width: 0; width: 100%; padding: 24px 20px; box-sizing: border-box; }
  .team-card { grid-template-columns: 1fr; }
  .team-card__photo { max-width: 180px; }
  .contact-troopers { height: 120px; right: 0; }
}
