/* ==========================================================================
   The Thirsty Navigator — Local Business Demo Stylesheet
   Supports distinct trade themes via body classes:
   - .theme-plumbing  (Crisp Trade Blue + Urgent Safety Amber)
   - .theme-handyman  (Craftsman Pine Charcoal + Warm Cedar + Cream)
   ========================================================================== */

:root {
  --primary: #0f4c81;
  --primary-dark: #0a345a;
  --accent: #e06d1f;
  --accent-hover: #c55c15;
  --accent-soft: #fff2e8;
  --tint: #edf5fb;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --ink: #1a2634;
  --muted: #526273;
  --border: #dce5ee;
  --radius: 12px;
  --shadow-sm: 0 2px 10px rgba(15, 35, 55, 0.06);
  --shadow-md: 0 12px 30px rgba(15, 35, 55, 0.1);
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.theme-handyman {
  --primary: #1f3a32;
  --primary-dark: #152822;
  --accent: #c86d2d;
  --accent-hover: #ad5b22;
  --accent-soft: #fdf2e9;
  --tint: #eef4f1;
  --bg: #ffffff;
  --bg-alt: #faf8f4;
  --ink: #222624;
  --muted: #57605c;
  --border: #e4e1d8;
}

.theme-lawn {
  --primary: #1d6b35;
  --primary-dark: #124622;
  --accent: #e86a17;
  --accent-hover: #cc590e;
  --accent-soft: #fff2e8;
  --tint: #eaf5ed;
  --bg: #ffffff;
  --bg-alt: #f5faf6;
  --ink: #1a281f;
  --muted: #4f6356;
  --border: #d7e6db;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--primary-dark);
  line-height: 1.2;
  margin: 0 0 0.7rem;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

.section {
  padding: 4.75rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ==========================================================================
   Top "Demo By The Thirsty Navigator" Banner
   ========================================================================== */
.tn-demo-bar {
  background: #0b1f3a;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  border-bottom: 2px solid #c68b2c;
}

.tn-demo-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.6rem 0;
}

.tn-demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}

.tn-demo-badge {
  background: #c68b2c;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.16rem 0.5rem;
  border-radius: 4px;
}

.tn-demo-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.tn-demo-links a {
  color: #f3d59c;
  font-weight: 600;
}

.tn-demo-links a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Business Utility Strip + Header
   ========================================================================== */
.utility-bar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
}

.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.utility-inner strong {
  color: #ffffff;
}

.biz-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.biz-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1.25rem;
}

.biz-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.biz-logo-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary);
  color: #ffffff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.biz-brand-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--primary-dark);
  line-height: 1.1;
}

.biz-brand-sub {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
}

.biz-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.biz-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}

.biz-nav a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.48rem 0.65rem;
  color: var(--primary-dark);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.94rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--tint);
}

.biz-nav .btn-accent {
  padding: 0.62rem 1.1rem;
  font-size: 0.88rem;
  color: #ffffff;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.demo-hero {
  padding: 4rem 0 4.75rem;
  background: linear-gradient(180deg, var(--bg-alt) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}

.demo-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.36rem 0.8rem;
  border-radius: 999px;
  background: var(--tint);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.1rem;
}

.demo-hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.1rem;
}

.demo-hero-lead {
  font-size: 1.08rem;
  margin-bottom: 1.75rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.trust-strip span::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 800;
}

/* ==========================================================================
   Smart Photo Slots
   ========================================================================== */
.photo-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  border: 1.5px dashed #b9c5d1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.photo-slot.has-photo {
  border-style: solid;
  border-color: transparent;
}

.photo-slot.has-photo .photo-placeholder {
  display: none;
}

.photo-placeholder {
  text-align: center;
  padding: 1.35rem;
  max-width: 310px;
}

.photo-placeholder-file {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.photo-placeholder p {
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
}

/* ==========================================================================
   Content Grids (Services, Gallery, Steps, Reviews)
   ========================================================================== */
.section-head {
  max-width: 650px;
  margin-bottom: 2.5rem;
}

.section-head.centered {
  text-align: center;
  margin-inline: auto;
}

.section-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.65rem;
  box-shadow: var(--shadow-sm);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.card p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* Project / Work Photo Cards */
.work-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.work-card .photo-slot {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}

.work-card-caption {
  padding: 1.15rem 1.25rem;
}

.work-card-caption h3 {
  font-size: 1.02rem;
  margin-bottom: 0.25rem;
}

.work-card-caption p {
  font-size: 0.88rem;
  margin: 0;
}

/* Steps / Why Us */
.step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

/* Reviews */
.stars {
  color: #e09a19;
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.65rem;
}

.review-author {
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary-dark);
}

.review-loc {
  font-weight: 500;
  color: var(--muted);
}

/* ==========================================================================
   Estimate / Contact Band
   ========================================================================== */
.estimate-box {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 2.5rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.service-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 1.5rem;
}

.area-pill {
  background: var(--tint);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.phone-callout {
  background: var(--primary);
  color: #ffffff;
  border-radius: 11px;
  padding: 1.25rem 1.4rem;
}

.phone-callout span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.82;
}

.phone-callout a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 0.2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  font-size: 0.93rem;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--ink);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
}

.check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.72rem;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.check-pill input {
  width: auto;
  margin: 0;
  accent-color: var(--primary);
}

.form-status {
  display: none;
  margin-top: 0.8rem;
  padding: 0.78rem 1rem;
  border-radius: 8px;
  background: var(--tint);
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 600;
}

.form-status.is-visible {
  display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.biz-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 2.75rem 0;
  font-size: 0.88rem;
}

.biz-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.biz-footer strong {
  color: #ffffff;
}

.biz-footer a {
  color: #f3d59c;
  font-weight: 600;
}

.biz-footer a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Josh's Mowing Intro Animation (Runs Once Across Top on Load, Then Fades Out)
   ========================================================================== */
.mower-replay-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 0.24rem 0.65rem;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.mower-replay-btn:hover {
  background: rgba(232, 106, 23, 0.85);
  border-color: #e86a17;
}

.mower-stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 142px;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease;
}

.mower-stage.is-active {
  opacity: 1;
  visibility: visible;
}

.mower-stage.is-fading {
  opacity: 0;
}

/* Grass strip along the bottom edge of the mower's path */
.mower-grass-strip {
  position: absolute;
  left: 0;
  right: 0;
  top: 102px;
  height: 18px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 4px,
    rgba(39, 134, 59, 0.85) 4px 6.5px,
    transparent 6.5px 9px,
    rgba(74, 181, 79, 0.9) 9px 11.5px
  );
  transform-origin: left center;
}

.mower-runner {
  position: absolute;
  top: 12px;
  left: 0;
  width: 144px;
  height: 108px;
  transform: translate3d(-170px, 0, 0);
  will-change: transform;
}

.mower-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.22));
  animation: mowerBounce 0.16s infinite alternate ease-in-out;
}

.mower-wheel-spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: wheelSpin 0.28s linear infinite;
}

.mower-headband-tail {
  transform-box: fill-box;
  transform-origin: right center;
  animation: headbandFlutter 0.18s infinite alternate ease-in-out;
}

.grass-clipping {
  position: absolute;
  width: 9px;
  height: 3.5px;
  border-radius: 2px;
  pointer-events: none;
  will-change: transform, opacity;
}

@keyframes mowerBounce {
  from {
    transform: translateY(0px) rotate(-0.6deg);
  }
  to {
    transform: translateY(-2px) rotate(0.8deg);
  }
}

@keyframes wheelSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes headbandFlutter {
  from {
    transform: rotate(-8deg);
  }
  to {
    transform: rotate(10deg);
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 920px) {
  .demo-hero-grid,
  .grid-3,
  .grid-2,
  .estimate-box {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 740px) {
  .nav-toggle {
    display: inline-flex;
  }

  .biz-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 1.15rem 4%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    box-shadow: var(--shadow-md);
  }

  .biz-nav.is-open {
    display: flex;
  }

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

  .estimate-box {
    padding: 1.5rem;
  }
}
