/* ============================================================
   Flood Restoration GTA — Main Stylesheet
   Mobile-first, responsive, conversion-optimized
   ============================================================ */

/* 1. CSS Custom Properties
   ============================================================ */
:root {
  --color-navy:       #0A2463;
  --color-navy-dark:  #061840;
  --color-blue:       #1E6BFF;
  --color-blue-light: #EBF2FF;
  --color-red:        #D62828;
  --color-red-dark:   #B01E1E;
  --color-red-light:  #FFF0F0;
  --color-bg:         #F4F7FC;
  --color-text:       #1A1A2E;
  --color-muted:      #6B7280;
  --color-border:     #E2E8F0;
  --color-white:      #FFFFFF;
  --color-success:    #16A34A;

  --font-main: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-btn:  0 4px 14px rgba(214,40,40,0.35);
  --shadow-nav:  0 2px 16px rgba(0,0,0,0.12);

  --transition: 0.22s ease;
  --container-max: 1200px;
}

/* 2. CSS Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color var(--transition);
}

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

ul { list-style: none; }

input, select, textarea, button {
  font-family: inherit;
  font-size: inherit;
}

/* 3. Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

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

/* 4. Utilities
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-red    { color: var(--color-red); }
.text-navy   { color: var(--color-navy); }
.text-white  { color: var(--color-white); }
.text-muted  { color: var(--color-muted); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* 5. Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section--tight {
  padding: 2.5rem 0;
}

.section--dark {
  background: var(--color-navy);
  color: var(--color-white);
}

.section--bg {
  background: var(--color-bg);
}

.section--red {
  background: var(--color-red);
  color: var(--color-white);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 6. Skip Link
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 9999;
  font-weight: 700;
}
.skip-link:focus { top: 0; }

/* 7. Navbar
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 2px solid var(--color-border);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.navbar--scrolled {
  box-shadow: var(--shadow-nav);
  border-bottom-color: var(--color-blue-light);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 70px;
}

.navbar__logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1.2;
}

.navbar__logo span {
  color: var(--color-red);
}

.navbar__menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 1.5rem;
  gap: 0.25rem;
  box-shadow: var(--shadow-nav);
}

.navbar__menu--open {
  display: flex;
}

.navbar__menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-text);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: background var(--transition), color var(--transition);
}

.navbar__menu a:hover,
.navbar__menu a.active {
  background: var(--color-blue-light);
  color: var(--color-navy);
}

.nav__emergency {
  color: var(--color-red) !important;
  font-weight: 700 !important;
}

.nav__emergency:hover {
  background: var(--color-red-light) !important;
}

.btn--nav-cta {
  background: var(--color-red) !important;
  color: var(--color-white) !important;
  font-weight: 700 !important;
  text-align: center;
  border-radius: var(--radius-md) !important;
}

.btn--nav-cta:hover {
  background: var(--color-red-dark) !important;
}

.navbar__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.navbar__phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-red);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.navbar__phone svg { flex-shrink: 0; }
.navbar__phone:hover { color: var(--color-red-dark); }

.navbar__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 0;
  transition: border-color var(--transition);
}

.navbar__hamburger:hover { border-color: var(--color-navy); }

.navbar__hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.navbar__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.navbar__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 900px) {
  .navbar__hamburger { display: none; }

  .navbar__menu {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    border: none;
    padding: 0;
    gap: 0.25rem;
    box-shadow: none;
    align-items: center;
  }

  .navbar__menu a {
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
  }
}

/* 8. Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition),
              transform var(--transition), box-shadow var(--transition);
  line-height: 1;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-red);
  color: var(--color-white);
  box-shadow: var(--shadow-btn);
}
.btn--primary:hover {
  background: var(--color-red-dark);
  color: var(--color-white);
  box-shadow: 0 6px 20px rgba(214,40,40,0.45);
}

.btn--secondary {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn--secondary:hover {
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
}

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

.btn--navy {
  background: var(--color-navy);
  color: var(--color-white);
}
.btn--navy:hover {
  background: var(--color-navy-dark);
  color: var(--color-white);
}

.btn--large {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

.btn--xl {
  padding: 1.2rem 3rem;
  font-size: 1.2rem;
  border-radius: var(--radius-lg);
}

.btn--emergency {
  background: var(--color-red);
  color: var(--color-white);
  box-shadow: 0 8px 30px rgba(214,40,40,0.5);
  animation: pulse-btn 2s infinite;
}

@keyframes pulse-btn {
  0%, 100% { box-shadow: 0 8px 30px rgba(214,40,40,0.5); }
  50%       { box-shadow: 0 8px 40px rgba(214,40,40,0.8); }
}

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

/* 9. Hero
   ============================================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 50%, #0D3580 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero__badge .pulse-dot {
  width: 8px; height: 8px;
  background: var(--color-red);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

.hero__title {
  color: var(--color-white);
  margin-bottom: 1.25rem;
  max-width: 780px;
}

.hero__title .accent { color: #5BC8FF; }

.hero__subtitle {
  color: rgba(255,255,255,0.85);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 620px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero__trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.88rem;
  font-weight: 600;
}

.trust-item svg { color: #5BC8FF; flex-shrink: 0; }

/* Inner page heroes */
.hero--inner {
  min-height: 55vh;
}

.hero--contact {
  min-height: 45vh;
}

.hero--emergency {
  min-height: 85vh;
  background: linear-gradient(135deg, #1a0000 0%, #6B0000 40%, #8B1515 100%);
}

/* 10. Section Header
   ============================================================ */
.section-header {
  margin-bottom: 3rem;
}

.section-header.text-center { text-align: center; }

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

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 600px;
}

.section-header.text-center p {
  margin: 0 auto;
}

/* 11. Cards
   ============================================================ */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--color-border);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
}

/* Service Card */
.card--service {
  display: flex;
  flex-direction: column;
}

.service-icon {
  width: 60px; height: 60px;
  background: var(--color-blue-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.service-icon svg { color: var(--color-blue); }

.card--service h3 { margin-bottom: 0.75rem; }

.card--service p {
  color: var(--color-muted);
  flex: 1;
  margin-bottom: 1.25rem;
}

.card--service .card-link {
  color: var(--color-blue);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
}

.card--service .card-link:hover { color: var(--color-navy); }

/* Service expanded card */
.card--service-expanded {
  border-left: 4px solid var(--color-blue);
}

.card--service-expanded ul {
  margin: 1rem 0 1.5rem;
  padding-left: 0;
}

.card--service-expanded ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.3rem 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.card--service-expanded ul li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Testimonial Card */
.card--testimonial {
  border-top: 4px solid var(--color-blue);
}

.stars {
  color: #F59E0B;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

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

.testimonial-author {
  font-weight: 700;
  color: var(--color-navy);
  font-size: 0.9rem;
}

.testimonial-city {
  color: var(--color-muted);
  font-size: 0.85rem;
}

/* Stat Card */
.card--stat {
  text-align: center;
  border-top: 4px solid var(--color-red);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-number span { color: var(--color-red); }

.stat-label {
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Cert Card */
.card--cert {
  text-align: center;
  padding: 1.5rem;
}

.cert-badge {
  width: 64px; height: 64px;
  background: var(--color-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.cert-badge svg { color: var(--color-white); }

.card--cert h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.card--cert p  { font-size: 0.88rem; color: var(--color-muted); }

/* Urgency/Warning Card */
.card--warning {
  border-left: 5px solid var(--color-red);
  background: var(--color-red-light);
}

.card--warning h3 { color: var(--color-red); }

/* 12. Lead Form
   ============================================================ */
.lead-form {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.lead-form__header {
  background: var(--color-navy);
  padding: 1.5rem 2rem;
  color: var(--color-white);
}

.lead-form__header h3 {
  color: var(--color-white);
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
}

.lead-form__header p {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  margin: 0;
}

.lead-form__body {
  padding: 1.75rem 2rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 500px) {
  .form__row { grid-template-columns: 1fr 1fr; }
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
}

.form__label span[aria-hidden] { color: var(--color-red); }

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(30,107,255,0.15);
}

.form__input--error,
.form__select--error {
  border-color: var(--color-red) !important;
  box-shadow: 0 0 0 3px rgba(214,40,40,0.12) !important;
}

.form__error-msg {
  font-size: 0.8rem;
  color: var(--color-red);
  font-weight: 500;
  min-height: 1rem;
  display: block;
}

.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.form__textarea {
  resize: vertical;
  min-height: 90px;
}

.form__submit {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 1rem;
  padding: 1rem;
  border: none;
}

.form__privacy {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 0.75rem;
  text-align: center;
  justify-content: center;
}

.form__success {
  text-align: center;
  padding: 2.5rem 2rem;
}

.form__success h3 {
  color: var(--color-success);
  margin-bottom: 0.75rem;
}

.form__success p { color: var(--color-muted); }

.form__success a {
  color: var(--color-red);
  font-weight: 700;
  font-size: 1.1rem;
}

.form__loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Radio cards for damage type */
.damage-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.damage-card {
  padding: 0.75rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-muted);
  transition: all var(--transition);
}

.damage-card:hover { border-color: var(--color-blue); color: var(--color-blue); }
.damage-card.is-selected {
  border-color: var(--color-navy);
  background: var(--color-blue-light);
  color: var(--color-navy);
}

/* 13. Phone CTA Section
   ============================================================ */
.phone-cta {
  text-align: center;
  padding: 4rem 0;
}

.phone-cta h2 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.phone-cta-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.phone-cta .phone-number {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
  margin: 0.5rem 0 1rem;
  transition: opacity var(--transition);
}

.phone-cta .phone-number:hover { opacity: 0.85; color: var(--color-white); }

.phone-cta .phone-sub {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

/* 14. Process Steps
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  counter-reset: steps;
}

@media (min-width: 640px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.step {
  text-align: center;
  position: relative;
  padding: 1.5rem 1rem;
}

.step-number {
  width: 56px; height: 56px;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
}

.step-time {
  display: inline-block;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.step h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.step p  { color: var(--color-muted); font-size: 0.9rem; }

/* 15. Badge Strip / Certifications
   ============================================================ */
.badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cert-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border: 2px solid var(--color-navy);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-navy);
  background: var(--color-blue-light);
}

/* 16. Area Tags
   ============================================================ */
.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.area-tag {
  padding: 0.4rem 0.9rem;
  border: 2px solid var(--color-navy);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-navy);
  transition: all var(--transition);
  cursor: default;
}

.area-tag:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

/* 17. FAQ Accordion
   ============================================================ */
.faq { border-top: 1px solid var(--color-border); }

.faq__item { border-bottom: 1px solid var(--color-border); }

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 600;
  gap: 1rem;
  transition: color var(--transition);
}

.faq__question:hover { color: var(--color-navy); }

.faq__icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.faq__item--open .faq__icon {
  transform: rotate(180deg);
  border-color: var(--color-navy);
  background: var(--color-navy);
  color: var(--color-white);
}

.faq__icon svg { transition: color var(--transition); }
.faq__item--open .faq__icon svg { color: var(--color-white); }

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq__item--open .faq__answer {
  max-height: 600px;
}

.faq__answer-inner {
  padding-bottom: 1.25rem;
  color: var(--color-muted);
  line-height: 1.75;
}

/* 18. Insurance Section
   ============================================================ */
.insurance-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

@media (min-width: 640px) {
  .insurance-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .insurance-steps { grid-template-columns: repeat(4, 1fr); }
}

.ins-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-blue);
}

.ins-step-num {
  width: 36px; height: 36px;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.ins-step-text h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.ins-step-text p  { font-size: 0.85rem; color: var(--color-muted); margin: 0; }

/* 19. Footer
   ============================================================ */
.footer {
  background: var(--color-navy-dark);
  color: rgba(255,255,255,0.8);
}

.footer__top {
  padding: 4rem 0 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .footer__top { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .footer__top { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

.footer__brand h3 {
  color: var(--color-white);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer__contact-item a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.footer__contact-item a:hover { color: var(--color-white); }

.footer__phone-large {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.footer__phone-large:hover { color: rgba(255,255,255,0.85); }

.footer__col h4 {
  color: var(--color-white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer__col ul li {
  margin-bottom: 0.5rem;
}

.footer__col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer__col ul li a:hover { color: var(--color-white); }

.footer__emergency {
  background: var(--color-red);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.footer__emergency p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.5rem;
}

.footer__emergency a {
  color: var(--color-white);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer__certs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer__cert-pill {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.footer__bottom a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

.footer__bottom a:hover { color: var(--color-white); }

/* 20. Emergency Banner (Mobile Fixed Bottom)
   ============================================================ */
.emergency-banner {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--color-red);
  padding: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.emergency-banner.is-visible {
  transform: translateY(0);
}

.emergency-banner a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  flex: 1;
}

.emergency-banner button {
  background: rgba(255,255,255,0.2);
  border: none;
  color: var(--color-white);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 899px) {
  .emergency-banner { display: flex; }
  body { padding-bottom: 60px; }
}

/* 21. About Story
   ============================================================ */
.about-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 900px) {
  .about-split { grid-template-columns: 1fr 1fr; }
}

.mission-block {
  border-left: 5px solid var(--color-blue);
  padding: 1.25rem 1.5rem;
  background: var(--color-blue-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
}

.mission-block p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-navy);
  font-weight: 500;
  margin: 0;
}

.about-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  color: var(--color-muted);
}

.about-bullets li::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--color-red);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}

/* 22. Contact Page Split
   ============================================================ */
.contact-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 900px) {
  .contact-split { grid-template-columns: 3fr 2fr; }
}

.contact-info-block {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-info-block h3 {
  margin-bottom: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-info-item:last-of-type { border-bottom: none; }

.contact-info-icon {
  width: 40px; height: 40px;
  background: var(--color-blue-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg { color: var(--color-blue); }

.contact-info-text strong { display: block; font-size: 0.85rem; color: var(--color-muted); }
.contact-info-text a, .contact-info-text span {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
  text-decoration: none;
}

.contact-phone-large {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-red);
  text-decoration: none;
  margin: 1rem 0;
  line-height: 1;
}

.contact-phone-large:hover { color: var(--color-red-dark); }

.promise-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.promise-list li svg { color: var(--color-success); flex-shrink: 0; }

/* 23. Emergency page specific
   ============================================================ */
.emergency-cta-center {
  text-align: center;
  margin: 2rem 0;
}

.callback-form-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.urgency-highlight {
  background: var(--color-red-light);
  border: 2px solid var(--color-red);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  text-align: center;
  color: var(--color-red);
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 1.5rem;
}

/* 24. Google Reviews Snippet
   ============================================================ */
.google-review-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.google-g {
  width: 32px; height: 32px;
  background: #4285F4;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.google-review-bar .stars { margin: 0; font-size: 0.9rem; letter-spacing: 1px; }
.google-review-bar strong { color: var(--color-text); font-size: 0.9rem; }
.google-review-bar span { color: var(--color-muted); font-size: 0.82rem; }

/* 25. Page padding for fixed navbar
   ============================================================ */
main { padding-top: 70px; }

/* 26. Animations (respect prefers-reduced-motion)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* 27. Print Styles
   ============================================================ */
@media print {
  .navbar, .emergency-banner, .btn { display: none; }
  .phone-number { font-size: 2rem !important; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; }
}
