/* ==============================================
   Twin Falls Garage Door — Main Stylesheet
   Color Palette: Snake River Canyon Earth Tones
   ============================================== */

:root {
  --canyon-brown:   #6B4226;   /* deep canyon sandstone */
  --sage-green:     #5C7A4E;   /* Idaho sage brush */
  --sky-blue:       #4A7FA5;   /* high desert sky */
  --rust-orange:    #C05C2A;   /* canyon rust accent */
  --cream:          #F5EFE6;   /* light sandstone */
  --dark-earth:     #2C1F14;   /* near-black dark earth */
  --mid-earth:      #8B6347;   /* mid-tone earth */
  --light-sage:     #EAF0E7;   /* very light sage tint */
  --white:          #FFFFFF;
  --gray-100:       #F8F4F0;
  --gray-200:       #EDE6DE;
  --gray-500:       #8A7B6E;
  --gray-700:       #4A3F36;
  --font-main:      'Segoe UI', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  font-size: 17px;
  line-height: 1.7;
  color: var(--dark-earth);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust-orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--canyon-brown);
}
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.5rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); margin-bottom: 0.4rem; }
p  { margin-bottom: 1rem; }

/* ---- UTILITY ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.section { padding: 64px 0; }
.section-alt { background: var(--gray-100); }
.section-dark { background: var(--canyon-brown); color: var(--cream); }
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-sage { background: var(--light-sage); }

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-align: center;
  text-decoration: none;
}
.btn-primary {
  background: var(--rust-orange);
  color: var(--white);
}
.btn-primary:hover {
  background: #a04820;
  color: var(--white);
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--canyon-brown);
  text-decoration: none;
}
.btn-lg { padding: 18px 40px; font-size: 1.15rem; }
.btn-phone {
  background: var(--sage-green);
  color: var(--white);
}
.btn-phone:hover {
  background: #4a6340;
  color: var(--white);
  text-decoration: none;
}

/* ---- TOP BAR ---- */
.top-bar {
  background: var(--dark-earth);
  color: var(--cream);
  font-size: 0.88rem;
  padding: 8px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.top-bar a { color: var(--cream); }
.top-bar a:hover { color: var(--rust-orange); text-decoration: none; }
.top-bar-phone { font-weight: 700; font-size: 1rem; letter-spacing: 0.5px; }

/* ---- HEADER / NAV ---- */
header {
  background: var(--canyon-brown);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1140px;
  margin: 0 auto;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-main {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.logo-sub {
  font-size: 0.75rem;
  color: var(--cream);
  opacity: 0.85;
  letter-spacing: 1px;
  text-transform: uppercase;
}

nav { display: flex; align-items: center; gap: 4px; }
nav a {
  color: var(--cream);
  padding: 8px 12px;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}
nav a:hover { background: rgba(255,255,255,0.15); text-decoration: none; }
nav a.active { background: var(--rust-orange); color: var(--white); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dark-earth);
  min-width: 200px;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  z-index: 999;
  padding: 6px 0;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.87rem;
  color: var(--cream);
  border-radius: 0;
}
.dropdown-menu a:hover { background: var(--rust-orange); }
.dropdown > a::after { content: ' ▾'; font-size: 0.7em; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: 2px solid var(--cream);
  color: var(--cream);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
}
.mobile-nav {
  display: none;
  background: var(--dark-earth);
  padding: 10px 0;
}
.mobile-nav a {
  display: block;
  color: var(--cream);
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-weight: 600;
}
.mobile-nav a:hover { background: var(--rust-orange); text-decoration: none; }
.mobile-nav.open { display: block; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--canyon-brown) 0%, var(--dark-earth) 60%, var(--sage-green) 100%);
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero p { color: var(--cream); font-size: 1.15rem; margin-bottom: 1.8rem; max-width: 580px; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.8rem;
}
.badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- TRUST BAR ---- */
.trust-bar {
  background: var(--rust-orange);
  padding: 18px 0;
}
.trust-bar .container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
}
.trust-icon { font-size: 1.5rem; }

/* ---- SERVICES GRID ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 28px 24px;
  transition: all 0.25s;
  border-top: 4px solid var(--rust-orange);
}
.service-card:hover {
  box-shadow: 0 8px 30px rgba(107,66,38,0.15);
  transform: translateY(-3px);
}
.service-icon { font-size: 2.4rem; margin-bottom: 14px; }
.service-card h3 { color: var(--canyon-brown); margin-bottom: 8px; }
.service-card p { color: var(--gray-700); font-size: 0.95rem; margin-bottom: 14px; }
.service-card a { color: var(--rust-orange); font-weight: 700; font-size: 0.9rem; }

/* ---- WHY US ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.why-item { text-align: center; padding: 24px 16px; }
.why-num {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--rust-orange);
  line-height: 1;
  margin-bottom: 8px;
}
.why-item h3 { color: var(--canyon-brown); margin-bottom: 8px; }
.why-item p { color: var(--gray-700); font-size: 0.93rem; }

/* ---- CTA BAND ---- */
.cta-band {
  background: linear-gradient(135deg, var(--canyon-brown), var(--dark-earth));
  padding: 60px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.6rem; }
.cta-band p { color: var(--cream); margin-bottom: 1.8rem; font-size: 1.05rem; }
.cta-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- REVIEWS ---- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 28px;
}
.stars { color: #F5A623; font-size: 1.2rem; margin-bottom: 10px; }
.review-text { font-style: italic; color: var(--gray-700); margin-bottom: 14px; font-size: 0.95rem; }
.reviewer { font-weight: 700; color: var(--canyon-brown); }
.reviewer-loc { font-size: 0.85rem; color: var(--gray-500); }

/* ---- AREAS STRIP ---- */
.areas-strip { padding: 50px 0; background: var(--light-sage); }
.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  justify-content: center;
}
.area-tag {
  background: var(--white);
  border: 1px solid var(--sage-green);
  color: var(--sage-green);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.area-tag:hover {
  background: var(--sage-green);
  color: var(--white);
  text-decoration: none;
}

/* ---- PAGE HEADER ---- */
.page-hero {
  background: linear-gradient(135deg, var(--canyon-brown) 0%, var(--dark-earth) 100%);
  padding: 60px 0 50px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.6rem; }
.page-hero p { color: var(--cream); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--white); }

/* ---- CONTENT LAYOUT ---- */
.content-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: 80px;
}
.sidebar-box {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 28px 24px;
  margin-bottom: 24px;
  border-top: 4px solid var(--rust-orange);
}
.sidebar-box h3 { color: var(--canyon-brown); margin-bottom: 14px; }
.sidebar-phone {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--rust-orange);
  display: block;
  margin-bottom: 6px;
}
.sidebar-box ul { list-style: none; }
.sidebar-box ul li { padding: 6px 0; border-bottom: 1px solid var(--gray-200); font-size: 0.93rem; }
.sidebar-box ul li:last-child { border: none; }
.sidebar-box ul li a { color: var(--canyon-brown); font-weight: 600; }
.sidebar-box ul li::before { content: '✓ '; color: var(--sage-green); font-weight: 700; }

/* ---- PROSE CONTENT ---- */
.prose h2 { margin-top: 2rem; margin-bottom: 0.6rem; }
.prose h3 { margin-top: 1.5rem; color: var(--canyon-brown); }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose .highlight-box {
  background: var(--light-sage);
  border-left: 4px solid var(--sage-green);
  padding: 16px 20px;
  border-radius: 0 6px 6px 0;
  margin: 1.5rem 0;
}

/* ---- FAQ ---- */
.faq-list { margin-top: 30px; }
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  background: var(--gray-100);
  padding: 16px 20px;
  font-weight: 700;
  cursor: pointer;
  color: var(--canyon-brown);
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--rust-orange); }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; padding: 16px 20px; color: var(--gray-700); font-size: 0.95rem; }
.faq-item.open .faq-a { display: block; }

/* ---- PROBLEM PAGE ---- */
.warning-box {
  background: #FFF3CD;
  border: 1px solid #F5A623;
  border-left: 4px solid #F5A623;
  border-radius: 0 6px 6px 0;
  padding: 16px 20px;
  margin: 1.2rem 0;
}
.warning-box strong { color: #7a5000; }
.step-list { counter-reset: steps; list-style: none; padding: 0; }
.step-list li {
  counter-increment: steps;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
}
.step-list li::before {
  content: counter(steps);
  background: var(--rust-orange);
  color: white;
  font-weight: 800;
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- CONTACT FORM ---- */
.form-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--canyon-brown);
  font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-size: 1rem;
  font-family: var(--font-main);
  color: var(--dark-earth);
  background: var(--gray-100);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--rust-orange);
  background: var(--white);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---- THANK YOU ---- */
.ty-icon { font-size: 5rem; margin-bottom: 1rem; }
.ty-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 20px;
}

/* ---- FOOTER ---- */
footer {
  background: var(--dark-earth);
  color: var(--cream);
  padding: 50px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--rust-orange);
  display: inline-block;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul li a { color: var(--gray-500); font-size: 0.9rem; }
footer ul li a:hover { color: var(--cream); text-decoration: none; }
.footer-about p { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 12px; }
.footer-phone { font-size: 1.3rem; font-weight: 800; color: var(--rust-orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--gray-500);
}
.footer-bottom a { color: var(--gray-500); }

/* ---- SERVICE AREA PAGE ---- */
.area-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}
.area-stat-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.area-stat {
  background: var(--gray-100);
  border-radius: 6px;
  padding: 16px 20px;
  text-align: center;
  flex: 1;
  min-width: 120px;
  border-top: 3px solid var(--sage-green);
}
.area-stat-num { font-size: 1.6rem; font-weight: 800; color: var(--canyon-brown); }
.area-stat-label { font-size: 0.8rem; color: var(--gray-500); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  nav { display: none; }
  .hamburger { display: block; }
  .content-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .area-intro-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { padding: 50px 0; }
  .hero-ctas { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-bar .container { flex-direction: column; align-items: flex-start; }
  .cta-group { flex-direction: column; align-items: center; }
  .top-bar .container { flex-direction: column; align-items: flex-start; }
}
