/* ==========================================================================
   Monett Veterinary Hospital — reviews.monettvet.com
   Brand tokens sampled from monettvet.com:
     red #C5002C · black #000000 · section gray #E8E8E8
     display Marcellus · text Outfit
   ========================================================================== */

:root {
  --black: #000000;
  --ink: #131313;
  --red: #c5002c;
  --red-deep: #96001f;
  --shell: #e8e8e8;
  --paper: #ffffff;
  --rule: #d3d3d3;
  --muted: #55565a;
  --star-off: #c9c9c9;

  --display: "Marcellus", "Times New Roman", serif;
  --text: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --shell-width: 1200px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  /* Black, so any overscroll past the footer reads as footer, not as a
     stray strip of section gray. Sections set their own backgrounds. */
  background: var(--black);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Shared: eyebrow — a short red rule, then tracked-out caps.
   The only structural marker used on the page. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--red);
  flex: none;
}

.eyebrow--light { color: var(--paper); }

/* --------------------------------------------------------------------------
   Utility bar + masthead (mirrors the structure of monettvet.com)
   -------------------------------------------------------------------------- */

.utility {
  background: var(--red);
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 600;
}

.utility__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 0.5rem;
}

.utility a { text-decoration: none; }
.utility a:hover { text-decoration: underline; }

.masthead { background: var(--black); }

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.masthead__logo { display: block; flex: none; }
.masthead__logo img { width: 168px; }

.masthead__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.75rem;
}

.masthead__link {
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.masthead__link:hover { color: var(--red); }

/* Square buttons, matching the brand's CTA treatment */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.5rem;
  background: var(--red);
  color: var(--paper);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  transition: background-color 0.2s ease;
}

.btn:hover { background: var(--red-deep); }

.btn .icon {
  width: 24px;
  height: 12px;
  transition: transform 0.2s ease;
}

.btn:hover .icon { transform: translateX(3px); }

.btn--sm { padding: 0.7rem 1.15rem; font-size: 0.78rem; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { background: var(--paper); }

.hero__inner {
  max-width: 46rem;
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero__rule {
  width: 100%;
  max-width: 32rem;
  height: 1px;
  margin: clamp(1.5rem, 4vw, 2.25rem) 0;
  border: 0;
  background: var(--rule);
}

.hero p {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--muted);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Trust band — the aggregate, on brand red (echoes the site's hero band)
   -------------------------------------------------------------------------- */

.band {
  background: var(--red);
  color: var(--paper);
}

.band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem clamp(1.5rem, 4vw, 3.5rem);
  padding-block: 1.5rem;
}

.band__item {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.band__figure {
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1;
}

.band__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.band .stars {
  --star-fill: #ffffff;
  --star-empty: rgba(255, 255, 255, 0.4);
  align-self: center;
}

.band .stars .star { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Stars
   -------------------------------------------------------------------------- */

.stars {
  --star-fill: var(--red);
  --star-empty: var(--star-off);
  display: flex;
  gap: 3px;
  flex: none;
}

.star {
  width: 15px;
  height: 15px;
  fill: var(--star-fill);
}

.star--off { fill: var(--star-empty); }

/* --------------------------------------------------------------------------
   The wall
   -------------------------------------------------------------------------- */

.wall {
  background: var(--shell);
  padding-block: clamp(3rem, 7vw, 4.5rem);
}

.wall__head { margin-bottom: clamp(2rem, 5vw, 3rem); }

.wall__head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  text-wrap: balance;
}

/* Pure-CSS masonry. Cards keep their natural height and never split. */
.wall__grid {
  columns: 1;
  column-gap: 1.5rem;
}

@media (min-width: 40rem) { .wall__grid { columns: 2; } }
@media (min-width: 62rem) { .wall__grid { columns: 3; } }

.card {
  position: relative;
  break-inside: avoid;
  margin: 0 0 1.5rem;
  padding: 1.75rem 1.6rem 1.4rem;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 24px -16px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

/* Signature detail: a red stub at the top-left of every card that draws
   itself across the full width when the card is engaged. */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 40px;
  background: var(--red);
  transition: width 0.28s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.07), 0 18px 34px -18px rgba(0, 0, 0, 0.4);
}

.card:hover::before,
.card:focus-within::before { width: 100%; }

.card .stars { margin-bottom: 1.1rem; }

.card__quote { margin: 0; quotes: none; }

/* The lead line — each review opens in its own voice, set in the display
   face. This is the page's signature typographic move. */
.card__lead {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.12rem, 1.5vw, 1.3rem);
  line-height: 1.38;
  color: var(--ink);
  text-wrap: pretty;
}

.card__rest {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

.card__quote > :first-child { margin-top: 0; }

.card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.card__name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--ink);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
}

.card__link .icon { width: 13px; height: 13px; }

/* Stretch the one real link over the whole card, so the card is clickable
   without nesting interactive elements. */
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card__link:hover { color: var(--red-deep); text-decoration: underline; }

.card__link:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Closing call to action + footer
   -------------------------------------------------------------------------- */

.closer {
  background: var(--black);
  color: var(--paper);
}

.closer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(2.75rem, 6vw, 4rem);
}

.closer__copy { max-width: 34rem; }

.closer h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  line-height: 1.15;
  text-wrap: balance;
}

.closer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-foot {
  background: var(--black);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-foot__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  padding-block: 2.25rem;
}

.site-foot p { margin: 0 0 0.35rem; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--paper); text-decoration: underline; }
.site-foot__col { min-width: 12rem; }

.site-foot__name {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--paper);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   Quality floor
   -------------------------------------------------------------------------- */

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.masthead a:focus-visible,
.utility a:focus-visible,
.closer a:focus-visible,
.site-foot a:focus-visible { outline-color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .card:hover,
  .card:focus-within { transform: none; }
}
