/* ============================================
   MACE BUILDING INSPECTIONS — EXACT CLONE CSS
   Colors: #168FC2 header | #1F2833 dark | #00AEEF accent
   ============================================ */

:root {
  --blue:    #168FC2;
  --dark:    #1F2833;
  --accent:  #00AEEF;
  --white:   #FFFFFF;
  --light:   #F6F6F6;
  --text:    #4B4F58;
  --border:  #E0E0E0;
  --max-w:   1300px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
h1,h2,h3,h4,h5 { line-height: 1.2; color: var(--dark); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 30px;
}

/* ============ TOP BAR ============ */
.topbar {
  background: var(--dark);
  padding: 8px 0;
  font-size: 13px;
  color: #aaa;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-left { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.topbar-left span { display: inline-flex; align-items: center; }
.topbar a { color: #ccc; }
.topbar a:hover { color: var(--white); }
.topbar i { margin-right: 5px; width: 1em; text-align: center; flex-shrink: 0; }
.topbar-right { color: #bbb; font-size: 12px; }
.topbar-builder {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  white-space: nowrap;
}
.topbar-builder-label,
.topbar-builder-id { white-space: nowrap; }

/* ============ HEADER / NAV ============ */
.site-header {
  background: var(--blue);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  overflow: visible;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 30px;
  height: 80px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.logo-link { display: flex; align-items: center; }
.logo-link img, .logo-link svg { height: 85px; width: auto; }

.main-nav { display: flex; align-items: stretch; gap: 2px; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: flex;
  align-items: center;
  padding: 10px 13px;
  color: var(--white);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .2s;
  border-radius: 2px;
}
.main-nav > li > a:hover,
.main-nav > li > a.active { background: rgba(0,0,0,.15); color: var(--white); }

/* Dropdown trigger arrow */
.main-nav .has-dropdown > a::after {
  content: ' ▾';
  font-size: 11px;
  margin-left: 3px;
}

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
  min-width: 240px;
  z-index: 500;
}
.main-nav > li:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 9px 16px;
  color: var(--dark);
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
  transition: background .15s, color .15s;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: var(--light); color: var(--blue); }

/* Special nav buttons */
.main-nav > li.nav-book > a {
  background: var(--dark) !important;
  border-radius: 3px;
  padding: 8px 22px;
  font-size: 17px;
  align-self: center;
}
.nav-book > a:hover,
.nav-contact > a:hover { opacity: .85; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span { display: block; width: 26px; height: 2px; background: var(--white); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(31,40,51,.93) 40%, rgba(22,89,171,0) 75%);
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding-top: 50px;
  padding-bottom: 50px;
}
.hero-text { color: var(--white); }
.hero-text h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.15;
}
.hero-text h1 span { color: var(--accent); }
.hero-text p {
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 28px;
}
.btn-hero {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 11px 28px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: background .2s;
}
.btn-hero:hover { background: #009cd8; color: var(--white); }

/* Hero card */
.hero-card {
  background: rgba(22,143,194,.85);
  border-radius: 4px;
  padding: 28px 32px;
  color: var(--white);
}
.hero-card h3 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.25);
  padding-bottom: 12px;
}
.hero-checklist li {
  padding: 6px 0;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.hero-checklist li:last-child { border-bottom: none; }
.hero-checklist i { color: var(--accent); font-size: 15px; }
.hero-card-btns { margin-top: 20px; text-align: center; }
.btn-quote {
  display: block;
  background: var(--accent);
  color: var(--white);
  padding: 13px 20px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
  transition: background .2s;
}
.btn-quote:hover { background: #009cd8; color: var(--white); }
.hero-card-or { text-align: center; color: rgba(255,255,255,.6); font-size: 12px; margin-bottom: 8px; }
.hero-card-phone {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  display: block;
}
.hero-card-phone:hover { color: var(--accent); }

/* ============ BLUE FEATURE BAR ============ */
.blue-bar {
  background: var(--blue);
  padding: 16px 0;
  color: var(--white);
}
.blue-bar .container {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.blue-bar-title {
  font-size: 1rem;
  font-weight: 700;
  margin-right: 30px;
  white-space: nowrap;
}
.blue-bar-features {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.blue-bar-item {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.9);
}
.blue-bar-item i { font-size: 15px; }

/* ============ CONTENT SECTIONS ============ */
.section { padding: 70px 0; }
.section-sm { padding: 40px 0; }
.section-bg-light { background: var(--light); }
.section-bg-dark { background: var(--dark); color: var(--white); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col-text h2 {
  font-size: 1.7rem;
  margin-bottom: 16px;
}
.two-col-text h2 span { color: var(--blue); }
.two-col-text p { margin-bottom: 14px; color: #555; font-size: 14.5px; }
.two-col-text p:last-child { margin-bottom: 0; }

.two-col-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 4px;
}

/* ============ DARK CTA BAR ============ */
.cta-bar {
  background: var(--dark);
  padding: 22px 0;
}
.cta-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.cta-bar p {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
}
.btn-cta-bar {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 11px 28px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  transition: background .2s;
}
.btn-cta-bar:hover { background: #009cd8; color: var(--white); }
.btn-cta-bar i { margin-left: 6px; }

/* ============ 3-COLUMN DARK FEATURES ============ */
.features-dark { background: var(--dark); padding: 60px 0; }
.features-dark-header {
  text-align: center;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 40px;
  line-height: 1.4;
}
.features-dark-header span { color: var(--accent); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.feature-box { text-align: center; padding: 10px 20px; }
.feature-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 2px solid rgba(0,174,239,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--accent);
}
.feature-box h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.feature-box p { color: rgba(255,255,255,.72); font-size: 13.5px; }

/* ============ BUY WITH CONFIDENCE ============ */
.confidence-section { background: var(--white); }

/* ============ PURPOSE SECTION ============ */
.purpose-section {
  background: var(--dark);
  padding: 70px 0;
}
.purpose-section .two-col-text h2 { color: var(--white); }
.purpose-section .two-col-text h2 span { color: var(--accent); }
.purpose-section .two-col-text p { color: rgba(255,255,255,.78); }

/* ============ ITEMS INSPECTED BAR ============ */
.items-inspected {
  background: var(--dark);
  padding: 36px 0;
}
.items-inspected h3 {
  color: var(--white);
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 12px;
}
.items-inspected h3 span { color: var(--accent); }
.items-inspected p {
  color: rgba(255,255,255,.72);
  text-align: center;
  font-size: 13px;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--dark);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr;
  gap: 50px;
}
.footer-logo { margin-bottom: 20px; }
.footer-logo img, .footer-logo svg { height: 70px; width: auto; }
.footer-desc {
  color: rgba(255,255,255,.6);
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.footer-hours { color: rgba(255,255,255,.6); font-size: 12.5px; }
.footer-hours strong { color: rgba(255,255,255,.8); }

.footer-col h4 {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links li a {
  color: rgba(255,255,255,.65);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .2s;
}
.footer-links li a i { color: var(--accent); font-size: 11px; }
.footer-links li a:hover { color: var(--white); }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.footer-contact-icon {
  width: 36px;
  height: 36px;
  background: rgba(0,174,239,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 14px;
}
.footer-contact-body strong {
  display: block;
  color: rgba(255,255,255,.5);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 2px;
}
.footer-contact-body a,
.footer-contact-body span {
  color: rgba(255,255,255,.82);
  font-size: 13.5px;
}
.footer-contact-body a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 40px;
  padding: 16px 0;
}
.footer-bottom p {
  text-align: center;
  color: rgba(255,255,255,.35);
  font-size: 12px;
}

/* ============ PAGE HERO (inner pages) ============ */
.page-hero {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 30px;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  filter: brightness(.55);
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20,30,40,.55);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}
.page-hero h1 span { color: var(--accent); }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: rgba(255,255,255,.6);
  margin-top: 8px;
}
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { color: rgba(255,255,255,.3); }
.breadcrumb .crumb-current { color: var(--accent); }

/* ============ SERVICES PAGE ============ */
.service-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}
.service-section:last-child { border-bottom: none; }
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.service-row.reverse { direction: rtl; }
.service-row.reverse > * { direction: ltr; }
.service-content h2 {
  font-size: 1.6rem;
  color: var(--blue);
  margin-bottom: 14px;
}
.service-content p { color: #555; font-size: 14.5px; margin-bottom: 13px; }
.service-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}

/* ============ PROCESS PAGE ============ */
.process-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 50px 0;
  border-bottom: 1px solid var(--border);
}
.process-step:last-child { border-bottom: none; }
.process-step.reverse { direction: rtl; }
.process-step.reverse > * { direction: ltr; }
.process-step-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.process-step-content h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 12px;
}
.process-step-content p { color: #555; font-size: 14.5px; }
.process-step-content a.btn-sm {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 9px 22px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 16px;
  transition: background .2s;
}
.process-step-content a.btn-sm:hover { background: #009cd8; color: var(--white); }
.process-step-img {
  text-align: center;
}
.process-step-img img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--blue);
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

/* ============ ABOUT PAGE ============ */
.about-section { padding: 70px 0; }
.about-content h2 {
  font-size: 1.8rem;
  margin-bottom: 18px;
}
.about-content h2 span { color: var(--blue); }
.about-content p { color: #555; font-size: 14.5px; margin-bottom: 14px; }
.about-photo img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(0,0,0,.15);
}
.quals-section {
  position: relative;
  overflow: hidden;
}
.quals-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.3);
}
.quals-content {
  position: relative;
  z-index: 2;
  padding: 70px 0;
}
.quals-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.quals-card {
  background: rgba(22,143,194,.88);
  border-radius: 6px;
  padding: 36px 40px;
}
.quals-card h3 {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.quals-card > p {
  color: rgba(255,255,255,.8);
  font-size: 13.5px;
  margin-bottom: 20px;
}
.quals-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
  color: var(--white);
  font-size: 13.5px;
}
.quals-list li:last-child { border-bottom: none; }
.quals-list i { color: var(--accent); font-size: 14px; }
.quals-note {
  color: rgba(255,255,255,.6);
  font-size: 12.5px;
  margin-top: 16px;
  font-style: italic;
}

/* ============ FORM PAGES (Quote, Book, Contact) ============ */
.form-page-section { padding: 60px 0; }
.form-page-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.form-page-left h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.form-page-left .form-page-left-img img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 28px;
}
.quals-list-light li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  color: #444;
  font-size: 13.5px;
}
.quals-list-light li:last-child { border-bottom: none; }
.quals-list-light i { color: var(--blue); font-size: 14px; }
.quals-note-light {
  color: #777;
  font-size: 12.5px;
  margin-top: 14px;
  font-style: italic;
}

/* Form card */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 40px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
}
.form-card h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
  color: var(--dark);
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: #555;
  margin-bottom: 6px;
}
.form-group label .req { color: #e53e3e; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid #d0d0d0;
  border-radius: 3px;
  font-size: 14px;
  font-family: inherit;
  color: var(--dark);
  background: #fafafa;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22,143,194,.12);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.recaptcha-mock {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #d0d0d0;
  border-radius: 3px;
  padding: 12px 16px;
  background: #f9f9f9;
  margin-bottom: 14px;
}
.recaptcha-mock input[type="checkbox"] { width: 20px; height: 20px; cursor: pointer; }
.recaptcha-mock label { font-size: 13.5px; color: #555; cursor: pointer; }
.recaptcha-icon { margin-left: auto; font-size: 22px; color: #c1c1c1; }

.btn-send {
  display: block;
  width: 100%;
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 13px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  cursor: pointer;
  transition: background .2s;
}
.btn-send:hover { background: #009cd8; }
.btn-send:disabled { opacity: 0.6; cursor: not-allowed; }

.form-result {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
}

.checkbox-agree {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #555;
}
.checkbox-agree input { width: 16px; height: 16px; cursor: pointer; }
.checkbox-agree a { color: var(--blue); }

/* Contact page left */
.contact-info h2 { font-size: 2.2rem; margin-bottom: 16px; }
.contact-info-lead { color: #555; font-size: 14.5px; margin-bottom: 24px; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #444;
}
.contact-detail i { color: var(--blue); font-size: 16px; width: 20px; }
.contact-detail a { color: #444; }
.contact-detail a:hover { color: var(--blue); }

/* ============ GENERAL BUTTONS ============ */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 11px 28px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: background .2s;
}
.btn-primary:hover { background: #009cd8; color: var(--white); }

/* ============ TERMS & CONDITIONS PAGE ============ */
.terms-content h2 {
  text-align: center;
  font-size: 1.6rem;
  color: var(--dark);
  margin: 40px 0 10px;
  text-transform: uppercase;
}
.terms-content h2:first-child { margin-top: 0; }
.terms-content .terms-heading {
  text-align: center;
  font-weight: 700;
  color: #000;
  margin: 28px 0 14px;
  font-size: 15px;
}
.terms-content p {
  color: #555;
  font-size: 14.5px;
  margin-bottom: 12px;
  line-height: 1.7;
}
.terms-content ol {
  list-style: decimal;
  padding-left: 28px;
  margin-bottom: 20px;
}
.terms-content ol li {
  color: #555;
  font-size: 14.5px;
  margin-bottom: 10px;
  line-height: 1.7;
  padding-left: 6px;
}
.terms-content ol ol {
  list-style: lower-alpha;
  margin-top: 8px;
  margin-bottom: 8px;
}
.terms-content ul {
  list-style: disc;
  padding-left: 28px;
  margin: 8px 0;
}
.terms-content ul li {
  color: #555;
  font-size: 14.5px;
  margin-bottom: 6px;
  line-height: 1.7;
}
.terms-content .terms-definitions {
  margin-bottom: 20px;
}
.terms-content .terms-definitions p {
  margin-bottom: 4px;
}
.terms-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}
.terms-content table th {
  background: var(--dark);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid #ddd;
  font-weight: 600;
}
.terms-content table td {
  padding: 10px 14px;
  border: 1px solid #ddd;
  color: #555;
}
.terms-content hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 50px 0;
}

/* ============ RESPONSIVE ============ */
html, body { overflow-x: hidden; }

@media (max-width: 960px) {
  .two-col,
  .features-grid,
  .service-row,
  .process-step,
  .quals-row,
  .form-page-layout,
  .footer-grid,
  .about-section .two-col { grid-template-columns: 1fr; }

  .service-row.reverse,
  .process-step.reverse { direction: ltr; }

  .hero .container { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .hero { min-height: 420px; }
  .hero-overlay { background: rgba(31,40,51,.82); }

  .blue-bar .container { flex-direction: column; align-items: flex-start; gap: 12px; }
  .blue-bar-title { margin-right: 0; }
  .cta-bar .container { flex-direction: column; text-align: center; }

  .process-step-img img { width: 200px; height: 200px; }
  .page-hero h1 { font-size: 1.8rem; }

  /* Hide the empty decorative column in quals section */
  .quals-row > div:first-child { display: none; }

  /* Reduce section vertical padding */
  .section { padding: 50px 0; }
  .features-dark { padding: 50px 0; }
  .purpose-section { padding: 50px 0; }
  .about-section { padding: 50px 0; }

  .contact-info h2 { font-size: 1.7rem; }
  .features-dark-header { font-size: 1.15rem; }

  /* Prevent long pipe-separated text from breaking layout */
  .items-inspected p { word-break: break-word; overflow-wrap: break-word; }

  .main-nav { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .header-inner { padding: 10px 18px; }

  /* Mobile topbar: Call Us + Registered Builder on one row, email below */
  .topbar {
    font-size: 12px;
  }
  .topbar .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px 10px;
    align-items: center;
  }
  .topbar-left,
  .topbar-right {
    display: contents;
  }
  .topbar-left span:first-child {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }
  .topbar-builder {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    justify-self: end;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    line-height: 1.35;
    white-space: normal;
  }
  .topbar-left span:last-child {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .topbar-left a {
    word-break: break-word;
  }

  .hero { min-height: 340px; }
  .hero-text h1 { font-size: 1.75rem; }
  .hero .container { padding-top: 30px; padding-bottom: 30px; }

  .page-hero h1 { font-size: 1.45rem; }
  .page-hero { min-height: 160px; }

  .section { padding: 40px 0; }
  .features-dark { padding: 40px 0; }
  .purpose-section { padding: 40px 0; }
  .quals-content { padding: 40px 0; }
  .about-section { padding: 40px 0; }
  .form-page-section { padding: 40px 0; }

  .features-dark-header { font-size: 0.95rem; }
  .contact-info h2 { font-size: 1.4rem; }

  .form-row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-card { padding: 24px 20px; }

  .process-step-img img { width: 160px; height: 160px; }

  .blue-bar-features { gap: 12px; }

  /* Prevent long email addresses from overflowing footer */
  .footer-contact-body a,
  .footer-contact-body span { word-break: break-all; }

  /* Reduce fixed image heights on small screens */
  .two-col-img img { height: 260px; }
  .service-img img { height: 240px; }
}

@media (max-width: 400px) {
  .hero-text h1 { font-size: 1.5rem; }
  .page-hero h1 { font-size: 1.25rem; }
}

/* Mobile nav open */
.mobile-nav-open .main-nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--blue);
  border-top: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
  padding: 8px 0;
  z-index: 999;
}
.mobile-nav-open .main-nav > li > a { padding: 12px 24px; border-radius: 0; }
.mobile-nav-open .dropdown {
  position: static;
  box-shadow: none;
  border: none;
  background: rgba(0,0,0,.15);
  border-radius: 0;
  display: none;
}
.mobile-nav-open .main-nav > li.open .dropdown { display: block; }
.mobile-nav-open .dropdown li a { color: rgba(255,255,255,.85); background: transparent; padding: 10px 40px; }
.mobile-nav-open .dropdown li a:hover { color: var(--white); }
