/* Durham Basement Pros — main stylesheet
   Mobile-first. Palette: deep navy (#0A2540) + safety orange (#F56416).
   ------------------------------------------------------------------ */

:root {
  --navy: #0a2540;
  --navy-dark: #071a2e;
  --navy-light: #12365c;
  --orange: #f56416;
  --orange-dark: #d9530f;
  --orange-light: #fff1e6;
  --white: #ffffff;
  --grey-50: #f7f9fb;
  --grey-100: #eef2f6;
  --grey-300: #c9d4e0;
  --grey-600: #4a5d72;
  --grey-800: #22303f;
  --text: #1c2b3a;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(7, 26, 46, 0.12);
  --maxw: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--navy-light); }
a:hover { color: var(--orange-dark); }

h1, h2, h3 { color: var(--navy); line-height: 1.2; margin-top: 0; }
h1 { font-size: 2rem; margin-bottom: 0.6rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.1rem; }

section { padding: 2.75rem 0; }

/* ---------- Focus states ---------- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); color: var(--white); border-color: var(--orange-dark); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-light); color: var(--white); }
.btn-block { display: block; width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.brand:hover { color: var(--white); }
.brand svg { flex: 0 0 auto; }

.nav-toggle {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  color: var(--white);
  padding: 0.45rem 0.65rem;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--white); }

.primary-nav { display: none; width: 100%; }
.primary-nav.open { display: block; }
.header-inner.wrap { flex-wrap: wrap; }

.primary-nav ul {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.primary-nav a.nav-link {
  display: block;
  color: var(--white);
  text-decoration: none;
  padding: 0.65rem 0.25rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.primary-nav a.nav-link:hover,
.primary-nav a.nav-link[aria-current="page"] { color: var(--orange); }
.nav-cta { margin: 0.9rem 0 0.4rem; }
.nav-cta .btn { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color: var(--white);
  padding: 3.25rem 0 3rem;
}
.hero h1 { color: var(--white); font-size: 2.1rem; }
.hero .lede { font-size: 1.12rem; color: #d7e3f0; max-width: 44rem; }
.hero-ctas { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; max-width: 26rem; }
.hero-note { margin-top: 1rem; font-size: 0.92rem; color: #aebfd2; }
.hero-note a { color: var(--white); }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--grey-50); border-bottom: 1px solid var(--grey-100); padding: 1.4rem 0; }
.trust-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.9rem;
}
.trust-list li {
  display: flex; gap: 0.65rem; align-items: flex-start;
  font-weight: 600; color: var(--navy); font-size: 0.98rem;
}
.trust-list .check {
  flex: 0 0 auto;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--orange); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem; margin-top: 0.1rem;
}

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: 0.4rem; }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { color: var(--orange-dark); }
.card p { color: var(--grey-600); flex: 1; }
.card .price { font-weight: 800; color: var(--navy); margin-bottom: 0.75rem; }
.card .text-link { font-weight: 700; color: var(--orange-dark); text-decoration: none; }
.card .text-link:hover { text-decoration: underline; }

/* ---------- Content helpers ---------- */
.section-alt { background: var(--grey-50); }
.bullets { padding-left: 1.25rem; margin: 0 0 1.25rem; }
.bullets li { margin-bottom: 0.55rem; }
.steps { counter-reset: step; list-style: none; margin: 0 0 1.25rem; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.1rem 3rem;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}
.steps li strong { color: var(--navy); }

.callout {
  background: var(--orange-light);
  border-left: 5px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}
.callout p { margin: 0; }
.callout strong { color: var(--navy); }

.area-strip { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.area-strip a, .area-strip span {
  background: var(--white); border: 1px solid var(--grey-300);
  border-radius: 999px; padding: 0.4rem 1rem;
  text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--navy);
}
.area-strip a:hover { border-color: var(--orange); color: var(--orange-dark); }

.related-links { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
.related-links a {
  display: block; padding: 0.9rem 1.1rem;
  background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius);
  text-decoration: none; font-weight: 700; color: var(--navy); box-shadow: var(--shadow);
}
.related-links a:hover { color: var(--orange-dark); border-color: var(--orange); }
.related-links small { display: block; font-weight: 400; color: var(--grey-600); }

/* ---------- FAQ accordion ---------- */
.accordion { margin-top: 1.25rem; border-top: 1px solid var(--grey-100); }
.accordion-item { border-bottom: 1px solid var(--grey-100); }
.accordion-button {
  width: 100%;
  background: var(--white);
  border: 0;
  padding: 1.05rem 0.25rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  text-align: left; cursor: pointer;
  font-size: 1.02rem; font-weight: 700; color: var(--navy);
  font-family: var(--font);
}
.accordion-button:hover { color: var(--orange-dark); }
.accordion-button .icon {
  flex: 0 0 auto;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--grey-100); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 400; line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}
.accordion-button[aria-expanded="true"] .icon {
  transform: rotate(45deg); background: var(--orange); color: var(--white);
}
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.accordion-panel-inner { padding: 0 0.25rem 1.25rem; color: var(--grey-800); }
.accordion-panel-inner p:last-child { margin-bottom: 0; }

/* ---------- Final CTA ---------- */
.cta-final {
  background: linear-gradient(160deg, var(--navy-dark), var(--navy-light));
  color: var(--white);
  text-align: center;
}
.cta-final h2 { color: var(--white); font-size: 1.7rem; }
.cta-final p { color: #d7e3f0; max-width: 40rem; margin-left: auto; margin-right: auto; }
.cta-final .hero-ctas { margin-left: auto; margin-right: auto; }
.phone-big {
  display: inline-block; margin-top: 0.5rem;
  font-size: 1.6rem; font-weight: 800; color: var(--white); text-decoration: none;
}
.phone-big:hover { color: var(--orange); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b9c9da; padding: 2.5rem 0 1.5rem; font-size: 0.94rem; }
.footer-grid { display: grid; gap: 1.75rem; margin-bottom: 1.75rem; }
.site-footer h3 { color: var(--white); font-size: 1.02rem; margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: #d7e3f0; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 1.1rem; font-size: 0.85rem; }

/* ---------- Sticky mobile call bar ---------- */
.call-bar {
  display: none;
}
@media (max-width: 820px) {
  body { padding-bottom: 64px; }
  .call-bar {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    background: var(--navy-dark);
    border-top: 2px solid var(--orange);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.3);
  }
  .call-bar a {
    flex: 1;
    text-align: center;
    padding: 1rem 0.5rem;
    font-weight: 800; text-decoration: none; font-size: 1.02rem;
  }
  .call-bar a.call { background: var(--orange); color: var(--white); }
  .call-bar a.quote { color: var(--white); }
}

/* ---------- Forms ---------- */
.quote-form {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  max-width: 40rem;
}
.form-row { margin-bottom: 1.05rem; }
.form-row label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 0.35rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 2px solid var(--grey-300);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--orange);
  outline: 3px solid rgba(245, 100, 22, 0.25);
  outline-offset: 0;
}
.form-row textarea { min-height: 7rem; resize: vertical; }
.form-hint { font-size: 0.88rem; color: var(--grey-600); }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Reviews empty state ---------- */
.empty-state {
  background: var(--grey-50);
  border: 2px dashed var(--grey-300);
  border-radius: var(--radius);
  padding: 2.25rem 1.5rem;
  text-align: center;
  max-width: 44rem;
  margin: 1.5rem auto;
}
.empty-state h2 { margin-bottom: 0.5rem; }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  h1 { font-size: 2.5rem; }
  .hero h1 { font-size: 2.6rem; }
  .hero-ctas { flex-direction: row; max-width: none; }
  .hero-ctas .btn { flex: 0 1 auto; }
  .trust-list { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .related-links { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .header-inner { flex-wrap: nowrap; }
  .primary-nav { display: block; width: auto; }
  .primary-nav ul { flex-direction: row; align-items: center; gap: 1.15rem; margin: 0; }
  .primary-nav a.nav-link { border-bottom: 0; padding: 0.4rem 0; font-size: 0.97rem; white-space: nowrap; }
  .nav-cta { margin: 0 0 0 0.5rem; }
  .nav-cta .btn { width: auto; padding: 0.65rem 1.1rem; font-size: 0.97rem; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
}
