/*
Theme Name: scotchegg-turbo
Theme URI: https://scotchegg.digital/
Description: WordPress theme port of the Turbo-powered site with persistent Three.js background.
Author: Scotchegg
Version: 0.1.0
Text Domain: scotchegg-turbo
*/

/* ===============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ===============================================
   Central color system for the entire site.
   Update these values to change colors globally.
   =============================================== */
:root {
  /* Primary Brand Colors */
  --color-primary: #ff4c1e;          /* Main accent color (orange-red) */
  --color-secondary: #d88211;        /* Secondary accent (warm orange) */
  --color-highlight: #5dfddb;        /* Highlight/interactive (cyan) */

  /* Text Colors */
  --color-text-light: #ffffff;       /* Primary text on dark backgrounds */
  --color-text-light-secondary: rgba(255, 255, 255, 0.9); /* Secondary light text */
  --color-text-light-tertiary: rgba(255, 255, 255, 0.85);  /* Tertiary light text */
  --color-text-light-muted: rgba(255, 255, 255, 0.6);      /* Muted light text */
  --color-text-dark: #1a1a2e;        /* Text on light backgrounds */

  /* Border Colors */
  --color-border-default: var(--color-secondary);  /* Default border (will be overridden by JS palette) */
  --color-border-hover: var(--color-text-light);   /* Border hover state */
  --color-border-subtle: rgba(255, 255, 255, 0.3); /* Subtle borders */

  /* Background Colors */
  --color-bg-transparent: transparent;
  --color-bg-overlay-light: rgba(0, 0, 0, 0.2);    /* Light overlay */
  --color-bg-overlay-medium: rgba(0, 0, 0, 0.5);   /* Medium overlay */
  --color-bg-overlay-heavy: rgba(0, 0, 0, 0.8);    /* Heavy overlay */
  --color-bg-hover: rgba(255, 255, 255, 0.05);     /* Hover background */
  --color-bg-hover-strong: rgba(255, 255, 255, 0.08); /* Stronger hover */

  /* Three.js Background System */
  --bg-solid-color: #181b44;                       /* Solid background (deep midnight blue) */
  --bg-gradient-color-a: #af4220;                  /* Gradient stop A (neon magenta) */
  --bg-gradient-color-b: #d88211;                  /* Gradient stop B (neon cyan) */
  --bg-gradient-opacity: 0.55;                     /* Gradient opacity */
  --bg-sphere-line-color: #d88211;                 /* Sphere line color (cyan) */
  --bg-sphere-particle-color: #5dfddb;             /* Sphere particle color (magenta) */

  /* Spacing & Layout */
  --border-radius-default: 12px;
  --border-width-default: 1px;
  --transition-default: 0.3s ease;
}

/* Home floating promo cards */
.stage-flyer {
  position: absolute;
  right: 6%;
  top: 22%; /* Default position for first card */
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--color-bg-transparent);
  color: var(--color-text-light);
  border: var(--border-width-default) solid var(--color-border-default) !important;
  border-radius: var(--border-radius-default);
  text-decoration: none;
  box-shadow: none;
  z-index: 5;
  width: clamp(200px, 22vw, 360px);
  transition: border-color var(--transition-default);
  margin-bottom: 25px;
}

/* Stack second card below first - using more specific class */
.stage-flyer + .stage-flyer {
  top: calc(22% + 120px); /* First card + gap */
}

.stage-flyer:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-border-hover);
}
.stage-flyer__logo { width: 56px; height: 56px; object-fit: contain; display:block; filter: brightness(0) invert(1);
padding: 10px; }
.stage-flyer__content { line-height: 1.2; }
.stage-flyer__brand { font-weight: 800; color: var(--color-text-light); font-size: 1.1rem; }
.stage-flyer__text { color: var(--color-text-light); font-size: 0.95rem; margin: 4px 0 0; opacity: 0.9; }

@media (max-width: 1024px) {
  .stage-flyer {
    right: 20px;
    top: auto;
    bottom: 200px; /* Default position from bottom */
  }
  .stage-flyer + .stage-flyer {
    top: auto;
    bottom: 80px; /* Second card above first on mobile */
  }
}
@media (max-width: 768px) {
  .stage-flyer { display: none; }
}

/* Make stage logo clickable wrapper behave like original img */
.stage > .stage-logo { display: block; }
.stage > .stage-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Smooth background color transition for solid layer */
.stage > .backgroundStack > .backgroundStack-solidColor {
  transition: background-color 1.2s ease;
}

/* Set initial opacity for noise to prevent flash before JS loads */
.stage > .backgroundStack > .backgroundStack-noise {
  opacity: 0.06;
  transition: opacity 0.4s ease;
}

/* ===============================================
   BASE CONTENT BLOCK STYLING
   Used by all content panels across the site
   =============================================== */
.content-block {
  background: var(--color-bg-overlay-light);
  color: var(--color-text-light);
  border: var(--border-width-default) solid var(--color-border-default);
  border-radius: var(--border-radius-default);
  box-sizing: border-box;
  transition: border-color var(--transition-default);
  backdrop-filter: blur(5px);
}

/* Remove backdrop blur from nested content blocks */
.content-block .content-block {
  backdrop-filter: none;
}

.content-no-border {
  background: transparent;
  border: none;
  padding: 0 !important;
  margin-bottom: 0;
  color: var(--color-text-light);
}

/* Transparent right-panel with stroked outline */
.content {
  background: var(--color-bg-transparent) !important;
  color: var(--color-text-light) !important;
  border: var(--border-width-default) solid var(--color-border-default);
  border-radius: var(--border-radius-default);
  box-sizing: border-box;
  padding: 20px;
}
.content .content-textwrapper { color: inherit; }
.content a { color: var(--color-text-light); }

/* Inner padding so content doesn't touch the stroked border */
.content .content-content > .wrapper {
  padding: 20px 32px;
}
@media (max-width: 1120px) {
  .content .content-content > .wrapper { padding: 16px 24px; }
}
@media (max-width: 768px) {
  .content .content-content > .wrapper { padding: 12px 16px; }
}

/* Contact page styling */
.content .content-content--contact .contact-map {
  height: 300px !important; /* Half the original height */
  margin-bottom: 20px;
}

.content .content-content--contact {
  padding: 30px;
}

/* Form styling */
.content .content-content--contact form {
  padding: 20px 0;
}

.content .content-content--contact label,
.content .content-content--contact .wpforms-field-label {
  color: var(--color-text-light) !important;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.content .content-content--contact input[type="text"],
.content .content-content--contact input[type="email"],
.content .content-content--contact textarea,
.content .content-content--contact select {
  background: rgba(255, 255, 255, 0.1);
  border: var(--border-width-default) solid var(--color-border-subtle);
  color: var(--color-text-light);
  padding: 12px;
  border-radius: 4px;
  width: 100%;
  margin-bottom: 20px;
}

.content .content-content--contact input::placeholder,
.content .content-content--contact textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.content .content-content--contact input[type="submit"],
.content .content-content--contact button[type="submit"] {
  background: var(--color-bg-transparent);
  border: 2px solid var(--color-highlight);
  color: var(--color-text-light);
  padding: 12px 30px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  transition: all var(--transition-default);
}

.content .content-content--contact input[type="submit"]:hover,
.content .content-content--contact button[type="submit"]:hover {
  background: rgba(0, 229, 255, 0.2);
  border-color: var(--color-border-hover);
}


/* ===============================================
   GRAVITY FORMS
   =============================================== */

 .gform-theme--framework .gfield_label,
 .gform-theme--framework .gfield_description {
  color: #ffffff!important;
 }


.gform-theme--framework input[type="text"],
.gform-theme--framework input[type="email"],
.gform-theme--framework input[type="tel"],
.gform-theme--framework textarea,
.gform-theme--framework input[type="file"]{
  background-color: #cacaca!important;
 }  


.gform-theme--framework input[type="text"]:focus,
.gform-theme--framework input[type="email"]:focus,
.gform-theme--framework input[type="tel"]:focus,
.gform-theme--framework textarea:focus,
.gform-theme--framework input[type="file"]:focus {
  outline-color: var(--color-secondary)!important;
}

.gform-theme--framework input[type="submit"] {
  background-color: var(--color-secondary)!important;
}

.gform-theme--framework input[type="submit"]:hover {
  background-color: var(--bg-gradient-color-a)!important;
}

.gform_validation_errors {
  background-color: #cacaca!important;
}

.gform_submission_error, .gform_validation_error_link {
  font-weight: bold!important;
}

.gfield_fileupload_filename {
  color: #ffffff!important;
  font-size: 18px!important;
  margin-top: 20px!important;
}


@media (max-width: 1024px) {
  .gf_left_third, .gf_middle_third, .gf_right_third {
    grid-column: span 12!important;
  }
}
      


/* ===============================================
   HOMEPAGE BELOW-FOLD CONTENT SECTION
   =============================================== */

/* Allow scrolling on homepage only - stage acts as first viewport section */
body.home .stage {
  overflow: visible !important;
  height: 100vh;
  min-height: 100vh;
}

/* Make background layers fixed and full-screen */
body.home .backgroundStack {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

/* Keep logo fixed in top-left during scroll */
body.home .stage-logo {
  position: fixed !important;
  top: 40px;
  left: 40px;
  z-index: 10;
}

/* Make header, nav, and promo cards FIXED so they don't scroll - only fade */
body.home .stage-header {
  position: fixed !important;
  top: 30%;
  left: 40px;
  width: 100%;
  z-index: 2;
}

body.home .stage-nav {
  position: fixed !important;
  bottom: 75px;
  left: 30px;
  z-index: 2;
}

body.home .stage-flyer {
  position: fixed !important;
  z-index: 2;
}

/* Ensure elements can fade out smoothly */
body.home .stage-header,
body.home .stage-flyer {
  transition: opacity 0.4s ease;
}

/* Desktop: menu doesn't fade */
body.home .stage-nav {
  transition: opacity 0.4s ease;
}

/* Mobile: menu DOES fade out on scroll */
@media (max-width: 768px) {
  body.home .stage-nav {
    transition: opacity 0.4s ease;
    left: 10px; /* Align with header content */
   
  }

  /* Fix hero text overflow on mobile */
  body.home .stage-header {
    left: 20px;
    right: 20px;
    width: auto;
  }

  .stage > .stage-header {
    white-space: normal;
    left: 20px;
    right: 20px;
    width: auto;
  }

  .stage > .stage-header h1,
  .stage > .stage-header h2 {
    font-size: 1.5em;
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .stage > .stage-header h1 {
    min-height: 2.8em;
    margin-bottom: 0.5em;
  }

  .stage > .stage-header h3 {
    font-size: 1em;
  }
}

/* ===============================================
   MOBILE HAMBURGER MENU
   =============================================== */

/* Hamburger menu button - hidden on desktop, shown on mobile */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 40px;
  right: 40px;
  z-index: 100;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-toggle .hamburger-icon {
  width: 30px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-menu-toggle .hamburger-icon span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--color-text-light);
  transition: all var(--transition-default);
}

/* Show hamburger on inner pages for screens ≤1700px */
@media (max-width: 1700px) {
  body:not(.home) .mobile-menu-toggle {
    display: block;
  }

  /* Hide hamburger on homepage - bottom menu is already visible */
  body.home .mobile-menu-toggle {
    display: none;
  }
}

/* Mobile menu dropdown */
.mobile-menu-dropdown {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 99;
  padding: 100px 30px 30px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu-dropdown.active {
  transform: translateX(0);
}

.mobile-menu-dropdown ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-dropdown ul li {
  margin-bottom: 20px;
}

.mobile-menu-dropdown ul li a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color var(--transition-default);
  display: block;
  padding: 10px 0;
}

.mobile-menu-dropdown ul li a:hover {
  color: var(--color-secondary);
}

/* Show mobile menu dropdown on inner pages for screens ≤1700px */
@media (max-width: 1700px) {
  body:not(.home) .mobile-menu-dropdown {
    display: flex;
  }
}

/* Show mobile menu dropdown on homepage only at mobile sizes */
@media (max-width: 768px) {
  body.home .mobile-menu-dropdown {
    display: flex;
  }
}

/* Cyber Essentials certification in mobile menu */
.mobile-menu-certification {
  margin-top: auto;
  padding-top: 30px;
  text-align: center;
}

.mobile-menu-certification img {
  width: 80px;
  height: auto;
  opacity: 0.8;
}

/* Cyber Essentials badge - fixed bottom right */
.cyber-essentials-badge {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 50;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.cyber-essentials-badge:hover {
  opacity: 1;
}

.cyber-essentials-badge img {
  width: 60px;
  height: auto;
}

/* Hide fixed badge on mobile (shown in hamburger menu instead) */
@media (max-width: 768px) {
  .cyber-essentials-badge {
    display: none;
  }
}

/* Position homepage-below-fold section BELOW the fold (after first viewport) */
body.home .homepage-below-fold {
  position: relative;
  z-index: 1;
  margin-top: 100vh;
}

/* Scroll indicator at bottom of stage */
.scroll-indicator {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  text-align: center;
  animation: bounce 2s infinite;
  pointer-events: none;
}

.scroll-indicator i {
  display: block;
  margin-top: 5px;
  font-size: 1.2rem;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* Below-fold content section */
.homepage-below-fold {
  position: relative;
  background: transparent;
  color: #ffffff;
  padding: 80px 0;
  min-height: 100vh;
}

.homepage-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .homepage-container {
    padding: 0 20px;
  }
  .homepage-below-fold {
    padding: 60px 0;
  }
}

/* Section spacing - extends .content-block base */
.hp-section {
  margin-bottom: 80px;
  padding: 40px;
}

.hp-section:last-child {
  margin-bottom: 0;
}

.hp-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text-light);
  /*   color: var(--color-highlight); */
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hp-section h3 {
  font-size: 1.3rem;
  line-height:1.5 ;


} 

.hp-section p{
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--color-text-light-secondary);
  margin-bottom: 20px;
}

.hp-why-intro {
  margin-bottom: 24px;
}

.hp-section p.lead {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--color-text-light-secondary);
  max-width: 900px;
}

@media (max-width: 768px) {
  .hp-section h2 {
    font-size: 1.8rem;
  }
  .hp-section p {
    font-size: 1rem;
  }
  .hp-section p.lead {
    font-size: 1.1rem;
  }
}

/* Service Grid */
.hp-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Service Grid - Column Variations */
.hp-service-grid--cols-1 {
  grid-template-columns: 1fr;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hp-service-grid--cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.hp-service-grid--cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .hp-service-grid--cols-2,
  .hp-service-grid--cols-3 {
    grid-template-columns: 1fr;
  }
}

.hp-service-card {
  padding: 30px;
  transition: all var(--transition-default);
}

.hp-service-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.hp-service-card:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-border-hover);
  transform: translateY(-5px);
}

.hp-service-icon {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.hp-service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 15px;
}

.hp-service-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-light-tertiary);
  margin-bottom: 20px;
}

.hp-service-link {
  display: inline-block;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-default);
}

.hp-service-card:hover .hp-service-link {
  color: var(--color-text-light);
}

/* Case Study Grid */
.hp-case-study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Case Study Grid - Column Variations */
.hp-case-study-grid--cols-1 {
  grid-template-columns: 1fr;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hp-case-study-grid--cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.hp-case-study-grid--cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .hp-case-study-grid--cols-2,
  .hp-case-study-grid--cols-3 {
    grid-template-columns: 1fr;
  }
}

.hp-case-study-card {
  padding: 30px;
  transition: all var(--transition-default);
}

.hp-case-study-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.hp-case-study-card:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-border-hover);
  transform: translateY(-5px);
}

.hp-case-study-logo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.hp-case-study-logo img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

.hp-case-study-placeholder {
  width: 80px;
  height: 80px;
  background: var(--color-bg-hover);
  border-radius: 4px;
}

.hp-case-study-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--color-text-light);
}

.hp-case-study-card p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.hp-case-study-link {
  display: inline-block;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-default);
}

.hp-case-study-card:hover .hp-case-study-link {
  color: var(--color-text-light);
}

/* Case Studies - Logo Only Grid */
.hp-case-studies--logo-only .our-work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

@media (min-width: 1024px) {
  .hp-case-studies--logo-only .our-work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hp-case-studies--logo-only .our-work-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--border-radius-default);
  min-height: 160px;
  transition: border-color var(--transition-default), transform var(--transition-default);
}

.hp-case-studies--logo-only .our-work-grid li:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
}

.hp-case-studies--logo-only .our-work-grid li .case-study-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.hp-case-studies--logo-only .our-work-grid li .wrapper {
  width: 100%;
  max-width: 180px;
}

.hp-case-studies--logo-only .our-work-grid li img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 600px) {
  .hp-case-studies--logo-only .our-work-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 16px;
  }

  .hp-case-studies--logo-only .our-work-grid li {
    padding: 20px;
    min-height: 120px;
  }

  .hp-case-studies--logo-only .our-work-grid li .wrapper {
    max-width: 140px;
  }
}

/* Why Choose Us Grid */
.hp-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.hp-why-item {
  text-align: center;
  padding: 20px;
}

.hp-why-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 5px;
}

.hp-why-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hp-why-item--horizontal {
  text-align: left;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--border-radius-default);
  align-items: flex-start;
}

.hp-why-item--horizontal .hp-why-icon {
  font-size: 2rem;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-why-item--horizontal h3 {
  margin-top: 0;
}

.hp-why-item h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 15px;
}

.hp-why-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-light-tertiary);
}

.hp-why-copy {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-light-tertiary);
}

.hp-why-text {
  display: flex;
  flex-direction: column;
  /* gap: 8px; */
}

.hp-why-item:not(.hp-why-item--horizontal) .hp-why-text {
  text-align: center;
}

/* CTA Section - extends .content-block base */
.page-content--cta {
  text-align: center;
}

.page-content--cta h1,
.page-content--cta h2 {
  text-align: center !important;
}

.page-content--cta .page-content-body {
  max-width: 700px;
  margin: 0 auto 40px;
}

.page-content--cta .page-content-body p {
  font-size: 1.1rem;
}

.hp-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Handle WordPress wrapping buttons in p tags */
.hp-cta-buttons p {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
}

.hp-btn {
  display: inline-block;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 6px;
  transition: all var(--transition-default);
  letter-spacing: 1px;
  white-space: nowrap;
  vertical-align: middle;
}

.hp-btn-primary {
  background: var(--color-primary);
  color: var(--color-text-dark);
  border: 2px solid var(--color-primary);
}

.hp-btn-primary:hover {
  background: var(--color-text-light);
  color: var(--color-text-dark);
  border-color: var(--color-text-light);
}

.hp-btn-secondary {
  background: var(--color-bg-transparent);
  color: var(--color-text-light);
  border: 2px solid var(--color-text-light);
}

.hp-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .page-content--cta h2 {
    font-size: 1.8rem;
  }
  .hp-btn {
    padding: 12px 30px;
    font-size: 1rem;
  }
}

/* ===============================================
   HERO SECTION - Homepage-style hero text for pages
   =============================================== */

.page-hero-section {
  width: 100%;
  text-align: left;
  padding: 60px 0px;
  margin-bottom: 40px;
}

.page-hero-h1 {
  font-size: 3.5rem;
  color: var(--color-secondary);
  font-weight: 700;
  margin: 0 0 20px 0;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.page-hero-h2 {
  font-size: 3.5rem;
  color: var(--color-highlight);
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

@media screen and (max-width: 800px) {
  .page-hero-h1,
  .page-hero-h2 {
    font-size: 2rem;
  }
  .page-hero-section {
    padding: 40px 20px;
  }
}

@media screen and (max-width: 480px) {
  .page-hero-h1,
  .page-hero-h2 {
    font-size: 1.5rem;
  }
}

/* ===============================================
   CENTERED PAGE CONTENT (New System)
   Uses same structure as homepage
   =============================================== */

/* Fix all stage elements on non-homepage pages */
body:not(.home) .stage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: auto;
  overflow: visible;
  z-index: 1;
  pointer-events: auto;
}

body:not(.home) .backgroundStack {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

body:not(.home) .backgroundStack canvas {
  opacity: 0.4;
}

body:not(.home) .stage-logo {
  position: fixed !important;
  top: 40px;
  left: 40px;
  z-index: 10;
  pointer-events: auto;
}

body:not(.home) .stage-nav {
  position: fixed !important;
  bottom: 75px;
  left: 40px;
  z-index: 10;
  pointer-events: auto;
}

/* Hide bottom menu on inner pages for screens ≤1900px - use hamburger menu instead */
@media (max-width: 1900px) {
  body:not(.home) .stage-nav {
    display: none;
  }
}

/* Hide stage header on non-homepage pages */
body:not(.home) .stage-header {
  display: none;
}

/* Page content wrapper - scrolls naturally like homepage-below-fold */
.page-content-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 150px 0 80px; /* Top padding to clear fixed nav */
  z-index: 3;
}

.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .page-container {
    padding: 0 20px;
  }
  .page-content-wrapper {
    padding: 110px 0 60px;
  }
}

/* Page section - extends .content-block base */
.page-section {
  margin-bottom: 60px;
  padding: 40px;
}

.page-section:last-child {
  margin-bottom: 0;
}

.page-content h1,
.page-content-body h1,
h2.h1-style,
.h1-style {
  font-size: 3rem !important;
  color: var(--color-highlight) !important;
  font-weight: 700 !important;
  margin: 0 0 20px 0;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-align: left;
}

.page-content h2,
.page-content-body h2 {
  font-size: 2.5rem;
  color: var(--color-highlight);
    color: var(--color-secondary);
  font-weight: 400;
  margin: 0 0 20px 0;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-align: left;
}

.page-content-body h2:first-child,
.page-content h2:first-child {
  margin-top: 0;
}

/* Quote-style H2 */
.page-content h2.quote,
.page-content-body h2.quote {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-style: italic;
  font-weight: 400;
  font-size: 2rem;
  color: var(--color-secondary);
  margin: 20px auto;
  padding: 40px 30px;
  border-top: 1px solid var(--color-border-default);
  border-bottom: 1px solid var(--color-border-default);
}

.page-content h2.quote::before,
.page-content-body h2.quote::before {
  content: '';
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: url('assets/_assets/quote.png') no-repeat center center;
  background-size: contain;
}

.page-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-light);
  margin: 30px 0 15px;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.25);
}

.page-section--header-content{
  margin-bottom: 5px;
 margin-left: 0px;
}
.page-section--header-content h3 {
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--color-highlight);
  margin: 30px 0 15px;
}


.page-content-body h3:first-child {
  margin-top: 0;
}

.page-content-body {
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--color-text-light-secondary);
}

.page-content-body p {
  margin-bottom: 30px;
}

.page-content-body ul,
.page-content-body ol {
  margin: 20px 0;
  padding-left: 30px;
  color: var(--color-text-light-secondary);
}

.page-content-body li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.page-content-body a:not(.hp-btn) {
  color: var(--color-highlight);
  text-decoration: underline;
  transition: color var(--transition-default);
}

.page-content-body a:not(.hp-btn):hover {
  color: var(--color-highlight);
}

@media screen and (max-width: 800px) {
  .page-content h1,
  .page-content-body h1,
  .h1-style,
  .page-content h2,
  .page-content-body h2 {
    font-size: 2rem;
  }
}

@media screen and (max-width: 480px) {
  .page-content h1,
  .page-content-body h1,
  .h1-style,
  .page-content h2,
  .page-content-body h2 {
    font-size: 1.4rem !important;
  }
}

@media (max-width: 768px) {
  .page-section {
    padding: 30px 20px;
    margin-bottom: 40px;
  }

  .page-content h3 {
    font-size: 1.3rem;
  }

  .page-content-body {
    font-size: 1rem;
  }
}

/* Work portfolio grid */
.page-section--work .content-content {
  margin: 0;
}

.page-section--work .our-work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

@media (min-width: 1024px) {
  .page-section--work .our-work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-section--work .our-work-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--border-radius-default);
  min-height: 160px;
  transition: border-color var(--transition-default), transform var(--transition-default);
}

.page-section--work .our-work-grid li:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
}

.page-section--work .our-work-grid li .case-study-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.page-section--work .our-work-grid li .case-study-card:focus-visible {
  outline: 2px solid var(--color-highlight);
  outline-offset: 4px;
}

.page-section--work .our-work-grid li .wrapper {
  width: 100%;
  max-width: 180px;
  position: static;
}

.page-section--work .our-work-grid li img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Case Study Logo (featured image) */
.case-study-page .page-section--case-study-logo {
  width: 25% !important;
  max-width: 250px;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: clamp(20px, 4vw, 30px);
  padding: 20px !important;
}

.case-study-page .page-section--case-study-logo .page-content {
  width: 100%;
  margin: 0;
  padding: 0;
}

.case-study-logo {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
}

.case-study-logo img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .case-study-page .page-section--case-study-logo {
    width: 50% !important;
    max-width: none;
  }
}

/* Case Study Banner */
.case-study-banner {
  width: 100%;
  margin: 0 0 clamp(24px, 5vw, 40px);
  padding: clamp(12px, 3vw, 28px);
  border-radius: var(--border-radius-default);
  border: 1px solid var(--color-border-subtle);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.case-study-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: calc(var(--border-radius-default) / 1.5);
}

.case-study-page .page-section--case-study-logo,
.case-study-page .page-section--case-study {
  margin-top: 0;
}

.case-study-testimonial {
  margin-top: 24px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--color-highlight);
  font-style: italic;
  color: var(--color-text-light-secondary);
}

.case-study-testimonial cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--color-text-light);
}

.case-study-link {
  margin-top: 24px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 36px;
}

.service-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--border-radius-default);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color var(--transition-default), transform var(--transition-default);
  min-height: 260px;
}

.service-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-3px);
}

.service-card__icon {
  font-size: 2.4rem;
  color: var(--color-highlight);
}

.service-card__title {
  margin: 0;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-card__title a {
  color: var(--color-text-light);
  text-decoration: none;
}

.service-card__title a:hover {
  color: var(--color-highlight);
}

.service-card__teaser {
  margin: 0;
  color: var(--color-text-light-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

.service-card__link {
  align-self: flex-start;
}

.services-empty {
  margin-top: 24px;
  color: var(--color-text-light-secondary);
}

.testimonial-stack {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 12px;
}

.testimonial-quote {
  position: relative;
  text-align: center;
  padding: 40px 30px;
}

/* Centered 75% width lines above and below testimonial */
.testimonial-quote::before {
  content: '';
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--color-border-default);
  top: 0;
}

.testimonial-quote::after {
  content: '';
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--color-border-default);
  bottom: 0;
}

.testimonial-quote blockquote {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 0;
  padding: 0;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.7;
  color: var(--color-text-light);
  font-weight: 400;
  font-style: italic;
}

.testimonial-quote blockquote::before {
  content: '';
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: url('assets/_assets/quote.png') no-repeat center center;
  background-size: contain;
}

.testimonial-quote blockquote p {
  margin: 0 0 12px 0;
}

.testimonial-quote blockquote p:last-child {
  margin-bottom: 0;
}

.testimonial-attribution {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 500;
  color: var(--color-text-light-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.testimonial-quote--empty blockquote {
  padding-left: 0;
}

.testimonial-quote--empty blockquote::before,
.testimonial-quote--empty blockquote::after {
  display: none;
}

.service-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.service-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--color-border-subtle);
  font-size: 2rem;
  color: var(--color-highlight);
}

.service-teaser {
  font-size: 1.1rem;
  color: var(--color-text-light-secondary);
  margin-bottom: 24px;
}

.service-page .page-content h1 {
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .page-section--work .our-work-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 16px;
  }

  .page-section--work .our-work-grid li {
    padding: 20px;
    min-height: 120px;
  }

  .page-section--work .our-work-grid li .wrapper {
    max-width: 140px;
  }

  .services-grid {
    gap: 20px;
  }

  .service-card {
    padding: 22px;
  }

  .testimonial-stack {
    gap: 24px;
  }

  .testimonial-quote blockquote {
    padding: 0;
  }

  .testimonial-attribution {
    padding-left: 0;
  }

  .service-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .hp-why-item--horizontal {
    grid-template-columns: 60px 1fr;
    gap: 16px;
  }

  .hp-why-item--horizontal .hp-why-icon {
    margin-bottom: 0;
  }

  .service-icon-badge {
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
  }
}
  .hp-why-item--horizontal {
    flex-direction: column;
  }

  .hp-why-item--horizontal .hp-why-icon {
    margin-bottom: 12px;
  }
