@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700&display=swap');

:root {
  --green: #364332;
  --deep: #242f22;
  --lime: #acca2f;
  --cream: #f6f6ee;
  --sage: #e8eddb;
  --ink: #242a26;
  --muted: #535e52;
  --line: #d5ddc9;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.65 "DM Sans", Arial, sans-serif; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #729000; outline-offset: 4px; }
.wrap { width: min(1160px, 90%); margin-inline: auto; }
.skip { position: absolute; top: -5rem; padding: .6rem 1rem; color: var(--ink); background: white; z-index: 3; }
.skip:focus { top: .5rem; }
.top, .foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding-block: 1rem; }
.brand img { display: block; width: min(240px, 46vw); height: auto; }
nav { display: flex; gap: clamp(1rem, 4vw, 2.75rem); margin-left: auto; }
nav a, .button { text-decoration: none; font-weight: 700; }
nav a:hover { text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; background: var(--lime); color: var(--deep); padding: .7rem 1.15rem; border: 1px solid transparent; border-radius: 5px; text-align: center; }
.button:hover { filter: brightness(1.09); text-decoration: underline; }
.button.green { color: white; background: var(--green); }
.button.outline { color: white; background: transparent; border-color: #b6c3b0; }
.button.light-outline { background: transparent; color: var(--deep); border-color: var(--green); }
h1, h2, h3 { font-family: Manrope, Arial, sans-serif; line-height: 1.13; letter-spacing: -.035em; margin: 0 0 .8em; font-weight: 600; }
h1 { font-size: clamp(2.6rem, 5.5vw, 5.2rem); margin-bottom: .28em; overflow-wrap: break-word; }
.hero-heading { display: flex; flex-direction: column; align-items: flex-start; line-height: .98; }
.hero-location, .hero-title { white-space: nowrap; }
.hero-location { font-size: .82em; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--muted); }
.hero { background: var(--green); color: white; }
.hero-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.25rem, 3vw, 3.5rem); padding-block: clamp(1.25rem, 2.5vw, 2rem); }
.hero p { color: #f0f4ec; font-size: 1.15rem; }
figure { margin: 0; }
figure img { display: block; width: 100%; height: auto; border: 4px solid white; border-radius: 10px; }
.hero figure img { width: auto; max-width: 100%; max-height: clamp(240px, 27vw, 320px); margin-inline: auto; }
figcaption { color: #f0f4ec; margin-top: .45rem; font-size: .875rem; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.welcome, .visit, .booking-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 1rem 4rem; padding-block: clamp(2.5rem, 6vw, 5rem); }
.services { background: var(--sage); padding-block: clamp(2.5rem, 6vw, 5rem); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); gap: .9rem; }
.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.2rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}
.service-card-link { margin-top: auto; color: var(--deep); font-weight: 700; text-decoration: underline; }
.service-card:is(:hover, :focus-visible) {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.service-card:is(:hover, :focus-visible) :is(h3, p, .service-card-link) { color: inherit; }
@media (prefers-reduced-motion: no-preference) {
  .service-card { transition: transform 160ms ease; }
  .service-card:hover { position: relative; z-index: 1; transform: scale(1.06); }
}
address { font-style: normal; margin-bottom: 1.5rem; }
iframe { display: block; width: 100%; height: 340px; border: 1px solid var(--line); border-radius: 8px; background: var(--sage); }
.booking { background: var(--sage); border-top: 1px solid var(--line); }
.booking-layout { align-items: center; }
.booking-layout p { margin-bottom: 0; }
footer { background: var(--green); color: white; }
.foot { padding-block: 1.6rem; align-items: start; flex-wrap: wrap; }
.footer-clinic { display: grid; justify-items: start; gap: .25rem; min-width: 0; }
.footer-clinic address { margin: 0; }
@media (max-width: 730px) {
  .hero-layout, .welcome, .visit, .booking-layout { grid-template-columns: 1fr; }
  .top { flex-wrap: wrap; }
  nav { order: 3; flex-basis: 100%; margin: 0; }
}
@media (max-width: 365px) {
  .top { gap: .65rem; }
  .top-call { padding-inline: .5rem; }
}

.header-contact {
  display: grid;
  flex-shrink: 0;
  gap: .4rem;
}
.header-contact .button { padding-block: .45rem; }
.header-contact .header-booking {
  background: var(--green);
  color: white;
}
.copyright {
  padding-block: .85rem;
  border-top: 1px solid #b6c3b0;
  color: white;
  margin: 0 auto;
}
@media (max-width: 730px) {
  .top .brand { flex: 1 1 0; min-width: 0; }
  .top .brand img { max-width: 100%; }
  .header-contact .button { padding-inline: .65rem; }
}

.floating-booking {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 2;
  max-width: calc(100% - 2rem);
  min-height: 48px;
  box-shadow: 0 4px 16px rgb(36 47 34 / 30%);
}
footer { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }

.detail-page { max-width: 780px; min-height: 48vh; padding-block: clamp(2rem, 6vw, 5rem); }
.detail-page h1 { font-size: clamp(2rem, 6vw, 3.5rem); margin: .55em 0 .45em; }
.detail-page section + section { margin-top: 2.5rem; }
.detail-page .eyebrow { display: block; margin-top: 1rem; }
.detail-page img { max-width: 100%; height: auto; }

/* Keep clinic navigation and contact actions visible while scrolling. */
html { scroll-padding-top: var(--clinic-header-offset, 8rem); }
.clinic-header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.skip:focus {
  position: fixed;
  z-index: 5;
}
