:root {
  --ink: #10242b;
  --muted: #5d7077;
  --line: #d9e5e8;
  --paper: #ffffff;
  --soft: #f3f8f7;
  --teal-900: #123f49;
  --teal-800: #0b4d5a;
  --teal-700: #0a6370;
  --teal-100: #e4f4f2;
  --green: #0d7d5b;
  --amber: #d7a44b;
  --coral: #ba5b4c;
  --shadow: 0 18px 45px rgba(16, 36, 43, .12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  letter-spacing: 0;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.skip-link:focus {
  left: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(217, 229, 232, .9);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--teal-800);
  box-shadow: 0 10px 20px rgba(11, 77, 90, .22);
}

.brand-mark svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
}

.brand-text span {
  font-size: 18px;
  font-weight: 800;
  color: var(--teal-800);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  color: #29464e;
}

.main-nav a:hover {
  color: var(--teal-700);
}

.icon-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: auto;
  background: var(--teal-800);
  content: "";
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(4px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

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

.btn-primary {
  background: var(--teal-800);
  color: #fff;
  box-shadow: 0 12px 26px rgba(11, 77, 90, .22);
}

.btn-primary:hover {
  background: var(--teal-700);
}

.btn-secondary {
  background: #f3f7f7;
  color: var(--ink);
  border-color: var(--line);
}

.btn-light {
  background: #fff;
  color: var(--teal-800);
  border-color: rgba(255, 255, 255, .75);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .56);
}

.btn-large {
  min-height: 52px;
  padding-inline: 22px;
}

.btn-full {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #eef6f5;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .92) 40%, rgba(255, 255, 255, .30) 68%, rgba(255, 255, 255, .08) 100%),
    url("assets/hero-clinic.png");
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 92px 0 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-700);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow-light {
  color: #bfe8e2;
}

.hero h1 {
  max-width: 680px;
  margin: 0 0 18px;
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 620px;
  margin: 0;
  color: #29464e;
  font-size: 20px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 780px;
  margin: 36px 0 0;
}

.hero-facts div {
  padding: 15px;
  border: 1px solid rgba(217, 229, 232, .9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .86);
}

.hero-facts dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.quick-band {
  background: var(--teal-800);
  color: #fff;
}

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

.quick-grid a {
  min-height: 106px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 24px;
  border-left: 1px solid rgba(255, 255, 255, .18);
}

.quick-grid a:first-child {
  border-left: 0;
}

.quick-grid span {
  color: #bfe8e2;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-grid strong {
  font-size: 18px;
}

.section {
  padding: 84px 0;
}

.section-soft {
  background: var(--soft);
}

.section-intro {
  padding-top: 72px;
}

.intro-grid,
.split,
.tech-layout,
.booking-grid,
.contact-layout,
.faq-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.intro-copy {
  color: #38545c;
  font-size: 18px;
}

.intro-copy p:first-child {
  margin-top: 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-head h2,
.booking-copy h2,
.contact-layout h2,
.tech-layout h2 {
  margin: 0 0 14px;
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: 0;
}

.section-head p,
.tech-layout p,
.booking-copy p {
  color: #38545c;
  font-size: 17px;
}

.section-teal {
  background: var(--teal-900);
  color: #fff;
}

.section-teal p {
  color: #d6eeeb;
}

.service-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--teal-800);
  padding: 9px 14px;
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  background: var(--teal-800);
  color: #fff;
  border-color: var(--teal-800);
}

.service-panel[hidden] {
  display: none;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card,
.doctor-card,
.steps article,
.faq-list details,
.admin-panel,
.request-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(16, 36, 43, .06);
}

.service-card {
  padding: 22px;
}

.service-card h3,
.doctor-card h3,
.steps h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: 0;
}

.service-card p,
.doctor-card p,
.steps p {
  margin: 0;
  color: #526a72;
}

.more-list {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.more-list summary {
  font-weight: 800;
  color: var(--teal-800);
  cursor: pointer;
}

.more-list ul {
  margin: 14px 0 0;
  columns: 2;
  color: #526a72;
}

.doctor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.doctor-card {
  padding: 24px;
}

.doctor-avatar {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--teal-100);
  color: var(--teal-800);
  font-size: 24px;
  font-weight: 800;
}

.doctor-card a {
  display: inline-block;
  margin-top: 18px;
  color: var(--teal-700);
  font-weight: 800;
}

.tech-layout {
  align-items: center;
}

.tech-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.tech-list div {
  min-height: 126px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
}

.tech-list strong {
  display: block;
  margin-bottom: 14px;
  color: #fff;
  font-size: 28px;
}

.tech-list span {
  color: #d6eeeb;
  font-weight: 700;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.steps article {
  padding: 22px;
}

.steps span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: #f6ead3;
  color: #7c5720;
  font-weight: 800;
}

.booking-section {
  background: linear-gradient(135deg, var(--teal-900), #174d45);
  color: #fff;
}

.booking-grid {
  align-items: start;
}

.booking-copy p {
  color: #d6eeeb;
}

.privacy-note {
  display: grid;
  gap: 4px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
}

.privacy-note span {
  color: #e9f6f4;
}

.booking-form {
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.booking-form h3 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.18;
}

.hidden-field {
  display: none;
}

.booking-form > p {
  margin: 0 0 20px;
  color: var(--muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.booking-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: #29464e;
  font-size: 13px;
  font-weight: 800;
}

.booking-form input,
.booking-form select,
.booking-form textarea,
.schedule-editor textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 12px;
  outline: none;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus,
.schedule-editor textarea:focus {
  border-color: var(--teal-700);
  box-shadow: 0 0 0 3px rgba(10, 99, 112, .13);
}

.consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.consent input {
  width: auto;
  margin-top: 2px;
}

.consent a {
  color: var(--teal-700);
  text-decoration: underline;
}

.form-disclaimer {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.form-success {
  margin-top: 12px;
  color: var(--green);
  font-weight: 800;
}

.form-success a {
  color: var(--teal-700);
  text-decoration: underline;
}

.faq-layout {
  grid-template-columns: .7fr 1.3fr;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin: 12px 0 0;
  color: #526a72;
}

.contact-layout {
  align-items: stretch;
}

address {
  margin: 20px 0 0;
  font-style: normal;
  color: #38545c;
}

address a {
  color: var(--teal-700);
  font-weight: 800;
}

.hours-box {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.hours-box h3 {
  margin: 0 0 10px;
}

.hours-box p {
  margin: 0 0 12px;
  color: #38545c;
}

.hours-box p:last-child {
  margin-bottom: 0;
}

.contact-actions.compact {
  margin-top: 24px;
}

.map-box {
  min-height: 360px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  overflow: hidden;
  text-align: center;
  padding: 24px;
}

.map-box h3 {
  margin: 0 0 8px;
}

.map-box p {
  max-width: 430px;
  margin: 0 auto 18px;
  color: #526a72;
}

.map-box iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.footer {
  padding: 40px 0 22px;
  background: #0d242b;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
}

.footer p,
.legal-note {
  color: #b9ced2;
}

.footer nav {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.footer a,
.footer button {
  color: #e7f3f3;
  background: transparent;
  border: 0;
  padding: 0;
  font-weight: 700;
  cursor: pointer;
}

.legal-note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 13px;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: none;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.cookie-banner.show {
  display: grid;
}

.cookie-banner p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.content-page {
  max-width: 920px;
  padding: 68px 0;
}

.content-page h1 {
  margin: 0 0 18px;
  font-size: 44px;
  line-height: 1.08;
}

.content-page h2 {
  margin-top: 36px;
}

.content-page h3 {
  margin-top: 24px;
}

.content-page p,
.content-page li {
  color: #38545c;
}

.content-page a {
  color: var(--teal-700);
  font-weight: 800;
}

.notice {
  padding: 18px;
  border: 1px solid #ead09d;
  border-radius: var(--radius);
  background: #fff7e5;
}

.admin-body {
  background: var(--soft);
}

.admin-main {
  padding: 48px 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 18px;
}

.admin-panel {
  padding: 22px;
}

.schedule-editor textarea {
  min-height: 180px;
  margin-bottom: 12px;
}

.request-list {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.request-item {
  padding: 16px;
}

.request-item h3 {
  margin: 8px 0;
}

.status {
  display: inline-block;
  padding: 4px 9px;
  border-radius: var(--radius);
  background: #fff0d3;
  color: #744f16;
  font-size: 12px;
  font-weight: 800;
}

.request-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.request-actions button {
  border: 0;
  border-radius: var(--radius);
  padding: 8px 10px;
  font-weight: 800;
  cursor: pointer;
}

.approve {
  background: #e5f7ee;
  color: #086243;
}

.reject {
  background: #fee9e5;
  color: #923225;
}

.empty {
  color: var(--muted);
}

@media (max-width: 980px) {
  .main-nav,
  .nav-cta {
    display: none;
  }

  .icon-button {
    display: grid;
    place-items: center;
  }

  .main-nav.open {
    display: grid;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    gap: 0;
    padding: 8px 20px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(16, 36, 43, .08);
  }

  .main-nav.open a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero h1 {
    font-size: 46px;
  }

  .intro-grid,
  .split,
  .tech-layout,
  .booking-grid,
  .contact-layout,
  .faq-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .quick-grid a {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
  }

  .quick-grid a:first-child {
    border-top: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer nav {
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .nav-wrap {
    min-height: 68px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text strong {
    font-size: 12px;
  }

  .brand-text span {
    font-size: 16px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-media {
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .94) 48%, rgba(255, 255, 255, .32) 100%),
      url("assets/hero-clinic.png");
    background-position: 60% center;
  }

  .hero-content {
    padding: 62px 0 46px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-lead,
  .intro-copy {
    font-size: 17px;
  }

  .hero-actions .btn,
  .contact-actions .btn,
  .cookie-actions .btn {
    width: 100%;
  }

  .hero-facts,
  .card-grid,
  .doctor-grid,
  .tech-list,
  .steps,
  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }

  .section-head h2,
  .booking-copy h2,
  .contact-layout h2,
  .tech-layout h2 {
    font-size: 30px;
  }

  .more-list ul {
    columns: 1;
  }

  .booking-form {
    padding: 20px;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    grid-template-columns: 1fr;
  }

  .content-page h1 {
    font-size: 34px;
  }
}
