:root {
  color-scheme: light;
  --blue-dark: #0c4d78;
  --blue-mid: #256f9c;
  --blue-light: #5f9ecb;
  --yellow: #f3c84b;
  --text: #18334f;
  --bg: #f7fbff;
  --white: #ffffff;
  --primary: var(--blue-dark);
  --accent: var(--blue-mid);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  /* Coastal depth blobs + faint gold sun halo top-right */
  background-image:
    radial-gradient(circle 220px at 94% 3%, rgba(243, 200, 75, 0.05) 0%, transparent 100%),
    radial-gradient(ellipse 80% 55% at 100% 6%, rgba(95, 158, 203, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 82%, rgba(95, 158, 203, 0.05) 0%, transparent 55%);
}

main {
  position: relative;
  overflow-x: hidden;
  background: #f0f6fb;
}

.hero {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid) 55%, var(--blue-light));
  color: var(--white);
  padding: 12px 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(12, 77, 120, 0.14);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 18px;
}

.brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  background: transparent;
  overflow: visible;
  line-height: 0;
  gap: 6px;
}

.company-logo {
  display: block;
  width: min(160px, 26vw);
  height: auto;
  max-width: 160px;
  max-height: 62px;
  object-fit: contain;
  background: transparent;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  margin-left: -32px;
  color: var(--white);
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-location {
  font-size: 0.86rem;
  font-weight: 600;
  opacity: 0.92;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  margin-left: 16px;
  font-weight: 600;
}

.hero-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  gap: 28px;
}

.hero-headline {
  display: grid;
  gap: 8px;
  max-width: 100%;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 2.1vw + 1.1rem, 2.25rem);
  margin: 0;
  color: var(--blue-dark);
  line-height: 1.15;
}

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 36px;
  align-items: start;
}

.hero-copy {
  max-width: 620px;
  min-width: 0;
}

.hero-story {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.hero-accent {
  width: 3px;
  flex-shrink: 0;
  align-self: stretch;
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--yellow), rgba(243, 200, 75, 0.2));
}

.hero-content p {
  margin: 0 0 12px;
}

.hero-history {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.hero-facts {
  margin: 0;
  color: var(--blue-dark);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: clamp(0.92rem, 0.4vw + 0.8rem, 1rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 20px;
  background: var(--yellow);
  color: var(--blue-dark);
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
}

.button.disabled {
  margin-top: 12px;
  opacity: 0.8;
  cursor: not-allowed;
  pointer-events: none;
}

.button-secondary {
  background: transparent;
  border: 2px solid var(--blue-dark);
  color: var(--blue-dark);
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.35fr) minmax(0, 0.65fr);
  gap: 28px;
  align-items: start;
}

.contact-details {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-details h2 {
  margin-top: 0;
}

.contact-map-card {
  background: var(--white);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(12, 77, 120, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: start;
  height: auto;
  overflow: visible;
}

.practice-location-heading {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1rem;
}


.contact-map-card iframe {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  min-height: 0;
  border: 0;
  border-radius: 12px;
  display: block;
}

.map-links {
  display: flex;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 10px;
  margin-top: 0;
}

.map-link {
  display: inline-block;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(243, 200, 75, 0.2);
  color: var(--blue-dark);
  font-weight: 600;
  text-decoration: none;
}

.map-link:hover {
  background: rgba(243, 200, 75, 0.35);
  text-decoration: none;
}

.alt {
  background: rgba(95, 158, 203, 0.12);
  border-radius: 16px;
}

/* Section-specific backgrounds — override .section max-width for full-bleed */
.shell-services {
  max-width: 100%;
  padding: 20px max(24px, calc(50vw - 526px)) 60px;
  background: #ffffff;
  border-radius: 0;
}

.shell-blue {
  max-width: 100%;
  padding-left: max(24px, calc(50vw - 526px));
  padding-right: max(24px, calc(50vw - 526px));
  background: #d4e8f5;
  border-radius: 0;
}

.shell-white {
  max-width: 100%;
  padding-left: max(24px, calc(50vw - 526px));
  padding-right: max(24px, calc(50vw - 526px));
  background: #ffffff;
  border-radius: 0;
}

.shell-dark {
  max-width: 100%;
  padding: 36px max(24px, calc(50vw - 526px));
  /* solid color so both wave-to-dark and wave-from-dark edges match exactly */
  background: #0c4d78;
  border-radius: 0;
}

.shell-dark .contact-details {
  color: rgba(255, 255, 255, 0.92);
}

.shell-dark .contact-details a {
  color: #f3c84b;
}

.shell-dark .contact-details a:hover {
  color: #ffffff;
}

.shell-dark .contact-map-card {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.shell-dark .contact-map-card .map-link {
  background: rgba(243, 200, 75, 0.22);
  color: var(--blue-dark);
}

.shell-dark .contact-map-card .map-link:hover {
  background: rgba(243, 200, 75, 0.35);
}

.shell-plain {
  background: transparent;
  border-radius: 0;
}

.shell-dark h2,
.shell-dark > p {
  color: rgba(255, 255, 255, 0.92);
}

.shell-dark .form-note {
  color: rgba(24, 51, 79, 0.86);
}

/* Full-width curved wave separators between sections */
.wave-sep {
  display: block;
  width: 100%;
  height: 60px;
  line-height: 0;
  pointer-events: none;
}

/* hero gradient fades to ~#f0f6fb; this wave bridges it into the white services section */
.wave-hero-to-services {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Crect width='1440' height='60' fill='%23f0f6fb'/%3E%3Cpath d='M0,0 C480,50 960,10 1440,40 L1440,60 L0,60 Z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

.wave-to-blue {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Crect width='1440' height='60' fill='%23ffffff'/%3E%3Cpath d='M0,0 C360,60 720,10 1080,40 C1260,55 1380,15 1440,30 L1440,60 L0,60 Z' fill='%23d4e8f5'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

.wave-from-blue {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Crect width='1440' height='60' fill='%23d4e8f5'/%3E%3Cpath d='M0,0 C360,60 720,10 1080,40 C1260,55 1380,15 1440,30 L1440,60 L0,60 Z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

.wave-to-dark {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Crect width='1440' height='60' fill='%23ffffff'/%3E%3Cpath d='M0,20 C360,60 720,0 1080,40 C1260,55 1380,10 1440,30 L1440,60 L0,60 Z' fill='%230c4d78'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

.wave-from-dark {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Crect width='1440' height='60' fill='%230c4d78'/%3E%3Cpath d='M0,0 C360,60 720,0 1080,40 C1260,55 1380,10 1440,30 L1440,60 L0,60 Z' fill='%23f7fbff'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(12, 77, 120, 0.08);
  border-top: 4px solid var(--yellow);
}

.testimonial-card p {
  margin-top: 0;
  font-style: italic;
}

.testimonial-actions {
  margin-top: 18px;
}

.doctor-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  min-width: 0;
}

.doctor-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 16px 32px rgba(12, 77, 120, 0.12);
  border: 1px solid rgba(12, 77, 120, 0.08);
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.doctor-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.doctor-card-body {
  padding: 12px 4px 2px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.doctor-card-body h3 {
  margin: 0 0 4px;
  color: var(--blue-dark);
}

.doctor-card-body p {
  margin: 0;
  color: var(--text);
  opacity: 0.82;
}

.form-panel {
  margin-top: 24px;
  padding: 24px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(12, 77, 120, 0.08);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(12, 77, 120, 0.2);
  border-radius: 8px;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
  width: auto !important;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.honeypot {
  display: none;
}

.form-button {
  border: none;
  cursor: pointer;
}

.form-message {
  min-height: 1.5em;
  margin: 0;
  font-weight: 600;
}

.form-message.success {
  color: #1d6f3f;
}

.form-message.error {
  color: #b42318;
}

.form-note {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0.86;
}

.billing-card {
  margin-top: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(12, 77, 120, 0.08);
  max-width: 420px;
}

.billing-card a,
.section a {
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 600;
}

.billing-card a:hover,
.section a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .map-links {
    flex-wrap: wrap;
  }

  .brand-link {
    gap: 4px;
  }

  .company-logo {
    width: min(138px, 42vw);
    max-height: 56px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-location {
    font-size: 0.78rem;
  }

  .brand-copy {
    margin-left: -18px;
  }

  .hero-content h1 {
    font-size: clamp(1.7rem, 2vw + 1rem, 1.95rem);
  }

  .hero-content {
    padding-top: 28px;
    gap: 24px;
  }

  .hero-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-story {
    flex-direction: column;
    gap: 10px;
  }

  .hero-accent {
    width: 100%;
    height: 3px;
  }

  .doctor-photos {
    grid-template-columns: 1fr;
  }
}
