/* Lundeen Animal Hospital
   Palette: black and white from the logo, dusty blush, latte, mocha */
:root {
  --black: #000000;
  --white: #FFFFFF;
  --blush: #F4DCD6;
  --blush-2: #EBC7BE;
  --latte: #E8D9CB;
  --stone: #F4EFEA;
  --mocha: #8A6A5A;
  --text: #2A2320;
  --muted: #5E534E;
  --rule: #DCCBBE;

  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.1rem, 1.4rem + 2.6vw, 3rem);
  --step-4: clamp(2.6rem, 1.5rem + 4.4vw, 4.6rem);

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img, iframe, svg { display: block; max-width: 100%; }
a { color: var(--black); text-decoration-color: var(--mocha); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--black); }
:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.015em; color: var(--black); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--black); color: var(--white); padding: .6rem 1rem; z-index: 20; font-weight: 700; }
.skip:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .7rem 1.4rem;
  font-family: var(--body); font-weight: 700; font-size: var(--step-0);
  text-decoration: none; border-radius: 999px; border: 2px solid var(--black);
  transition: background-color .15s ease, color .15s ease;
}
.btn--solid { background: var(--black); color: var(--white); }
.btn--solid:hover { background: var(--white); color: var(--black); }
.btn--line { background: transparent; color: var(--black); }
.btn--line:hover { background: var(--black); color: var(--white); }

/* Header */
.top { background: var(--white); border-bottom: 1px solid var(--rule); }
.top__inner { display: flex; align-items: center; gap: 2rem; min-height: 6rem; padding-block: 1rem; }
.logo { display: block; flex: none; }
.logo img { height: 4rem; width: auto; }
.top__nav { display: flex; gap: 1.6rem; margin-left: auto; }
.top__nav a { color: var(--black); text-decoration: none; font-weight: 700; }
.top__nav a:hover { text-decoration: underline; text-decoration-color: var(--mocha); }

/* Hero */
.hero { background: var(--latte); padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.hero h1 { font-size: var(--step-4); font-weight: 800; max-width: 14ch; }
.lede { font-size: var(--step-1); line-height: 1.5; max-width: 36ch; margin: 1.5rem 0 2rem; color: var(--text); }
.lede a { font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__phone { margin: 1.4rem 0 0; }
.hero__phone a { font-weight: 700; }

/* Hours board */
.board {
  background: var(--white); color: var(--text);
  border: 2px solid var(--black); border-radius: 10px;
  padding: 1.6rem 1.6rem 1.3rem;
  box-shadow: 8px 8px 0 var(--black);
}
.board__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.board h2 { font-size: var(--step-2); }
.board__status { margin: 0; font-weight: 700; font-size: var(--step--1); color: var(--muted); display: flex; align-items: center; gap: .45rem; }
.board__status::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--rule); flex: none; }
.board__status.is-open { color: #1F6B42; }
.board__status.is-open::before { background: #34A065; box-shadow: 0 0 0 4px #D5EEDF; }
.board__status.is-closed { color: #8A3B2A; }
.board__status.is-closed::before { background: #C06A55; }
.board__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.board__table th, .board__table td { padding: .55rem .6rem; border-top: 1px solid var(--rule); text-align: left; font-weight: 400; }
.board__table td { text-align: right; }
.board__table tr.is-today th, .board__table tr.is-today td { font-weight: 700; color: var(--black); background: var(--blush); }
.board__table tr.is-today th { border-radius: 4px 0 0 4px; }
.board__table tr.is-today td { border-radius: 0 4px 4px 0; }
.board__table tr.is-today th, .board__table tr.is-today td,
.board__table tr.is-today + tr th, .board__table tr.is-today + tr td { border-top-color: transparent; }
.board__foot { margin: .9rem 0 0; padding-top: .9rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: var(--step--1); }

.board__emerg { margin: .6rem 0 0; font-size: var(--step--1); font-weight: 700; color: var(--black); }

/* Sections */
.care, .doctor, .visit { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-title { font-size: var(--step-3); font-weight: 700; max-width: 20ch; }

.care__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: end; }
.care__intro { margin: 0; color: var(--muted); font-size: var(--step-1); line-height: 1.45; max-width: 36ch; }
.care__more { margin-top: 3rem; }
.care__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 2.2rem 3rem; margin: 2.5rem 0 0; }
.care__list div { border-top: 2px solid var(--black); padding-top: 1rem; }
.care__list dt { font-family: var(--display); font-weight: 700; font-size: var(--step-1); line-height: 1.2; color: var(--black); }
.care__list dd { margin: .5rem 0 0; color: var(--muted); max-width: 40ch; }

.doctor { background: var(--stone); }
.doctor__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.doctor__photo { margin: 0; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--latte); }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor__placeholder { width: 100%; height: 100%; display: grid; place-items: center; }
.doctor__placeholder img { width: 46%; height: auto; opacity: .6; }
.doctor__copy p { max-width: 56ch; margin: 1.2rem 0 0; }

.visit__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
address { font-style: normal; margin: 1.6rem 0; font-size: var(--step-1); line-height: 1.45; }
address strong { color: var(--black); }
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-list li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--rule); }
.contact-list li:last-child { border-bottom: 1px solid var(--rule); }
.contact-list span { color: var(--muted); }
.contact-list a { overflow-wrap: anywhere; }
.visit__media { display: grid; gap: 1rem; align-content: start; }
.visit__photo { width: 100%; height: auto; border: 2px solid var(--black); border-radius: 10px; }
.visit__note { margin: -0.6rem 0 1.6rem; color: var(--muted); }
.visit__map { border-radius: 10px; overflow: hidden; background: var(--stone); border: 2px solid var(--black); }
.visit__map iframe { width: 100%; height: 16rem; border: 0; }

.pay { margin: 0 0 2rem; }
.pay h3 { font-size: var(--step-1); line-height: 1.2; }
.pay p { margin: .5rem 0 0; color: var(--muted); max-width: 44ch; }

/* Emergencies */
.emerg { background: var(--black); color: #E9E2DE; padding-block: clamp(3rem, 7vw, 5.5rem); }
.emerg .section-title { color: var(--white); }
.emerg__lede { font-size: var(--step-1); line-height: 1.5; max-width: 48ch; text-wrap: pretty; margin: 1rem 0 2.2rem; color: var(--white); }
.emerg__day { max-width: 60ch; margin: -1.2rem 0 2.2rem; color: #E9E2DE; }
.emerg__day a { color: var(--white); font-weight: 700; text-decoration-color: var(--latte); }
.emerg__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.2rem; }
.emerg__card { background: var(--white); color: var(--text); border-radius: 10px; padding: 1.5rem; }
.emerg__card h3 { font-size: var(--step-1); line-height: 1.2; }
.emerg__card p { margin: .7rem 0 0; }
.emerg__phone { font-size: var(--step-1); font-weight: 700; }
.emerg__phone a { text-decoration-thickness: 2px; }
.emerg__card .btn { margin-top: 1.1rem; }
.emerg :focus-visible { outline-color: var(--latte); }

/* Footer */
.foot { background: var(--black); color: #E9E2DE; padding-block: 2.5rem; font-size: var(--step--1); }
.foot__inner { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1.5rem 2rem; }
.foot__logo { grid-column: 1 / -1; width: 8.75rem; height: auto; }
.foot p { margin: 0; }
.foot a { color: var(--white); text-decoration-color: var(--blush-2); margin-left: 1.2rem; }
.foot :focus-visible { outline-color: var(--blush); }

/* Mobile quick-action dock */
.dock { display: none; }

@media (max-width: 52rem) {
  .top__nav { display: none; }
  .top__call { margin-left: auto; }
  .logo img { height: 3.25rem; }
  .hero__grid, .doctor__grid, .visit__grid, .care__head, .svc { grid-template-columns: 1fr; }
  .doctor__photo { max-width: 20rem; }
}

@media (max-width: 36rem) {
  .top__call { display: none; }
  .hero .actions { display: none; }
  .board { box-shadow: 5px 5px 0 var(--black); }
  .dock {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; inset: auto 0 0 0; z-index: 10;
    background: var(--black);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .dock a {
    display: flex; align-items: center; justify-content: center; min-height: 3.6rem;
    color: var(--white); font-weight: 700; text-decoration: none;
  }
  .dock a:first-child { background: var(--latte); color: var(--black); }
  .dock a + a { border-left: 1px solid #3A3330; }
  .dock :focus-visible { outline-color: var(--blush); outline-offset: -4px; }
  body { padding-bottom: 3.6rem; }
  .foot__inner { grid-template-columns: 1fr; }
  .foot a { margin: 0 1.2rem 0 0; }
}

/* Services page */
.page-head { background: var(--latte); padding-block: clamp(2.5rem, 6vw, 5rem); }
.page-head h1 { font-size: var(--step-4); font-weight: 800; }
.page-head .lede { margin-bottom: 0; max-width: 44ch; }
.svc-list { padding-block: clamp(2.5rem, 6vw, 5rem); }
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 1rem 3rem; padding-block: 2.2rem; border-top: 2px solid var(--black); }
.svc:last-child { border-bottom: 2px solid var(--black); }
.svc h2 { font-size: var(--step-2); line-height: 1.15; }
.svc p { margin: 0 0 .8rem; max-width: 60ch; }
.svc p:last-child { margin-bottom: 0; }
.svc ul { margin: .2rem 0 0; padding-left: 1.2rem; max-width: 60ch; }
.svc li { margin-bottom: .3rem; }
.svc li::marker { color: var(--mocha); }
.cta { background: var(--stone); padding-block: clamp(3rem, 7vw, 5rem); }
.cta h2 { font-size: var(--step-3); margin-bottom: 1.5rem; }
.cta__emerg { margin: 1.5rem 0 0; font-weight: 700; color: var(--black); }
.top__nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--mocha); text-decoration-thickness: 2px; }
