/* --- Root Variables (Warm Tan & Espresso) --- */
:root {
  --primary: hsl(0, 0%, 0%);
  --primary-accent: #b48356;
  --accent-gold: #d97706;
  --dark-bg: #1c1817;
  --light-bg: #f5f0eb;
  --card-bg: #ffffff;
  --text-dark: #2c2523;
  --text-muted: #6b5e57;
  --border-color: #e6ded6;
  --radius-sm: 6px;
  --radius-lg: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-dark);
  background-color: var(--card-bg);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background-color: #96673d;
  color: #fff;
}

.btn-primary:hover {
  background-color: #7d5532;
  transform: translateY(-1px);
}

.btn-nav {
  background-color: var(--primary);
  color: #fff !important;
  padding: 8px 18px;
}

/* --- Top Bar & Veteran Badge --- */
.top-bar {
  background-color: #120e0d;
  color: #a89a91;
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vet-badge-top {
  color: #f5f0eb;
  font-weight: 600;
}

.phone-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

/* --- Navigation & Compact Header --- */
.navbar {
  background-color: #fff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-text-fallback {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.logo-text-fallback span {
  color: var(--primary-accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--primary-accent);
}

/* --- Rich Mountain Hero Section (Clean Dark Overlays) --- */
.hero {
  position: relative;
  background: 
    linear-gradient(rgba(18, 14, 13, 0.65), rgba(18, 14, 13, 0.75)), 
    url('images/hero-mountains.jpg') no-repeat center center / cover;
  color: #fff;
  padding: 80px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 36px;
  align-items: center;
}

/* Left Column: Logo + Veteran Badge overlaying the mountains */
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
}

.hero-text .hero-logo {
  width: 100%;
  max-width: 480px;
  margin: 0;
  font-size: 0;
  line-height: 0;
}

.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  filter: 
    drop-shadow(0 2px 6px rgba(0, 0, 0, 0.75))
    drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
}

.hero-vet-badge {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
  transition: transform 0.2s ease;
}

.hero-vet-badge:hover {
  transform: scale(1.05);
}

/* Right Side: Form Card + Big Right Bee */
.hero-side { 
  width: 100%; 
}

.hero-form-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.hero-form-card {
  flex: 1;
  background-color: #ffffff;
  color: var(--text-dark);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
}

.hero-form-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.hero-form-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.hero-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-form input,
.hero-form select {
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background-color: #faf8f5;
  transition: border-color 0.2s, background-color 0.2s;
}

.hero-form input:focus,
.hero-form select:focus {
  background-color: #ffffff;
  border-color: var(--primary-accent);
}

/* Big Bee Graphic Anchored to the Far Right */
.hero-side-graphic {
  flex: 0 0 240px;
  margin-left: 12px;
  margin-right: -20px;
  z-index: 3;
}

.hero-side-graphic img {
  width: 100%;
  max-width: 270px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.5));
}

/* --- Section Formatting --- */
section {
  padding: 70px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.1rem;
  margin-top: 4px;
}

.header-with-mascot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.mascot-header-img {
  height: 65px;
  width: auto;
  object-fit: contain;
}

.section-intro {
  color: var(--text-muted);
  max-width: 650px;
  margin: 8px auto 0 auto;
}

/* --- Reviews & Work Carousels --- */
.reviews {
  background-color: var(--light-bg);
}

.portfolio {
  background-color: #fff;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-track-container {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease-in-out;
}

.review-card {
  flex: 0 0 calc((100% - 48px) / 3);
  background-color: #fff;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--primary-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.review-bubble {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin-bottom: 12px;
  background-color: #f0f4f8;
  flex-shrink: 0;
}

.review-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stars {
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.review-text {
  font-style: italic;
  font-size: 0.95rem;
  color: #334e68;
  margin-bottom: 12px;
  line-height: 1.6;
}

.review-text:not(.expanded) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  line-clamp: 7;
  overflow: hidden;
}

.read-more {
  align-self: center;
  background: none;
  border: none;
  padding: 4px 0;
  margin: -6px 0 14px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: #8a5a2b;
  cursor: pointer;
  text-decoration: underline;
}

.read-more[hidden] {
  display: none;
}

.reviewer-info {
  margin-top: auto;
}

.reviewer-info strong {
  display: block;
  color: var(--text-dark);
}

.reviewer-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.portfolio-card {
  flex: 0 0 calc((100% - 48px) / 3);
  background-color: var(--light-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  cursor: zoom-in;
  min-height: 220px;
}

.portfolio-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  background-color: #fff;
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background-color: var(--primary-accent);
  color: #fff;
}

/* --- Services Grid --- */
.services {
  background-color: var(--light-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background-color: #fff;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(44, 37, 35, 0.06);
  display: flex;
  flex-direction: column;
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-bg);
  border-radius: 50%;
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.service-card h3 {
  margin-bottom: 8px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.service-link {
  margin-top: auto;
  padding-top: 16px;
  color: #8a5a2b;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.service-link:hover {
  color: #6f4723;
  text-decoration: underline;
}

/* --- Trust Strip --- */
.trust-strip {
  background-color: #fff;
  border-bottom: 1px solid var(--border-color);
  padding: 18px 0;
}

.trust-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.trust-icon {
  font-size: 1.3rem;
}

/* --- About Us --- */
.about-wrap {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.about-text h2 {
  font-size: 2.1rem;
  margin-bottom: 10px;
}

.about-text p {
  color: var(--text-muted);
  max-width: 62ch;
  margin: 0 auto;
}

.encore-subtitle {
  margin-top: 12px;
  display: block;
}

/* --- How it works --- */
.how {
  background-color: #fff;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  text-align: left;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.step h3 {
  margin-bottom: 6px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Service Area --- */
.area {
  background-color: var(--primary);
  color: #fff;
}

.area .section-intro {
  color: #e6ded6;
}

.area-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.area-list li {
  padding: 10px 22px;
  border: 1px solid rgba(180, 131, 86, 0.6);
  background-color: rgba(180, 131, 86, 0.18);
  border-radius: 999px;
  font-weight: 600;
}

.area-note {
  text-align: center;
  color: #e6ded6;
}

.area-note a {
  color: #fff;
  font-weight: 700;
}

/* --- Contact Form --- */
.contact {
  background-color: var(--light-bg);
}

#contact .section-intro a {
  color: #8a5a2b;
}

.contact-form {
  max-width: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

/* --- Footer --- */
.footer {
  background-color: var(--dark-bg);
  color: #a89a91;
  padding-top: 50px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid #332d2b;
}

.footer-logo {
  color: #fff;
}

.footer-vet-text {
  color: #f5f0eb;
  font-weight: 600;
  margin-top: 8px;
}

.footer-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.icon-link.google:hover { background-color: #4285f4; transform: translateY(-2px); }
.icon-link.facebook:hover { background-color: #1877f2; transform: translateY(-2px); }
.icon-link.nextdoor:hover { background-color: #00b246; transform: translateY(-2px); }
.icon-link.ksl:hover { background-color: #005596; transform: translateY(-2px); }
.icon-link.yelp:hover { background-color: #d32323; transform: translateY(-2px); }

.ksl-text-icon {
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: -0.5px;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.85rem;
}

/* --- Mobile Sticky Bar --- */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  border-top: 1px solid var(--border-color);
  padding: 10px 16px;
  z-index: 999;
}

.mobile-bar-btn {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.call-btn {
  background-color: var(--light-bg);
  color: var(--text-dark);
}

.quote-btn {
  background-color: #96673d;
  color: #fff;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(18, 14, 13, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 84vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.3rem;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background-color: var(--primary-accent);
}

.lightbox-close {
  top: 16px;
  right: 16px;
  font-size: 1.8rem;
  line-height: 1;
}

.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* --- Responsiveness & Media Queries --- */
html {
  scroll-padding-top: 70px;
}

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .hero {
    padding: 60px 0 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-form-wrapper {
    flex-direction: column;
  }

  .hero-side-graphic {
    margin-left: 0;
    margin-right: 0;
    margin-top: 20px;
  }

  .hero-side-graphic img {
    max-width: 220px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-card,
  .portfolio-card {
    flex: 0 0 calc((100% - 24px) / 2);
  }

  .trust-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-vet-badge { 
    width: 96px; 
    height: 96px; 
  }

  .header-with-mascot {
    flex-direction: column;
    gap: 8px;
  }

  .mascot-header-img {
    height: 50px;
  }
}

@media (max-width: 600px) {
  .nav-container {
    flex-direction: column;
    gap: 6px;
    padding: 8px 0;
  }

  .nav-links {
    display: flex;
    gap: 16px;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .nav-links li:last-child {
    display: none;
  }

  html {
    scroll-padding-top: 110px;
  }

  .services-grid,
  .contact-form,
  .steps {
    grid-template-columns: 1fr;
  }

  .full-width {
    grid-column: span 1;
  }

  .review-card,
  .portfolio-card {
    flex: 0 0 100%;
  }

  .mobile-sticky-bar {
    display: flex;
    gap: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .hero-form input, .hero-form select,
  .form-group input, .form-group select, .form-group textarea {
    font-size: 16px;
  }

  .hero-form-card {
    padding: 22px;
  }

  .carousel-wrapper {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .carousel-track-container {
    order: -1;
    flex: 0 0 100%;
  }

  .lb-prev, .lb-next {
    top: auto;
    bottom: 20px;
  }

  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }

  .trust-grid {
    gap: 10px 12px;
  }

  .trust-item {
    flex: 0 0 calc(50% - 6px);
    justify-content: flex-start;
  }

  .trust-item:last-child {
    flex-basis: 100%;
    justify-content: center;
  }

  .top-bar-content { 
    flex-direction: column; 
    gap: 2px; 
    text-align: center; 
  }

  .phone-link { 
    white-space: nowrap; 
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}