:root {
  --navy: #0f172a;
  --navy-light: #1e293b;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --red: #dc2626;
  --red-dark: #b91c1c;
  --green: #16a34a;
  --gray: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  --radius: 12px;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--navy);
  line-height: 1.6;
  background: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

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

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ========== HEADER ========== */
header {
  background: var(--navy);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.logo span {
  color: #60a5fa;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}

nav {
  display: flex;
  gap: 28px;
  font-weight: 500;
  font-size: 0.95rem;
}

nav a {
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
  position: relative;
}

nav a:hover,
nav a.active {
  opacity: 1;
  color: #93c5fd;
}

nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: #60a5fa;
  border-radius: 2px;
}

.header-cta {
  background: var(--red);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.header-cta:hover {
  background: var(--red-dark);
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #1e40af 100%);
  color: white;
  padding: 70px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(59,130,246,0.25), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero h1 .highlight {
  color: #60a5fa;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid #cbd5e1;
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: #93c5fd;
}

.stat span {
  font-size: 0.85rem;
  opacity: 0.8;
}

.hero-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.35);
  color: var(--navy);
}

.hero-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.hero-card-body {
  padding: 22px 24px 26px;
}

.hero-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.hero-card-body p {
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 16px;
}

.free-tag {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: white;
  padding: 56px 0 60px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto;
}

/* ========== TRUST BAR ========== */
.trust-bar {
  background: var(--light);
  border-bottom: 1px solid #e2e8f0;
  padding: 18px 0;
}

.trust-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.95rem;
  color: var(--gray);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.trust-item strong {
  color: var(--navy);
}

.stars {
  color: #f59e0b;
  letter-spacing: 1px;
}

/* ========== SECTIONS ========== */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ========== SERVICES ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.25s;
  box-shadow: 0 4px 12px rgba(15,23,42,0.04);
}

.service-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

.service-card ul {
  list-style: none;
  margin-top: 12px;
}

.service-card ul li {
  font-size: 0.9rem;
  color: var(--gray);
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
}

.service-card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

.icon-blue { background: #dbeafe; }
.icon-green { background: #dcfce7; }
.icon-purple { background: #f3e8ff; }
.icon-orange { background: #ffedd5; }
.icon-red { background: #fee2e2; }
.icon-cyan { background: #cffafe; }
.icon-yellow { background: #fef9c3; }
.icon-pink { background: #fce7f3; }

/* ========== PROMO ========== */
.promo {
  background: linear-gradient(135deg, #1e40af, #1e3a8a);
  color: white;
  border-radius: 20px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 20px 0 0;
  box-shadow: 0 20px 40px rgba(30, 64, 175, 0.3);
}

.promo h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.promo p {
  opacity: 0.9;
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.promo-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.promo-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.promo-list li::before {
  content: '✓';
  background: rgba(255,255,255,0.2);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.promo-img {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.promo-img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* ========== WHY US ========== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  text-align: center;
  padding: 28px 18px;
  background: var(--light);
  border-radius: var(--radius);
}

.why-card .emoji {
  font-size: 2rem;
  margin-bottom: 12px;
}

.why-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* ========== ABOUT PAGE ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-content h2 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.about-content p {
  color: var(--gray);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-img img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.value-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.value-card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.value-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.value-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.contact-info > p {
  color: var(--gray);
  margin-bottom: 28px;
}

.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 0.95rem;
}

.contact-item span {
  color: var(--gray);
  font-size: 0.9rem;
}

.contact-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--gray);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.hours {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.hours div {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  padding: 4px 0;
}

.hours strong {
  color: var(--green);
}

/* Simple contact form */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ========== CTA BANNER ========== */
.cta-banner {
  background: var(--navy);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-banner p {
  opacity: 0.85;
  margin-bottom: 28px;
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========== FOOTER ========== */
footer {
  background: var(--navy);
  color: white;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand .logo {
  margin-bottom: 14px;
}

.footer-brand p {
  opacity: 0.75;
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-col h4,
.footer-h {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #93c5fd;
}

.footer-col a,
.footer-col p {
  display: block;
  opacity: 0.8;
  margin-bottom: 10px;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

.footer-col a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .promo { grid-template-columns: 1fr; padding: 36px 28px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px; }
  .header-cta { display: none; }
}

/* ========== POLISH (stage 2026-11) ========== */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #60a5fa; outline-offset: 3px; border-radius: 6px;
}

.logo-mark { width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0; }
.logo-text { white-space: nowrap; }
.logo-text span { color: #60a5fa; }
header .logo:hover .logo-mark { transform: rotate(-6deg); transition: transform 0.2s; }
.header-inner nav { margin-left: auto; }

picture { display: block; }
.hero-card picture img, .about-img picture img, .promo-img picture img { width: 100%; height: auto; }

.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; justify-content: center; }
.center-cta { text-align: center; margin-top: 40px; }
.promo-spaced { margin-top: 60px; }
.section-alt { background: var(--light); }
.section-tight { padding-top: 60px; }

.hours-card { margin-top: 28px; max-width: 360px; }
.hours-title { margin-bottom: 8px; color: var(--navy); }
.hours-note { margin-top: 10px; font-size: 0.85rem; color: #475569; }
.form-status { margin-top: 14px; font-size: 0.9rem; color: #1e40af; }

.footer-h { font-size: 1rem; font-weight: 700; }
.footer-contact p { opacity: 0.8; }
.footer-note { font-size: 0.85rem; }
.footnote { font-size: 0.85rem; opacity: 0.7; margin: -12px 0 18px; }
.footer-bottom a:hover { text-decoration: underline; }

/* Darker gray body text for WCAG AA on light backgrounds */
.service-card p, .why-card p, .value-card p, .section-header p, .contact-card p, .contact-info p { color: #475569; }

/* Tablet/mobile header: nav stays visible as a second row (no JS needed) */
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; row-gap: 10px; padding: 12px 0; }
  .header-inner nav {
    order: 3; width: 100%; margin-left: 0; justify-content: space-between;
    gap: 8px; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 10px;
  }
  .header-inner nav a { padding: 6px 4px; }
  .header-inner nav a.active::after { bottom: 0; }
  .header-cta { padding: 8px 14px; font-size: 0.85rem; }
}
@media (max-width: 560px) {
  .header-cta { display: inline-flex; }
  .header-cta { padding: 8px 12px; }
  .cta-num { display: none; }
  .logo { font-size: 1.15rem; gap: 10px; }
  .logo-mark { width: 36px; height: 36px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}
.page-hero a { color: #93c5fd; text-decoration: underline; }
.logo .logo-text { color: #fff; }
.logo .logo-text span { color: #60a5fa; }
.hours strong { color: #15803d; }
.hours-title strong { color: var(--navy); }
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
}
.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; }
.hero-card-body .card-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; color: var(--navy); }

/* ========== NOV 12 UPDATES ========== */
.appt-banner {
  margin: 0;
  background: #0b1220;
  color: #e2e8f0;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 7px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status-ok { color: #166534; }
.form-status-error { color: #b91c1c; }
.form-result { margin: 16px 0 24px; font-size: 1.05rem; }
.form-result-ok { color: #bbf7d0; }
.form-result-error { color: #fecaca; }
.page-hero .btn { margin-top: 8px; }
