/* =========================================================
   HVAC Larry – hvaclarry.com
   Professional, conversion-focused HVAC site styles
   ========================================================= */

:root {
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-200: #bae6fd;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-800: #075985;
  --primary-900: #0c4a6e;
  --primary-950: #082f49;

  /* Accent used for CTAs: --accent-700 meets ~4.5:1 with white (WCAG AA) */
  --accent-400: #2dd4bf;
  --accent-500: #0f766e;
  --accent-600: #0d9488;
  --accent-700: #115e59;
  --accent-on-dark: #5eead4;

  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  --white: #ffffff;
  --danger: #dc2626;
  --success: #16a34a;

  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.06);
  --shadow: 0 4px 16px rgb(15 23 42 / 0.08);
  --shadow-lg: 0 20px 40px -12px rgb(15 23 42 / 0.18);
  --header-h: 72px;
  --container: 1120px;
  --transition: 0.2s ease;
}

/* Reset */
*, *::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;
  }
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px; /* mobile sticky CTA */
}
@media (min-width: 768px) {
  body { padding-bottom: 0; }
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-700); text-decoration: none; }
a:hover { color: var(--primary-600); }
/* In-content links: underline so meaning is not color-only (WCAG 1.4.1) */
.prose a,
.faq-body a,
.lead a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
h1, h2, h3, h4 { line-height: 1.2; color: var(--primary-900); margin: 0 0 0.75rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }

/* Visible keyboard focus (WCAG 2.4.7) */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--primary-500);
  outline-offset: 2px;
}
.btn:focus-visible,
.menu-toggle:focus-visible,
.mobile-callbar a:focus-visible {
  outline: 3px solid var(--primary-950);
  outline-offset: 3px;
}
.hero :focus-visible,
.page-hero :focus-visible,
.cta-banner :focus-visible,
.site-footer :focus-visible,
.topbar :focus-visible,
.panel :focus-visible {
  outline-color: #fff;
}

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

.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;
}

/* Skip link: visible on keyboard focus */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--primary-950);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  transform: translateY(-120%);
  transition: transform 0.15s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid var(--accent-on-dark);
  outline-offset: 2px;
  color: #fff;
}

/* Top bar */
.topbar {
  background: var(--primary-950);
  color: var(--primary-100);
  font-size: 0.8125rem;
  padding: 0.45rem 0;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: var(--white); font-weight: 600; }
.topbar a:hover { color: var(--accent-400); }
.topbar-meta { display: flex; flex-wrap: wrap; gap: 1rem; opacity: 0.9; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  flex-shrink: 0;
}
.logo:hover { color: inherit; }
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-800), var(--primary-600));
  display: grid;
  place-items: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgb(3 105 161 / 0.35);
}
.icon {
  display: block;
  flex-shrink: 0;
}
.icon-wrap {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.btn .icon-wrap { margin-right: 0.15rem; }
.logo-mark .icon { width: 22px; height: 22px; }
.logo-text { display: flex; flex-direction: column; }
.logo-text strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-900);
  letter-spacing: -0.02em;
}
.logo-text span {
  font-size: 0.7rem;
  color: var(--gray-500);
  margin-top: -2px;
}

.nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
}
@media (min-width: 960px) {
  .nav { display: flex; }
}
.nav a {
  color: var(--gray-700);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: var(--transition);
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--primary-700);
  background: var(--primary-50);
}
.nav .has-dropdown { position: relative; }
.nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  z-index: 50;
}
.nav .has-dropdown:hover .dropdown,
.nav .has-dropdown:focus-within .dropdown {
  display: block;
}
.nav .dropdown a {
  display: block;
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
}

.header-cta {
  display: none;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 960px) {
  .header-cta { display: flex; }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  color: var(--primary-900);
  font-size: 1.25rem;
}
@media (min-width: 960px) {
  .menu-toggle { display: none; }
}

/* Mobile nav */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
  padding: 0.75rem 1.25rem 1.25rem;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-800);
  font-weight: 600;
}
.mobile-nav .sub a {
  padding-left: 1rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.btn-accent {
  background: var(--accent-500);
  color: var(--white);
  box-shadow: 0 4px 14px rgb(15 118 110 / 0.35);
}
.btn-accent:hover {
  background: var(--accent-700);
  color: var(--white);
  transform: translateY(-1px);
}
@media (prefers-reduced-motion: reduce) {
  .btn-accent:hover { transform: none; }
}
.btn-primary {
  background: var(--primary-700);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-800);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  border-color: rgb(255 255 255 / 0.35);
  color: var(--white);
}
.btn-outline:hover {
  background: rgb(255 255 255 / 0.12);
  color: var(--white);
}
.btn-outline-dark {
  background: var(--white);
  border-color: var(--gray-200);
  color: var(--primary-800);
}
.btn-outline-dark:hover {
  border-color: var(--primary-500);
  color: var(--primary-700);
}
.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
  border-radius: 12px;
}
.btn-block { width: 100%; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-950) 0%, var(--primary-800) 45%, var(--primary-600) 100%);
  color: var(--white);
  padding: 3.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 90% 20%, rgb(20 184 166 / 0.2), transparent),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgb(14 165 233 / 0.15), transparent);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 3rem; }
  .hero { padding: 4.5rem 0 5rem; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.18);
  color: var(--primary-100);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-on-dark);
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--primary-100);
  max-width: 36rem;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.9rem;
  color: var(--primary-100);
}
.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-proof .check { color: var(--accent-on-dark); font-weight: 700; }

.hero-card {
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.18);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
}
.hero-card h2 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.hero-card label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-100);
  margin-bottom: 0.35rem;
}
.hero-card input,
.hero-card select,
.hero-card textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgb(255 255 255 / 0.2);
  background: rgb(255 255 255 / 0.95);
  color: var(--gray-800);
  font: inherit;
  margin-bottom: 0.85rem;
}
.hero-card .form-note {
  font-size: 0.75rem;
  color: var(--primary-200);
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* Trust bar */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 1.5rem 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  text-align: center;
}
@media (min-width: 768px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}
.trust-item strong {
  display: block;
  font-size: 1.75rem;
  color: var(--primary-700);
  font-weight: 800;
}
.trust-item span {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Sections */
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-lg { padding: 5rem 0; }
.bg-white { background: var(--white); }
.bg-muted { background: var(--gray-50); }
.bg-primary {
  background: var(--primary-900);
  color: var(--white);
}
.bg-primary h2, .bg-primary h3 { color: var(--white); }
.bg-primary p { color: var(--primary-100); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.75rem;
}
.section-header .eyebrow {
  display: inline-block;
  color: var(--accent-700);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-header p {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* Photos */
.photo-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
}
.photo-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.photo-frame--portrait img {
  aspect-ratio: 3 / 4;
  max-height: 520px;
  width: 100%;
}
.photo-frame--wide img {
  aspect-ratio: 16 / 10;
  max-height: 360px;
  width: 100%;
}
.photo-caption {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0.75rem 0 0;
  line-height: 1.45;
}
.photo-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Cards */
.grid-2 {
  display: grid;
  gap: 1.5rem;
}
.grid-3 {
  display: grid;
  gap: 1.5rem;
}
.grid-4 {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-100);
}
@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; }
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-100);
  color: var(--primary-700);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
}
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}
.card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  flex-grow: 1;
}
.card .card-link {
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-700);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.card .card-link:hover { color: var(--accent-600); }

/* Split layout */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}
.split-content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}
.split-content > p {
  color: var(--gray-600);
  font-size: 1.05rem;
}

.feature-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.feature-list li {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
  align-items: flex-start;
}
.feature-list .num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-500);
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}
.feature-list strong {
  display: block;
  color: var(--primary-900);
  margin-bottom: 0.15rem;
}
.feature-list span {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.panel {
  background: var(--primary-900);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
}
.panel h3 { color: var(--white); margin-bottom: 1.25rem; }
.panel ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.panel li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: var(--primary-100);
  align-items: flex-start;
}
.panel li .tick { color: var(--accent-on-dark); font-weight: 700; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-800), var(--primary-700));
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}
.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
}
.cta-banner p {
  color: var(--primary-100);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.cta-banner .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--primary-950), var(--primary-700));
  color: var(--white);
  padding: 3rem 0 2.75rem;
}
.page-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--primary-200);
  margin-bottom: 1rem;
}
.page-hero .breadcrumb a { color: var(--primary-100); }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin-bottom: 0.85rem;
}
.page-hero p {
  color: var(--primary-100);
  font-size: 1.1rem;
  max-width: 40rem;
  margin-bottom: 1.5rem;
}
.page-hero .hero-actions { margin-bottom: 0; }

/* Content */
.prose {
  max-width: 720px;
}
.prose h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.prose h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
}
.prose p, .prose li {
  color: var(--gray-700);
  font-size: 1.05rem;
  line-height: 1.75;
}
.prose ul { margin-bottom: 1.25rem; }

.content-with-sidebar {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 960px) {
  .content-with-sidebar {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }
}
.sidebar-sticky {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
}
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}
.sidebar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.sidebar-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
}
.sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.sidebar-card li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
}
.sidebar-card li:last-child { border-bottom: 0; }
.sidebar-card a { font-weight: 600; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  color: var(--primary-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent-500);
  font-weight: 400;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:focus-visible {
  outline: 3px solid var(--primary-500);
  outline-offset: -3px;
}
.faq-item .faq-body {
  padding: 0 1.25rem 1.25rem;
  color: var(--gray-600);
  border-top: 1px solid var(--gray-100);
  padding-top: 1rem;
}

/* Forms */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-700);
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  font: inherit;
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgb(14 165 233 / 0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.form-hint {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 0.75rem;
}

/* Contact info blocks */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-100);
  color: var(--primary-700);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.contact-list strong {
  display: block;
  color: var(--primary-900);
  margin-bottom: 0.15rem;
}
.contact-list a {
  font-size: 1.05rem;
  font-weight: 600;
}

/* Testimonials */
.quote-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}
.quote-card .stars {
  color: #f59e0b;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.quote-card p {
  color: var(--gray-700);
  font-style: italic;
  margin-bottom: 1rem;
}
.quote-card footer {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-800);
}

/* Resources list */
.resource-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
  color: inherit;
}
.resource-card:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow);
  color: inherit;
  transform: translateY(-2px);
}
.resource-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-700);
  background: rgb(20 184 166 / 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.resource-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.resource-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Service area chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  background: var(--primary-50);
  color: var(--primary-800);
  border: 1px solid var(--primary-100);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Process steps */
.steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--gray-100);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-700);
  color: white;
  font-weight: 800;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--gray-600); font-size: 0.95rem; margin-bottom: 0; }

/* Footer */
.site-footer {
  background: var(--primary-950);
  color: var(--primary-200);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.site-footer p { font-size: 0.9rem; color: var(--primary-200); }
.site-footer a {
  color: var(--primary-100);
  font-size: 0.9rem;
}
.site-footer a:hover { color: var(--accent-400); }
.footer-brand .logo-mark { margin-bottom: 0.75rem; }
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--primary-300);
}

/* Mobile sticky call bar */
.mobile-callbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--accent-500);
  color: white;
  padding: 0.85rem 1rem;
  box-shadow: 0 -4px 20px rgb(0 0 0 / 0.15);
  display: flex;
  min-height: 56px;
}
.mobile-callbar a {
  flex: 1;
  color: white;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  text-decoration: none;
}
.mobile-callbar a:hover { color: white; }
@media (min-width: 768px) {
  .mobile-callbar { display: none; }
}

/* Ensure interactive controls meet ~44px touch target */
.btn {
  min-height: 44px;
}
.nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.menu-toggle {
  min-width: 44px;
  min-height: 44px;
}

/* High-contrast support */
@media (forced-colors: active) {
  .btn, .card, .menu-toggle, .faq-item, .form-group input,
  .form-group select, .form-group textarea {
    border: 1px solid CanvasText;
  }
  :focus-visible {
    outline: 3px solid Highlight;
  }
}

/* Emergency banner */
.emergency-strip {
  background: var(--danger);
  color: white;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.emergency-strip a {
  color: white;
  text-decoration: underline;
}

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
figure.mb-0 { margin: 0; }
figure.mb-3 { margin: 0 0 1.5rem; }
.text-muted { color: var(--gray-600); }
.lead { font-size: 1.1rem; color: var(--gray-600); line-height: 1.7; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-200);
}
th {
  background: var(--primary-50);
  color: var(--primary-900);
  font-weight: 700;
}

/* Print */
@media print {
  .site-header, .topbar, .mobile-callbar, .mobile-nav, .menu-toggle { display: none !important; }
  body { padding-bottom: 0; }
}
