:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2937;
  background: #f8fafc;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

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

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

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

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: #334155;
  font-weight: 500;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  min-height: 3.2rem;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  font-weight: 600;
  border: none;
  background-clip: padding-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: #0f766e;
  color: white;
}

.button-secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.hero {
  padding: 4rem 0 2rem;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: #0f766e;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 3.8vw, 4.25rem);
  line-height: 1.03;
  margin: 0;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 44rem;
  margin: 1.5rem 0 0;
  color: #475569;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-panel {
  display: flex;
  justify-content: center;
}

.panel-card {
  background: white;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.06);
  border-radius: 1.5rem;
  padding: 2rem;
}

.panel-card h2 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
}

.section {
  padding: 4rem 0;
}

.section-heading h2 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(2rem, 2.5vw, 2.75rem);
}

.section-heading p {
  margin: 0;
  max-width: 42rem;
  color: #475569;
}

.cards-grid,
.faq-grid,
.hours-grid {
  display: grid;
  gap: 1.5rem;
}

.cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.5rem;
}

.card {
  background: white;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.06);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.card p {
  margin: 0;
  color: #475569;
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2rem;
}

.faq-item {
  background: white;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.2rem;
  padding: 1.75rem;
}

.faq-item h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.faq-item p {
  margin: 0;
  color: #475569;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  grid-template-areas:
    "contact hours"
    "map map";
  gap: 2rem;
}

.contact-card {
  grid-area: contact;
}

.hours-card {
  grid-area: hours;
}

.map-card {
  grid-area: map;
  background: white;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.06);
}

.contact-card,
.hours-card {
  background: white;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.06);
}

.contact-card h2,
.hours-card h3 {
  margin-top: 0;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  color: #334155;
}

.contact-list a {
  color: #0f766e;
}

.hours-grid {
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.hours-grid div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #475569;
}

.map-embed {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  margin-bottom: 1.5rem;
}

.map-embed iframe {
  width: 100%;
  min-height: 260px;
  aspect-ratio: 16 / 9;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: white;
  color: #475569;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 0;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 -12px 32px rgba(15, 23, 42, 0.12);
}

.cookie-banner-copy p {
  margin: 0;
  color: #f8fafc;
  max-width: 60rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-banner-hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-banner,
.footer-inner {
  backface-visibility: hidden;
}

@media (max-width: 900px) {
  .hero-content,
  .contact-inner,
  .cards-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    grid-template-areas:
      "contact"
      "hours"
      "map";
  }

  .contact-card {
    grid-area: contact;
  }

  .hours-card {
    grid-area: hours;
  }

  .map-card {
    grid-area: map;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .modal-card {
    width: 100%;
    padding: 1.75rem;
    max-height: 90vh;
  }
}

@media (max-width: 640px) {
  .site-nav {
    gap: 1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .hero {
    padding-top: 3rem;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .modal-overlay {
    align-items: flex-end;
    justify-content: center;
    padding: 0.5rem 0 0;
  }

  .modal-card {
    width: min(100%, 100%);
    padding: 1.25rem;
    border-radius: 1.25rem 1.25rem 0 0;
    margin: 0;
    max-height: 95vh;
  }

  .modal-close {
    top: 0.75rem;
    right: 0.75rem;
  }

  .booking-contact {
    gap: 0.85rem;
  }

  .booking-contact .button-primary {
    width: 100%;
  }

  .booking-contact ul {
    padding-left: 1rem;
  }
}

.toast-notification {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.95);
  color: white;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1001;
  max-width: min(92vw, 420px);
  text-align: center;
}

.toast-notification.toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 50;
}

.modal-overlay.modal-open {
  display: flex;
}

.modal-card {
  width: min(560px, 100%);
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18);
  position: relative;
  max-height: min(90vh, 720px);
  overflow-y: auto;
}

.modal-card h2 {
  margin-top: 0;
}

.modal-lead {
  margin: 0.75rem 0 1.25rem;
  color: #475569;
  line-height: 1.75;
}

.booking-contact {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.booking-contact p,
.booking-contact ul {
  margin: 0;
}

.booking-contact ul {
  padding-left: 1.35rem;
  color: #475569;
}

.booking-contact li {
  margin-bottom: 0.5rem;
}

.button-primary,
.button-secondary {
  min-width: 0;
}

.modal-card::-webkit-scrollbar {
  width: 10px;
}

.modal-card::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.15);
  border-radius: 999px;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.modal-card h2 {
  margin-top: 0;
}

#appointment-form {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

#appointment-form label {
  font-weight: 600;
  color: #0f172a;
}

#appointment-form input {
  width: 100%;
  padding: 1rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 0.9rem;
  font-size: 1rem;
  color: #0f172a;
}

#appointment-form input.invalid {
  border-color: #dc2626;
  background: #fef2f2;
}

.field-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: #dc2626;
}

.field-error:empty {
  display: none;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.85rem 0 0.85rem;
}

.checkbox-row input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0.15rem 0 0;
}

.checkbox-row label {
  flex: 1;
  margin: 0;
  font-weight: normal;
  color: #475569;
}
