/* ============================================================
   KLAMATH COUNTY HANDYMAN — Design System
   Brick Red #8B2500 | White #FFFFFF | Accent Gold #D4790A
   Sunrise gradient: brick red from upper-left → warm amber → white
   ============================================================ */

:root {
  --brick: #8B2500;
  --brick-dark: #6B1C00;
  --brick-light: #B83A00;
  --gold: #D4790A;
  --gold-light: #E89B3A;
  --white: #FFFFFF;
  --off-white: #FDF8F5;
  --gray-light: #F5EDE8;
  --gray: #C9A99A;
  --text: #1A0A06;
  --text-muted: #5C3A2E;
  --shadow: rgba(139,37,0,0.15);
  --sunrise-grad: linear-gradient(135deg, #8B2500 0%, #C44D00 20%, #D4790A 40%, #E89B3A 60%, #F7D4A0 80%, #FFF8F0 100%);
  --sunrise-subtle: linear-gradient(135deg, rgba(139,37,0,0.08) 0%, rgba(212,121,10,0.06) 40%, rgba(247,212,160,0.04) 70%, rgba(255,255,255,0) 100%);
}

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brick); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brick-dark); }

/* TYPOGRAPHY */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
p { margin-bottom: 1rem; max-width: 70ch; }
.lead { font-size: 1.2rem; color: var(--text-muted); }

/* LAYOUT */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  background: var(--brick);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px var(--shadow);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  max-width: 1180px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.nav-logo img { height: 48px; width: auto; border-radius: 4px; }
.nav-logo span { line-height: 1.2; }
.nav-logo .tagline { font-size: 0.7rem; font-weight: 400; opacity: 0.8; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.88);
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}
.nav-cta {
  background: var(--gold) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 6px !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--sunrise-grad);
  padding: 5rem 1.25rem 4rem;
  position: relative;
  overflow: hidden;
}
/* Hero background photo at 40% opacity, layered over the sunrise gradient */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/images/handymanbg.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.40;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--white), transparent);
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text h1 { color: var(--white); text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero-text .lead { color: rgba(255,255,255,0.92); font-size: 1.15rem; margin: 1rem 0 1.75rem; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.badge {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  color: white;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--white);
  color: var(--brick);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.btn-primary:hover { background: var(--off-white); transform: translateY(-1px); color: var(--brick-dark); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: white; }
.btn-brick {
  background: var(--brick);
  color: var(--white);
  box-shadow: 0 4px 12px var(--shadow);
}
.btn-brick:hover { background: var(--brick-dark); transform: translateY(-1px); }
.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(212,121,10,0.3);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.1rem; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.88rem; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--off-white);
  border-top: 3px solid var(--brick);
  padding: 1.5rem 0;
}
.trust-bar-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.trust-item .icon { font-size: 1.3rem; }

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-section { background: var(--white); position: relative; }
.services-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  background: var(--sunrise-subtle);
  pointer-events: none;
}
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { margin: 0 auto; color: var(--text-muted); }
.accent-line {
  width: 60px; height: 4px;
  background: var(--brick);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--brick);
  transform: scaleY(0);
  transition: transform 0.25s;
}
.service-card:hover {
  box-shadow: 0 8px 28px var(--shadow);
  transform: translateY(-3px);
  border-color: var(--gray);
}
.service-card:hover::before { transform: scaleY(1); }
.service-card .icon { font-size: 2.25rem; margin-bottom: 0.75rem; display: block; }
.service-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--text); }
.service-card p { font-size: 0.88rem; color: var(--text-muted); margin: 0 0 1rem; max-width: none; }
.service-card a { font-size: 0.88rem; font-weight: 600; color: var(--brick); }
.service-card a:hover { color: var(--brick-dark); }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-section { background: var(--gray-light); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.why-item { text-align: center; }
.why-icon {
  width: 64px; height: 64px;
  background: var(--brick);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.75rem;
}
.why-item h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.why-item p { font-size: 0.88rem; color: var(--text-muted); max-width: none; margin: 0; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--sunrise-grad);
  padding: 4rem 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: white; margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255,255,255,0.9); margin: 0 auto 2rem; max-width: 560px; }
.cta-banner .btn-group { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   SERVICE PAGE HERO
   ============================================================ */
.page-hero {
  background: var(--sunrise-grad);
  padding: 3.5rem 1.25rem;
}
.page-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.breadcrumb {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: white; }
.breadcrumb span { margin: 0 0.4rem; }
.page-hero h1 { color: white; text-shadow: 0 2px 8px rgba(0,0,0,0.25); margin-bottom: 0.75rem; }
.page-hero .lead { color: rgba(255,255,255,0.92); max-width: 60ch; }

/* ============================================================
   CONTENT + SIDEBAR
   ============================================================ */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}
.content-body h2 { margin: 2rem 0 1rem; color: var(--brick-dark); }
.content-body h3 { margin: 1.5rem 0 0.75rem; }
.content-body ul, .content-body ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.content-body li { margin-bottom: 0.4rem; }

/* SIDEBAR */
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px var(--shadow);
}
.sidebar-card.sticky-card { position: sticky; top: 80px; }
.sidebar-card h3 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--brick);
  color: var(--brick-dark);
}
.contact-form label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.35rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--gray);
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brick);
  box-shadow: 0 0 0 3px rgba(139,37,0,0.1);
}
.contact-form textarea { resize: vertical; min-height: 90px; }
.phone-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--brick);
  color: white;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  transition: background 0.2s;
}
.phone-cta:hover { background: var(--brick-dark); color: white; }
.phone-cta .icon { font-size: 1.4rem; }

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section { background: var(--off-white); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--gray-light);
  padding: 1.25rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0;
}
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--brick); flex-shrink: 0; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; padding-top: 0.75rem; color: var(--text-muted); }
.faq-item.open .faq-a { display: block; }

/* ============================================================
   BLOG LISTING
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.25s;
}
.blog-card:hover { box-shadow: 0 8px 28px var(--shadow); transform: translateY(-3px); }
.blog-card-img {
  height: 160px;
  background: var(--sunrise-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.blog-card-body { padding: 1.25rem; }
.blog-meta { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.blog-meta .tag {
  background: var(--gray-light);
  color: var(--brick);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-weight: 600;
  margin-right: 0.5rem;
}
.blog-card h3 { font-size: 0.98rem; margin-bottom: 0.5rem; line-height: 1.4; }
.blog-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; max-width: none; }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-section { background: var(--white); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.review-card {
  background: var(--off-white);
  border-radius: 10px;
  padding: 1.5rem;
  border-left: 4px solid var(--brick);
}
.stars { color: #F5A623; font-size: 1.1rem; margin-bottom: 0.75rem; }
.review-text { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 1rem; font-style: italic; max-width: none; }
.reviewer { font-weight: 700; font-size: 0.88rem; }
.reviewer span { font-weight: 400; color: var(--text-muted); }

/* ============================================================
   AREA SECTION
   ============================================================ */
.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.area-tag {
  background: var(--gray-light);
  border: 1px solid var(--gray);
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brick);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.area-tag:hover { background: var(--brick); color: white; border-color: var(--brick); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--brick-dark);
  color: rgba(255,255,255,0.85);
  padding: 3.5rem 1.25rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1180px;
  margin: 0 auto 2.5rem;
}
.footer-brand .logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.75rem;
}
.footer-brand p { font-size: 0.88rem; max-width: 30ch; line-height: 1.6; }
.footer-col h4 { color: white; font-size: 0.92rem; margin-bottom: 1rem; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.72); font-size: 0.88rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.schema-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar-card.sticky-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--brick-dark);
    padding: 1rem;
    gap: 0.25rem;
  }
  .nav-toggle { display: block; }
  .site-header { position: relative; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .trust-bar-inner { gap: 1rem; }
}

/* ============================================================
   SCHEMA / ACCESSIBILITY HELPERS
   ============================================================ */
.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;
}
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--brick); color: white;
  padding: 0.5rem 1rem; z-index: 999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Blog post content styles */
.blog-content h2 { margin: 2rem 0 1rem; color: var(--brick-dark); }
.blog-content h3 { margin: 1.5rem 0 0.75rem; }
.blog-content ul, .blog-content ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.blog-content li { margin-bottom: 0.5rem; }
.blog-content blockquote {
  border-left: 4px solid var(--brick);
  padding: 1rem 1.5rem;
  background: var(--gray-light);
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}
.blog-content .highlight-box {
  background: var(--gray-light);
  border: 1px solid var(--gray);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.blog-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.blog-content th { background: var(--brick); color: white; padding: 0.75rem 1rem; text-align: left; font-size: 0.9rem; }
.blog-cont