:root {
  --brand-ink: #0f172a; /* Primary text */
  --brand-bg: #ffffff; /* Page background */
  --brand-accent: #0066cc; /* Professional medical blue */
  --brand-accent-2: #4d94ff; /* Light blue for hovers */
  --emergency-red: #dc2626; /* Emergency CTA color */
  --trust-green: #059669; /* Trust indicators */
  --muted: #f6f7f9; /* Section alt bg */
  --border: #e5e7eb; /* Borders/dividers */
  --ink-2: #334155;
  --success: #059669;
  --danger: #dc2626;
  --gold: #ffd700;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(2, 8, 23, 0.08);
  --shadow-gold: 0 0 40px rgba(212, 175, 55, 0.3);
}

* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 100px; /* Account for sticky header */
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--ink-2);
  background: var(--brand-bg);
  line-height: 1.6;
  padding-bottom: 0; /* Will be set dynamically by JS */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--brand-ink);
  text-decoration: none;
}
a:hover {
  opacity: 0.9;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}
.center {
  text-align: center;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  z-index: 1000;
}

.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 999;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header-cta .phone {
  font-weight: 600;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  font-weight: 600;
  border: 1px solid var(--brand-ink) / 10;
  transition: 0.2s;
}
.btn-lg {
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--emergency-red), #ef4444);
  color: #fff;
  border-color: var(--emergency-red);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
  transform: translateY(-2px);
}
.btn-outline {
  border: 2px solid var(--brand-ink);
  color: var(--brand-ink);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.btn-outline:hover {
  background: var(--brand-ink);
  color: white;
  transform: translateY(-2px);
}
.btn-full {
  width: 100%;
}

.hero {
  padding: clamp(36px, 4vw, 64px) 0;
  background: linear-gradient(180deg, #fff, #faf8f5);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.15;
  color: var(--brand-ink);
  margin: 0.1em 0 0.2em;
}
.cta-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
  align-items: center;
}
.subhead {
  font-size: 1.05rem;
  color: #475569;
  max-width: 58ch;
}
.trust-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1rem 0 1.25rem;
  padding: 0;
}
.trust-inline li {
  list-style: none;
  background: var(--muted);
  border: 1px solid var(--border);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.92rem;
}
.note {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 0.75rem;
}

.section {
  padding: clamp(60px, 6vw, 80px) 0;
}
.section.muted {
  background: var(--muted);
}
.section-head {
  text-align: center;
  margin-bottom: 2rem;
}
.muted-text {
  color: #6b7280;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin: 0 0 0.25rem;
}
.checklist {
  padding-left: 1.25rem;
}
.checklist li {
  margin: 0.4rem 0;
}
.split h2 {
  margin-top: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 0 30px 0;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.gallery img {
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.testimonials {
  position: relative;
  isolation: isolate;
}
.testimonial {
  display: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.testimonial.is-active {
  display: block;
}
.testimonial blockquote {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--brand-ink);
}

.trust-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.form-section {
  background: linear-gradient(180deg, #faf8f5, #fff);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
}
.form-copy h2 {
  margin-top: 0;
}
.contact-quick {
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.3rem;
}
.contact-quick li {
  list-style: none;
}
.lead-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.field {
  margin-bottom: 14px;
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
input,
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font-size: 1rem;
}
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--brand-accent-2);
  border-color: var(--brand-accent);
}
.form-disclaimer,
.fineprint {
  color: #6b7280;
  font-size: 0.85rem;
  margin: 0.6rem 0 0;
}

.location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}
.map-placeholder {
  width: 100%;
  min-height: 400px;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}
.map-placeholder iframe {
  border: 0;
  width: 100%;
  height: 400px;
  display: block;
  border-radius: 14px;
}

.site-footer {
  background: #0b0f1a;
  color: #e5e7eb;
  padding: 28px 0;
}
.site-footer.minimal {
  padding: 20px 0;
  text-align: center;
}
.footer-minimal p {
  margin: 0;
  color: #9ca3af;
  font-size: 0.9rem;
}
.footer-minimal a {
  color: #d1d5db;
  text-decoration: underline;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 24px;
}
.footer-copy {
  color: #cbd5e1;
}
.site-footer a {
  color: #e8dcc7;
}
.social {
  display: flex;
  gap: 12px;
  padding: 0;
  margin: 0.5rem 0 0;
}
.social li {
  list-style: none;
}
.phone {
  font-weight: 700;
  color: var(--brand-accent);
}

/* Catchy Animations and Effects */
.badge-urgent {
  display: inline-block;
  background: linear-gradient(135deg, var(--emergency-red), #f87171);
  color: white;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: emergencyFlash 1.5s infinite;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
  20%, 40%, 60%, 80% { transform: translateX(2px); }
}

@keyframes emergencyFlash {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

@keyframes emergencyPulse {
  0% {
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
  }
  50% {
    box-shadow: 0 4px 30px rgba(220, 38, 38, 0.5);
  }
  100% {
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
  }
}

/* Urgency Popup Styles */
.urgency-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  border: 2px solid var(--emergency-red);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  z-index: 1000;
  max-width: 320px;
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.popup-content h3 {
  margin-top: 0;
  color: var(--emergency-red);
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.popup-close:hover {
  color: var(--emergency-red);
}


.pulse {
  animation: emergencyPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  font-weight: 700;
}

.countdown {
  color: var(--emergency-red);
  font-weight: 700;
  font-size: 1.1em;
  font-family: 'Courier New', monospace;
  background: linear-gradient(90deg, var(--emergency-red), #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes pulse-shadow {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(26, 26, 46, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(26, 26, 46, 0.6);
  }
}

.countdown {
  color: #dc2626;
  font-weight: 700;
  font-size: 1.1em;
  animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Floating CTA Bar */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a1a2e, #0f172a);
  padding: 0.75rem;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
  z-index: 998;
  transform: translateY(100%);
  animation: slideUp 1s ease-out 3s forwards;
}

@keyframes slideUp {
  to {
    transform: translateY(0);
  }
}

/* Prevent CTA from covering content on scroll */
@media (prefers-reduced-motion: reduce) {
  .sticky-cta {
    animation: none;
    transform: translateY(0);
  }
}

.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sticky-cta-text {
  color: white;
  font-weight: 600;
  font-size: clamp(0.85rem, 2vw, 1rem);
  flex: 1 1 auto;
  min-width: 200px;
}

.sticky-cta .btn {
  background: var(--gold);
  color: #0f172a;
  border: none;
  font-weight: 700;
  font-size: clamp(0.85rem, 2vw, 1rem);
  padding: 0.6rem 1rem;
  white-space: nowrap;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 2px solid var(--trust-green);
  border-radius: 999px;
  font-weight: 600;
  color: var(--trust-green);
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.2);
  transition: transform 0.2s ease;
}
.trust-badge:hover {
  transform: translateY(-2px);
}

.rating-stars {
  color: var(--gold);
  font-size: 1.2rem;
}

/* Enhanced testimonials with ratings */
.testimonial-card {
  background: white;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-gold);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--gold);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--brand-accent));
}

/* Price transparency */
.price-banner {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #0f172a;
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 2rem 0;
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
}

.price-banner h3 {
  font-size: 2rem;
  margin: 0;
}

.price-strike {
  text-decoration: line-through;
  color: #6b7280;
  font-size: 1.2rem;
}

.price-now {
  font-size: 2.5rem;
  font-weight: 700;
  color: #dc2626;
}

/* Success stories carousel */
.success-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.success-slide {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #fff, #faf8f5);
}

/* Hover effects */
.btn:hover {
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

/* Mobile-specific responsive styles */
@media (max-width: 768px) {
  .sticky-cta {
    padding: 0.5rem;
  }

  .sticky-cta-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .sticky-cta-text {
    width: 100%;
    font-size: 0.85rem;
  }

  .sticky-cta .btn {
    width: 100%;
    max-width: 280px;
    font-size: 0.9rem;
  }

  .cta-row {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-row .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-copy h1 {
    font-size: clamp(24px, 6vw, 36px);
  }

  .badge-urgent {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .trust-inline {
    flex-direction: column;
    gap: 0.5rem;
  }

  .trust-inline li {
    width: 100%;
    text-align: center;
  }

  .btn-lg {
    padding: 0.9rem 1.1rem;
    font-size: 1rem;
  }

  .section {
    padding: 32px 0;
  }

  /* Fix form on mobile */
  .lead-form {
    padding: 15px;
  }

  /* Popup adjustments */
  .urgency-popup {
    left: 10px !important;
    right: 10px !important;
    bottom: 80px !important;
    max-width: none !important;
  }
}

/* Small mobile screens (iPhone SE, etc.) */
@media (max-width: 480px) {
  .container {
    width: 95vw;
  }

  .hero-copy h1 {
    font-size: 22px;
    line-height: 1.2;
  }

  .subhead {
    font-size: 0.95rem;
  }

  .sticky-cta {
    animation-delay: 5s; /* Give more time to read on mobile */
  }

  .price-banner {
    padding: 1.5rem 1rem;
  }

  .price-now {
    font-size: 2rem;
  }

  /* Stack testimonials vertically */
  .testimonial-card {
    margin-bottom: 1rem;
  }

  /* Ensure map is visible on mobile */
  .map-placeholder {
    min-height: 300px !important;
  }

  .map-placeholder iframe {
    height: 300px !important;
    width: 100% !important;
  }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .sticky-cta-inner {
    flex-direction: row;
  }

  .sticky-cta .btn {
    width: auto;
  }

  .hero {
    padding: 24px 0;
  }
}

/* Tablet and larger mobile responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .split-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .trust-cards {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .location {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
