/*
Theme Name: Gate Healing
Theme URI: https://gatehealing.com
Author: Gate Healing PLLC
Author URI: https://gatehealing.com
Description: Custom high-performance theme for Gate Healing PLLC — counseling in Austin & West Lake Hills, TX. Built for speed, SEO, and conversions.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: gate-healing
*/

/* ========================================
   CSS CUSTOM PROPERTIES
   ======================================== */
:root {
  --gh-primary: #3B6B5E;
  --gh-primary-light: #4A8274;
  --gh-primary-dark: #2D5347;
  --gh-accent: #C08B5C;
  --gh-accent-hover: #A87648;
  --gh-bg: #FAFAF7;
  --gh-bg-alt: #F2F1EC;
  --gh-surface: #FFFFFF;
  --gh-text: #1A2332;
  --gh-text-secondary: #5A6677;
  --gh-text-light: #8492A6;
  --gh-border: #E2E1DC;
  --gh-shadow: 0 1px 3px rgba(26,35,50,0.06), 0 1px 2px rgba(26,35,50,0.04);
  --gh-shadow-md: 0 4px 12px rgba(26,35,50,0.08), 0 2px 4px rgba(26,35,50,0.04);
  --gh-shadow-lg: 0 10px 30px rgba(26,35,50,0.10), 0 4px 8px rgba(26,35,50,0.05);
  --gh-radius: 6px;
  --gh-radius-lg: 10px;
  --gh-font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --gh-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gh-max-width: 1200px;
  --gh-content-width: 780px;
  --gh-header-height: 72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--gh-font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gh-text);
  background-color: var(--gh-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gh-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gh-primary-dark); }
ul, ol { padding-left: 1.25em; }
blockquote {
  border-left: 3px solid var(--gh-accent);
  padding: 1em 1.5em;
  margin: 1.5em 0;
  background: var(--gh-bg-alt);
  border-radius: var(--gh-radius);
  font-style: italic;
  color: var(--gh-text-secondary);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--gh-font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--gh-text);
  margin-bottom: 0.5em;
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

.eyebrow {
  font-family: var(--gh-font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gh-accent);
  margin-bottom: 0.75rem;
  display: block;
}

/* ========================================
   LAYOUT
   ======================================== */
.gh-container {
  max-width: var(--gh-max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.gh-narrow { max-width: var(--gh-content-width); margin: 0 auto; }
.gh-section { padding: 4rem 0; }
.gh-section-alt { background-color: var(--gh-bg-alt); }
.gh-section-dark { background-color: var(--gh-primary-dark); color: #fff; }
.gh-section-dark h2, .gh-section-dark h3, .gh-section-dark p { color: #fff; }
.gh-section-dark .eyebrow { color: var(--gh-accent); }
.gh-grid { display: grid; gap: 1.5rem; }
.gh-grid-2 { grid-template-columns: 1fr; }
.gh-grid-3 { grid-template-columns: 1fr; }
.gh-grid-4 { grid-template-columns: 1fr 1fr; }

@media (min-width: 768px) {
  .gh-container { padding: 0 2rem; }
  .gh-section { padding: 5rem 0; }
  .gh-grid-2 { grid-template-columns: 1fr 1fr; }
  .gh-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .gh-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .gh-grid { gap: 2rem; }
}

/* ========================================
   BUTTONS
   ======================================== */
.gh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--gh-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--gh-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.gh-btn-primary {
  background: var(--gh-primary);
  color: #fff;
  border-color: var(--gh-primary);
}
.gh-btn-primary:hover {
  background: var(--gh-primary-dark);
  border-color: var(--gh-primary-dark);
  color: #fff;
}
.gh-btn-accent {
  background: var(--gh-accent);
  color: #fff;
  border-color: var(--gh-accent);
}
.gh-btn-accent:hover {
  background: var(--gh-accent-hover);
  border-color: var(--gh-accent-hover);
  color: #fff;
}
.gh-btn-outline {
  background: transparent;
  color: var(--gh-primary);
  border-color: var(--gh-primary);
}
.gh-btn-outline:hover {
  background: var(--gh-primary);
  color: #fff;
}
.gh-btn-white {
  background: #fff;
  color: var(--gh-primary);
  border-color: #fff;
}
.gh-btn-white:hover {
  background: var(--gh-bg);
  border-color: var(--gh-bg);
  color: var(--gh-primary-dark);
}
.gh-btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.gh-btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }

/* ========================================
   TOP BAR
   ======================================== */
.gh-topbar {
  background: var(--gh-primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.8125rem;
  padding: 0.4rem 0;
}
.gh-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--gh-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}
.gh-topbar a { color: rgba(255,255,255,0.85); }
.gh-topbar a:hover { color: #fff; }
.gh-topbar-left { display: flex; gap: 1.5rem; align-items: center; }
.gh-topbar-right { display: flex; gap: 1rem; align-items: center; }
.gh-topbar-right a { font-size: 1rem; }

@media (max-width: 767px) {
  .gh-topbar { display: none; }
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.gh-header {
  background: var(--gh-surface);
  border-bottom: 1px solid var(--gh-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--gh-shadow);
}
.gh-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--gh-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--gh-header-height);
}
.gh-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.gh-logo-text { line-height: 1.2; }
.gh-logo-name {
  font-family: var(--gh-font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gh-primary-dark);
}
.gh-logo-sub {
  font-size: 0.75rem;
  color: var(--gh-text-secondary);
  font-weight: 400;
}

/* Desktop nav */
.gh-nav { display: none; }
.gh-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 0; }
.gh-nav > ul > li { position: relative; }
.gh-nav > ul > li > a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gh-text);
  transition: color 0.2s;
}
.gh-nav > ul > li > a:hover,
.gh-nav > ul > li.current-menu-item > a { color: var(--gh-primary); }

/* Dropdown */
.gh-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--gh-surface);
  min-width: 240px;
  border-radius: var(--gh-radius);
  box-shadow: var(--gh-shadow-lg);
  border: 1px solid var(--gh-border);
  padding: 0.5rem 0;
  z-index: 100;
}
.gh-nav li:hover > .sub-menu { display: block; }
.gh-nav .sub-menu a {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--gh-text);
}
.gh-nav .sub-menu a:hover {
  background: var(--gh-bg-alt);
  color: var(--gh-primary);
}
.gh-nav .sub-menu .sub-menu {
  top: 0;
  left: 100%;
}

.gh-header-cta { display: none; }

@media (min-width: 1024px) {
  .gh-nav { display: block; }
  .gh-header-cta { display: block; }
  .gh-menu-toggle { display: none !important; }
}

/* Mobile menu toggle */
.gh-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.gh-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gh-text);
  transition: all 0.3s;
}
.gh-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.gh-menu-toggle.active span:nth-child(2) { opacity: 0; }
.gh-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.gh-mobile-nav {
  display: none;
  background: var(--gh-surface);
  border-top: 1px solid var(--gh-border);
  max-height: calc(100vh - var(--gh-header-height));
  overflow-y: auto;
  padding: 1rem 0;
}
.gh-mobile-nav.active { display: block; }
.gh-mobile-nav ul { list-style: none; padding: 0; }
.gh-mobile-nav > ul > li > a {
  display: block;
  padding: 0.75rem 2rem;
  font-weight: 500;
  color: var(--gh-text);
  border-bottom: 1px solid var(--gh-border);
}
.gh-mobile-nav .sub-menu { padding-left: 1rem; display: none; }
.gh-mobile-nav .sub-menu.open { display: block; }
.gh-mobile-nav .sub-menu a {
  display: block;
  padding: 0.5rem 2rem;
  font-size: 0.9rem;
  color: var(--gh-text-secondary);
}
.gh-mobile-nav .menu-item-has-children > a::after {
  content: '+';
  float: right;
  font-weight: 300;
  font-size: 1.25rem;
}
.gh-mobile-nav .menu-item-has-children.open > a::after { content: '\2212'; }
.gh-mobile-cta {
  padding: 1rem 2rem;
}

/* Mobile header adjustments */
@media (max-width: 767px) {
  .gh-header-inner { padding: 0 1.25rem; height: 60px; }
  .gh-logo-name { font-size: 1.1rem; }
}

/* ========================================
   HERO
   ======================================== */
.gh-hero {
  background: linear-gradient(135deg, var(--gh-primary-dark) 0%, var(--gh-primary) 50%, var(--gh-primary-light) 100%);
  color: #fff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.gh-hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 40%;
  background: rgba(255,255,255,0.03);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}
.gh-hero-inner {
  max-width: var(--gh-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}
.gh-hero h1 { color: #fff; font-size: clamp(2.25rem, 5vw, 3.25rem); margin-bottom: 0.75rem; }
.gh-hero p { color: rgba(255,255,255,0.9); font-size: 1.125rem; max-width: 600px; margin-bottom: 1.5rem; }
.gh-hero .eyebrow { color: var(--gh-accent); }
.gh-hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (min-width: 768px) {
  .gh-hero { padding: 5.5rem 0; }
}

/* Service page hero (shorter) */
.gh-hero-service { padding: 3rem 0; }
@media (min-width: 768px) {
  .gh-hero-service { padding: 4rem 0; }
}

/* ========================================
   CARDS
   ======================================== */
.gh-card {
  background: var(--gh-surface);
  border-radius: var(--gh-radius-lg);
  padding: 2rem;
  border: 1px solid var(--gh-border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.gh-card:hover {
  box-shadow: var(--gh-shadow-md);
  transform: translateY(-2px);
}
.gh-card-icon {
  width: 48px;
  height: 48px;
  background: var(--gh-bg-alt);
  border-radius: var(--gh-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--gh-primary);
}
.gh-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.gh-card p {
  font-size: 0.9375rem;
  color: var(--gh-text-secondary);
  line-height: 1.6;
}
.gh-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gh-primary);
  margin-top: 0.75rem;
}
.gh-card-link:hover { gap: 0.5rem; }
.gh-card-link::after { content: '\2192'; }

/* ========================================
   ABOUT / SPLIT SECTION
   ======================================== */
.gh-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) {
  .gh-split { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .gh-split-reverse .gh-split-media { order: -1; }
}
.gh-split-media img {
  border-radius: var(--gh-radius-lg);
  box-shadow: var(--gh-shadow-md);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.gh-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}
.gh-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: var(--gh-bg-alt);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gh-text-secondary);
}
.gh-badge::before {
  content: '\2713';
  color: var(--gh-primary);
  font-weight: 700;
}

/* ========================================
   TRUST SECTION
   ======================================== */
.gh-trust-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.gh-trust-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 1rem;
  line-height: 1.5;
}
.gh-trust-list li::before {
  content: '\2713';
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  background: var(--gh-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
@media (min-width: 768px) {
  .gh-trust-list { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

/* ========================================
   THERAPY OPTIONS
   ======================================== */
.gh-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .gh-options-grid { grid-template-columns: repeat(4, 1fr); }
}
.gh-option {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--gh-surface);
  border-radius: var(--gh-radius-lg);
  border: 1px solid var(--gh-border);
}
.gh-option-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.gh-option h4 {
  font-family: var(--gh-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}
.gh-option p {
  font-size: 0.8125rem;
  color: var(--gh-text-secondary);
}

/* ========================================
   CTA BANNER
   ======================================== */
.gh-cta-banner {
  background: linear-gradient(135deg, var(--gh-primary-dark), var(--gh-primary));
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}
.gh-cta-banner h2 { color: #fff; margin-bottom: 0.75rem; }
.gh-cta-banner p { color: rgba(255,255,255,0.9); margin-bottom: 1.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.gh-cta-banner .gh-cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ========================================
   BLOG LISTING
   ======================================== */
.gh-post-card {
  background: var(--gh-surface);
  border-radius: var(--gh-radius-lg);
  overflow: hidden;
  border: 1px solid var(--gh-border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.gh-post-card:hover {
  box-shadow: var(--gh-shadow-md);
  transform: translateY(-2px);
}
.gh-post-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.gh-post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.gh-post-card:hover .gh-post-card-img img { transform: scale(1.03); }
.gh-post-card-body { padding: 1.5rem; }
.gh-post-card-cat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gh-accent);
  margin-bottom: 0.5rem;
  display: block;
}
.gh-post-card-body h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.gh-post-card-body h3 a { color: var(--gh-text); }
.gh-post-card-body h3 a:hover { color: var(--gh-primary); }
.gh-post-card-body p {
  font-size: 0.9rem;
  color: var(--gh-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gh-post-card-meta {
  padding: 0.75rem 1.5rem;
  border-top: 1px solid var(--gh-border);
  font-size: 0.8125rem;
  color: var(--gh-text-light);
  display: flex;
  justify-content: space-between;
}

/* ========================================
   SINGLE POST
   ======================================== */
.gh-single-header { margin-bottom: 2rem; }
.gh-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--gh-text-secondary);
  margin-bottom: 1.5rem;
  align-items: center;
}
.gh-single-meta a { color: var(--gh-primary); }
.gh-author-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem 0.25rem 0.25rem;
  background: var(--gh-bg-alt);
  border-radius: 999px;
  font-weight: 500;
}
.gh-author-badge img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.gh-content h2 { margin-top: 2rem; }
.gh-content h3 { margin-top: 1.5rem; }
.gh-content ul, .gh-content ol { margin-bottom: 1em; }
.gh-content li { margin-bottom: 0.25em; }
.gh-content img { border-radius: var(--gh-radius); margin: 1.5em 0; }

/* Author box */
.gh-author-box {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--gh-bg-alt);
  border-radius: var(--gh-radius-lg);
  margin-top: 3rem;
  align-items: flex-start;
}
.gh-author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.gh-author-box h4 { margin-bottom: 0.25rem; font-size: 1rem; }
.gh-author-box p { font-size: 0.9rem; color: var(--gh-text-secondary); }

/* Related posts CTA */
.gh-post-cta {
  background: var(--gh-bg-alt);
  border: 2px solid var(--gh-primary);
  border-radius: var(--gh-radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}
.gh-post-cta h3 { color: var(--gh-primary); font-size: 1.25rem; margin-bottom: 0.5rem; }
.gh-post-cta p { color: var(--gh-text-secondary); margin-bottom: 1rem; }

/* ========================================
   SERVICE PAGE
   ======================================== */
.gh-service-content { padding: 3rem 0; }
.gh-service-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) {
  .gh-service-main { grid-template-columns: 1fr 320px; }
}

/* Service sidebar */
.gh-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.gh-sidebar-widget {
  background: var(--gh-surface);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-lg);
  padding: 1.5rem;
}
.gh-sidebar-widget h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gh-border);
}
.gh-sidebar-nav { list-style: none; padding: 0; }
.gh-sidebar-nav li { border-bottom: 1px solid var(--gh-border); }
.gh-sidebar-nav li:last-child { border: none; }
.gh-sidebar-nav a {
  display: block;
  padding: 0.625rem 0;
  font-size: 0.9rem;
  color: var(--gh-text-secondary);
}
.gh-sidebar-nav a:hover,
.gh-sidebar-nav .current a { color: var(--gh-primary); font-weight: 500; }

.gh-sidebar-cta {
  background: var(--gh-primary);
  color: #fff;
  border-radius: var(--gh-radius-lg);
  padding: 1.75rem;
  text-align: center;
}
.gh-sidebar-cta h4 { color: #fff; border: none; padding: 0; margin-bottom: 0.75rem; }
.gh-sidebar-cta p { color: rgba(255,255,255,0.9); font-size: 0.9rem; margin-bottom: 1rem; }
.gh-sidebar-cta .gh-phone {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

/* FAQ section */
.gh-faq { margin: 3rem 0; }
.gh-faq h2 { margin-bottom: 1.5rem; }
.gh-faq-item {
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.gh-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--gh-surface);
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--gh-text);
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--gh-font-body);
  gap: 1rem;
}
.gh-faq-q:hover { background: var(--gh-bg-alt); }
.gh-faq-q::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--gh-text-light);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.gh-faq-item.open .gh-faq-q::after { content: '\2212'; }
.gh-faq-a {
  display: none;
  padding: 0 1.25rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--gh-text-secondary);
}
.gh-faq-item.open .gh-faq-a { display: block; }

/* ========================================
   BREADCRUMBS
   ======================================== */
.gh-breadcrumbs {
  padding: 0.75rem 0;
  font-size: 0.8125rem;
  color: var(--gh-text-light);
}
.gh-breadcrumbs a { color: var(--gh-text-secondary); }
.gh-breadcrumbs a:hover { color: var(--gh-primary); }
.gh-breadcrumbs span { margin: 0 0.375rem; }

/* ========================================
   FOOTER
   ======================================== */
.gh-footer {
  background: var(--gh-text);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 0;
}
.gh-footer a { color: rgba(255,255,255,0.75); }
.gh-footer a:hover { color: #fff; }
.gh-footer h4 {
  color: #fff;
  font-family: var(--gh-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.gh-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .gh-footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
}
.gh-footer-brand p { font-size: 0.875rem; margin-bottom: 1rem; line-height: 1.6; }
.gh-footer-contact {
  font-size: 0.9rem;
  line-height: 1.8;
}
.gh-footer-contact .gh-phone {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
}
.gh-footer ul { list-style: none; padding: 0; }
.gh-footer li { margin-bottom: 0.375rem; }
.gh-footer li a { font-size: 0.875rem; }
.gh-footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.gh-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  font-size: 1rem;
  transition: background 0.2s;
}
.gh-footer-social a:hover { background: var(--gh-primary); }

.gh-footer-hours { font-size: 0.875rem; }
.gh-footer-hours table { width: 100%; border-collapse: collapse; }
.gh-footer-hours td { padding: 0.25rem 0; }
.gh-footer-hours td:first-child { width: 50px; font-weight: 500; color: rgba(255,255,255,0.9); }

.gh-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  font-size: 0.8125rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* ========================================
   PAGINATION
   ======================================== */
.gh-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.gh-pagination a, .gh-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--gh-radius);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--gh-border);
  color: var(--gh-text);
}
.gh-pagination .current {
  background: var(--gh-primary);
  color: #fff;
  border-color: var(--gh-primary);
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.gh-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .gh-contact-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.gh-contact-info-card {
  background: var(--gh-bg-alt);
  padding: 1.5rem;
  border-radius: var(--gh-radius-lg);
  margin-bottom: 1rem;
}
.gh-contact-info-card h4 { font-size: 1rem; margin-bottom: 0.5rem; }

/* Contact form styling */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  font-family: var(--gh-font-body);
  font-size: 1rem;
  background: var(--gh-surface);
  transition: border-color 0.2s;
}
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus {
  border-color: var(--gh-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(59,107,94,0.1);
}
.wpcf7 label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 500;
  font-size: 0.9rem;
}
.wpcf7 p { margin-bottom: 1rem; }
.wpcf7 input[type="submit"] {
  background: var(--gh-primary);
  color: #fff;
  border: none;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--gh-radius);
  cursor: pointer;
  font-family: var(--gh-font-body);
  transition: background 0.2s;
}
.wpcf7 input[type="submit"]:hover { background: var(--gh-primary-dark); }

/* ========================================
   SKIP LINK & ACCESSIBILITY
   ======================================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gh-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
  font-size: 0.875rem;
}
.skip-link:focus { left: 0; }

/* ========================================
   UTILITY
   ======================================== */
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ========================================
   WORDPRESS DEFAULTS
   ======================================== */
.wp-block-image { margin: 1.5em 0; }
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1em; }
.aligncenter { display: block; margin: 1.5em auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8125rem; color: var(--gh-text-light); margin-top: 0.5rem; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }

/* ========================================
   PRINT
   ======================================== */
@media print {
  .gh-topbar, .gh-header, .gh-footer, .gh-sidebar-cta, .gh-cta-banner, .gh-btn { display: none !important; }
  body { color: #000; background: #fff; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
}
/* ========================================
   BLOG INDEX GRID
   ======================================== */
.gh-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
.gh-blog-card {
  background: var(--gh-surface);
  border-radius: var(--gh-radius-lg);
  overflow: hidden;
  border: 1px solid var(--gh-border);
  display: flex;
  flex-direction: column;
}
.gh-blog-card-img {
  display: block;
  overflow: hidden;
}
.gh-blog-card-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}
.gh-blog-card:hover .gh-blog-card-img img {
  transform: scale(1.03);
}
.gh-blog-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.gh-blog-card-body h2 {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}
.gh-blog-card-body h2 a {
  color: var(--gh-text);
  text-decoration: none;
}
.gh-blog-card-body h2 a:hover {
  color: var(--gh-primary);
}
.gh-blog-card-body p {
  font-size: 0.9rem;
  color: var(--gh-text-secondary);
  flex: 1;
}
.gh-blog-card .gh-card-link {
  margin-top: 1rem;
  display: inline-block;
}
@media (max-width: 768px) {
  .gh-blog-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1024px) and (min-width: 769px) {
  .gh-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ========================================
   SERVICES HUB ALTERNATING ROWS
   ======================================== */
.gh-service-row {
  padding: 1.75rem 1.5rem;
  margin: 0 -1.5rem;
  border-radius: var(--gh-radius);
}
.gh-service-row-alt {
  background: var(--gh-bg-alt);
}
.gh-service-row h2 {
  margin-top: 0;
}
/* ========================================
   Fix text around pic on mobile
   ======================================== */
@media (max-width: 600px) {
  .gh-content img[style*="float:right"],
  .gh-content img[style*="float: right"] {
    float: none;
    width: 100% !important;
    margin: 0 0 1.5rem 0 !important;
  }
}
/* ── Search Icon ── */
.gh-header-search { position: relative; display: flex; align-items: center; }
.gh-search-toggle {
    background: none; border: none; cursor: pointer; padding: 6px;
    color: var(--gh-text); display: flex; align-items: center;
    transition: color 0.2s;
}
.gh-search-toggle:hover { color: var(--gh-primary); }
.gh-search-form {
    position: absolute; top: 100%; right: 0; display: none;
    background: #fff; border: 1px solid #ddd; border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 8px;
    z-index: 1000; min-width: 260px;
}
.gh-search-form.active { display: block; }
.gh-search-form form { display: flex; gap: 4px; }
.gh-search-form input[type="search"] {
    flex: 1; padding: 8px 12px; border: 1px solid #ccc; border-radius: 4px;
    font-family: var(--gh-font-body); font-size: 14px;
}
.gh-search-form input[type="search"]:focus { outline: none; border-color: var(--gh-primary); }
.gh-search-form button[type="submit"] {
    background: var(--gh-primary); color: #fff; border: none; border-radius: 4px;
    padding: 8px 10px; cursor: pointer; display: flex; align-items: center;
}
.gh-search-form button[type="submit"]:hover { background: var(--gh-primary-dark, #4a6a4a); }

/* Mobile search */
.gh-mobile-search { padding: 0.75rem 1.25rem; }
.gh-mobile-search form { display: flex; gap: 4px; }
.gh-mobile-search input[type="search"] {
    flex: 1; padding: 10px 12px; border: 1px solid #ccc; border-radius: 4px;
    font-family: var(--gh-font-body); font-size: 15px;
}
.gh-mobile-search button[type="submit"] {
    background: var(--gh-primary); color: #fff; border: none; border-radius: 4px;
    padding: 10px 12px; cursor: pointer; display: flex; align-items: center;
}

@media (max-width: 768px) {
    .gh-header-search { display: none; }
}
/* ── Table of Contents ── */
.gh-toc {
    background: #f7f5f0; border: 1px solid #e0ddd5; border-radius: 6px;
    padding: 1.25rem 1.5rem; margin: 1.5rem 0 2rem; max-width: 520px;
}
.gh-toc-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.75rem;
}
.gh-toc-header strong { font-family: var(--gh-font-heading, 'Lora', serif); font-size: 1.05rem; color: var(--gh-primary, #5a7a5a); }
.gh-toc-toggle {
    background: none; border: none; font-size: 1.25rem; cursor: pointer;
    color: var(--gh-text, #333); padding: 2px 6px; line-height: 1;
}
.gh-toc-list { margin: 0; padding: 0 0 0 1.25rem; list-style: none; counter-reset: toc; }
.gh-toc-list li { margin-bottom: 0.35rem; font-size: 0.92rem; line-height: 1.4; }
.gh-toc-list li::before { counter-increment: toc; content: counter(toc) ". "; color: var(--gh-accent, #b87333); font-weight: 500; }
.gh-toc-list a { color: var(--gh-text, #333); text-decoration: none; }
.gh-toc-list a:hover { color: var(--gh-primary, #5a7a5a); text-decoration: underline; }
.gh-toc-h3 { padding-left: 1.25rem; }
.gh-toc-h4 { padding-left: 2.5rem; }
.gh-toc-list.collapsed { display: none; }
/* ========================================
   CATEGORY BAR
   ======================================== */
.gh-cat-bar {
    padding: 0.75rem 0;
}
.gh-cat-bar-inner {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
}
.gh-cat-link {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gh-text-secondary);
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.gh-cat-link:hover {
    color: var(--gh-primary);
    background: var(--gh-bg-alt);
}
.gh-cat-link.active {
    color: #fff;
    background: var(--gh-primary);
    border-color: var(--gh-primary);
}

@media (max-width: 768px) {
    .gh-cat-bar {
        padding: 0.5rem 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .gh-cat-bar-inner {
        flex-wrap: nowrap;
        white-space: nowrap;
        padding: 0 1rem;
    }
    .gh-cat-bar-inner::-webkit-scrollbar {
        display: none;
    }
    .gh-cat-bar-inner {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .gh-cat-link {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
    }
}