/* ==========================================================================
   Mike & Sons Chimney Care — Core Design System
   ========================================================================== */

:root {
  /* Brand palette — pulled directly from the official logo */
  --navy: #1B2A41;
  --navy-deep: #131D2E;
  --navy-soft: #2A3B57;
  --red: #8B1E2E;
  --red-bright: #A8283A;
  --cream: #F7F4EE;
  --white: #FFFFFF;
  --stone-100: #F2F0EB;
  --stone-200: #E5E1D8;
  --stone-400: #B8B2A3;
  --ink: #1C1C1A;
  --ink-soft: #4A4944;

  /* Type scale */
  --font-display: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 3px rgba(19, 29, 46, 0.08);
  --shadow-md: 0 8px 24px rgba(19, 29, 46, 0.12);
  --shadow-lg: 0 20px 50px rgba(19, 29, 46, 0.18);

  --max-width: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1em; color: var(--ink-soft); }

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

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

button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--red-bright);
  outline-offset: 2px;
}

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6em;
}

.section {
  padding: 72px 0;
}

.section--tight { padding: 48px 0; }

.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: rgba(255,255,255,0.78); }

.section-head {
  max-width: 640px;
  margin: 0 0 40px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--primary:hover { background: var(--red-bright); border-color: var(--red-bright); color: var(--white); box-shadow: var(--shadow-md); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn--outline:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.btn--outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline-navy:hover { background: var(--navy); color: var(--white); }

.btn--block { width: 100%; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--stone-200);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img { height: 52px; width: 52px; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.1;
}
.brand-text span {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--red);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.93rem;
}
.main-nav a:hover { color: var(--red); text-decoration: none; }

.has-dropdown { position: relative; }
.has-dropdown > a::after { content: " \25BE"; font-size: 0.7em; }
.dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  min-width: 240px;
  display: none;
  flex-direction: column;
  gap: 2px;
  max-height: 70vh;
  overflow-y: auto;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: flex; }
.dropdown a {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.88rem;
}
.dropdown a:hover { background: var(--stone-100); text-decoration: none; }
.dropdown-footer {
  border-top: 1px solid var(--stone-200);
  margin-top: 6px;
  padding-top: 6px;
}
.dropdown-footer a { font-weight: 700; color: var(--red); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.call-now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}
.call-now:hover { background: var(--red-bright); color: var(--white); text-decoration: none; }

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--navy);
  padding: 4px 8px;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 78px 0 0 0;
  background: var(--white);
  z-index: 99;
  overflow-y: auto;
  padding: 20px 24px 100px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--stone-200); }
.mobile-nav a {
  display: block;
  padding: 14px 4px;
  color: var(--navy);
  font-weight: 600;
  font-size: 1.02rem;
}
.mobile-nav .submenu { padding-left: 14px; display: none; }
.mobile-nav .submenu.is-open { display: block; }
.mobile-nav .submenu a { font-size: 0.92rem; font-weight: 500; padding: 11px 4px; }
.mobile-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-caret { background: none; border: none; font-size: 1rem; color: var(--navy); padding: 10px; }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .call-now span.call-label { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19,29,46,0.55) 0%, rgba(19,29,46,0.35) 35%, rgba(19,29,46,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px 64px;
  width: 100%;
  color: var(--white);
}
.hero-content h1 { color: var(--white); max-width: 800px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(6px);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.hero-lede {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  max-width: 620px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.trust-strip span {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 7px;
}
.trust-strip span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red-bright);
  flex-shrink: 0;
}

/* Smaller inner-page hero (no video) */
.page-hero {
  background: var(--navy);
  background-image: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 56px 0 48px;
}
.page-hero .breadcrumbs { margin-bottom: 18px; }
.page-hero h1 { color: var(--white); max-width: 760px; }
.page-hero p.lede { color: rgba(255,255,255,0.82); font-size: 1.08rem; max-width: 620px; margin-bottom: 0; }
.page-hero .hero-actions { margin-top: 26px; margin-bottom: 0; }
.page-hero .trust-strip { margin-top: 28px; padding-top: 22px; }

.breadcrumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  font-size: 0.82rem;
}
.breadcrumbs li { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.55); }
.breadcrumbs a { color: rgba(255,255,255,0.75); font-weight: 500; }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs li:last-child { color: rgba(255,255,255,0.95); font-weight: 600; }

/* ==========================================================================
   Cards / Grids
   ========================================================================== */

.grid {
  display: grid;
  gap: 24px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-card img { height: 190px; object-fit: cover; width: 100%; }
.service-card-body { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.service-card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.service-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.service-card p { font-size: 0.92rem; flex-grow: 1; }
.service-card .card-link {
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.city-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-sm);
}
.city-card img { height: 200px; object-fit: cover; width: 100%; }
.city-card-body { padding: 24px; }
.city-card .phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--red);
  font-size: 1.05rem;
  margin: 10px 0 12px;
}

.value-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 28px;
}
@media (max-width: 640px) { .value-list { grid-template-columns: 1fr; } }
.value-list li { display: flex; gap: 12px; align-items: flex-start; }
.value-check {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  margin-top: 2px;
}
.value-list strong { display: block; color: var(--navy); margin-bottom: 2px; font-size: 0.98rem; }
.value-list span { color: var(--ink-soft); font-size: 0.9rem; }

/* Area chip list */
.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.area-chips a {
  background: var(--white);
  border: 1px solid var(--stone-200);
  color: var(--navy);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.15s ease;
}
.area-chips a:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  text-decoration: none;
}

/* Zip code table */
.zip-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-md);
}
table.zip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.zip-table th, table.zip-table td {
  text-align: left;
  padding: 12px 18px;
  border-bottom: 1px solid var(--stone-200);
}
table.zip-table th {
  background: var(--stone-100);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
table.zip-table tr:last-child td { border-bottom: none; }
table.zip-table tr:hover td { background: var(--cream); }

/* Before / After */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .ba-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-card { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--stone-200); }
.ba-card img { width: 100%; height: 220px; object-fit: cover; }
.ba-card figcaption { padding: 14px 16px; font-weight: 600; color: var(--navy); font-size: 0.92rem; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding-top: 8px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 16px;
}
.step h4 { margin-bottom: 6px; font-size: 1.05rem; color: var(--navy); }
.step p { font-size: 0.9rem; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--stone-200); }
.faq-item { border-bottom: 1px solid var(--stone-200); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q .icon { flex-shrink: 0; font-size: 1.3rem; color: var(--red); transition: transform 0.2s ease; }
.faq-item.is-open .faq-q .icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-a-inner { padding: 0 4px 20px; }
.faq-a-inner p { margin: 0; font-size: 0.95rem; }
.faq-item.is-open .faq-a { max-height: 500px; }

/* About / founder */
.founder-block {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) { .founder-block { grid-template-columns: 1fr; } }
.founder-block img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.founder-quote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  line-height: 1.5;
  font-style: italic;
}
.founder-sign {
  margin-top: 18px;
  font-weight: 700;
  color: var(--red);
  font-style: normal;
}

/* Form */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px;
  border: 1px solid var(--stone-200);
}
.form-card h3 { margin-bottom: 6px; }
.form-card .form-sub { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 24px; }
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-row .req { color: var(--red); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--stone-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--navy);
  outline: none;
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-grid-2 { grid-template-columns: 1fr; } }
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 14px; text-align: center; }
.form-success {
  display: none;
  background: #E9F5EC;
  border: 1px solid #BCE2C5;
  color: #1F5C2E;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-bottom: 18px;
}
.form-success.is-visible { display: block; }
.form-error {
  display: none;
  background: #FBEAEA;
  border: 1px solid #F0BDBD;
  color: #8B1E2E;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-bottom: 18px;
}
.form-error.is-visible { display: block; }

.contact-split {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 940px) { .contact-split { grid-template-columns: 1fr; } }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 48px; width: 48px; }
.footer-brand-text { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 1.1rem; }
.site-footer p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* Sticky mobile call bar */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: var(--navy);
  padding: 12px 16px;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.2);
}
.mobile-call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--red);
  color: var(--white);
  padding: 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
@media (max-width: 720px) {
  .mobile-call-bar { display: block; }
  body { padding-bottom: 72px; }
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flex-wrap { flex-wrap: wrap; }
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.badge-row li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}
.badge-row li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.recent-work-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .recent-work-strip { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .recent-work-strip { grid-template-columns: 1fr; } }
.work-thumb { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.work-thumb img { width: 100%; height: 190px; object-fit: cover; }
.work-thumb figcaption { padding: 12px 14px; font-size: 0.86rem; font-weight: 600; color: var(--navy); background: var(--white); }

.back-link { font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; }
