/*
Theme Name:   TerraGuard Child
Theme URI:    https://terraguard.land
Description:  Child theme for TerraGuard LLC. Carries the v45 brand design system
              (Forest Green / Sky Blue / Charcoal), the shared SVG illustration
              sprite, and site-wide LocalBusiness schema. Page content lives in
              Custom HTML blocks and inherits from this stylesheet.
Author:       TerraGuard LLC
Template:     kadence
Version:      1.0.7
Text Domain:  terraguard-child
*/

/* ============================================================
   TerraGuard LLC — Brand Design System
   Ported from mockup v45. Nav, mobile menu, and page chrome are
   intentionally NOT defined here — Kadence owns those.
   ============================================================ */

/* ============================================================
   TerraGuard LLC — Mockup CSS
   Brand: Forest Green #2D5A27, Sky Blue #6AAFE0, Charcoal #444441
   Fonts: Arial Black headings, Arial body (per brand guide)
   ============================================================ */

:root {
  --brand-primary:       #2D5A27;
  --brand-primary-dark:  #1B3D1A;
  --brand-primary-mid:   #3A7D32;
  --brand-accent:        #6AAFE0;
  --brand-accent-warm:   #6B4E3A;
  --brand-neutral-dark:  #444441;
  --brand-neutral-mid:   #8C8C8C;
  --brand-neutral-light: #D6EBE1;
  --brand-neutral-warm:  #F5EDE0;
  --brand-white:         #FFFFFF;

  --font-display: "Arial Black", "Arial Bold", Arial, sans-serif;
  --font-body:    Arial, sans-serif;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;

  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.14);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--brand-neutral-dark);
  background: var(--brand-white);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--brand-primary);
  line-height: 1.15;
  margin: 0 0 var(--space-md);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-top: var(--space-xl); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); margin-top: var(--space-lg); }
h4 { font-size: 1.05rem; margin-top: var(--space-md); }

p { margin: 0 0 var(--space-md); }

a {
  color: var(--brand-primary-mid);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--brand-primary); text-decoration: underline; }

strong { color: var(--brand-primary); }

/* Inside dark sections, strong needs to invert to white — otherwise dark-green-on-dark-green is invisible */
.section-dark strong, .hero strong { color: var(--brand-white); }

ul { padding-left: 1.25rem; margin: 0 0 var(--space-md); }
li { margin-bottom: var(--space-xs); }

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ============================================================
   HEADER (sticky, mobile-first)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand-white);
  border-bottom: 3px solid var(--brand-primary);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-lg);
  gap: var(--space-md);
  max-width: 1100px;
  margin: 0 auto;
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  text-decoration: none;
}

.logo-shield {
  width: 44px;
  height: 50px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--brand-primary);
  line-height: 1;
  letter-spacing: 0.02em;
}

.logo-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: normal;
  font-size: 0.7rem;
  color: var(--brand-neutral-mid);
  letter-spacing: 0;
  margin-top: 2px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--brand-primary);
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: var(--radius);
}

.phone-link:hover {
  color: var(--brand-primary-mid);
  text-decoration: none;
}

/* Sticky mobile CTA bar — visible only on mobile; appears at bottom of viewport for LSA conversion */
.mobile-cta-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--brand-white);
  border-top: 2px solid var(--brand-primary);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
  padding: 8px;
  gap: 8px;
}

.mobile-cta-bar a {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mobile-cta-call {
  background: var(--brand-primary);
  color: var(--brand-white);
}

.mobile-cta-text {
  background: var(--brand-accent);
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
}

.client-login-link {
  /* DEPRECATED: customer login moved into nav. Keeping selector empty for backwards safety. */
  display: none;
}

/* Hamburger */

@media (min-width: 768px) {

  .phone-link { font-size: 1.05rem; padding: 6px 10px; }
  .logo-text { font-size: 1.2rem; }
  .logo-shield { width: 52px; height: 60px; }
  .mobile-cta-bar { display: none; }

}

/* ============================================================
   NAV (off-canvas on mobile, inline on desktop)
   ============================================================ */

/* Use @media (hover: hover) so we ONLY apply hover on real mouse devices.
   Mobile browsers don't trigger this, which prevents sticky-hover washout. */

/* Login CTA at the bottom of the mobile nav — distinct treatment so it reads as a separate action,
   not just another nav link. Outlined button on the dark nav background. */

/* ============================================================
   BUTTONS / CTAs
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  min-height: 48px;
  text-align: center;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--brand-white);
  border-color: var(--brand-primary);
}
.btn-primary:hover {
  background: var(--brand-primary-mid);
  border-color: var(--brand-primary-mid);
  color: var(--brand-white);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--brand-white);
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.btn-secondary:hover {
  background: var(--brand-primary);
  color: var(--brand-white);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-large { padding: 18px 32px; font-size: 1.1rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

/* ============================================================
   SECTIONS / PAGE LAYOUT
   ============================================================ */

@keyframes fadeIn {

  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }

}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  color: var(--brand-white);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(106,175,224,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  color: var(--brand-white);
  margin-bottom: var(--space-md);
}

.hero-subhead {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  max-width: 640px;
  color: rgba(255,255,255,0.95);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  font-size: 0.9rem;
  align-items: center;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.25);
}

.section {
  padding: var(--space-2xl) 0;
}

.section-tinted {
  background: var(--brand-neutral-light);
}

.section-warm {
  background: var(--brand-neutral-warm);
}

.section-dark {
  background: var(--brand-primary);
  color: var(--brand-white);
}

.section-dark h1, .section-dark h2, .section-dark h3 {
  color: var(--brand-white);
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 700px) {

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

}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 700px) {

  .grid-2 { grid-template-columns: 1fr 1fr; }

}

/* Cards */
.card {
  background: var(--brand-white);
  border: 1px solid var(--brand-neutral-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.card:hover {
  border-color: var(--brand-primary-mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-step {
  position: relative;
  padding-top: var(--space-2xl);
}

.card-step::before {
  content: attr(data-step);
  position: absolute;
  top: -10px;
  left: var(--space-lg);
  width: 44px;
  height: 44px;
  background: var(--brand-primary);
  color: var(--brand-white);
  font-family: var(--font-display);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

/* Pricing Table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
  background: var(--brand-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.pricing-table th, .pricing-table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--brand-neutral-light);
}

.pricing-table th {
  background: var(--brand-primary);
  color: var(--brand-white);
  font-family: var(--font-display);
  font-weight: normal;
}

.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table tr:hover td { background: var(--brand-neutral-light); }

.price-cell {
  font-family: var(--font-display);
  color: var(--brand-primary);
  font-size: 1.1rem;
}

/* Pricing Hero Band */
.pricing-hero-band {
  background: var(--brand-white);
  border: 3px solid var(--brand-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  margin: var(--space-lg) 0;
  box-shadow: var(--shadow-md);
}

.pricing-hero-band .big-rate {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4rem);
  color: var(--brand-primary);
  line-height: 1;
  margin: var(--space-sm) 0;
}

.pricing-hero-band .typical {
  font-size: 1.05rem;
  color: var(--brand-neutral-dark);
  margin: var(--space-md) 0;
}

/* FAQ */
.faq-item {
  background: var(--brand-white);
  border-left: 4px solid var(--brand-primary-mid);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-sm);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.faq-item summary {
  font-family: var(--font-display);
  color: var(--brand-primary);
  cursor: pointer;
  font-size: 1.05rem;
  padding: var(--space-sm) 0;
  list-style: none;
  position: relative;
  padding-right: 30px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--brand-primary-mid);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { content: "−"; }

/* Callout boxes */
.callout {
  background: var(--brand-neutral-light);
  border-left: 4px solid var(--brand-primary);
  padding: var(--space-lg);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: var(--space-lg) 0;
}

.callout-info {
  background: rgba(106,175,224,0.18);
  border-left-color: var(--brand-accent);
}

.callout-warning {
  background: var(--brand-neutral-warm);
  border-left-color: var(--brand-accent-warm);
}

.callout strong {
  display: block;
  margin-bottom: var(--space-xs);
  font-family: var(--font-display);
}

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--brand-neutral-light);
  border-bottom: 1px solid var(--brand-neutral-light);
  font-size: 0.9rem;
  color: var(--brand-neutral-dark);
}

.trust-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Reviews */
.review-card {
  background: var(--brand-white);
  border: 1px solid var(--brand-neutral-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}

.stars {
  color: #F5A524;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-xs);
}

.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-md);
  font-size: 0.85rem;
  color: var(--brand-neutral-mid);
}

.aggregate-rating {
  text-align: center;
  padding: var(--space-xl) 0;
}

.aggregate-rating .big-rating {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  color: var(--brand-primary);
  line-height: 1;
  margin: 0;
}

.aggregate-rating .stars {
  font-size: 1.6rem;
}

/* Before / After Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 700px) {

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

}

@media (min-width: 1000px) {

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

}

.gallery-pair {
  background: var(--brand-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--brand-neutral-light);
}

.gallery-pair-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--brand-neutral-light);
}

.gallery-img {
  background: var(--brand-neutral-light);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-neutral-mid);
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
}

.gallery-img svg {
  width: 100%;
  height: 100%;
  display: block;
}

.gallery-img.before { background: #D6EBE1; }
.gallery-img.after  { background: #D6EBE1; }

.gallery-img::after {
  display: none;
}

.gallery-caption {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.85rem;
  color: var(--brand-neutral-dark);
  background: var(--brand-white);
}

/* City chips */
.city-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.chip {
  display: inline-block;
  background: var(--brand-white);
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.chip:hover {
  background: var(--brand-primary);
  color: var(--brand-white);
  text-decoration: none;
}

/* Spec table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
}

.spec-table th, .spec-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--brand-neutral-light);
}

.spec-table th {
  font-family: var(--font-display);
  color: var(--brand-primary);
  font-weight: normal;
  width: 35%;
}

/* Hero image placeholder */
.hero-image {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #2D5A27 0%, #1B3D1A 50%, #6AAFE0 100%);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-md) 0;
}

.hero-image svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-image::before,
.hero-image::after {
  display: none;
}

/* Illustration label badge — small "ILLUSTRATION" tag in corner */
.illustration-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: rgba(255,255,255,0.9);
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 3px;
  z-index: 5;
  pointer-events: none;
}

/* B2B Segment Cards */
.segment-card {
  background: var(--brand-white);
  border: 1px solid var(--brand-neutral-light);
  border-top: 4px solid var(--brand-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.segment-card h3 {
  margin-top: 0;
  color: var(--brand-primary);
}

.segment-card ul {
  margin-bottom: 0;
}

/* Offer summary table — B2B */
.offer-table {
  background: var(--brand-primary);
  color: var(--brand-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
}

.offer-table h3 {
  color: var(--brand-white);
  margin-top: 0;
  border-bottom: 2px solid rgba(255,255,255,0.2);
  padding-bottom: var(--space-sm);
}

.offer-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

@media (min-width: 600px) {

  .offer-row { grid-template-columns: 200px 1fr; gap: var(--space-md); }

}

.offer-row:last-child { border-bottom: none; }

.offer-row strong {
  color: var(--brand-accent);
  font-family: var(--font-display);
}

/* Wildfire Guardrail block */
.guardrail-block {
  background: var(--brand-neutral-warm);
  border: 2px solid var(--brand-accent-warm);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
}

.guardrail-block h3 {
  color: var(--brand-accent-warm);
  margin-top: var(--space-md);
  font-size: 1.05rem;
}

.guardrail-block h3:first-child { margin-top: 0; }

/* Blog list */
.blog-card {
  background: var(--brand-white);
  border: 1px solid var(--brand-neutral-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  transition: all 0.15s ease;
  cursor: pointer;
}

.blog-card:hover {
  border-color: var(--brand-primary-mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-card h3 {
  margin: 0 0 var(--space-sm);
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--brand-neutral-mid);
  margin-bottom: var(--space-sm);
}

/* Booking widget placeholder */
.booking-widget {
  background: var(--brand-white);
  border: 2px dashed var(--brand-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  margin: var(--space-lg) 0;
}

.booking-widget .widget-label {
  font-family: var(--font-display);
  color: var(--brand-primary);
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.booking-widget p {
  color: var(--brand-neutral-mid);
  font-size: 0.9rem;
  margin: 0;
}

/* Service Area & equipment specs */
.equipment-card {
  background: var(--brand-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-neutral-light);
  overflow: hidden;
  margin: var(--space-lg) 0;
}

.equipment-card-header {
  background: var(--brand-primary);
  color: var(--brand-white);
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.equipment-card-body {
  padding: var(--space-lg);
}

/* Footer */
.site-footer {
  background: var(--brand-primary-dark);
  color: var(--brand-white);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: var(--space-2xl);
}

.site-footer .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 800px) {

  .site-footer .container { grid-template-columns: 2fr 1fr 1fr; }

}

.site-footer h4 {
  color: var(--brand-accent);
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 var(--space-md);
}

.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--brand-accent); text-decoration: underline; }

.footer-nap { font-size: 0.95rem; line-height: 1.8; }
.footer-nap strong { color: var(--brand-white); display: block; font-family: var(--font-display); margin-bottom: var(--space-xs); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: var(--space-lg);
  padding: var(--space-md) 0 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

/* Mockup banner (top of page indicating this is a preview) */

/* Utility */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: var(--space-lg); }
.muted { color: var(--brand-neutral-mid); font-size: 0.9rem; }

/* sms: link inline highlight */
.sms-cta {
  display: inline-block;
  background: var(--brand-accent);
  color: var(--brand-white);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.95rem;
}
.sms-cta:hover { background: #4A99D0; color: var(--brand-white); text-decoration: none; }

/* ============================================================
   VIDEO / YOUTUBE
   ============================================================ */
.video-feature {
  width: 100%;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a1a 0%, #2D5A27 50%, #6B4E3A 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-thumb:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.video-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(255,255,255,0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(0,0,0,0.4) 0%, transparent 60%);
}

.video-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  z-index: 2;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(255,0,0,0.9);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  padding-left: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: all 0.2s ease;
}

.video-thumb:hover .video-play-btn {
  background: rgba(255,0,0,1);
  transform: translate(-50%, -50%) scale(1.08);
}

.video-thumb-title {
  color: white;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.video-thumb-meta {
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  font-family: var(--font-body);
}

/* Video grid (used on /watch page) */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 700px) {

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

}

@media (min-width: 1000px) {

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

}

.video-card .video-thumb {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.video-card-body {
  background: var(--brand-white);
  border: 1px solid var(--brand-neutral-light);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: var(--space-md);
}

.video-card-body h3 {
  margin: 0 0 var(--space-xs);
  font-size: 1rem;
}

.video-card-body .blog-meta {
  margin: 0;
}

/* Inline embedded video (full-width, replacing hero-image) */
.video-embed {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #2D5A27 50%, #6B4E3A 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: var(--space-lg) 0;
}

.video-embed::before {
  content: "[ YOUTUBE EMBED — autoplay-muted on production ]";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,0.5);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-align: center;
  padding: 0 var(--space-md);
  z-index: 1;
}

.video-embed::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  background: rgba(255,0,0,0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  padding-left: 8px;
  margin-top: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  z-index: 0;
  display: none; /* shown only when overlay text is hidden */
}

/* Subscribe / channel trust badges */
.channel-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  align-items: center;
}

.stat-card {
  background: var(--brand-white);
  border: 1px solid var(--brand-neutral-light);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  flex: 1;
  min-width: 140px;
  box-shadow: var(--shadow-sm);
}

.stat-card .stat-value {
  font-family: var(--font-display);
  color: var(--brand-primary);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--brand-neutral-mid);
}

.stat-card.placeholder {
  background: var(--brand-neutral-warm);
  border-style: dashed;
}

.stat-card.placeholder .stat-value {
  color: var(--brand-neutral-mid);
  font-size: 1rem;
}

/* Subscribe button (YouTube red) */
.btn-youtube {
  background: #FF0000;
  color: white;
  border-color: #FF0000;
}

.btn-youtube:hover {
  background: #C00;
  border-color: #C00;
  color: white;
}

.video-category {
  background: var(--brand-white);
  border-left: 4px solid var(--brand-primary);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-md);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.video-category h3 {
  margin: 0 0 var(--space-xs);
}

.video-category p {
  margin: 0;
  color: var(--brand-neutral-mid);
}

/* Featured video on homepage — large, prominent, the centerpiece */
.featured-video-home {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(0,0,0,0.5) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.15) 0%, transparent 50%),
    linear-gradient(135deg, #1a1a1a 0%, #2D5A27 35%, #6B4E3A 70%, #1a1a1a 100%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin: 0 auto;
}

.featured-video-home::before {
  /* Inline SG-75 silhouette as a backdrop hint */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 60% 60%, rgba(255,255,255,0.1) 0%, transparent 30%),
    radial-gradient(ellipse at 80% 40%, rgba(106,175,224,0.15) 0%, transparent 50%);
}

.featured-video-home:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.featured-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  padding: var(--space-xl);
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.0) 35%, rgba(0,0,0,0.85) 100%);
  z-index: 2;
}

.featured-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  background: rgba(255, 0, 0, 0.92);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  padding-left: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5), 0 0 0 6px rgba(255,255,255,0.15);
  transition: all 0.2s ease;
}

.featured-video-home:hover .featured-video-play {
  background: rgba(255, 0, 0, 1);
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 0 8px rgba(255,255,255,0.2);
}

.featured-video-info {
  color: white;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

.featured-video-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  margin-bottom: 6px;
  line-height: 1.2;
}

.featured-video-meta {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
}

/* Mobile: scale down play button so it's not absurd on small screens */
@media (max-width: 600px) {

  .featured-video-play {
    width: 80px;
    height: 80px;
    font-size: 1.9rem;
  }
  .featured-video-overlay {
    padding: var(--space-md);
  }

}

/* ============================================================
   CHANNEL SPLIT (v43) — channel-aware nav + B2B flagship hero
   ============================================================ */

/* Show one nav set at a time. Default = retail; .channel-trade = trade. */

/* Quiet cross-channel links sit apart from the primary menu */

/* ---- B2B flagship hero ---- */
.b2b-hero {
  background:
    linear-gradient(135deg, rgba(27,61,26,0.94) 0%, rgba(27,61,26,0.88) 100%),
    repeating-linear-gradient(135deg, var(--brand-primary-dark) 0 22px, var(--brand-primary) 22px 44px);
}
.b2b-hero .hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: var(--space-sm);
}
.b2b-hero h1 { max-width: 14ch; line-height: 1.05; }
.b2b-hero .hero-subhead { max-width: 600px; }

/* Capacity spec strip — the trade buyer speaks in numbers, not badges */
.spec-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: var(--space-lg) 0 var(--space-xl);
  border: 1px solid rgba(106,175,224,0.45);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 640px;
}
.spec-strip .spec {
  flex: 1 1 0;
  min-width: 130px;
  padding: var(--space-md) var(--space-md);
  border-right: 1px solid rgba(106,175,224,0.30);
}
.spec-strip .spec:last-child { border-right: none; }
.spec-strip .spec-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--brand-white);
}
.spec-strip .spec-label {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.82);
}
.b2b-hero .hero-escape {
  margin-top: var(--space-md);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}
.b2b-hero .hero-escape a { color: var(--brand-accent); text-decoration: underline; }
@media (max-width: 600px) {

  .spec-strip .spec { flex: 1 1 50%; border-bottom: 1px solid rgba(106,175,224,0.30); }
  .spec-strip .spec-num { font-size: 1.35rem; }

}

/* Quiet retail->trade strip on the homepage */
.channel-strip {
  background: var(--brand-neutral-warm);
  border-top: 1px solid var(--brand-neutral-light);
  border-bottom: 1px solid var(--brand-neutral-light);
}
.channel-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) 0;
}
.channel-strip p { margin: 0; color: var(--brand-neutral-dark); font-size: 0.98rem; }
.channel-strip p strong { color: var(--brand-primary); }
.channel-strip a {
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--brand-primary);
  white-space: nowrap;
}

/* Desktop inline nav carries up to ~11 items; tighten spacing so nothing clips */

/* ===== OREGON GEO-FENCE (reversible) =====
   OR content stays hidden until CCB licensing is live. Flip OREGON_LIVE in the
   script at the bottom of the page to reveal everything tagged .or-only and hide
   the Clark-County-only phrasing tagged .wa-solo. Fail-safe: if the flag script
   never runs, OR stays hidden -- we never advertise OR until the switch is on. */
html:not(.oregon-live) .or-only { display: none !important; }
html.oregon-live .wa-solo { display: none !important; }

/* ============================================================
   WORDPRESS INTEGRATION LAYER
   Rules below did not exist in the mockup. They reconcile the
   design system with Kadence + Gutenberg output.
   ============================================================ */

/* Kadence wraps content in .entry-content; the mockup assumed <body>. */
.entry-content > .container { padding-left: 0; padding-right: 0; }

/* Gutenberg injects margins on Custom HTML blocks; neutralize so the
   mockup's own .section spacing controls rhythm. */
.entry-content > .wp-block-html { margin-top: 0; margin-bottom: 0; }

/* Real photos land in these slots as <picture>/<img>. Match the SVG behavior. */
.hero-image img,
.gallery-img img,
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* NOTE: aspect ratios are NOT redefined here. The design system above already
   sets them (.hero-image 16/10, .gallery-img 1/1, .video-thumb 16/9), and
   individual slots override per-instance via inline style="aspect-ratio:...".
   Redeclaring them here would silently change those defaults. */

/* Oregon content stays hidden until CCB licensing is in place.
   Toggle via TERRAGUARD_OREGON_LIVE in functions.php. */
html:not(.oregon-live) .or-only { display: none !important; }
html.oregon-live .wa-solo { display: none !important; }

/* Screen-reader-only utility (used by schema/accessibility helpers). */
.tg-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 PRICING TABLE
   Below 600px a 3-column table crushes to ~100px columns and
   every cell wraps to four lines. Stack each row into a labeled
   block instead. Requires data-label attributes on the <td>s.
   ============================================================ */
@media (max-width: 600px) {
  .pricing-table thead { display: none; }

  .pricing-table,
  .pricing-table tbody,
  .pricing-table tr,
  .pricing-table td {
    display: block;
    width: 100%;
  }

  .pricing-table tr {
    padding: var(--space-md) 0;
    border-bottom: 2px solid var(--brand-neutral-light);
  }
  .pricing-table tr:last-child { border-bottom: none; }
  .pricing-table tr:hover td { background: transparent; }

  .pricing-table td {
    border-bottom: none;
    padding: 2px var(--space-md);
  }

  /* Row title: the first cell reads as the heading for the block. */
  .pricing-table td:first-child {
    font-size: 1.1rem;
    padding-bottom: var(--space-xs);
  }

  /* Every other cell gets its column header printed above it. */
  .pricing-table td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-neutral-mid);
    margin-top: var(--space-sm);
  }
}

/* ============================================================
   NATIVE GUTENBERG OUTLINE BUTTONS
   A core Button block that sets a text color but no background
   color is an outline button. Kadence fills any unstyled block
   button with its global button background — which is the same
   green — producing green text on a green fill and an apparently
   blank button. Force those transparent so the border and text
   read as intended.
   ============================================================ */
.wp-block-button__link.has-text-color:not(.has-background),
.wp-block-button__link.has-border-color:not(.has-background) {
  background-color: transparent;
  background-image: none;
}

/* Keep the inverse readable on hover rather than leaving it
   transparent-on-hover with no affordance. */
.wp-block-button__link.has-border-color:not(.has-background):hover {
  background-color: var(--brand-primary);
  color: var(--brand-white) !important;
}

/* ============================================================
   DARK HERO INVERSIONS
   The .hero band is dark green. A standard green primary button
   sits at near-zero contrast against it, and any green body text
   inside the hero is close to unreadable. Invert both.
   ============================================================ */
.hero .btn-primary {
  background: var(--brand-white);
  color: var(--brand-primary);
  border-color: var(--brand-white);
}
.hero .btn-primary:hover {
  background: var(--brand-neutral-light);
  color: var(--brand-primary-dark);
  border-color: var(--brand-neutral-light);
}

.hero .btn-secondary {
  background: transparent;
  color: var(--brand-white);
  border-color: var(--brand-white);
}
.hero .btn-secondary:hover {
  background: var(--brand-white);
  color: var(--brand-primary);
}

/* Supporting text and links inside the hero. */
.hero .muted,
.hero .muted a {
  color: rgba(255, 255, 255, 0.85);
}
.hero .muted a { text-decoration: underline; }
.hero .muted a:hover { color: var(--brand-white); }

/* ============================================================
   CONTRAST CORRECTIONS
   Measured with a WCAG audit across every page. Three combinations
   in the original palette fell below 4.5:1 for body text:
     --brand-neutral-mid #8C8C8C  -> 3.36 on white, 2.69 on tint
     --brand-primary-mid #3A7D32  -> 4.05 as a link on tint
     .sms-cta white on sky blue   -> 2.38
   ============================================================ */

/* Darkened muted grey. #63635F measures 6.0:1 on white and 4.9:1 on the
   #D6EBE1 tinted sections — passes in both contexts, and stays neutral
   against the warm charcoal body colour. */
:root { --brand-neutral-mid: #63635F; }

/* Links use the full-strength brand green rather than the mid tone.
   6.6:1 on the tinted sections vs 4.05:1 before. */
.section a:not(.btn):not(.illustration-badge),
.callout a:not(.btn),
.card a:not(.btn),
.faq-item a:not(.btn) {
  color: var(--brand-primary);
}

/* The inline photo-quote link was white on sky blue (2.38:1). Give it the
   same treatment as every other inline link. */
.sms-cta {
  background: transparent;
  color: var(--brand-primary);
  text-decoration: underline;
  padding: 0;
}
.sms-cta:hover { color: var(--brand-primary-dark); }

/* ============================================================
   SITE FOOTER
   Replaces the Kadence credit block. Four columns on desktop,
   stacked on mobile. Carries NAP and the legal links that were
   pushed out of the main navigation.
   ============================================================ */
.tg-footer {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  text-align: left;
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-lg) 0 var(--space-md);
}

.tg-footer strong {
  font-family: var(--font-display);
  color: var(--brand-primary);
  display: block;
  margin-bottom: var(--space-sm);
}

.tg-footer-brand { line-height: 1.8; }

.tg-footer-meta {
  font-size: 0.85rem;
  color: var(--brand-neutral-mid);
  display: block;
  margin-top: var(--space-sm);
  line-height: 1.6;
}

.tg-footer-links a {
  display: block;
  padding: 4px 0;
  color: var(--brand-primary);
  text-decoration: none;
}
.tg-footer-links a:hover { text-decoration: underline; }

.tg-footer-copy {
  text-align: center;
  font-size: 0.85rem;
  color: var(--brand-neutral-mid);
  border-top: 1px solid var(--brand-neutral-light);
  max-width: 1100px;
  margin: 0 auto;
  padding-top: var(--space-md);
}

@media (max-width: 768px) {
  .tg-footer {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }
  .tg-footer-links a { padding: 8px 0; }   /* thumb-sized tap targets */
}

/* Footer brand block: line breaks come from CSS, not <br> tags. WordPress's
   widget auto-formatter rewrites newlines into <br> and wraps stray text in
   <p>, so the markup is now a single line and the layout is done here. */
.tg-footer-brand { display: flex; flex-direction: column; gap: 2px; }
.tg-footer-brand a { color: var(--brand-primary); text-decoration: none; }
.tg-footer-brand a:hover { text-decoration: underline; }
