/* === Custom Properties === */
:root {
  --blue-dark: #1a3a5c;
  --blue-mid: #2563ab;
  --orange: #c83e08;
  --orange-hover: #a83308;
  --text: #1f2937;
  --text-muted: #6b7280;
  --bg-light: #f3f4f6;
  --border: #e5e7eb;
  --white: #ffffff;
  --green: #059669;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
  --radius: 6px;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

a { color: var(--blue-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  color: var(--blue-dark);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.05rem, 2vw, 1.35rem); margin-bottom: 0.6rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }

strong { color: var(--blue-dark); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* === SKIP LINK === */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--blue-dark);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* === HEADER === */
header {
  background: var(--blue-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

header .container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.site-name {
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  flex-shrink: 0;
  max-width: 220px;
  line-height: 1.2;
}
.site-name:hover { text-decoration: none; opacity: 0.9; }

nav { flex: 1; }

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links > li > a {
  color: rgba(255,255,255,0.88);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius);
  display: block;
  font-size: 0.88rem;
  white-space: nowrap;
}
.nav-links > li > a:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  text-decoration: none;
}

.has-dropdown { position: relative; }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  list-style: none;
  padding: 0.4rem 0;
  min-width: 270px;
  z-index: 200;
}
.dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }

.dropdown li a {
  display: block;
  padding: 0.6rem 1.2rem;
  color: var(--text);
  font-size: 0.88rem;
}
.dropdown li a:hover {
  background: var(--bg-light);
  color: var(--blue-dark);
  text-decoration: none;
}

.phone-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  gap: 0.2rem;
}
.phone-cta-label {
  color: rgba(255,255,255,0.75);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.phone-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  text-decoration: none !important;
  flex-shrink: 0;
}
.phone-cta:hover { background: var(--orange-hover); text-decoration: none !important; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius);
  margin-left: auto;
}

/* === HOMEPAGE HERO === */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: var(--blue-dark);
  overflow: hidden;
  padding: 4rem 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.32;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,58,92,0.88) 45%, rgba(26,58,92,0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content .container {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  color: var(--white);
  margin-bottom: 1.1rem;
}

.hero-text p {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 540px;
}

.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-primary:hover {
  background: var(--orange-hover);
  text-decoration: none;
  color: var(--white);
}

/* === FORMS === */
.form-card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.form-card-heading {
  color: var(--blue-dark);
  margin-bottom: 1.1rem;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.form-group { margin-bottom: 0.7rem; }

form input[type="text"],
form input[type="tel"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.93rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
}
form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--blue-mid);
}

form textarea {
  min-height: 85px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 0.85rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s;
  margin-top: 0.25rem;
}
.btn-submit:hover { background: var(--orange-hover); }

.form-success {
  display: none;
  background: #d1fae5;
  color: #065f46;
  padding: 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  margin-top: 0.5rem;
}

/* === SECTION BASE === */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-light); }

.section-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

/* === SERVICE CARDS === */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.service-card img {
  width: 100%;
  height: 215px;
  object-fit: cover;
}

.service-card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-body h3 { margin-bottom: 0.6rem; }
.service-card-body p { flex: 1; font-size: 0.95rem; color: var(--text); }

.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--orange);
  font-size: 0.92rem;
}
.card-link:hover { color: var(--orange-hover); text-decoration: none; }

/* === PROCESS === */
.process-list {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.process-list li {
  counter-increment: step;
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}

.process-list li::before {
  content: counter(step);
  min-width: 2.4rem;
  height: 2.4rem;
  background: var(--blue-dark);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.process-list li p { margin: 0; }

/* === TRUST SIGNALS === */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.trust-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.93rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.trust-item::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

/* === TESTIMONIALS === */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.testimonial blockquote {
  font-style: italic;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.65;
  font-size: 0.95rem;
}

.testimonial cite {
  font-weight: 700;
  color: var(--blue-dark);
  font-style: normal;
  font-size: 0.9rem;
}

/* === SERVICE AREAS === */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.area-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.area-block p { color: var(--text); font-size: 0.92rem; margin: 0; line-height: 1.6; }

.neighborhoods {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  color: var(--text);
  margin-top: 1rem;
}

.neighborhoods strong { display: block; margin-bottom: 0.25rem; }

/* === CTA BANNER === */
.cta-banner {
  background: var(--blue-dark);
  color: var(--white);
  text-align: center;
  padding: 2.25rem 1.25rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.88);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

/* === ESTIMATE SECTION === */
.estimate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.estimate-text h2 { margin-bottom: 1rem; }

.estimate-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
}

/* === PAGE HERO (service/location pages) === */
.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  background: var(--blue-dark);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.38;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,58,92,0.92) 0%, rgba(26,58,92,0.45) 100%);
}

.page-hero-text {
  position: relative;
  z-index: 2;
  padding: 2.5rem 0;
  width: 100%;
}

.page-hero-text h1 { color: var(--white); margin-bottom: 0.6rem; }

.hero-sub {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

/* === CONTENT SECTIONS === */
.content-section { padding: 3rem 0; }

.content-section h2 { margin-bottom: 1.1rem; }
.content-section h3 { margin-top: 1.5rem; margin-bottom: 0.75rem; color: var(--blue-dark); }

.with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.with-image img {
  border-radius: 8px;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* === FAQ === */
.faq-list { list-style: none; padding: 0; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  overflow: hidden;
  background: var(--white);
}

.faq-question {
  width: 100%;
  background: var(--white);
  border: none;
  text-align: left;
  padding: 1rem 1.2rem;
  font-family: var(--font);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--blue-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-question:hover { background: var(--bg-light); }

.faq-icon {
  font-size: 1.2rem;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s;
  color: var(--orange);
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 1.2rem 1.2rem;
  color: var(--text);
  line-height: 1.65;
  font-size: 0.95rem;
}

.faq-item.open .faq-answer { display: block; }

/* === INLINE PHONE CTA === */
.inline-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
}

.inline-cta p { margin: 0; font-weight: 600; color: var(--blue-dark); }

.inline-cta a {
  background: var(--orange);
  color: var(--white);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.93rem;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.inline-cta a:hover { background: var(--orange-hover); text-decoration: none; color: var(--white); }

/* === CONTACT PAGE === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.contact-phone {
  display: block;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 1rem 0;
  text-decoration: none;
}
.contact-phone:hover { color: var(--orange); text-decoration: none; }

/* === FOOTER === */
footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.5rem;
}

.footer-disclaimer {
  background: rgba(255,255,255,0.09);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 2rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.88);
  text-align: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-site-name {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  display: block;
  margin-bottom: 0.6rem;
  text-decoration: none;
  line-height: 1.25;
}
.footer-site-name:hover { text-decoration: none; opacity: 0.9; }

.footer-brand p { font-size: 0.88rem; line-height: 1.6; margin-bottom: 0.5rem; }

.footer-phone {
  display: block;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0.85rem 0;
  text-decoration: none;
}
.footer-phone:hover { color: rgba(255,255,255,0.8); text-decoration: none; }

.footer-col-heading {
  color: var(--white);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.footer-nav { list-style: none; padding: 0; }
.footer-nav li { margin-bottom: 0.45rem; }
.footer-nav li a {
  color: rgba(255,255,255,0.72);
  font-size: 0.88rem;
  text-decoration: none;
}
.footer-nav li a:hover { color: var(--white); text-decoration: none; }

.footer-cities {
  font-size: 0.85rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.72);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

.footer-legal a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  margin: 0 0.25rem;
}
.footer-legal a:hover { color: var(--white); }

/* In-text links: underline distinguishes from surrounding text */
section p a,
section li a,
.content-section p a,
.content-section li a {
  text-decoration: underline;
}

/* === UTILITIES === */
.text-center { text-align: center; }

/* === RESPONSIVE === */
@media (max-width: 960px) {
  .service-cards { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .hero-content .container { grid-template-columns: 1fr; }
  .estimate-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .with-image { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .menu-toggle { display: block; }

  nav { order: 3; width: 100%; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 0.5rem;
    width: 100%;
  }

  .nav-links.is-open { display: flex; }

  .nav-links > li > a {
    width: 100%;
    padding: 0.6rem 0.25rem;
    font-size: 0.9rem;
  }

  .dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,0.08);
    border-radius: 0;
    padding: 0;
    min-width: auto;
    width: 100%;
  }

  .has-dropdown.is-open .dropdown { display: block; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.is-open:hover .dropdown { display: block; }

  .dropdown li a {
    color: rgba(255,255,255,0.82);
    padding: 0.5rem 1.25rem;
  }
  .dropdown li a:hover { color: var(--white); background: transparent; }

  header .container { flex-wrap: wrap; }

  .phone-cta-wrap { margin-left: auto; }
  .phone-cta { font-size: 0.85rem; padding: 0.45rem 0.85rem; }

  .service-card img { height: 180px; }

  .page-hero { min-height: 240px; }

  .inline-cta { flex-direction: column; align-items: flex-start; }

  .areas-grid { grid-template-columns: 1fr 1fr; }
}
