:root {
  --bg: #eef4f4;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: #fffdf8;
  --text: #13222c;
  --muted: #566775;
  --line: rgba(19, 34, 44, 0.1);
  --brand: #187a57;
  --brand-deep: #2155c9;
  --accent: #cb3f4f;
  --accent-soft: #f1c4cb;
  --shadow: 0 24px 60px rgba(16, 36, 38, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --page-gutter: clamp(1rem, 2vw, 2rem);
  --shell: calc(100vw - (var(--page-gutter) * 2));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(248, 250, 252, 0.8), rgba(238, 244, 244, 0.86)),
    radial-gradient(circle at top left, rgba(203, 63, 79, 0.12), transparent 28%),
    radial-gradient(circle at right 18%, rgba(33, 85, 201, 0.11), transparent 24%),
    url("./background-medical.svg"),
    linear-gradient(180deg, #f8fbfb 0%, var(--bg) 52%, #e9f0f4 100%);
  background-position: center center, top left, right 18%, center center, center center;
  background-size: auto, auto, auto, cover, auto;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: scroll, scroll, scroll, fixed, scroll;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 70%);
}

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

img {
  max-width: 100%;
}

.shell {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding-inline: var(--page-gutter);
}

.site-header {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 1.1rem var(--page-gutter) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 1rem;
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid rgba(18, 34, 38, 0.08);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(18, 34, 38, 0.08);
}

.brand-mark {
  width: 2.7rem;
  height: 2.7rem;
  margin: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: white;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-name {
  display: block;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-tagline {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.9rem 1.2rem;
  background: rgba(255, 253, 248, 0.86);
  border-radius: 999px;
  border: 1px solid rgba(18, 34, 38, 0.08);
  box-shadow: 0 12px 32px rgba(18, 34, 38, 0.08);
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.contact-list a:hover,
.contact-list a:focus-visible,
.doctor-meta a:hover,
.doctor-meta a:focus-visible {
  color: var(--brand);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: white;
  box-shadow: 0 14px 32px rgba(24, 122, 87, 0.24);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(18, 34, 38, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(340px, 0.95fr);
  gap: 1.4rem;
  padding: 4.8rem 0 2.4rem;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.service-card,
.doctor-card,
.hours-card,
.contact-card,
.faq-item {
  animation: rise-in 620ms ease both;
}

.hero-copy {
  padding: 3.2rem;
  background: linear-gradient(160deg, rgba(255, 253, 248, 0.88), rgba(255, 255, 255, 0.58));
  border: 1px solid rgba(18, 34, 38, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 2rem;
  background: linear-gradient(180deg, rgba(24, 122, 87, 0.94), rgba(33, 85, 201, 0.96));
  color: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -20% -18% auto;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.26), transparent 65%);
}

.eyebrow,
.panel-label,
.card-index,
.doctor-discipline {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 800;
}

.eyebrow,
.card-index,
.doctor-discipline {
  color: var(--accent);
}

.panel-label {
  color: rgba(255, 255, 255, 0.72);
}

h1,
h2,
h3,
h4 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 5rem);
  max-width: 12ch;
  margin-top: 0.9rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 16ch;
}

h3 {
  font-size: 1.55rem;
}

p,
li,
td,
th,
summary,
address {
  line-height: 1.7;
  font-size: 1rem;
}

.hero-intro,
.section-heading p,
.doctor-bio,
.hours-copy p,
.contact-card p,
.faq-item p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.highlights {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.highlights li {
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(18, 34, 38, 0.08);
  border-radius: 18px;
}

.panel-stack {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.panel-stack div {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.panel-stack span {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.72);
}

.panel-stack a {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.section {
  padding: 2.3rem 0;
}

.section-heading {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.service-grid,
.doctor-grid,
.contact-layout {
  display: grid;
  gap: 1.2rem;
}

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

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

.section-heading,
.hours-copy {
  max-width: 72rem;
}

.service-card,
.doctor-card,
.hours-card,
.contact-card,
.faq-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 253, 248, 0.7));
  border: 1px solid rgba(18, 34, 38, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.service-card {
  padding: 1.7rem;
}

.service-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.doctor-card {
  padding: 1.8rem;
  display: grid;
  gap: 1rem;
}

.doctor-heading {
  display: grid;
  gap: 0.35rem;
}

.doctor-credentials {
  color: var(--muted);
  margin: 0;
}

.doctor-meta {
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.doctor-meta p {
  margin: 0.35rem 0;
}

.availability {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(24, 122, 87, 0.08);
}

.availability h4 {
  font-size: 1rem;
  margin-bottom: 0.55rem;
}

.availability ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.hours-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  gap: 1.2rem;
  align-items: start;
}

.hours-copy {
  padding: 0.5rem 0;
}

.emergency-note {
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--accent);
  background: rgba(203, 63, 79, 0.08);
  border-radius: 16px;
}

.hours-card {
  padding: 1.6rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

caption {
  text-align: left;
  font-weight: 700;
  margin-bottom: 1rem;
}

th,
td {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

th {
  text-align: left;
}

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

.contact-card {
  padding: 2rem;
}

.contact-card-primary {
  background: linear-gradient(160deg, var(--brand), var(--brand-deep));
  color: white;
}

.contact-card-primary .eyebrow,
.contact-card-primary p,
.contact-card-primary h2 {
  color: white;
}

.contact-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.contact-list a {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 700;
}

address {
  font-style: normal;
  margin-top: 1rem;
}

.address-note {
  margin-top: 1rem;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  padding: 1.25rem 1.35rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-bottom: 0;
}

.site-footer {
  padding: 2rem 0 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.desktop-booking {
  white-space: nowrap;
}

.service-card:nth-child(2),
.doctor-card:nth-child(2),
.faq-item:nth-child(2) {
  animation-delay: 90ms;
}

.service-card:nth-child(3),
.doctor-card:nth-child(3),
.faq-item:nth-child(3) {
  animation-delay: 160ms;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero,
  .service-grid,
  .doctor-grid,
  .hours-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-panel {
    padding: 2rem;
  }
}

@media (max-width: 780px) {
  .site-header {
    padding-top: 0.7rem;
    position: static;
  }

  .site-nav,
  .desktop-booking {
    width: 100%;
  }

  .site-nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  h1 {
    max-width: 100%;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .hero-copy,
  .hero-panel,
  .service-card,
  .doctor-card,
  .contact-card,
  .hours-card {
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
