/*
Theme Name: Groundwork Health
Theme URI: https://groundworkhealth.co.uk
Author: Groundwork Health
Author URI: https://groundworkhealth.co.uk
Description: A modern, professional WordPress theme for Groundwork Health — built with a coral-to-orange gradient palette, deep navy, and clean white design. Includes homepage sections, inner page templates, blog, and full Customizer support.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: groundwork-health
Tags: health, community, modern, responsive, custom-colors, custom-menu, featured-images, threaded-comments, accessibility-ready
*/

/* =========================================================
   CSS CUSTOM PROPERTIES
   ========================================================= */
:root {
  --navy:         #2D2F6B;
  --navy-dark:    #1E2050;
  --navy-mid:     #3D3F88;
  --coral:        #E8674A;
  --coral-light:  #F0856D;
  --orange:       #F4973A;
  --orange-light: #F7B068;
  --white:        #FFFFFF;
  --off-white:    #F7F8FC;
  --light-blue:   #EEF1FB;
  --border:       #E2E6F5;
  --text-dark:    #1A1C3E;
  --text-mid:     #4A4C6A;
  --text-muted:   #8587A8;
  --grad:         linear-gradient(120deg, #E8674A 0%, #F4973A 100%);
  --grad-soft:    linear-gradient(120deg, rgba(232,103,74,.12) 0%, rgba(244,151,58,.12) 100%);
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --radius-xl:    20px;
  --shadow-sm:    0 4px 18px rgba(45,47,107,.07);
  --shadow-md:    0 8px 30px rgba(45,47,107,.11);
  --shadow-lg:    0 16px 44px rgba(45,47,107,.13);
  --transition:   0.2s ease;
}

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

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

body {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 400;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--coral);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--orange); }

ul, ol { list-style: none; }

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

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  color: var(--navy-dark);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
h5 { font-size: 0.95rem; }
h6 { font-size: 0.875rem; }

p {
  color: var(--text-mid);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 1rem;
}

p:last-child { margin-bottom: 0; }

strong { font-weight: 700; color: var(--text-dark); }

blockquote {
  border-left: 3px solid var(--coral);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-mid);
}

/* =========================================================
   LAYOUT CONTAINERS
   ========================================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.container--wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 5%;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn--grad {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(232,103,74,.28);
}

.btn--grad:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(232,103,74,.35);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--navy-mid);
  background: var(--light-blue);
  color: var(--navy-dark);
}

.btn--white {
  background: var(--white);
  color: var(--coral);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.15);
  color: var(--coral);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.45);
}

.btn--outline-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
  color: var(--white);
}

.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.8rem;
}

/* =========================================================
   SECTION UTILITIES
   ========================================================= */
.section-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.875rem;
}

.section-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-tag--light { color: var(--orange); }
.section-tag--light::before { background: var(--grad); }

.grad-text {
  background: linear-gradient(120deg, #E8674A, #F4973A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 68px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(45,47,107,.08);
}

.site-header__inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo__icon { flex-shrink: 0; }

.site-logo__text {
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--navy-dark);
}

.site-logo__text span {
  font-weight: 600;
  color: var(--text-mid);
}

/* Primary Nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav ul li { position: relative; }

.primary-nav ul li a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  transition: color var(--transition);
}

.primary-nav ul li a:hover,
.primary-nav ul li.current-menu-item > a,
.primary-nav ul li.current-page-ancestor > a {
  color: var(--navy-dark);
}

/* Dropdown */
.primary-nav ul li ul {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  flex-direction: column;
  gap: 0;
  display: none;
  padding: 0.5rem;
  z-index: 100;
}

.primary-nav ul li:hover > ul { display: flex; }

.primary-nav ul li ul li a {
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.875rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.primary-nav ul li ul li a:hover {
  background: var(--light-blue);
  color: var(--navy-dark);
}

/* Nav CTA */
.nav-cta {
  margin-left: 1rem;
  padding: 0.5rem 1.25rem;
  background: var(--grad);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
  font-size: 0.875rem;
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition);
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: var(--white) !important;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 5%;
  z-index: 999;
  flex-direction: column;
  gap: 0;
  box-shadow: var(--shadow-md);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--navy-dark); }

.mobile-nav .nav-cta {
  margin: 0.75rem 0 0;
  display: block;
  text-align: center;
  padding: 0.75rem;
  border-bottom: none;
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  min-height: 100vh;
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: 68px;
  position: relative;
  overflow: hidden;
}

.hero__bg-panel {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 50%;
  background: url('https://groundworkhealth.co.uk/wp-content/uploads/2026/04/vitaly-gariev-8gAbl776pc0-unsplash-scaled.jpg') center 30% / cover no-repeat;
  clip-path: polygon(6% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 0;
  pointer-events: none;
}

.hero__bg-dots {
  position: absolute;
  right: 0; top: 0;
  width: 50%; height: 100%;
  background-image: radial-gradient(circle, rgba(45,47,107,.12) 1px, transparent 1px);
  background-size: 26px 26px;
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  padding: 5rem 4rem 5rem 5%;
  position: relative;
  z-index: 2;
  animation: fadeUp 0.75s ease both;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(120deg, rgba(232,103,74,.1), rgba(244,151,58,.1));
  border: 1px solid rgba(232,103,74,.22);
  border-radius: 100px;
  padding: 0.3rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1.75rem;
}

.hero__badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--coral);
  animation: pulse 2s ease-in-out infinite;
}

.hero__title { margin-bottom: 1.5rem; }

.hero__lead {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-mid);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero__proof {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__avatars { display: flex; }

.hero__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--white);
  margin-right: -9px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}

.hero__proof-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 9px;
}

.hero__proof-text strong {
  color: var(--text-dark);
  font-weight: 700;
}

.hero__visual {
  position: relative;
  z-index: 2;
  padding: 5rem 5% 5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
  width: 100%;
  max-width: 380px;
}

.hero__card {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 8px 32px rgba(45,47,107,0.18);
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(45,47,107,0.25);
}

.hero__card--featured {
  background: rgba(30,32,80,0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255,255,255,0.12);
  grid-column: 1 / -1;
}

.hero__card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--grad-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}

.hero__card--featured .hero__card-icon {
  background: rgba(255,255,255,.08);
}

.hero__card-num {
  font-family: 'Nunito', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.hero__card--featured .hero__card-num {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.4rem;
}

.hero__card-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

.hero__card--featured .hero__card-label { color: rgba(255,255,255,.45); }

/* =========================================================
   LOGOS BAR
   ========================================================= */
.logos-bar {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.logos-bar__label {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.logos-bar__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.logos-bar__item {
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--text-muted);
  opacity: 0.55;
  letter-spacing: 0.02em;
  transition: opacity var(--transition);
}

.logos-bar__item:hover { opacity: 1; }

/* =========================================================
   INTRO SECTION
   ========================================================= */
.intro-section {
  padding: 6rem 0;
  background: var(--white);
}

.intro-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.intro-section__title { margin-bottom: 1.25rem; }

.intro-section__text {
  font-size: 0.975rem;
  color: var(--text-mid);
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 0.875rem;
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

.value-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  transition: border-color var(--transition), transform var(--transition);
}

.value-card:hover {
  border-color: rgba(232,103,74,.25);
  transform: translateY(-3px);
}

.value-card:first-child {
  grid-column: 1 / -1;
  background: var(--light-blue);
  border-color: transparent;
}

.value-card__icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem;
}

.value-card__title {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.value-card__text {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* =========================================================
   SERVICES SECTION
   ========================================================= */
.services-section {
  background: var(--navy-dark);
  padding: 6rem 0;
}

.services-section .section-header {
  margin-bottom: 2.5rem;
}

.services-section .section-header h2 { color: var(--white); }

.services-section .section-header p {
  color: rgba(255,255,255,.5);
  max-width: 520px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: rgba(255,255,255,.03);
  padding: 2rem 1.75rem;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover { background: rgba(255,255,255,.06); }
.service-card:hover::after { transform: scaleX(1); }

.service-card__icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(232,103,74,.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}

.service-card__title {
  font-family: 'Nunito', sans-serif;
  font-size: 0.975rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.service-card__text {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(255,255,255,.45);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.service-card__link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange-light);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* =========================================================
   STATS SECTION
   ========================================================= */
.stats-section {
  background: var(--white);
  padding: 5rem 0;
}

.stats-inner {
  background: var(--light-blue);
  border-radius: var(--radius-xl);
  padding: 3.5rem 4%;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 4rem;
  align-items: center;
}

.stats-inner h2 { margin-bottom: 0.75rem; }

.stats-inner > div:first-child p {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.7;
  margin: 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 1rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(45,47,107,.1);
}

.stat-item:last-child { border-right: none; }

.stat-item__num {
  font-family: 'Nunito', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.35rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item__label {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.4;
}

/* =========================================================
   APPROACH SECTION
   ========================================================= */
.approach-section {
  background: var(--off-white);
  padding: 6rem 0;
}

.approach-section .section-header {
  margin-bottom: 3rem;
}

.approach-section .section-header p {
  max-width: 500px;
  font-size: 0.975rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-card__connector {
  position: absolute;
  top: 2.25rem; right: -0.9rem;
  width: 1.8rem; height: 2px;
  background: var(--grad);
  z-index: 1;
}

.step-card:last-child .step-card__connector { display: none; }

.step-card__badge {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--grad);
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}

.step-card__title {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 0.5rem;
}

.step-card__text {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* =========================================================
   CASE STUDIES
   ========================================================= */
.cases-section {
  background: var(--white);
  padding: 6rem 0;
}

.cases-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.case-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.case-card__thumb {
  aspect-ratio: 16/9;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  overflow: hidden;
  position: relative;
}

.case-card__thumb--1 { background: linear-gradient(135deg, #1E2050 0%, #3D3F88 55%, #E8674A 100%); }
.case-card__thumb--2 { background: linear-gradient(135deg, #2D2F6B 0%, #E8674A 100%); }
.case-card__thumb--3 { background: linear-gradient(135deg, #3D3F88 0%, #F4973A 100%); }

.case-card__thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.case-card__chip {
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.case-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-card__title {
  font-family: 'Nunito', sans-serif;
  font-size: 0.975rem;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  flex: 1;
}

.case-card__excerpt {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.case-card__result {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 0.85rem;
  background: linear-gradient(120deg, rgba(232,103,74,.08), rgba(244,151,58,.08));
  border-radius: 8px;
  border: 1px solid rgba(232,103,74,.14);
}

.case-card__result-num {
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.case-card__result-text {
  font-size: 0.73rem;
  color: var(--text-mid);
  line-height: 1.3;
}

.cases-section__cta { text-align: center; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials-section {
  background: var(--navy-dark);
  padding: 6rem 0;
}

.testimonials-section .section-header h2 { color: var(--white); }
.testimonials-section .section-header p {
  color: rgba(255,255,255,.45);
  max-width: 480px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.testimonial-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: background var(--transition);
}

.testimonial-card:hover { background: rgba(255,255,255,.08); }

.testimonial-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1.25rem;
}

.star {
  width: 13px; height: 13px;
  background: var(--grad);
  clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
}

.testimonial-card__quote {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255,255,255,.68);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: normal;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 1.25rem;
}

.testimonial-card__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--white);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  display: block;
}

.testimonial-card__role {
  font-size: 0.73rem;
  font-weight: 300;
  color: rgba(255,255,255,.4);
  display: block;
}

/* =========================================================
   CTA SECTION
   ========================================================= */
.cta-section {
  background: var(--white);
  padding: 5rem 0;
}

.cta-box {
  background: var(--grad);
  border-radius: var(--radius-xl);
  padding: 5rem 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

.cta-box__title {
  color: var(--white);
  max-width: 600px;
  margin: 0 auto 1rem;
  position: relative;
}

.cta-box__text {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,.8);
  max-width: 460px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  position: relative;
}

.cta-box__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* =========================================================
   NEWSLETTER
   ========================================================= */
.newsletter-section {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0;
}

.newsletter-section__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.newsletter-section__title {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}

.newsletter-section__sub {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-muted);
  margin: 0;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.newsletter-form input[type="email"] {
  padding: 0.75rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.875rem;
  font-family: 'Nunito Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  width: 260px;
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-form input[type="email"]:focus { border-color: var(--coral); }
.newsletter-form input[type="email"]::placeholder { color: var(--text-muted); }

.newsletter-form button[type="submit"] {
  padding: 0.75rem 1.5rem;
  background: var(--grad);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: 'Nunito Sans', sans-serif;
  cursor: pointer;
  transition: opacity var(--transition);
}

.newsletter-form button[type="submit"]:hover { opacity: 0.88; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--navy-dark);
  padding: 4rem 0 2rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 2rem;
}

.site-footer__brand-name {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  color: var(--white);
  display: block;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-footer__brand-desc {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(255,255,255,.4);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.site-footer__socials { display: flex; gap: 0.6rem; }

.social-btn {
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}

.social-btn:hover {
  border-color: rgba(232,103,74,.5);
  background: rgba(232,103,74,.1);
}

.site-footer__col-title {
  font-family: 'Nunito', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  margin-bottom: 1.25rem;
  display: block;
}

.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col ul li + li { margin-top: 0.55rem; }

.site-footer__col ul a {
  font-size: 0.84rem;
  font-weight: 400;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer__col ul a:hover { color: var(--white); }

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255,255,255,.28);
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer__bottom a {
  color: rgba(255,255,255,.28);
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer__bottom a:hover { color: rgba(255,255,255,.65); }

.site-footer__legal { display: flex; gap: 1.5rem; }

/* =========================================================
   BLOG / ARCHIVE
   ========================================================= */
.archive-hero {
  background: var(--light-blue);
  padding: 8rem 0 4rem;
}

.archive-hero h1 { color: var(--navy-dark); margin-bottom: 0.75rem; }
.archive-hero p { font-size: 1.05rem; max-width: 520px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 4rem 0;
}

.post-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.post-card__thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--light-blue);
  position: relative;
}

.post-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-card:hover .post-card__thumb img { transform: scale(1.04); }

.post-card__thumb-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-mid));
  display: flex; align-items: center; justify-content: center;
}

.post-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

.post-card__cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.6rem;
}

.post-card__title {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.3;
  margin-bottom: 0.6rem;
  flex: 1;
  letter-spacing: -0.01em;
}

.post-card__excerpt {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.post-card__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 0.875rem;
}

/* =========================================================
   SINGLE POST
   ========================================================= */
.post-hero {
  background: var(--light-blue);
  padding: 8rem 0 3rem;
}

.post-hero__cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.75rem;
  display: block;
}

.post-hero__title { color: var(--navy-dark); max-width: 720px; margin-bottom: 1rem; }

.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.post-content {
  padding: 4rem 0 6rem;
}

.post-content__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 5%;
}

.post-content__inner h2,
.post-content__inner h3,
.post-content__inner h4 { margin: 2rem 0 1rem; }

.post-content__inner p { margin-bottom: 1.25rem; }

.post-content__inner ul,
.post-content__inner ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-mid);
  font-weight: 300;
  line-height: 1.8;
}

.post-content__inner ol { list-style: decimal; }

.post-content__inner ul li,
.post-content__inner ol li { margin-bottom: 0.35rem; }

.post-content__inner img {
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.post-content__inner a { color: var(--coral); text-decoration: underline; }

.post-content__inner blockquote {
  border-left: 3px solid var(--coral);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--light-blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.post-content__inner blockquote p { color: var(--navy-mid); font-weight: 400; margin: 0; }

/* =========================================================
   PAGE TEMPLATES
   ========================================================= */

/* Default page */
.page-hero {
  background: var(--light-blue);
  padding: 8rem 0 4rem;
}

.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero p { font-size: 1.05rem; max-width: 560px; }

.page-content {
  padding: 4rem 0 6rem;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
  padding: 4rem 0 6rem;
}

.contact-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-info p { font-size: 0.9rem; margin-bottom: 1.5rem; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-mid);
}

.contact-detail__icon {
  width: 32px; height: 32px;
  background: var(--grad-soft);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* =========================================================
   FORMS (Contact Form 7 / WPForms)
   ========================================================= */
.contact-form-wrap,
.wpcf7,
.wpforms-form {
  background: var(--off-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid var(--border);
}

.contact-form-wrap label,
.wpcf7 label,
.wpforms-field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap input[type="tel"],
.contact-form-wrap textarea,
.contact-form-wrap select,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpforms-field input,
.wpforms-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.875rem;
  font-family: 'Nunito Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
  margin-bottom: 1.25rem;
}

.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpforms-field input:focus,
.wpforms-field textarea:focus {
  border-color: var(--coral);
}

.contact-form-wrap textarea,
.wpcf7 textarea,
.wpforms-field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form-wrap input[type="submit"],
.wpcf7-submit,
.wpforms-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 1.75rem;
  background: var(--grad);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(232,103,74,.28);
  transition: opacity var(--transition), transform var(--transition);
}

.contact-form-wrap input[type="submit"]:hover,
.wpcf7-submit:hover,
.wpforms-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 3rem 0;
}

.team-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.team-card__photo {
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-mid));
  display: flex; align-items: center; justify-content: center;
}

.team-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.team-card__initials {
  font-family: 'Nunito', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.team-card__body { padding: 1.25rem; }

.team-card__name {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 0.2rem;
}

.team-card__role {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0 4rem;
}

.pagination a,
.pagination span {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-mid);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.pagination a:hover { border-color: var(--coral); color: var(--coral); }

.pagination .current {
  background: var(--grad);
  color: var(--white);
  border-color: transparent;
}

/* =========================================================
   SIDEBAR
   ========================================================= */
.sidebar-widget {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.sidebar-widget__title {
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.sidebar-widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar-widget ul li { border-bottom: 1px solid var(--border); }
.sidebar-widget ul li:last-child { border-bottom: none; }

.sidebar-widget ul li a {
  display: block;
  padding: 0.6rem 0;
  font-size: 0.85rem;
  color: var(--text-mid);
  text-decoration: none;
  transition: color var(--transition);
}

.sidebar-widget ul li a:hover { color: var(--coral); }

/* =========================================================
   UTILITY CLASSES
   ========================================================= */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.section-header { margin-bottom: 2.5rem; }
.section-header p {
  font-size: 0.975rem;
  font-weight: 300;
  color: var(--text-mid);
  max-width: 520px;
  line-height: 1.75;
  margin-top: 0.5rem;
}

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

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero__bg-panel, .hero__bg-dots { display: none; }
  .hero__content { padding: 4rem 5% 2rem; }
  .hero__visual { padding: 0 5% 4rem; justify-content: flex-start; }
  .hero__cards { max-width: 100%; }
  .intro-section__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: 1fr; gap: 2rem; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .step-card__connector { display: none; }
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .primary-nav { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  .services-grid,
  .cases-grid,
  .steps-grid,
  .blog-grid,
  .team-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(45,47,107,.1); }
  .hero__cards { grid-template-columns: 1fr 1fr; }
  .newsletter-section__inner { flex-direction: column; align-items: flex-start; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-form input[type="email"] { width: 100%; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 3rem 5%; }
}

/* =========================================================
   KEYFRAMES
   ========================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.8); }
}
