:root {
  --font-sans: "Muli", system-ui, sans-serif;
  --font-display: "Open Sans", system-ui, sans-serif;
  --accent: #ff4a52;
  --accent-hover: #e63e46;
  --slate: #6d7a8c;
  --grad-a: #9ea8ef;
  --grad-b: #b2ccd2;
  --sky: #4f87fb;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #e6ecf2;
  --text: #1a1d26;
  --text-muted: #5c6475;
  --border: rgba(26, 29, 38, 0.12);
  --shadow: 0 18px 50px rgba(26, 35, 68, 0.12);
  --radius: 14px;
  --header-h: 76px;
}

[data-theme="dark"] {
  --bg: #0f1218;
  --surface: #171c28;
  --surface-2: #1f2636;
  --text: #f0f2f8;
  --text-muted: #9aa8bc;
  --border: rgba(240, 242, 248, 0.1);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  transition: background 0.25s ease, color 0.25s ease;
}

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

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

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.site-header__inner {
  width: min(1200px, 94vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo img {
  height: 3rem;
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.35rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.18);
  text-decoration: none;
}

.site-nav a.is-active {
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* Services dropdown (desktop: hover / focus-within) */
.nav-dropdown {
  position: relative;
}

.site-nav .nav-dropdown__trigger,
.site-nav .nav-dropdown__item {
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}

.site-nav .nav-dropdown__trigger:hover,
.site-nav .nav-dropdown__item:hover {
  background: rgba(255, 255, 255, 0.18);
  text-decoration: none;
}

.nav-dropdown__trigger::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.35rem;
  vertical-align: 0.15em;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255, 255, 255, 0.85);
}

.nav-dropdown__panel {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 13.5rem;
  padding: 0.35rem;
  margin: 0;
  list-style: none;
  background: linear-gradient(180deg, #2f3a55, #1e2638);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  pointer-events: none;
}

.nav-dropdown:hover .nav-dropdown__panel,
.nav-dropdown:focus-within .nav-dropdown__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.site-nav .nav-dropdown__item {
  display: block;
  width: 100%;
  white-space: nowrap;
}

.site-nav .nav-dropdown__item.is-active {
  background: rgba(255, 74, 82, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.site-nav .nav-dropdown__trigger.is-active {
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.page-main {
  min-height: calc(100vh - var(--header-h) - 80px);
}

.site-nav a.nav-phone {
  background: var(--accent);
  color: #fff;
}

.site-nav a.nav-phone:hover {
  background: var(--accent-hover);
}

.theme-toggle {
  margin-left: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  padding: 4rem 0 3.5rem;
  color: #fff;
  background: #1a1f2e center / cover no-repeat;
  background-image: linear-gradient(
      120deg,
      rgba(15, 18, 24, 0.82) 0%,
      rgba(30, 40, 72, 0.55) 45%,
      rgba(255, 74, 82, 0.25) 100%
    ),
    url("../images/lunabeckmdentrace-1211x10610.png");
}

.hero__content {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0.95;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  max-width: 18ch;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero h1 span {
  color: var(--accent);
}

.hero__sub {
  max-width: 52ch;
  font-size: 1.1rem;
  opacity: 0.95;
  margin: 1rem 0 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 74, 82, 0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  text-decoration: none;
  color: #fff;
}

.section {
  padding: 4.5rem 0;
}

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

.section__title {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  margin-bottom: 0.35rem;
}

.section__lead {
  color: var(--text-muted);
  max-width: 65ch;
  margin-bottom: 2rem;
}

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

@media (max-width: 960px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

.card-tile {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(26, 35, 68, 0.18);
}

[data-theme="dark"] .card-tile:hover {
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55);
}

.card-tile a {
  text-decoration: none;
  color: inherit;
}

.card-tile__img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.card-tile__body {
  padding: 1rem 1.1rem 1.25rem;
  text-align: center;
  font-weight: 700;
  font-style: italic;
}

.gradient-band {
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  padding: 3.5rem 0;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 880px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.portrait-wrap {
  justify-self: center;
  background: var(--surface);
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.portrait-wrap img {
  border-radius: 10px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 2rem;
  box-shadow: var(--shadow);
}

/* Light panels on photo backgrounds: force readable text in light and dark site theme */
.panel.panel--on-photo {
  background: rgba(255, 255, 255, 0.97) !important;
  color: #1a1d26;
  border-color: rgba(26, 29, 38, 0.14);
}

.panel.panel--on-photo h1,
.panel.panel--on-photo h2,
.panel.panel--on-photo h3,
.panel.panel--on-photo li,
.panel.panel--on-photo p,
.panel.panel--on-photo ul {
  color: #1a1d26;
}

.bg-section {
  position: relative;
  padding: 4rem 0;
  color: #fff;
  background: #222 center / cover fixed;
}

.bg-section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 18, 24, 0.88), rgba(40, 55, 90, 0.75));
}

.bg-section .container {
  position: relative;
  z-index: 1;
}

.two-col-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .two-col-lists {
    grid-template-columns: 1fr;
  }
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-check li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 74, 82, 0.25);
}

.pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 74, 82, 0.15);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

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

@media (max-width: 700px) {
  .gallery-strip {
    grid-template-columns: 1fr;
  }
}

.gallery-strip figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

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

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .resource-grid {
    grid-template-columns: 1fr;
  }
}

.resource-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.resource-card img {
  object-fit: contain;
  background: var(--surface-2);
  padding: 0.5rem;
}

.resource-card__body {
  padding: 1rem 1.15rem 1.25rem;
  flex: 1;
}

.insurance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .insurance-grid {
    grid-template-columns: 1fr;
  }
}

.insurance-col {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.insurance-col h4 {
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.insurance-col ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 0.75rem;
  font-weight: 600;
  min-height: 1.5em;
}

.form-status--ok {
  color: #1a8f4a;
}

[data-theme="dark"] .form-status--ok {
  color: #5ed18a;
}

.form-status--err {
  color: var(--accent);
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-height: 360px;
  background: var(--surface-2);
}

.map-wrap iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

.footer {
  background: linear-gradient(135deg, #1a2233, #121826);
  color: #e8ecf5;
  padding: 2.75rem 0 2rem;
  margin-top: 3rem;
}

.footer a {
  color: #fff;
}

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

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

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer h5 {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.footer p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.92;
}

.footer-meta {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  opacity: 0.75;
  text-align: center;
}

.video-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.video-links a {
  font-weight: 700;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: linear-gradient(180deg, #2a3350, #1a2233);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .site-nav .nav-dropdown__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .nav-dropdown__panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    margin: 0.15rem 0 0.35rem 0.75rem;
    padding: 0.25rem 0.35rem;
    border: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.22);
    min-width: 0;
  }

  .site-nav .nav-dropdown__item {
    white-space: normal;
  }

  .theme-toggle {
    margin-left: 0;
  }
}
