/*
Theme Name: FloorReady
Theme URI: https://www.floorready.com
Description: Professional supply chain labor force theme. Clean, modern, business-grade.
Author: FloorReady
Version: 2.0
License: GNU General Public License v2 or later
Tags: business, clean, professional, custom-menu, featured-images, threaded-comments
*/

/* ============================================================
   GOOGLE FONTS + DESIGN TOKENS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  /* Brand Colors */
  --green:        #7ab22e;
  --green-dark:   #5d8c1e;
  --green-light:  #a8d155;
  --green-muted:  #eef5e3;
  --navy:         #1a2639;
  --navy-mid:     #243447;
  --slate:        #4a5568;
  --steel:        #718096;
  --mist:         #a0aec0;
  --smoke:        #e8ecf0;
  --off-white:    #f7f8fa;
  --white:        #ffffff;
  --accent-warm:  #c8832a;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Spacing scale */
  --s1:  4px;
  --s2:  8px;
  --s3:  12px;
  --s4:  16px;
  --s5:  24px;
  --s6:  32px;
  --s7:  48px;
  --s8:  64px;
  --s9:  96px;
  --s10: 128px;

  /* UI */
  --radius:     4px;
  --radius-lg:  8px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 400;
}
h1 { font-size: clamp(36px, 5vw, 62px); }
h2 { font-size: clamp(28px, 3.5vw, 44px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); }
h4 { font-size: 20px; }
h5 { font-size: 17px; font-family: var(--font-body); font-weight: 600; }
h6 { font-size: 14px; font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

p { margin-bottom: var(--s5); }
p:last-child { margin-bottom: 0; }

a { color: var(--green-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green); }

strong { font-weight: 600; color: var(--navy); }
em { font-style: italic; }

ul, ol { padding-left: var(--s5); margin-bottom: var(--s5); }
li { margin-bottom: var(--s2); }

blockquote {
  border-left: 3px solid var(--green);
  padding: var(--s4) var(--s6);
  margin: var(--s6) 0;
  background: var(--green-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: 18px;
  color: var(--navy-mid);
}

code, pre {
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  background: var(--smoke);
  border-radius: var(--radius);
}
code { padding: 2px 6px; }
pre { padding: var(--s5); overflow-x: auto; }

hr {
  border: none;
  border-top: 1px solid var(--smoke);
  margin: var(--s7) 0;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--s6);
}
.container--wide { max-width: 1380px; }
.container--narrow { max-width: 820px; }

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-mid);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green);
  padding: 11px 26px;
}
.btn-ghost:hover {
  background: var(--green);
  color: var(--white);
}
.btn svg { width: 16px; height: 16px; }

/* ============================================================
   TOP BAR
   ============================================================ */
#top-bar {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 8px 0;
}
#top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#top-bar a { color: rgba(255,255,255,.65); }
#top-bar a:hover { color: var(--white); }
.top-bar-left { display: flex; gap: var(--s6); align-items: center; }
.top-bar-right { display: flex; gap: var(--s5); align-items: center; }
.top-bar-tagline {
  font-style: italic;
  font-size: 12px;
  color: var(--green-light);
  letter-spacing: .02em;
}

/* ============================================================
   HEADER / PRIMARY NAVIGATION
   ============================================================ */
#masthead {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--smoke), var(--shadow-sm);
  transition: box-shadow var(--transition);
}
#masthead.scrolled {
  box-shadow: var(--shadow-md);
}

#masthead .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo / site title */
.site-branding {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-shrink: 0;
}
.site-branding .custom-logo {
  width: auto;
  height: 70px;
  display: block;
}
.site-logo-mark {
  width: 40px;
  height: 40px;
  background: var(--green);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-logo-mark svg { width: 24px; height: 24px; fill: none; stroke: white; stroke-width: 2; }
.site-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
}
.site-title a { color: inherit; }
.site-title a:hover { color: var(--green-dark); }
.site-title span { color: var(--green); }

/* Primary nav */
#primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--s1);
  padding: 0;
  margin: 0;
}
#primary-nav > ul > li {
  position: relative;
}
#primary-nav > ul > li > a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
#primary-nav > ul > li > a:hover,
#primary-nav > ul > li.current-menu-item > a,
#primary-nav > ul > li.current-menu-ancestor > a {
  color: var(--navy);
  background: var(--green-muted);
}
#primary-nav > ul > li.current-menu-item > a {
  color: var(--green-dark);
  font-weight: 600;
}

/* Dropdown */
#primary-nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--smoke);
  border-top: none;
  padding: var(--s2) 0;
  z-index: 200;
  list-style: none;
  /* Invisible padding bridges the gap so hover doesn't break */
  margin-top: 0;
}

/* Transparent pseudo-element fills any remaining gap */
#primary-nav ul li::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
#primary-nav ul li:hover > ul { display: block; }
#primary-nav ul ul li a {
  display: block;
  padding: 9px 20px;
  font-size: 14px;
  color: var(--slate);
  transition: all var(--transition);
}
#primary-nav ul ul li a:hover {
  background: var(--green-muted);
  color: var(--green-dark);
  padding-left: 26px;
}

/* Nav CTA */
.nav-cta {
  margin-left: var(--s4);
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--s2);
  color: var(--navy);
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: all var(--transition);
}

/* ============================================================
   HERO — FRONT PAGE
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1e3a5f 100%);
  position: relative;
  overflow: hidden;
  padding: var(--s10) 0 var(--s9);
  min-height: 560px;
  display: flex;
  align-items: center;
}
/* Decorative geometry */
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(122,178,46,.18) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 30%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(122,178,46,.10) 0%, transparent 70%);
  border-radius: 50%;
}
/* Green left accent bar */
.hero-accent {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(to bottom, var(--green), var(--green-light));
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s9);
  align-items: center;
}
.hero-copy {}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: var(--s5);
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--green-light);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(38px, 5vw, 60px);
  margin-bottom: var(--s5);
  line-height: 1.12;
}
.hero h1 em {
  font-style: italic;
  color: var(--green-light);
}
.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,.72);
  max-width: 460px;
  line-height: 1.7;
  margin-bottom: var(--s7);
}
.hero-actions {
  display: flex;
  gap: var(--s4);
  flex-wrap: wrap;
}

/* Hero stats panel */
.hero-stats {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: var(--s7) var(--s6);
  backdrop-filter: blur(8px);
}
.hero-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--s2);
}
.stat-num span { color: var(--green-light); }
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  letter-spacing: .02em;
  line-height: 1.4;
}
.stat-divider {
  grid-column: 1 / -1;
  height: 1px;
  background: rgba(255,255,255,.1);
}

/* ============================================================
   GREEN ACCENT STRIPE
   ============================================================ */
.stripe {
  height: 5px;
  background: linear-gradient(to right, var(--green), var(--green-light), var(--green));
}

/* ============================================================
   SECTION STYLES
   ============================================================ */
.section {
  padding: var(--s9) 0;
}
.section--alt {
  background: var(--off-white);
}
.section--dark {
  background: var(--navy);
  color: rgba(255,255,255,.8);
}
.section--dark h2, .section--dark h3, .section--dark h4 {
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: var(--s8);
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: var(--s4);
}
.section-eyebrow::before, .section-eyebrow::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green);
}
.section-header h2 { margin-bottom: var(--s4); }
.section-header p {
  font-size: 17px;
  color: var(--steel);
  max-width: 560px;
  margin: 0 auto;
}
.section--dark .section-eyebrow { color: var(--green-light); }
.section--dark .section-eyebrow::before,
.section--dark .section-eyebrow::after { background: var(--green-light); }
.section--dark .section-header p { color: rgba(255,255,255,.6); }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}
.service-card {
  background: var(--white);
  border: 1px solid var(--smoke);
  border-radius: var(--radius-lg);
  padding: var(--s6) var(--s5);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px; height: 52px;
  background: var(--green-muted);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s5);
}
.service-icon svg {
  width: 26px; height: 26px;
  stroke: var(--green-dark);
  fill: none;
  stroke-width: 1.75;
}
.service-card h3 {
  font-size: 20px;
  margin-bottom: var(--s3);
  color: var(--navy);
}
.service-card p {
  font-size: 14px;
  color: var(--steel);
  line-height: 1.7;
  margin-bottom: var(--s5);
}
.service-card a.card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: .02em;
}
.service-card a.card-link:hover { gap: 8px; }
.service-card a.card-link::after { content: '→'; }

/* ============================================================
   WHY OUTSOURCE SPLIT SECTION
   ============================================================ */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s9);
  align-items: center;
}
.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }

.split-visual {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split-visual-inner {
  text-align: center;
  color: var(--white);
}
.split-visual::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--green), var(--green-light));
}

.split-content {}
.split-content h2 { margin-bottom: var(--s4); }
.split-content p { color: var(--steel); margin-bottom: var(--s5); }

.check-list {
  list-style: none;
  padding: 0;
  margin: var(--s5) 0 var(--s6);
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--smoke);
  font-size: 15px;
  color: var(--slate);
  margin: 0;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: var(--green);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M5 10l3.5 3.5L15 7'/%3E%3C/svg%3E");
  background-size: cover;
  margin-top: 2px;
}

/* ============================================================
   CASE STUDIES / NEWS GRID
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}
.post-card {
  background: var(--white);
  border: 1px solid var(--smoke);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.post-card-thumb {
  background: linear-gradient(135deg, var(--navy), #2a4a70);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.post-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.post-card-thumb-placeholder {
  font-family: var(--font-display);
  font-size: 48px;
  color: rgba(255,255,255,.15);
}
.post-card-body {
  padding: var(--s5);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: var(--s3);
}
.post-card h3 {
  font-size: 18px;
  margin-bottom: var(--s3);
  line-height: 1.35;
}
.post-card h3 a { color: var(--navy); }
.post-card h3 a:hover { color: var(--green-dark); }
.post-card p {
  font-size: 14px;
  color: var(--steel);
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--s4);
}
.post-card .read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}
.post-card .read-more:hover { gap: 7px; }
.post-card .read-more::after { content: '→'; }

/* ============================================================
   TESTIMONIAL / QUOTE BAND
   ============================================================ */
.testimonial-band {
  background: var(--green);
  padding: var(--s8) 0;
  position: relative;
  overflow: hidden;
}
.testimonial-band::before {
  content: '"';
  position: absolute;
  top: -30px; left: 40px;
  font-family: var(--font-display);
  font-size: 240px;
  color: rgba(255,255,255,.08);
  line-height: 1;
  pointer-events: none;
}
.testimonial-band .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s8);
  align-items: center;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--white);
  font-style: italic;
  line-height: 1.5;
}
.testimonial-attr {
  margin-top: var(--s4);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  letter-spacing: .04em;
  font-style: normal;
}
.testimonial-attr span { color: rgba(255,255,255,.5); font-weight: 400; }
.testimonial-cta { flex-shrink: 0; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--navy);
  padding: var(--s8) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(122,178,46,.03) 20px,
    rgba(122,178,46,.03) 21px
  );
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); margin-bottom: var(--s4); }
.cta-band p { color: rgba(255,255,255,.65); font-size: 17px; max-width: 520px; margin: 0 auto var(--s7); }
.cta-band .btn-group { display: flex; gap: var(--s4); justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
#colophon {
  background: var(--navy);
  border-top: 4px solid var(--green);
}

.footer-main {
  padding: var(--s9) 0 var(--s7);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s8);
}

.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s5);
}
.footer-logo-mark {
  width: 36px; height: 36px;
  background: var(--green);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.footer-logo-mark svg { width: 20px; height: 20px; stroke: white; fill: none; stroke-width: 2; }
.footer-site-name {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--white);
}
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  margin-bottom: var(--s5);
}
.footer-brand .tagline {
  font-size: 11px;
  font-style: italic;
  color: var(--green-light);
  letter-spacing: .04em;
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: var(--s5);
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: var(--s3);
}
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: var(--s5) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s5);
}
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,.35);
}
.footer-bottom-links {
  display: flex;
  gap: var(--s5);
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-bottom-links li a {
  font-size: 12px;
  color: rgba(255,255,255,.35);
}
.footer-bottom-links li a:hover { color: rgba(255,255,255,.7); }

/* ============================================================
   SINGULAR / PAGE CONTENT
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: var(--s8) 0 var(--s7);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 24px,
    rgba(122,178,46,.04) 24px, rgba(122,178,46,.04) 25px
  );
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: var(--s3);
}
.page-hero h1 { color: var(--white); margin-bottom: var(--s3); }
.page-hero .page-hero-sub {
  font-size: 17px;
  color: var(--page-hero-sub-color, rgba(255,255,255,.92));
  max-width: 580px;
  font-weight: 300;
  line-height: 1.6;
  margin-top: var(--s3);
}

.content-wrapper {
  padding: var(--s8) 0;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--s7);
  align-items: start;
}
.content-wrapper.no-sidebar {
  grid-template-columns: 1fr;
}
.content-wrapper.no-sidebar .entry-content {
  max-width: 820px;
  margin: 0 auto;
}

/* Entry content typography */
.entry-content {
  font-size: 16px;
  color: var(--slate);
  line-height: 1.8;
}
.entry-content > * + * { margin-top: var(--s5); }
.entry-content h2 {
  font-size: 30px;
  margin-top: var(--s7);
  margin-bottom: var(--s4);
  padding-bottom: var(--s3);
  border-bottom: 2px solid var(--green-muted);
}
.entry-content h3 { font-size: 22px; margin-top: var(--s6); margin-bottom: var(--s3); }
.entry-content h4 { font-size: 18px; color: var(--navy); }
.entry-content a { border-bottom: 1px solid var(--green-muted); }
.entry-content a:hover { border-bottom-color: var(--green); }
.entry-content img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.entry-content ul { list-style: none; padding: 0; }
.entry-content ul li {
  padding-left: 22px;
  position: relative;
}
.entry-content ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.widget-area {
  position: sticky;
  top: 90px;
}
.widget {
  background: var(--off-white);
  border: 1px solid var(--smoke);
  border-radius: var(--radius-lg);
  padding: var(--s5);
  margin-bottom: var(--s5);
}
.widget-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: var(--s5);
  padding-bottom: var(--s3);
  border-bottom: 2px solid var(--green);
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: var(--s2) 0; border-bottom: 1px solid var(--smoke); margin: 0; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { font-size: 14px; color: var(--slate); }
.widget ul li a:hover { color: var(--green-dark); }

/* ============================================================
   BLOG ARCHIVE
   ============================================================ */
.blog-header {
  text-align: center;
  padding: var(--s9) 0 var(--s7);
  background: var(--off-white);
  border-bottom: 1px solid var(--smoke);
}
.blog-archive-grid {
  padding: var(--s8) 0;
}
.blog-archive-grid .posts-grid {
  margin-bottom: var(--s7);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--s2);
  padding: var(--s6) 0;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--smoke);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  transition: all var(--transition);
}
.page-numbers:hover { background: var(--green-muted); color: var(--green-dark); border-color: var(--green); }
.page-numbers.current { background: var(--green); color: var(--white); border-color: var(--green); }

/* ============================================================
   FORMS
   ============================================================ */
.contact-form {
  background: var(--white);
  border: 1px solid var(--smoke);
  border-radius: var(--radius-lg);
  padding: var(--s7);
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}
.form-group {
  margin-bottom: var(--s5);
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--s2);
  letter-spacing: .02em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--smoke);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(122,178,46,.15);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* WP comment form */
#respond { margin-top: var(--s7); }
#respond h3 { font-size: 22px; margin-bottom: var(--s5); }
#commentform input, #commentform textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--smoke);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--slate);
  margin-bottom: var(--s4);
}
#commentform input:focus, #commentform textarea:focus {
  outline: none;
  border-color: var(--green);
}
#commentform .submit {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
#commentform .submit:hover { background: var(--green-dark); }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area { margin-top: var(--s7); padding-top: var(--s7); border-top: 1px solid var(--smoke); }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: var(--s5) 0; border-bottom: 1px solid var(--smoke); }
.comment-author { font-weight: 600; color: var(--navy); }
.comment-metadata { font-size: 12px; color: var(--mist); }
.comment-content { margin-top: var(--s3); font-size: 15px; }

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.search-no-results, .not-found {
  text-align: center;
  padding: var(--s10) 0;
}
.search-no-results h2, .not-found h2 { font-size: 80px; color: var(--smoke); margin-bottom: 0; }
.search-no-results h3, .not-found h3 { font-size: 28px; }

/* ============================================================
   SKIP LINK / ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s4);
  background: var(--green);
  color: var(--white);
  padding: var(--s3) var(--s5);
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; color: var(--white); }

/* ============================================================
   MOBILE MENU OVERLAY
   ============================================================ */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 999;
  flex-direction: column;
  padding: var(--s7) var(--s6);
  overflow-y: auto;
}
.mobile-menu-overlay.open { display: flex; }
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s7);
}
.mobile-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  padding: var(--s2);
  line-height: 1;
}
.mobile-nav ul {
  list-style: none;
  padding: 0;
}
.mobile-nav ul li a {
  display: block;
  padding: var(--s4) 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 20px;
  color: rgba(255,255,255,.8);
  font-family: var(--font-display);
}
.mobile-nav ul li a:hover { color: var(--green-light); }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: var(--s6); }
  .hero .container { grid-template-columns: 1fr; gap: var(--s6); }
  .hero-stats { max-width: 480px; }
  .hero { padding: var(--s8) 0; min-height: auto; }
}

@media (max-width: 768px) {
  #primary-nav, .nav-cta { display: none; }
  .menu-toggle { display: block; }

  #top-bar .top-bar-left .top-bar-tagline { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; }
  .split-section.reverse { direction: ltr; }

  .testimonial-band .container { grid-template-columns: 1fr; gap: var(--s5); }

  .content-wrapper { grid-template-columns: 1fr; }
  .widget-area { position: static; }

  .footer-main { grid-template-columns: 1fr; gap: var(--s6); }
  .footer-bottom { flex-direction: column; text-align: center; }

  .hero-stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .section { padding: var(--s7) 0; }
  .container { padding: 0 var(--s5); }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .stat-num { font-size: 32px; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  #top-bar, #masthead, .mobile-menu-overlay, #colophon, .cta-band { display: none; }
  .entry-content { max-width: 100%; }
  a[href]::after { content: " (" attr(href) ")"; }
}
/* ── Services page layout ─────────────────────────────── */
.services-page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--s8);
  align-items: start;
}

/* ── Sidebar ─────────────────────────────────────────── */
.services-sidebar {
  position: sticky;
  top: 90px; /* clears the sticky header */
}
.services-sidebar-inner {
  background: var(--off-white);
  border: 1px solid var(--smoke);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.services-sidebar-heading {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel);
  padding: var(--s5) var(--s5) var(--s3);
  border-bottom: 2px solid var(--green);
  margin: 0;
}

/* ── Vertical nav list ───────────────────────────────── */
.services-nav {
  list-style: none;
  padding: var(--s2) 0;
  margin: 0;
}
.services-nav-item {
  margin: 0;
  border-bottom: 1px solid var(--smoke);
}
.services-nav-item:last-child {
  border-bottom: none;
}
.services-nav-item a {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: 12px var(--s5);
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  transition: all var(--transition);
  text-decoration: none;
}
.services-nav-item a:hover {
  background: var(--white);
  color: var(--green-dark);
  padding-left: calc(var(--s5) + 4px);
}
.services-nav-item.active a {
  background: var(--green-muted);
  color: var(--green-dark);
  font-weight: 600;
  border-left: 3px solid var(--green);
  padding-left: calc(var(--s5) - 3px);
}
.services-nav-icon {
  display: flex;
  align-items: center;
  color: var(--green);
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity var(--transition), transform var(--transition);
}
.services-nav-item a:hover .services-nav-icon,
.services-nav-item.active a .services-nav-icon {
  opacity: 1;
  transform: translateX(2px);
}

/* ── Sidebar CTA ─────────────────────────────────────── */
.services-sidebar-cta {
  background: var(--navy);
  padding: var(--s5);
}
.services-sidebar-cta h6 {
  color: var(--white);
  font-size: 12px;
  letter-spacing: .08em;
  margin-bottom: var(--s2);
}
.services-sidebar-cta p {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .services-page-layout {
    grid-template-columns: 1fr;
  }
  .services-sidebar {
    position: static;
  }
  /* On mobile, turn the vertical nav into a horizontal scrollable strip */
  .services-nav {
    display: flex;
    overflow-x: auto;
    padding: var(--s2);
    gap: var(--s2);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .services-nav::-webkit-scrollbar { display: none; }
  .services-nav-item {
    flex-shrink: 0;
    border-bottom: none;
  }
  .services-nav-item a {
    background: var(--white);
    border: 1px solid var(--smoke);
    border-radius: var(--radius);
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
  }
  .services-nav-item a:hover {
    padding-left: 14px;
  }
  .services-nav-item.active a {
    border-left-width: 1px;
    border-color: var(--green);
    padding-left: 14px;
  }
}