/* PetZons contact landing page — mobile first */
:root {
  --yellow: #FFDD33;
  --yellow-soft: #FFF0A0;
  --yellow-pale: #FFF8CF;
  --orange: #F29A1F;
  --navy: #14213D;
  --blue: #1F4FB3;
  --white: #FFFFFF;
  --green: #17B34A;
  --call: #1F6FEB;
  --web: #7B3FD1;
  --fb: #1877F2;
  --pin: #E5352B;
  --shadow: 0 2px 4px rgba(120, 85, 0, .08), 0 8px 20px rgba(120, 85, 0, .10);
  --shadow-hover: 0 4px 8px rgba(120, 85, 0, .10), 0 14px 28px rgba(120, 85, 0, .16);
  --radius: 20px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--navy);
  background: linear-gradient(180deg, var(--yellow) 0, var(--yellow-soft) 340px, var(--yellow-pale) 100%);
  overflow-x: hidden;
}

svg { display: block; }
a { color: inherit; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: max(20px, env(safe-area-inset-top)) 20px 24px;
  overflow: hidden;
}
.hero__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 4px;
  max-width: 1080px; margin: 0 auto;
}
.hero__logo {
  width: 132px; height: auto;
  filter: drop-shadow(0 6px 10px rgba(120, 85, 0, .22));
}
.hero__title {
  margin: 0;
  font-family: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: .01em;
}
.hero__sub {
  margin: 8px 0 0;
  font-weight: 700;
  font-size: 1rem;
  color: #5b4300;
}

.paw { position: absolute; color: rgba(160, 105, 0, .16); pointer-events: none; width: 34px; height: 34px; }
.hero .paw--a { top: 22px; left: 6%; transform: rotate(-18deg); }
.hero .paw--b { top: 70px; right: 7%; width: 28px; height: 28px; transform: rotate(16deg); }
.hero .paw--c { bottom: 14px; left: 20%; width: 24px; height: 24px; transform: rotate(8deg); }

/* ---------- Layout ---------- */
.page {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 14px 28px;
  flex: 1;
}

.contacts { display: grid; gap: 12px; }

/* ---------- Cards ---------- */
.card, .branch {
  display: flex; align-items: center; gap: 14px;
  min-height: 72px;
  padding: 12px 14px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--navy);
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:active, .branch:active { transform: scale(.98); box-shadow: 0 1px 3px rgba(120, 85, 0, .12); }

.card:focus-visible, .branch:focus-visible, .footer a:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.card__icon {
  flex: none;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  color: #fff;
}
.card__icon svg { width: 30px; height: 30px; }
.card--wa .card__icon   { background: linear-gradient(145deg, #2BD066, var(--green)); }
.card--call .card__icon { background: linear-gradient(145deg, #3D8BFF, var(--call)); }
.card--web .card__icon  { background: linear-gradient(145deg, #9A63E8, var(--web)); }
.card--fb .card__icon   { background: var(--fb); }
.card--fb .card__icon svg { width: 34px; height: 34px; }

.card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.card__title { font-weight: 800; font-size: 1.05rem; line-height: 1.2; overflow-wrap: anywhere; }
.card__hours { font-weight: 600; font-size: .95rem; }
.card__meta { font-weight: 700; font-size: .95rem; color: var(--blue); overflow-wrap: anywhere; }

.card__chev { flex: none; width: 20px; height: 20px; color: var(--navy); opacity: .75; }

/* ---------- Branches ---------- */
.branches { margin-top: 26px; }

.branches__title {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 0 0 14px;
  font-size: 1.25rem; font-weight: 800;
}
.branches__title::before, .branches__title::after {
  content: ""; flex: 1; max-width: 56px; height: 3px; border-radius: 3px; background: var(--orange);
}
.branches__title::before { order: -1; }
.branches__pin { width: 26px; height: 26px; color: var(--pin); order: 0; }
.branches__title span { order: 1; }
.branches__title::after { order: 2; }

.branches__grid { display: grid; gap: 12px; }

.branch { min-height: 68px; }
.branch__pin { flex: none; width: 34px; height: 34px; color: var(--pin); }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  text-align: center;
  padding: 26px 56px max(22px, env(safe-area-inset-bottom));
  background: var(--yellow);
  border-radius: 28px 28px 0 0;
  font-weight: 700;
  font-size: .95rem;
}
.footer p { margin: 2px 0; }
.footer a { font-weight: 800; text-underline-offset: 3px; }
.footer .paw { width: 30px; height: 30px; top: 50%; margin-top: -15px; color: rgba(110, 70, 0, .55); }
.footer .paw--f1 { left: 16px; transform: rotate(-14deg); }
.footer .paw--f2 { right: 16px; transform: rotate(14deg); }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .page { max-width: 760px; padding: 0 24px 36px; }
  .contacts { grid-template-columns: 1fr 1fr; gap: 16px; }
  .contacts .card--fb { grid-column: 1 / -1; }
  .hero { padding-bottom: 32px; }
  .hero__logo { width: 156px; }
  .hero__title { font-size: 3.2rem; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  .hero { padding: 36px 32px 44px; border-radius: 0 0 40px 40px; }
  .hero__inner { flex-direction: row; justify-content: center; text-align: left; gap: 44px; }
  .hero__logo { width: 200px; }
  .hero__title { font-size: 5rem; }
  .hero__sub { font-size: 1.15rem; }
  .hero .paw--a { width: 52px; height: 52px; top: 40px; left: 8%; }
  .hero .paw--b { width: 44px; height: 44px; top: 90px; right: 9%; }
  .hero .paw--c { width: 36px; height: 36px; bottom: 26px; left: 26%; }

  body { background: linear-gradient(180deg, var(--yellow-soft) 0, var(--yellow-pale) 100%); }
  .hero { background: linear-gradient(180deg, var(--yellow) 0, #FFE866 100%); }

  .page { max-width: 1080px; padding: 36px 32px 48px; }

  .contacts { grid-template-columns: repeat(6, 1fr); gap: 18px; }
  .contacts .card--wa, .contacts .card--call { grid-column: span 2; }
  .contacts .card--web, .contacts .card--fb { grid-column: span 3; }

  .card, .branch { padding: 16px 18px; min-height: 88px; }
  .card:hover, .branch:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
  .card:active, .branch:active { transform: scale(.99); }

  .branches { margin-top: 40px; }
  .branches__title { justify-content: flex-start; font-size: 1.5rem; margin-bottom: 18px; }
  .branches__title::before { display: none; }
  .branches__title::after { max-width: 80px; flex: none; width: 80px; }
  .branches__grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .branch { align-items: flex-start; }
  .branch .card__chev { align-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .branch { transition: none; }
}
