/* HomeBaseDrill — Home Services (HVAC, Plumbing, Electrical)
   Visual direction: bold slate #2c3e50 + safety orange #e67e22 + white
*/

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

:root {
  --slate:        #2c3e50;
  --slate-dark:   #1a252f;
  --slate-mid:    #34495e;
  --slate-light:  #455a6e;
  --orange:       #e67e22;
  --orange-light: #f39c12;
  --orange-dark:  #ca6f1e;
  --orange-pale:  #fae5c8;
  --white:        #ffffff;
  --gray-50:      #f8f9fa;
  --gray-100:     #f1f2f3;
  --gray-200:     #dee2e6;
  --gray-400:     #9aa0a8;
  --gray-600:     #606770;
  --gray-700:     #464c54;
  --text-main:    #1a1e24;
  --text-muted:   #5a6270;
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    14px;
  --shadow-sm:    0 1px 4px rgba(44,62,80,.08);
  --shadow-md:    0 4px 18px rgba(44,62,80,.14);
  --shadow-lg:    0 10px 40px rgba(44,62,80,.18);
  --font-sans:    'Segoe UI', system-ui, -apple-system, sans-serif;
  --transition:   180ms ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); color: var(--text-main); background: var(--white); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section--alt  { background: var(--gray-50); }
.section--dark { background: var(--slate-dark); color: var(--white); }
.section-label { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.section-title { font-size: clamp(1.85rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.18; color: var(--slate-dark); }
.section--dark .section-title { color: var(--white); }
.section-sub   { font-size: 1.05rem; color: var(--text-muted); margin-top: 14px; max-width: 620px; }
.section--dark .section-sub { color: rgba(255,255,255,.72); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: var(--radius-sm); font-weight: 700; font-size: .95rem; cursor: pointer; border: 2px solid transparent; transition: var(--transition); }
.btn-primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-light); border-color: var(--orange-light); }
.btn-slate { background: var(--slate); color: var(--white); border-color: var(--slate); }
.btn-slate:hover { background: var(--slate-mid); border-color: var(--slate-mid); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--slate); border-color: var(--slate); }
.btn-outline-dark:hover { background: var(--slate); color: var(--white); }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--slate-dark);
  border-bottom: 3px solid var(--orange);
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__logo-mark {
  width: 38px; height: 38px; background: var(--orange); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; color: var(--white);
}
.nav__brand-name { font-size: 1.15rem; color: var(--white); font-weight: 800; letter-spacing: .01em; }
.nav__emergency { display: flex; align-items: center; gap: 6px; background: var(--orange); color: var(--white); padding: 7px 14px; border-radius: var(--radius-sm); font-weight: 700; font-size: .85rem; }
.nav__emergency::before { content: '⚡'; }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__links a { color: rgba(255,255,255,.8); font-size: .88rem; font-weight: 600; padding: 8px 12px; border-radius: var(--radius-sm); transition: var(--transition); }
.nav__links a:hover { color: var(--white); background: rgba(255,255,255,.1); }
.nav__cta { background: var(--orange) !important; color: var(--white) !important; }
.nav__cta:hover { background: var(--orange-light) !important; }

/* ── Hero ── */
.hero {
  background: var(--slate-dark);
  color: var(--white);
  padding: 80px 0 72px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; right: 0; top: 0; bottom: 0; width: 35%;
  background: linear-gradient(90deg, transparent, rgba(230,126,34,.08));
  pointer-events: none;
}
.hero__inner { display: grid; grid-template-columns: 1fr 420px; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(230,126,34,.18); border: 1px solid rgba(230,126,34,.4); border-radius: var(--radius-sm); padding: 6px 14px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--orange-light); margin-bottom: 20px; }
.hero__title { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 900; line-height: 1.14; margin-bottom: 20px; }
.hero__title em { color: var(--orange); font-style: normal; }
.hero__sub { font-size: 1.08rem; color: rgba(255,255,255,.78); max-width: 500px; margin-bottom: 34px; line-height: 1.7; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__trust { display: flex; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.hero__trust-item { display: flex; align-items: center; gap: 8px; font-size: .83rem; color: rgba(255,255,255,.65); }
.hero__trust-item::before { content: '✓'; color: var(--orange); font-weight: 700; }
.hero__card {
  background: var(--white); border-radius: var(--radius-md); padding: 30px;
  box-shadow: var(--shadow-lg); border-top: 4px solid var(--orange);
}
.hero__card h3 { font-size: 1.15rem; font-weight: 800; color: var(--slate-dark); margin-bottom: 6px; }
.hero__card p { font-size: .84rem; color: var(--text-muted); margin-bottom: 18px; }
.hero__form-group { margin-bottom: 12px; }
.hero__form-group label { display: block; font-size: .77rem; font-weight: 700; color: var(--gray-600); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .05em; }
.hero__form-group select, .hero__form-group input { width: 100%; padding: 10px 13px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); font-size: .93rem; background: var(--gray-50); color: var(--text-main); transition: var(--transition); }
.hero__form-group select:focus, .hero__form-group input:focus { outline: none; border-color: var(--orange); background: var(--white); }
.hero__card .btn { width: 100%; justify-content: center; margin-top: 8px; }

/* ── Emergency band ── */
.emergency-band { background: var(--orange); padding: 22px 0; }
.emergency-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.emergency-band__text { font-weight: 700; color: var(--white); font-size: 1.05rem; }
.emergency-band__text span { font-weight: 400; font-size: .9rem; opacity: .88; margin-left: 8px; }
.emergency-band__disc { font-size: .78rem; color: rgba(255,255,255,.7); }

/* ── Stats ── */
.stats { background: var(--slate); padding: 38px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats__item { text-align: center; padding: 0 20px; border-right: 1px solid rgba(255,255,255,.12); }
.stats__item:last-child { border-right: none; }
.stats__number { font-size: 2.3rem; font-weight: 900; color: var(--orange-light); line-height: 1; }
.stats__label { font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; }

/* ── Services ── */
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 24px; margin-top: 48px; }
.service-card {
  background: var(--white); border-radius: var(--radius-md); padding: 28px;
  box-shadow: var(--shadow-sm); border: 1.5px solid var(--gray-200);
  transition: var(--transition); position: relative;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--orange-pale); }
.service-card__icon { width: 50px; height: 50px; background: var(--gray-100); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1.12rem; font-weight: 800; color: var(--slate-dark); margin-bottom: 10px; }
.service-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.68; }
.service-card__emergency { position: absolute; top: 14px; right: 14px; background: var(--orange); color: var(--white); font-size: .68rem; font-weight: 800; padding: 3px 8px; border-radius: 3px; text-transform: uppercase; letter-spacing: .08em; }

/* ── Process ── */
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.process-step { text-align: center; padding: 24px 16px; }
.process-step__num { width: 52px; height: 52px; background: var(--orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 900; color: var(--white); margin: 0 auto 16px; }
.process-step h3 { font-size: 1rem; font-weight: 800; color: var(--slate-dark); margin-bottom: 8px; }
.process-step p { font-size: .88rem; color: var(--text-muted); line-height: 1.65; }

/* ── Trust ── */
.trust__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin-top: 50px; }
.trust__list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.trust__list li { display: flex; gap: 14px; align-items: flex-start; }
.trust__check { width: 26px; height: 26px; background: var(--orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; font-size: .72rem; color: var(--white); font-weight: 700; }
.trust__list-text strong { display: block; color: var(--slate-dark); font-weight: 700; margin-bottom: 3px; }
.trust__list-text span { font-size: .88rem; color: var(--text-muted); }
.trust__badges { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.trust__badge { background: var(--gray-100); border-radius: var(--radius-md); padding: 20px; text-align: center; border: 1px solid var(--gray-200); }
.trust__badge-num { font-size: 1.7rem; font-weight: 900; color: var(--slate-dark); }
.trust__badge-label { font-size: .77rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.trust__disclaimer { font-size: .75rem; color: var(--gray-400); margin-top: 16px; font-style: italic; }

/* ── Testimonials ── */
.testimonials__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; margin-top: 48px; }
.testimonial-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-md); padding: 28px; }
.testimonial-card p { font-size: .93rem; color: rgba(255,255,255,.86); line-height: 1.7; font-style: italic; }
.testimonial-card__author { margin-top: 18px; }
.testimonial-card__name { font-weight: 700; color: var(--orange-light); font-size: .92rem; }
.testimonial-card__detail { font-size: .79rem; color: rgba(255,255,255,.5); margin-top: 2px; }
.stars { color: var(--orange-light); font-size: .9rem; margin-bottom: 12px; letter-spacing: 2px; }

/* ── CTA ── */
.cta-band { background: var(--orange); padding: 64px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band__text h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 900; color: var(--white); }
.cta-band__text p { font-size: 1rem; color: rgba(255,255,255,.84); margin-top: 8px; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Footer ── */
.footer { background: var(--slate-dark); color: rgba(255,255,255,.6); padding: 48px 0 24px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer__brand-name { font-size: 1.1rem; color: var(--white); font-weight: 800; margin-bottom: 10px; }
.footer__tagline { font-size: .85rem; line-height: 1.6; max-width: 220px; }
.footer__col-title { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--orange); margin-bottom: 14px; }
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: .85rem; color: rgba(255,255,255,.55); transition: var(--transition); }
.footer__links a:hover { color: var(--orange-light); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .78rem; }
.footer__disc { font-size: .72rem; color: rgba(255,255,255,.3); margin-top: 10px; line-height: 1.55; }

/* ── Contact / Form ── */
.contact-page { padding: 60px 0 80px; }
.contact-page__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; align-items: start; }
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow-md); border-top: 4px solid var(--orange); }
.form-card h2 { font-size: 1.85rem; font-weight: 800; color: var(--slate-dark); margin-bottom: 8px; }
.form-card .lead { color: var(--text-muted); font-size: .95rem; margin-bottom: 30px; line-height: 1.65; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .78rem; font-weight: 700; color: var(--gray-600); margin-bottom: 7px; text-transform: uppercase; letter-spacing: .05em; }
.form-group .req { color: var(--orange); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); font-size: .93rem; font-family: var(--font-sans); background: var(--gray-50); color: var(--text-main); transition: var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--orange); background: var(--white); box-shadow: 0 0 0 3px rgba(230,126,34,.13); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group .hint { font-size: .75rem; color: var(--text-muted); margin-top: 5px; }
.legal-notice { background: #fff8f0; border: 1.5px solid var(--orange-pale); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 20px; font-size: .83rem; color: var(--gray-700); line-height: 1.65; }
.legal-notice strong { color: var(--slate-dark); }
.consent-group { display: flex; gap: 12px; align-items: flex-start; }
.consent-group input[type=checkbox] { margin-top: 3px; accent-color: var(--orange); width: 16px; height: 16px; flex-shrink: 0; }
.consent-group label { font-size: .85rem; color: var(--gray-700); line-height: 1.55; font-weight: 400; text-transform: none; letter-spacing: 0; }
.submit-btn { width: 100%; margin-top: 10px; justify-content: center; font-size: 1rem; padding: 15px; }
#form-status { margin-top: 16px; padding: 14px; border-radius: var(--radius-sm); font-size: .88rem; display: none; }
#form-status.success { background: #edfbf0; border: 1px solid #7de0a0; color: #1a5c30; display: block; }
#form-status.error   { background: #fff0f0; border: 1px solid #f0a0a0; color: #7a1a1a; display: block; }
.contact-sidebar { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 84px; }
.sidebar-card { background: var(--white); border-radius: var(--radius-md); padding: 22px; box-shadow: var(--shadow-sm); border: 1.5px solid var(--gray-200); }
.sidebar-card h3 { font-size: 1rem; font-weight: 800; color: var(--slate-dark); margin-bottom: 12px; }
.sidebar-card p, .sidebar-card li { font-size: .85rem; color: var(--text-muted); line-height: 1.62; }
.sidebar-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sidebar-card li::before { content: '✓ '; color: var(--orange); font-weight: 700; }
.page-hero { background: var(--slate-dark); border-bottom: 3px solid var(--orange); padding: 48px 0 40px; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 900; color: var(--white); }
.page-hero p { font-size: 1rem; color: rgba(255,255,255,.7); margin-top: 10px; }
.breadcrumb { font-size: .8rem; color: rgba(255,255,255,.4); margin-bottom: 14px; }
.breadcrumb a { color: var(--orange-light); }
.breadcrumb a:hover { text-decoration: underline; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.45rem; font-weight: 800; color: var(--slate-dark); margin: 38px 0 13px; }
.prose h3 { font-size: 1.02rem; color: var(--slate-dark); margin: 24px 0 10px; font-weight: 700; }
.prose p, .prose li { font-size: .95rem; color: var(--gray-700); line-height: 1.78; margin-bottom: 12px; }
.prose ul { padding-left: 22px; margin-bottom: 16px; }
.prose li { margin-bottom: 6px; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { max-width: 460px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .stats__item:nth-child(2) { border-right: none; }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-page__grid { grid-template-columns: 1fr; }
  .contact-sidebar { position: static; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .section { padding: 56px 0; }
  .process__grid { grid-template-columns: 1fr; }
}
