/*
 * Dasa Vet — red windows.
 * Red is the main colour of the rounded windows, with white text on it. Buttons and the rating
 * sticker on red are white-on-red, so red stays the only colour. Light windows use a pale red tint.
 *
 * Motion: main.js gives every [data-morph] element a scroll progress and morphs its corner radii
 * from a soft blob into the final rounded rectangle. Without JavaScript, or with reduced motion,
 * everything simply shows in its final shape — the CSS below *is* the final state.
 */

:root {
  --page: #ffffff;
  --ink: #2a1214; /* near-black with a red cast; text on white and tint (17:1) */
  --ink-soft: #6b4a4c; /* secondary text on white and tint (7:1) */
  --red: #d42230; /* the windows; white text on it is 5.1:1 */
  --red-deep: #b81a27; /* hover, red text on white (6.6:1) */
  --on-red: #ffffff;
  --on-red-soft: rgb(255 255 255 / 88%);
  --red-line: rgb(255 255 255 / 35%);
  --tint: #fdeced; /* pale red for the light windows */
  --tint-line: #f3cfd2;
  --wash: #fdf2f2;
  --open-green: #1f9d55;
  --focus: #1c64f2;

  --font-display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-body: "Instrument Sans", -apple-system, BlinkMacSystemFont, Arial, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(16px, 3vw, 32px);
  --window-radius: 36px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--red);
  color: var(--on-red);
  border-radius: 8px;
  z-index: 50;
}
.skip:focus {
  top: 16px;
}

/* ───────── Header: condenses into a floating pill once you scroll ───────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-block: 12px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 6px 6px 6px 0;
  border-radius: 999px;
  transition:
    padding 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 0.4s ease,
    box-shadow 0.4s ease,
    width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.is-scrolled .header-inner {
  width: min(100% - 2 * var(--gutter), 980px);
  padding: 6px 6px 6px 22px;
  background: rgb(255 255 255 / 90%);
  box-shadow:
    0 1px 0 rgb(42 18 20 / 6%),
    0 14px 40px -18px rgb(42 18 20 / 35%);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.wordmark span {
  margin-left: 2px;
  padding: 0 6px 2px;
  border-radius: 8px;
  background: var(--red);
  color: var(--on-red);
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  font-weight: 500;
}
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.nav a:hover {
  background: var(--wash);
}

.menu-toggle {
  display: none;
}

.call {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--red);
  color: var(--on-red);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.call:hover {
  background: var(--red-deep);
}

/* ───────── Shared pieces ───────── */
.section {
  margin-top: clamp(48px, 6vw, 80px);
}

.window {
  border-radius: var(--window-radius);
  overflow: clip;
  transform-origin: 50% 20%;
}
.window-inner {
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px);
}
.window-tint {
  background: var(--tint);
}
.window-red {
  background: var(--red);
  color: var(--on-red);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 48px;
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
}
.section-head p {
  margin: 0;
  max-width: 34em;
  color: var(--ink-soft);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}
.button:active {
  transform: translateY(1px);
}

.button-white {
  background: var(--on-red);
  color: var(--red-deep);
}
.button-white:hover {
  background: #ffe9ea;
}

.button-outline {
  border: 1.5px solid var(--on-red);
  color: var(--on-red);
}
.button-outline:hover {
  background: rgb(255 255 255 / 14%);
}

.button-red {
  background: var(--red);
  color: var(--on-red);
}
.button-red:hover {
  background: var(--red-deep);
}

.button-line {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.button-line:hover {
  background: var(--ink);
  color: #fff;
}

.text-link {
  font-weight: 600;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}

/* Open / closed status (filled in by main.js) */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}
.status.is-open .status-dot {
  background: #7dffb0;
  opacity: 1;
  box-shadow: 0 0 0 4px rgb(125 255 176 / 25%);
}

/* ───────── Hero ───────── */
.hero {
  padding-top: 4px;
}

.panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  min-height: min(720px, calc(100svh - 110px));
  background: var(--red);
  color: var(--on-red);
  border-radius: var(--window-radius);
  overflow: clip; /* so the photo follows the blob shape while it morphs */
  transform-origin: 50% 0;
  will-change: transform, border-radius;
}

.panel-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 6vw, 88px);
}

h1 {
  margin: 0;
  font-weight: 700;
  font-variation-settings: "opsz" 96;
  font-size: clamp(2.75rem, 5.6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 31em;
  margin: 28px 0 0;
  color: var(--on-red-soft);
  font-size: 1.1875rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hours-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  margin: 44px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--red-line);
  font-size: 0.9375rem;
  color: var(--on-red-soft);
}
.hours-line .status {
  color: var(--on-red);
}

.panel-photo {
  padding: 14px 14px 14px 0;
  /* clip at the inner edge so the parallax-zoomed photo keeps its margin and rounded corners */
  clip-path: inset(14px 14px 14px 0 round 24px);
}
.panel-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.sticker {
  position: absolute;
  left: calc(57.5% - 82px);
  bottom: 56px;
  width: 164px;
  height: 164px;
  display: grid;
  place-items: center;
  text-decoration: none;
  transform: rotate(var(--spin, -10deg));
}
.sticker svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sticker circle {
  fill: var(--on-red);
}
.sticker text {
  fill: var(--red-deep);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17.5px;
  letter-spacing: 0.6px;
}
.sticker-score {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  letter-spacing: -0.04em;
  color: var(--red-deep);
  transform: rotate(calc(var(--spin, -10deg) * -1 - 10deg)); /* keeps the number nearly upright */
}

/* ───────── Offer ───────── */
.aisle-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.aisle-list li {
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}
.aisle-list svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.aisle-list h3 {
  margin: 14px 0 6px;
  font-size: 1.375rem;
}
.aisle-list p {
  margin: 0;
  color: var(--ink-soft);
}

/* ───────── Gallery ───────── */
.section-head-plain {
  padding-inline: clamp(0px, 2vw, 24px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 28px);
}

.gallery-item {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
}

.gallery-frame {
  display: block;
  overflow: clip;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  background: var(--tint);
}
.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gallery-item:hover .gallery-frame img {
  transform: scale(1.04);
}

.gallery-caption {
  display: block;
  margin-top: 12px;
  padding-inline: 6px;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ───────── Reviews ───────── */
.reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.rating-summary h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
}
.rating-score {
  margin: 24px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 10vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.rating-stars {
  margin: 8px 0 0;
  font-size: 1.5rem;
  letter-spacing: 4px;
}
.rating-note {
  margin: 8px 0 24px;
  color: var(--on-red-soft);
}

.rating-bars {
  display: grid;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.rating-bars li {
  display: grid;
  grid-template-columns: 14px 1fr 14px;
  align-items: center;
  gap: 12px;
}
.rating-bars i {
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(var(--on-red), var(--on-red)) 0 0 / var(--share) 100% no-repeat,
    rgb(255 255 255 / 25%);
}
.rating-bars b {
  font-weight: 500;
  text-align: right;
}

.review-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.review-list li:nth-child(even) {
  translate: 0 40px; /* staggered columns */
}

.review-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: 24px;
  background: var(--page);
  color: var(--ink);
}
.review-stars {
  margin: 0;
  color: var(--red);
  letter-spacing: 2px;
}
.review-card blockquote {
  flex: 1;
  margin: 12px 0 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.review-card blockquote p {
  margin: 0;
}
.review-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.review-meta strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}
.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--red-deep);
  font-weight: 700;
}

/* ───────── Visit ───────── */
.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "hours map"
    "contact map";
  gap: 16px;
}

.card {
  padding: 28px;
  border-radius: 24px;
  background: var(--page);
}
.hours-card {
  grid-area: hours;
}
.contact-card {
  grid-area: contact;
}

.hours-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.hours-head h3 {
  margin: 0;
  font-size: 1.5rem;
}

.status-pill {
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--red-deep);
  font-size: 0.875rem;
}
.status-pill.is-open {
  background: #e3f6ea;
  color: #14693a;
}
.status-pill.is-open .status-dot {
  background: var(--open-green);
  box-shadow: 0 0 0 4px rgb(31 157 85 / 18%);
}

.hours-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-variant-numeric: tabular-nums;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--tint-line);
}
.hours-list li:last-child {
  border-bottom: 0;
}
.hours-list li.is-today {
  border-radius: 12px;
  border-bottom-color: transparent;
  background: var(--red);
  color: var(--on-red);
  font-weight: 600;
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 0 0 24px;
}
.contact-details dt {
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.contact-details dd {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
}
.contact-details dd a {
  text-decoration: none;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.map-frame {
  grid-area: map;
  min-height: 420px;
  overflow: clip;
  border-radius: 24px;
  background: var(--page);
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ───────── Footer ───────── */
.site-footer {
  margin-top: clamp(48px, 6vw, 80px);
  padding-block: 32px 40px;
  border-top: 1px solid var(--tint-line);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.footer-inner p {
  margin: 0;
}
.footer-inner .wordmark {
  font-size: 1.375rem;
  color: var(--ink);
}

/* ───────── Phone action bar ───────── */
.action-bar {
  display: none;
}

/* ───────── Lightbox ───────── */
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(42 18 20 / 92%);
  color: #fff;
}
.lightbox::backdrop {
  background: transparent;
}
.lightbox[open] {
  display: grid;
  place-items: center;
}
.lightbox figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 14px;
}
.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 80dvh;
  border-radius: 20px;
  object-fit: contain;
}
.lightbox[open] img {
  animation: lightbox-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes lightbox-in {
  from {
    opacity: 0;
    border-radius: 50%;
    transform: scale(0.85);
  }
}
.lightbox-button {
  position: fixed;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-button:hover {
  background: var(--red-deep);
}
.lightbox-close {
  top: 20px;
  right: 20px;
  font-size: 1.125rem;
}
.lightbox-prev {
  left: 20px;
  top: 50%;
}
.lightbox-next {
  right: 20px;
  top: 50%;
}

/* ───────── Tablets ───────── */
@media (max-width: 1080px) {
  .reviews-layout {
    grid-template-columns: 1fr;
  }
  .aisle-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .site-header .nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    min-height: 44px;
    padding: 0 16px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    background: none;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }
  .menu-open .site-header .nav {
    position: absolute;
    top: calc(100% + 4px);
    left: var(--gutter);
    right: var(--gutter);
    display: grid;
    gap: 2px;
    padding: 10px;
    border-radius: 24px;
    background: var(--page);
    box-shadow: 0 20px 50px -20px rgb(42 18 20 / 40%);
  }
  .menu-open .site-header .nav a {
    padding: 14px 16px;
    font-size: 1.125rem;
  }

  .panel {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 28px;
  }
  .panel-photo {
    padding: 0 12px 12px;
    clip-path: inset(0 12px 12px 12px round 20px);
  }
  .panel-photo img {
    aspect-ratio: 4 / 3;
    height: auto;
  }
  .sticker {
    left: auto;
    right: 28px;
    bottom: 28px;
    width: 128px;
    height: 128px;
  }
  .sticker-score {
    font-size: 2.3rem;
  }

  .section-head {
    grid-template-columns: 1fr;
  }
  .visit-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hours"
      "contact"
      "map";
  }
  .map-frame {
    min-height: 320px;
  }
}

/* ───────── Phones ───────── */
@media (max-width: 640px) {
  :root {
    --window-radius: 28px;
  }
  body {
    padding-bottom: 88px; /* room for the action bar */
  }
  .call {
    display: none;
  }
  .wordmark {
    font-size: 1.5rem;
  }
  .is-scrolled .header-inner {
    padding-left: 16px;
  }
  .panel-copy {
    padding: 32px 24px 40px;
  }
  .aisle-list,
  .review-list,
  .contact-details {
    grid-template-columns: 1fr;
  }
  .review-list li:nth-child(even) {
    translate: none;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-item:first-child {
    grid-column: span 2;
  }
  .gallery-item:first-child .gallery-frame {
    aspect-ratio: 4 / 3;
  }
  .card {
    padding: 22px;
  }

  .action-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: var(--red);
    box-shadow: 0 16px 40px -14px rgb(42 18 20 / 55%);
  }
  .action-bar a {
    display: grid;
    place-items: center;
    min-height: 50px;
    border-radius: 999px;
    color: var(--on-red);
    font-weight: 600;
    text-decoration: none;
  }
  .action-bar a:first-child {
    background: var(--on-red);
    color: var(--red-deep);
  }
  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
