/* =====================================================================
   HOMEPAGE sections
   ===================================================================== */

/* ---------- Hero ----------
   Background: <picture id="hero-bg"> in index.html (wide image, plus a technician crop for phones). */
#section-hero { position: relative; display: flex; align-items: center; min-height: 78vh; overflow: hidden; background: var(--navy-dark); color: var(--white); padding: 64px 0; }
#hero-bg { position: absolute; inset: 0; }
#hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 35%; }
#hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(7,20,40,0.75), rgba(7,20,40,0.35)); }
#hero-content { position: relative; z-index: 1; width: 100%; }
#hero-copy { max-width: 760px; }
#hero-heading { font-weight: 900; font-size: clamp(2.2rem, 5.5vw, 3.8rem); line-height: 1.1; margin-bottom: 22px; text-shadow: 0 2px 12px rgba(7,20,40,0.8); }
#hero-heading span { color: var(--green); }
#hero-subtext { font-size: 1.1rem; max-width: 600px; margin-bottom: 32px; text-shadow: 0 1px 8px rgba(7,20,40,0.9); }
#hero-cta-group { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Trust bar ---------- */
#section-trust { background: var(--green); color: var(--navy); padding: 18px 0; }
#trust-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
.trust-item { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 0.84rem; letter-spacing: 0.05em; text-transform: uppercase; }

/* ---------- Grids and cards ---------- */
.split { display: grid; gap: 32px; align-items: start; }
.card-grid { display: grid; gap: 24px; }
.service-card, .pest-card, .info-card { background: var(--white); color: var(--navy); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.service-card h3, .pest-card h3, .info-card h3, .step-card h3, .benefit-card h3 { font-weight: 700; font-size: 1.08rem; line-height: 1.35; }
.service-card p, .pest-card p, .info-card p, .step-card p { font-size: 0.95rem; margin: 0; }
.card-icon { font-size: 1.7rem; color: var(--green-dark); }
.card-link { margin-top: auto; padding-top: 8px; font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: var(--green-text); }
.note-card { margin-top: 24px; border-left: 4px solid var(--green); }

/* ---------- Process ---------- */
#process-steps { display: grid; gap: 24px; }
.step-card { background: var(--white); border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow); text-align: center; }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 50%; background: var(--navy); color: var(--green); font-family: var(--font-head); font-weight: 900; font-size: 1.3rem; }
.step-card h3 { margin-bottom: 8px; }

/* ---------- Pricing ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--gray-mid); }
#price-table { width: 100%; min-width: 520px; border-collapse: collapse; }
#price-table th, #price-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--gray-mid); vertical-align: top; }
#price-table thead th { background: var(--navy); color: var(--white); font-family: var(--font-head); font-size: 0.85rem; }
#price-factors { margin: 32px 0; }
#price-factors li, .check-list li { position: relative; padding: 4px 0 4px 28px; }
#price-factors li::before, .check-list li::before { content: '\2713'; position: absolute; left: 0; font-weight: 700; color: var(--green-dark); }
.sub-heading { font-weight: 700; font-size: 1.1rem; margin: 32px 0 10px; }

/* ---------- Benefits (navy) ---------- */
.benefit-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 28px 24px; transition: var(--transition); }
.benefit-card:hover { background: rgba(46,204,113,0.08); border-color: var(--green); }
.benefit-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 12px; background: rgba(46,204,113,0.12); color: var(--green); font-size: 1.4rem; }
.benefit-card h3 { margin-bottom: 8px; }
.benefit-card p { font-size: 0.93rem; color: var(--gray-mid); }
#benefits-note { max-width: 760px; margin: 36px auto 0; color: var(--gray-mid); }

/* ---------- Service area ---------- */
.city-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 8px; }
.city-tag { display: flex; align-items: center; gap: 8px; background: var(--white); border-radius: 8px; padding: 10px 14px; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; box-shadow: 0 2px 8px rgba(11,31,58,0.07); }
.city-tag i { color: var(--green-dark); }

/* ---------- FAQ (navy) ---------- */
#faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); }
.faq-question { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; cursor: pointer; list-style: none; border-radius: var(--radius); }
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { background: rgba(46,204,113,0.07); }
.faq-question h3 { font-weight: 600; font-size: 0.98rem; line-height: 1.45; }
.faq-question i { color: var(--green); transition: var(--transition); }
.faq-item[open] .faq-question i { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 20px; font-size: 0.95rem; color: var(--gray-mid); }

/* ---------- Estimate ---------- */
#section-estimate { background: linear-gradient(135deg, var(--navy-dark), var(--navy-mid)); color: var(--white); }
#section-estimate .check-list li::before { color: var(--green); }
#section-estimate .check-list { margin: 20px 0; }

/* ---------- Responsive ---------- */
@media (min-width: 481px) { #process-steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 769px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1025px) {
  .card-grid.three, .card-grid.six { grid-template-columns: repeat(3, 1fr); }
  .card-grid.four { grid-template-columns: repeat(4, 1fr); }
  #process-steps { grid-template-columns: repeat(5, 1fr); gap: 16px; }
}

/* Hero with photo: keep the copy clear of the technician */
@media (min-width: 769px) { #hero-copy { max-width: min(600px, 52%); } #hero-heading { font-size: clamp(2.2rem, 4.2vw, 3.4rem); } }
/* Phones: text sits on top of the technician, so the overlay is darker for readable contrast */
@media (max-width: 768px) { #hero-overlay { background: linear-gradient(180deg, rgba(7,20,40,0.82), rgba(7,20,40,0.64)); } }
