/* Base styles inspired by gynpraxis-drsara.ch, adapted for Medport Center */
:root {
  --brand: #a28f65;         /* accent from old site */
  --ink: #0f172a;           /* dark text */
  --muted: #475569;         /* secondary text */
  --bg: #ffffff;            /* background */
  --soft: #f7f7f9;          /* soft section */
  --line: #e5e7eb;          /* borders */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}
.brand { display:flex; align-items:center; gap:.6rem; color: inherit; }
.brand-mark { width: 40px; height: 40px; border-radius: 8px; background: var(--brand); display: inline-block; }
.brand-logo { height: 40px; width: auto; display:block; }
.brand-text { font-weight: 700; letter-spacing: .2px; }

nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; }
nav a { color: var(--ink); font-weight: 500; }

.menu-toggle { display:none; background:none; border:0; padding:.5rem; }
.menu-bar{ display:block; width:24px; height:2px; background:var(--ink); margin:5px 0; }

@media (max-width: 820px) {
  nav { position: absolute; top: 60px; left: 0; right: 0; background: #fff; border-bottom:1px solid var(--line); display:none; }
  nav.open { display:block; }
  nav ul { flex-direction: column; padding: .5rem 1rem; }
  .menu-toggle { display:block; }
}

/* Hero */
/* Hero slider inspired by legacy homepage */
.hero-slider {
  position: relative;
  color: #fff;
  background: #0f172a;
  overflow: hidden;
  padding-bottom: 5rem;
}
.hero-slider__viewport {
  position: relative;
  height: clamp(380px, 62vw, 720px);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}
.hero-slide picture,
.hero-slide img {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-slide picture {
  position: absolute;
  inset: 0;
}
.hero-slide img {
  object-fit: cover;
}
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,15,27,.08) 0%, rgba(8,15,27,.4) 70%, rgba(8,15,27,.55) 100%);
  transition: opacity .9s ease;
}
.hero-slider__overlay {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  width: min(94%, 540px);
}
.hero-slider__logo {
  width: clamp(160px, 22vw, 240px);
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.45));
}
.hero-slider__tagline {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.15rem, 2.6vw, 1.8rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 10px 28px rgba(8,15,27,.6);
}
.hero-slider__overlay .btn-group {
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.hero-slider__cta {
  min-width: 170px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hero-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(15,23,42,.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background .2s ease, border-color .2s ease;
}
.hero-slider__nav:hover,
.hero-slider__nav:focus-visible {
  background: rgba(162,143,101,.85);
  border-color: rgba(255,255,255,.8);
  outline: none;
}
.hero-slider__nav--prev { left: clamp(.5rem, 5vw, 1.5rem); }
.hero-slider__nav--next { right: clamp(.5rem, 5vw, 1.5rem); }
.hero-slider__dots {
  position: absolute;
  inset-inline: 0;
  bottom: 1.5rem;
  display: flex;
  justify-content: center;
  gap: .6rem;
  z-index: 3;
}
.hero-slider__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.18);
  padding: 0;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.hero-slider__dot.is-active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.1);
}
.hero-slider__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hero-highlights {
  position: relative;
  z-index: 2;
  margin-top: -4rem;
  margin-bottom: 2rem;
}
.hero-highlights__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.highlight-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 0 30px 80px -40px rgba(15,23,42,.45);
  border: 1px solid rgba(162,143,101,.14);
}
.highlight-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 1rem;
}
.highlight-card h3 {
  margin: 0 0 .6rem;
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand);
}
.highlight-card p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 960px) {
  .hero-slider__viewport { height: clamp(320px, 78vw, 560px); }
  .hero-highlights { margin-top: -2.5rem; }
  .hero-highlights__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .hero-slider__viewport { height: clamp(260px, 88vw, 440px); }
  .hero-slider__overlay { transform: translate(-50%, -40%); gap: .75rem; }
  .hero-slider__cta { min-width: 0; }
}
@media (max-width: 560px) {
  .hero-slider { padding-bottom: 3rem; }
  .hero-highlights { margin-top: 1.5rem; margin-bottom: 1.5rem; }
  .hero-highlights__grid { grid-template-columns: 1fr; }
  .hero-slider__nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slide::after { transition: none; }
}
.hero { padding: 3.5rem 0 2.5rem; }
.hero h1 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(2rem, 4vw, 3rem); line-height:1.2; margin: 0 0 .8rem; }
.lead { font-size: 1.125rem; color: var(--muted); margin: 0 0 1.2rem; }
.btn { display:inline-block; padding:.7rem 1.1rem; border-radius:8px; border:1px solid var(--brand); font-weight:600; }
.btn-primary{ background: var(--brand); color:#fff; border-color:var(--brand); }
.btn-outline{ color: var(--brand); background:#fff; }
.btn-soft{ background:#f3ece7; color:#8a5f45; border-color:#f3ece7; }
.btn-group{ display:flex; flex-wrap:wrap; gap:.6rem; }

/* Image Hero Banner */
.hero-banner{ position: relative; min-height: 420px; display:flex; align-items:center; color:#fff; }
.hero-banner::before{ content:""; position:absolute; inset:0; background:linear-gradient(0deg, rgba(181,126,91,.55), rgba(0,0,0,.35)); }
.hero-banner .hero-banner__inner{ position:relative; z-index:1; text-align:center; }
.hero-banner h2{ font-family:"Playfair Display", Georgia, serif; font-size: clamp(1.8rem,4.5vw,3rem); letter-spacing: .02em; margin:0 0 1rem; color:#fff; }
.hero-banner__grid{ display:grid; grid-template-columns: 1fr 1fr; gap:1rem; margin-top:1rem; }
.hero-banner__grid h3{ margin:.2rem 0; text-transform:uppercase; letter-spacing:.04em; }
.hero-banner__grid p{ margin:0; opacity:.95 }
@media (max-width: 820px){ .hero-banner__grid{ grid-template-columns: 1fr; } }
/* Utility for fixed, cover background images */
.bg-cover-fixed{ background-position:center; background-size:cover; background-repeat:no-repeat; background-attachment:fixed; }

/* Sections */
.band { padding: 2.5rem 0; }
.band-accent{ background: var(--soft); }
.two-col { display:grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items:center; }
@media (max-width: 900px){ .two-col { grid-template-columns: 1fr; } }

.features { display:grid; grid-template-columns: repeat(3, 1fr); gap:1rem; }
@media (max-width: 900px){ .features { grid-template-columns: 1fr; } }
.card { border:1px solid var(--line); border-radius:12px; padding:1rem; background:#fff; }
.card h3 { margin-top:0; }
.grid-2,
.grid-3 {
  display: grid;
  gap: 1.5rem;
}

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

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* Uniform portraits in team grids */
.grid-2 .card > img{ width:100%; aspect-ratio:1/1; object-fit:cover; display:block; border:0 !important; margin:0 !important; border-radius:12px 12px 0 0 !important; }
/* Appointment cards */
.appointment-hero { text-align: center; padding: 3.5rem 0 2.5rem; }
.appointment-hero h1 { margin: 0 0 1rem; font-family: "Playfair Display", Georgia, serif; font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
.appointment-hero p { margin: 0 auto 1.5rem; max-width: 640px; }
.appointment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 960px){ .appointment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px){ .appointment-grid { grid-template-columns: 1fr; } }
.appointment-card { border-radius: 18px; border: 1px solid rgba(162,143,101,.18); padding: 1.9rem; background: #fff; box-shadow: 0 24px 48px -32px rgba(15,23,42,.35); display: flex; flex-direction: column; gap: .9rem; }
.appointment-card h2 { margin: 0; font-size: 1.4rem; }
.appointment-card p { margin: 0; color: var(--muted); }
.appointment-meta { display: flex; flex-wrap: wrap; gap: .6rem; }
.appointment-meta .pill { background: rgba(162,143,101,.1); border: 0; color: var(--ink); font-size: .85rem; font-weight: 600; }
.appointment-card .btn-group { gap: .5rem; justify-content: flex-start; flex-wrap: wrap; }
.appointment-card .btn { min-width: 0; }
.appointment-card .small { font-size: .9rem; }
.appointment-support__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 900px){ .appointment-support__grid { grid-template-columns: 1fr; } }
.appointment-summary .list-plain { margin: .6rem 0 1.2rem; }
.appointment-summary .list-plain li { margin:.3rem 0; }
.appointment-summary strong { color: var(--brand); font-weight:600; }
.appointment-tips ul { margin: .6rem 0 0; }\n.appointment-card footer { margin-top: auto; font-size: .9rem; color: var(--muted); }
.appointment-note { background: linear-gradient(135deg, rgba(162,143,101,.12), rgba(255,255,255,.95)); border: 1px solid rgba(162,143,101,.3); }
.appointment-note strong { color: var(--brand); }
.appointment-contact { display: flex; flex-direction: column; gap: .4rem; }
.appointment-contact a { font-weight: 600; }

/* Doctor cards */
.card.doctor{ padding:0; overflow:hidden; width:100%; }
.doctor-link{ display:block; color:inherit; text-decoration:none; }
.card.doctor .info{ padding: .8rem 1rem 1rem; }
.portrait{ width:100%; aspect-ratio:1 / 1; object-fit:cover; display:block; transition: transform .25s ease, filter .25s ease; }
.card.doctor{ cursor:pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card.doctor:hover, .card.doctor:focus-within{ transform: translateY(-2px); border-color: var(--brand); box-shadow: 0 6px 18px rgba(0,0,0,.08), 0 0 0 2px rgba(162,143,101,.15) inset; }
.card.doctor:hover .portrait, .card.doctor:focus-within .portrait{ transform: scale(1.03); filter: saturate(1.06); }
.card.doctor:hover h2, .card.doctor:focus-within h2{ color: var(--brand); }\r\n.doctor-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; align-items:stretch; }
/* Four-up grid for simple specialties */
.grid-4 { display:grid; grid-template-columns: repeat(4,1fr); gap:1rem; }
@media (max-width: 900px){ .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px){ .grid-4 { grid-template-columns: 1fr; } }
@media (max-width: 900px){ .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.list-plain { list-style:none; padding:0; margin:.2rem 0; }
.list-plain li { margin:.3rem 0; }
.muted { color: var(--muted); }
.small { font-size:.9rem; }

.check { padding-left: 1.1rem; }
.check li { margin:.25rem 0; }

/* Footer */
.site-footer { background:#0f172a; color:#e5e7eb; padding:2rem 0; margin-top:2rem; }
.footer-grid{ display:grid; grid-template-columns: 1.1fr 1fr 1fr; gap:2rem; }
.footer-brand{ display:flex; align-items:center; gap:.6rem; }
.site-footer a { color:#e5e7eb; }
.fineprint{ border-top:1px solid rgba(255,255,255,.1); margin-top:1.5rem; padding-top:1rem; font-size:.85rem; color:#cbd5e1; }

/* Utilities */
.pill { display:inline-block; background:#fff; border:1px solid var(--line); padding:.35rem .6rem; border-radius:999px; font-size:.9rem; }
.icon { width:1em; height:1em; vertical-align:-0.15em; fill: currentColor; }

/* Simple specialty chips */
.chip { display:flex; align-items:center; justify-content:center; gap:.5rem; background:#fff; border:1px solid var(--line); border-radius:12px; padding:.6rem .9rem; font-weight:600; }
.chip img{ width:64px; height:64px; object-fit:contain; display:block; }
@media (max-width: 540px){ .chip img{ width:48px; height:48px; } }

/* Map embed */
.map-embed{ position:relative; padding-bottom:56.25%; height:0; min-height:340px; overflow:hidden; border-radius:12px; border:1px solid var(--line); background:#f8fafc }
.map-embed iframe{ position:absolute; inset:0; width:100%; height:100%; border:0 }
.simple-specialties { margin: .6rem 0 1.2rem; }

.wm{ position:relative; }




