/* ============================================================
   Sprinkler Repair Odessa Texas — Shared Stylesheet
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background: #f0f0f0;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; color: #1a1a1a; }
h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.6rem; margin-bottom: 0.85rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; }
ul { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }

/* ---------- Page Wrapper ---------- */
.site-wrapper {
  max-width: 100%;
  margin: 0;
  background: #fff;
  border: none;
  min-height: 100vh;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  border-bottom: 2px solid #e0e0e0;
  background: #fff;
  flex-wrap: wrap;
  gap: 12px;
}

.header-phone a {
  font-size: 1.45rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}
.header-phone a:hover { color: #2e7d32; text-decoration: none; }

.site-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 14px;
  color: #333;
  border: 2px solid transparent;
  border-radius: 3px;
  transition: border-color 0.2s, color 0.2s;
}
.site-nav a:hover { border-color: #bbb; text-decoration: none; color: #2e7d32; }
.site-nav a.active { border: 2px solid #333; color: #1a1a1a; text-decoration: none; }

/* ---------- Two-Column Layout ---------- */
.page-body {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 0;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.main-col {
  padding: 36px 48px 48px 48px;
  border-right: 1px solid #e8e8e8;
}

.sidebar-col {
  padding: 32px 24px 32px 32px;
  position: sticky;
  top: 0;
}

/* ---------- Sidebar Quote Form ---------- */
.quote-badge {
  background: #2e7d32;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  padding: 20px 20px;
  line-height: 1.4;
  border-radius: 4px 4px 0 0;
  position: relative;
}
.quote-badge::after {
  content: '';
  display: block;
  margin: 8px auto 0;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid rgba(255,255,255,0.5);
}

.quote-form {
  border: 1px solid #d0d0d0;
  border-top: none;
  padding: 28px 24px;
  border-radius: 0 0 4px 4px;
}

.quote-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 1rem;
  font-family: inherit;
  color: #333;
  background: #fafafa;
  transition: border-color 0.2s;
  margin-bottom: 14px;
}
.quote-form input:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: #2e7d32;
  background: #fff;
}
.quote-form textarea { resize: vertical; min-height: 100px; }

.quote-form .btn-submit {
  width: 100%;
  padding: 16px;
  border: 2px solid #333;
  background: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}
.quote-form .btn-submit:hover { background: #333; color: #fff; }

/* ---------- Image Placeholders ---------- */
.img-placeholder {
  width: 100%;
  background: #e8ecf0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 0.85rem;
  text-align: center;
  border: 1px solid #d5d9de;
  border-radius: 4px;
  padding: 20px;
  gap: 10px;
}
.img-placeholder .img-icon {
  font-size: 2.5rem;
  opacity: 0.5;
}

/* ---------- Hero Section ---------- */
.hero-section {
  margin-bottom: 40px;
}
.hero-section h1 {
  font-size: 2.1rem;
  margin-bottom: 20px;
  color: #1a1a1a;
}
.hero-image { height: 220px; width: 100%; object-fit: cover; border-radius: 4px; margin-bottom: 20px; }
.btn-call-now {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 20px 70px;
  border: 3px solid #333;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 2px;
  cursor: pointer;
  background: #fff;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
  text-align: center;
}
.btn-call-now:hover { background: #333; color: #fff; text-decoration: none; }

/* ---------- Intro Text ---------- */
.intro-section { margin-bottom: 48px; }

/* ---------- Service Blocks ---------- */
.service-blocks { margin-bottom: 48px; }

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #eee;
}
.service-block:last-child { border-bottom: none; }
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }

.service-block-img { height: 220px; width: 100%; object-fit: cover; border-radius: 4px; }
.service-block-text h3 { color: #1a5c1e; font-size: 1.3rem; margin-bottom: 12px; }

/* ---------- FAQ Section ---------- */
.faq-section {
  margin-bottom: 48px;
}
.faq-section h2 { color: #1a1a1a; margin-bottom: 18px; }
.faq-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { color: #1a5c1e; font-size: 1.1rem; margin-bottom: 8px; }

/* ---------- Service Area / Map Section ---------- */
.map-section {
  background: #f5f7f5;
  padding: 36px;
  margin: 0 -36px 48px;
}
.map-section h2 { margin-bottom: 24px; }
.map-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.map-embed {
  height: 300px;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
}
.map-embed iframe { width: 100%; height: 100%; border: none; }
.location-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.location-columns a {
  display: block;
  padding: 6px 0;
  color: #1a5c1e;
  font-weight: 600;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.95rem;
}
.location-columns a:hover { color: #2e7d32; text-decoration: none; background: none; }

/* ---------- Contact Callout ---------- */
.contact-callout { margin-bottom: 48px; }
.contact-callout h2 { margin-bottom: 14px; }

/* ---------- Gallery Row ---------- */
.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.gallery-row img { height: 200px; width: 100%; object-fit: cover; border-radius: 4px; }

/* ---------- Testimonials ---------- */
.testimonials {
  margin-bottom: 48px;
}
.testimonials h2 { margin-bottom: 24px; }
.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 20px;
  background: #fafafa;
}
.testimonial-card blockquote {
  font-style: italic;
  color: #444;
  font-size: 0.93rem;
  margin-bottom: 12px;
  line-height: 1.6;
}
.testimonial-card cite {
  font-style: normal;
  font-weight: 700;
  font-size: 0.88rem;
  color: #2e7d32;
}

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  padding: 24px 0 8px;
}
.btn-call-filled {
  display: inline-block;
  padding: 14px 48px;
  background: #1a1a1a;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1.5px;
  border-radius: 3px;
  border: 2px solid #1a1a1a;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-call-filled:hover { background: #333; text-decoration: none; color: #fff; }

/* ---------- Inner Page Styles ---------- */
.inner-hero-img { height: 300px; margin-bottom: 28px; }
.services-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 28px;
}
.services-list li {
  padding: 10px 14px;
  border-left: 4px solid #2e7d32;
  background: #f5f7f5;
  margin-bottom: 8px;
  font-size: 0.97rem;
  font-weight: 500;
}

.locations-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 16px;
  list-style: none;
  padding: 0;
  margin: 16px 0 28px;
}
.locations-list li {
  padding: 8px 14px;
  background: #f5f7f5;
  border-left: 4px solid #2e7d32;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #f2f2f2;
  border-top: 2px solid #ddd;
  padding: 40px 32px 24px;
}

.footer-nav-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid #ddd;
}
.footer-nav-cols h4 {
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #1a1a1a;
  margin-bottom: 14px;
}
.footer-nav-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-nav-cols li { margin-bottom: 8px; }
.footer-nav-cols a {
  font-size: 0.88rem;
  color: #555;
}
.footer-nav-cols a:hover { color: #2e7d32; }

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.footer-map-embed {
  height: 200px;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
}
.footer-map-embed iframe { width: 100%; height: 100%; border: none; }

.footer-info {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.8;
}
.footer-info strong { font-size: 1rem; color: #1a1a1a; display: block; margin-bottom: 6px; }
.footer-info a { color: #2e7d32; font-weight: 700; }
.footer-info a:hover { text-decoration: underline; }
.footer-info .footer-links { margin-top: 10px; font-size: 0.82rem; }
.footer-info .footer-links a { margin-right: 10px; color: #666; }
.footer-info .footer-disclaimer {
  margin-top: 10px;
  font-size: 0.78rem;
  color: #888;
  line-height: 1.5;
}

.footer-logo-col {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-placeholder {
  background: #e0e8e0;
  border: 2px solid #2e7d32;
  border-radius: 8px;
  width: 180px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.logo-placeholder .logo-icon { font-size: 2.2rem; }
.logo-placeholder .logo-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1a5c1e;
  text-align: center;
  line-height: 1.3;
  padding: 0 10px;
}

/* ---------- Copyright Bar ---------- */
.copyright-bar {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #ddd;
  text-align: center;
  font-size: 0.78rem;
  color: #888;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .page-body { grid-template-columns: 1fr; }
  .sidebar-col { position: static; border-top: 1px solid #e8e8e8; padding-top: 28px; }
  .main-col { border-right: none; padding: 24px 20px 36px; }
  .service-block { grid-template-columns: 1fr; }
  .service-block.reverse { direction: ltr; }
  .testimonial-cards { grid-template-columns: 1fr; }
  .gallery-row { grid-template-columns: 1fr 1fr; }
  .map-layout { grid-template-columns: 1fr; }
  .footer-nav-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { grid-template-columns: 1fr; }
  .locations-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .site-header { padding: 14px 16px; }
  .header-phone a { font-size: 1.2rem; }
  .site-nav a { font-size: 0.75rem; padding: 5px 8px; }
  .main-col { padding: 18px 14px 28px; }
  .map-section { padding: 24px 14px; margin: 0 -14px 36px; }
  .gallery-row { grid-template-columns: 1fr; }
  .footer-nav-cols { grid-template-columns: 1fr 1fr; }
  .locations-list { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.35rem; }
}
