/* ============================================
   VetTJ — Veterinaria Tijuana
   Bold Editorial Style
   ============================================ */

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

:root {
  --cream:   #F5F0E8;
  --dark:    #1A1209;
  --red:     #D63B1F;
  --red-dark:#A82D16;
  --teal:    #1D6A6A;
  --teal-light: #2A9494;
  --gold:    #C8973A;
  --white:   #FFFFFF;
  --gray:    #888077;
  --light:   #F9F5ED;

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Inter', system-ui, sans-serif;

  --nav-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

a { color: inherit; text-decoration: none; }

/* ---- Utility ---- */
.label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--ff-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75em 1.8em;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary  { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost    { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn--ghost:hover { background: var(--dark); color: var(--cream); }
.btn--nav      { background: var(--dark); color: var(--cream); padding: 0.5em 1.4em; font-size: 0.75rem; }
.btn--nav:hover { background: var(--red); }
.btn--full     { width: 100%; justify-content: center; }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26,18,9,0.08);
}
.nav__logo {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--dark);
}
.nav__center {
  display: flex;
  gap: 2rem;
}
.nav__link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark);
  position: relative;
  padding-bottom: 2px;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--red);
  transition: width 0.25s;
}
.nav__link:hover::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: 1rem; }

/* Lang Toggle */
.lang-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--dark);
  border: none;
  border-radius: 100px;
  padding: 0.3em 0.8em;
  cursor: pointer;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  overflow: hidden;
}
.lang-toggle__label { position: relative; z-index: 1; transition: color 0.25s; }
.lang-toggle__divider { position: relative; z-index: 1; opacity: 0.4; }
.lang-toggle__pill {
  position: absolute;
  top: 3px; bottom: 3px;
  left: 4px;
  width: calc(50% - 8px);
  background: var(--red);
  border-radius: 100px;
  transition: left 0.3s cubic-bezier(0.4,0,0.2,1);
}
body.lang-en .lang-toggle__pill { left: calc(50% + 4px); }
body.lang-en .lang-toggle__label:last-of-type { color: #fff; }
body:not(.lang-en) .lang-toggle__label:first-child { color: #fff; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--cream);
}

.hero__bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  font-family: var(--ff-display);
  font-size: clamp(18rem, 30vw, 40rem);
  font-weight: 900;
  color: rgba(26,18,9,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}

.hero__float {
  position: absolute;
  z-index: 2;
}
.hero__float--cat {
  top: 12%;
  left: 3%;
  width: clamp(140px, 15vw, 220px);
}
.hero__float--dog {
  bottom: 10%;
  right: 2%;
  width: clamp(160px, 18vw, 280px);
}
.hero__float--paw1 {
  top: 60%;
  left: 6%;
  width: clamp(80px, 9vw, 140px);
}

.hero__frame {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}
.hero__frame--circle {
  border-radius: 50%;
  aspect-ratio: 1;
}
.hero__frame--rect {
  aspect-ratio: 3/4;
  border: 4px solid var(--dark);
}
.hero__frame--small {
  aspect-ratio: 1;
  border-radius: 50%;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 1rem;
}

.hero__tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.hero__headline {
  font-family: var(--ff-display);
  font-size: clamp(4rem, 9vw, 13rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--red);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__line { display: block; }
.hero__line--italic {
  font-style: italic;
  font-weight: 400;
  font-size: 0.55em;
  color: var(--dark);
  letter-spacing: 0.02em;
  margin: 0.1em 0;
}
.hero__line--outline {
  -webkit-text-stroke: 3px var(--dark);
  color: transparent;
}

.hero__sub {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}

.hero__cta {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-bottom: 3rem;
}

.hero__badge {
  position: absolute;
  top: calc(var(--nav-h) + 1rem);
  right: 2rem;
  z-index: 4;
}
.hero__badge-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 2px solid var(--dark);
  justify-content: center;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  gap: 2px;
  background: var(--cream);
  animation: spin 20s linear infinite;
}
.hero__badge-inner strong {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
  background: var(--dark);
  color: var(--cream);
  padding: 1rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  gap: 1.5rem;
  animation: marquee 22s linear infinite;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.marquee__dot { color: var(--red); }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 6rem 2.5rem;
  background: var(--cream);
}
.services__header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.services__header h2 {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(26,18,9,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.service-card--featured {
  grid-column: span 1;
  grid-row: span 2;
  background: var(--dark);
  color: var(--cream);
  display: flex;
  flex-direction: column;
}
.service-card--featured h3 { color: var(--cream); }
.service-card--featured p  { color: rgba(245,240,232,0.7); }

.service-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.service-card p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--gray);
}
.service-card__img {
  margin-top: auto;
  padding-top: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 6rem 2.5rem;
  background: var(--light);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1300px;
  margin: 0 auto;
  align-items: center;
}
.about__text h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.about__text h2 em {
  font-style: italic;
  color: var(--red);
}
.about__text p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--gray);
  margin-bottom: 1rem;
}
.about__flags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.flag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--dark);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.4em 1em;
  border-radius: 100px;
}
.about__stat-block {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(26,18,9,0.1);
  flex-wrap: wrap;
}
.about__stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.about__stat-num {
  font-family: var(--ff-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
.about__stat-label {
  font-size: 0.72rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
}
.about__gallery {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.9rem;
  aspect-ratio: 5/6;
}
.about__gallery-item {
  overflow: hidden;
  border-radius: 14px;
  background: rgba(26,18,9,0.05);
}
.about__gallery-item--tall {
  grid-row: span 2;
}
.about__gallery-item img {
  transition: transform 0.8s ease;
}
.about__gallery-item:hover img {
  transform: scale(1.04);
}

/* ============================================
   PHILOSOPHY
   ============================================ */
.philosophy {
  padding: 6rem 2.5rem;
  background: var(--cream);
}
.philosophy__header {
  max-width: 780px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.philosophy__header h2 {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.philosophy__header h2 em {
  font-style: italic;
  color: var(--red);
}
.philosophy__lead {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray);
  max-width: 620px;
  margin: 0 auto;
}
.philosophy__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}
.philosophy-card {
  background: var(--white);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  border: 1px solid rgba(26,18,9,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.philosophy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.08);
  border-color: rgba(214,59,31,0.3);
}
.philosophy-card__num {
  font-family: var(--ff-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.02em;
}
.philosophy-card h3 {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.philosophy-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--gray);
}

/* ============================================
   TEAM
   ============================================ */
.team {
  padding: 6rem 2.5rem;
  background: var(--light);
}
.team__header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.team__header h2 {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.team__header h2 em {
  font-style: italic;
  color: var(--red);
}
.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.team-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(26,18,9,0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(0,0,0,0.12);
}
.team-card__img {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: rgba(26,18,9,0.05);
}
.team-card__img img {
  transition: transform 0.8s ease;
}
.team-card:hover .team-card__img img {
  transform: scale(1.05);
}
.team-card__body {
  padding: 1.5rem 1.4rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.team-card__body h3 {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}
.team-card__role {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}
.team-card__body p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--gray);
  margin-top: 0.3rem;
}

/* ============================================
   PETS BAND
   ============================================ */
.pets-band {
  background: var(--dark);
  color: var(--cream);
  padding: 5rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  overflow: hidden;
}
.pets-band__col {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.pets-band__col--cats {
  justify-content: flex-end;
}
.pets-band__img-group {
  display: flex;
  gap: 0.75rem;
}
.pets-band__img-group img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(245,240,232,0.2);
  transition: transform 0.3s, border-color 0.3s;
}
.pets-band__img-group img:hover {
  transform: scale(1.05);
  border-color: var(--red);
}
.pets-band__label h3 {
  font-family: var(--ff-display);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}
.pets-band__label p {
  font-size: 0.78rem;
  color: rgba(245,240,232,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}
.pets-band__divider {
  font-family: var(--ff-display);
  font-size: 6rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  text-align: center;
  opacity: 0.8;
}

/* ============================================
   FAMILY & REVIEWS
   ============================================ */
.family {
  padding: 6rem 2.5rem;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.family::before {
  content: '';
  position: absolute;
  inset: auto -8% -20% auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(214,59,31,0.07), transparent 65%);
  pointer-events: none;
}
.family__header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem;
  position: relative;
}
.family__header h2 {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.family__header h2 em {
  font-style: italic;
  color: var(--red);
}
.family__lead {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gray);
  max-width: 620px;
  margin: 0 auto;
}

.family__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.family-card {
  grid-column: span 2;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(26,18,9,0.08);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.22,0.61,0.36,1), box-shadow 0.35s;
}
.family-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.14);
}
.family-card--featured {
  grid-column: span 3;
  background: var(--dark);
  color: var(--cream);
  border-color: transparent;
}
.family-card--featured .family-card__quote-text { color: rgba(245,240,232,0.85); }
.family-card--featured .family-card__author strong { color: var(--cream); }
.family-card--featured .family-card__author span { color: rgba(245,240,232,0.55); }
.family-card--featured .family-card__quote { color: var(--red); opacity: 0.9; }

.family-card__media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: rgba(26,18,9,0.06);
}
.family-card__media img {
  transition: transform 0.9s cubic-bezier(0.22,0.61,0.36,1);
}
.family-card:hover .family-card__media img {
  transform: scale(1.08);
}
.family-card--featured .family-card__media { aspect-ratio: 16/9; }

.family-card__body {
  padding: 1.75rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
  position: relative;
}
.family-card__stars {
  display: flex;
  gap: 2px;
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.family-card__stars span {
  display: inline-block;
  transform: scale(0);
  animation: star-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.family-card:nth-child(n) .family-card__stars span:nth-child(1) { animation-delay: 0.1s; }
.family-card:nth-child(n) .family-card__stars span:nth-child(2) { animation-delay: 0.18s; }
.family-card:nth-child(n) .family-card__stars span:nth-child(3) { animation-delay: 0.26s; }
.family-card:nth-child(n) .family-card__stars span:nth-child(4) { animation-delay: 0.34s; }
.family-card:nth-child(n) .family-card__stars span:nth-child(5) { animation-delay: 0.42s; }

@keyframes star-pop {
  0%   { transform: scale(0) rotate(-40deg); opacity: 0; }
  60%  { transform: scale(1.25) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.family-card__quote {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  width: 38px;
  height: 38px;
  color: var(--red);
  opacity: 0.18;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.family-card:hover .family-card__quote {
  opacity: 0.45;
  transform: scale(1.1) rotate(-4deg);
}
.family-card__quote-text {
  font-family: var(--ff-body);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--gray);
  font-style: italic;
  flex: 1;
}
.family-card--featured .family-card__quote-text {
  font-size: 1.05rem;
  line-height: 1.6;
}
.family-card__author {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(26,18,9,0.1);
  margin-top: auto;
}
.family-card--featured .family-card__author {
  border-top-color: rgba(245,240,232,0.12);
}
.family-card__author strong {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.family-card__author span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ============================================
   HOURS
   ============================================ */
.hours {
  padding: 6rem 2.5rem;
  background: var(--red);
  color: var(--cream);
}
.hours__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hours .label { color: rgba(245,240,232,0.6); }
.hours h2 {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hours p {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.8;
  margin-bottom: 2rem;
}
.hours .btn--primary {
  background: var(--cream);
  color: var(--red);
}
.hours .btn--primary:hover {
  background: var(--dark);
  color: var(--cream);
}
.hours__table { display: flex; flex-direction: column; gap: 0; }
.hours__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(245,240,232,0.2);
  font-size: 0.9rem;
}
.hours__row:first-child { border-top: 1px solid rgba(245,240,232,0.2); }
.hours__row span:first-child { font-weight: 500; }
.hours__row span:last-child  { font-weight: 700; font-family: var(--ff-display); font-size: 1rem; }
.hours__row--closed span:last-child { color: rgba(245,240,232,0.5); font-style: italic; font-size: 0.85rem; font-family: var(--ff-body); }
.hours__note {
  margin-top: 1rem;
  font-size: 0.72rem;
  opacity: 0.55;
  letter-spacing: 0.03em;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 6rem 2.5rem;
  background: var(--dark);
  color: var(--cream);
}
.contact__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact .label { color: rgba(245,240,232,0.5); }
.contact h2 {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}
.contact h2 em { color: var(--red); font-style: italic; }
.contact__details { display: flex; flex-direction: column; gap: 1.4rem; margin-bottom: 2rem; }
.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact__icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 0.1rem; }
.contact__item div { display: flex; flex-direction: column; gap: 0.2rem; }
.contact__item strong {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.45);
}
.contact__item span,
.contact__item a {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(245,240,232,0.85);
}
.contact__item a:hover { color: var(--red); }
.contact__border-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(245,240,232,0.06);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-top: 0.5rem;
}
.contact__border-note span { font-size: 1.4rem; flex-shrink: 0; }
.contact__border-note p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(245,240,232,0.6);
}

/* Form */
.contact__form-wrap {
  background: rgba(245,240,232,0.05);
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid rgba(245,240,232,0.1);
}
.contact__form-wrap h3 {
  font-family: var(--ff-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--cream);
}
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-row label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.5);
}
.form-row input,
.form-row textarea,
.form-row select {
  background: rgba(245,240,232,0.07);
  border: 1px solid rgba(245,240,232,0.15);
  border-radius: 8px;
  color: var(--cream);
  font-family: var(--ff-body);
  font-size: 0.9rem;
  padding: 0.75em 1em;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus { border-color: var(--red); }
.form-row input::placeholder,
.form-row textarea::placeholder { color: rgba(245,240,232,0.3); }
.form-row__pet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.form-row select option { background: var(--dark); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #110D05;
  color: var(--cream);
  padding: 4rem 2.5rem 2rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(245,240,232,0.1);
  margin-bottom: 2rem;
}
.footer__logo {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
}
.footer__brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(245,240,232,0.55);
  max-width: 240px;
  margin-bottom: 1rem;
}
.footer__langs {
  display: flex;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(245,240,232,0.5);
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer__links h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.4);
  margin-bottom: 0.5rem;
}
.footer__links a {
  font-size: 0.85rem;
  color: rgba(245,240,232,0.7);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--red); }
.footer__contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer__contact-block h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.4);
  margin-bottom: 0.5rem;
}
.footer__contact-block p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(245,240,232,0.7);
}
.footer__contact-block a {
  font-size: 0.82rem;
  color: rgba(245,240,232,0.7);
  transition: color 0.2s;
}
.footer__contact-block a:hover { color: var(--red); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(245,240,232,0.3);
  letter-spacing: 0.04em;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity  0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Hero headline & hero chrome stagger on load */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(38px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero__tag       { animation: rise-in 0.8s cubic-bezier(0.22,0.61,0.36,1) both; animation-delay: 0.05s; }
.hero__line      { animation: rise-in 0.9s cubic-bezier(0.22,0.61,0.36,1) both; }
.hero__line:nth-child(1) { animation-delay: 0.15s; }
.hero__line:nth-child(2) { animation-delay: 0.28s; }
.hero__line:nth-child(3) { animation-delay: 0.41s; }
.hero__line:nth-child(4) { animation-delay: 0.54s; }
.hero__sub       { animation: rise-in 0.8s cubic-bezier(0.22,0.61,0.36,1) both; animation-delay: 0.70s; }
.hero__cta       { animation: rise-in 0.8s cubic-bezier(0.22,0.61,0.36,1) both; animation-delay: 0.85s; }
.hero__bg-text   { animation: fade-in 1.4s ease both; animation-delay: 0.1s; }

/* Hero floating frames — gentle bob (applied to inner .hero__frame so the
   outer .hero__float can still be mouse-parallaxed without conflict) */
@keyframes bob {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-14px); }
}
@keyframes bob-slow {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50%     { transform: translateY(-10px) rotate(1deg); }
}
.hero__float--cat  .hero__frame { animation: bob 6s ease-in-out infinite; }
.hero__float--dog  .hero__frame { animation: bob-slow 7.5s ease-in-out infinite; }
.hero__float--paw1 .hero__frame { animation: bob 5s ease-in-out infinite; animation-delay: -1.5s; }

/* Marquee dots blink */
@keyframes twinkle {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.35; }
}
.marquee__dot { animation: twinkle 2.2s ease-in-out infinite; }

/* Service icons wiggle on card hover */
@keyframes wiggle {
  0%,100% { transform: rotate(0); }
  25%     { transform: rotate(-10deg) scale(1.08); }
  50%     { transform: rotate(8deg)  scale(1.12); }
  75%     { transform: rotate(-4deg) scale(1.08); }
}
.service-card__icon { transition: transform 0.25s; display: inline-block; }
.service-card:hover .service-card__icon { animation: wiggle 0.6s ease-in-out; }

/* Philosophy cards — number slides on hover + subtle background sheen */
.philosophy-card__num {
  transition: transform 0.35s cubic-bezier(0.22,0.61,0.36,1), color 0.3s;
}
.philosophy-card:hover .philosophy-card__num {
  transform: translateX(6px);
  color: var(--red-dark);
}
.philosophy-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(214,59,31,0.06), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  border-radius: inherit;
}
.philosophy-card:hover::after { opacity: 1; }

/* Team cards — underline sweep on name + stronger lift */
.team-card__body h3 {
  position: relative;
  display: inline-block;
}
.team-card__body h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.35s cubic-bezier(0.22,0.61,0.36,1);
}
.team-card:hover .team-card__body h3::after { width: 100%; }

/* Language toggle pill — subtle scale when pressed */
.lang-toggle:active { transform: scale(0.96); }
.lang-toggle { transition: transform 0.15s; }

/* About gallery — soft shimmer placeholder while loading */
.about__gallery-item,
.team-card__img,
.family-card__media {
  position: relative;
}
.about__gallery-item::before,
.team-card__img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    rgba(26,18,9,0.04) 25%,
    rgba(26,18,9,0.10) 50%,
    rgba(26,18,9,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s linear infinite;
  z-index: 0;
}
.about__gallery-item img,
.team-card__img img {
  position: relative;
  z-index: 1;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Hours CTA — button pulse on the emergency call */
@keyframes pulse-red {
  0%,100% { box-shadow: 0 0 0 0 rgba(245,240,232,0.35); }
  50%     { box-shadow: 0 0 0 12px rgba(245,240,232,0); }
}
.hours .btn--primary { animation: pulse-red 2.4s ease-out infinite; }

/* ---- Scroll progress bar ---- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(to right, var(--red), var(--gold));
  z-index: 1000;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ---- Auto-hide nav on scroll down ---- */
.nav {
  transition:
    transform 0.35s cubic-bezier(0.22,0.61,0.36,1),
    box-shadow 0.25s;
}
.nav--hidden { transform: translateY(-110%); }

/* ---- Parallax hero floats (mouse) — on outer wrapper so bob keeps running ---- */
.hero__float {
  --px: 0px;
  --py: 0px;
  transform: translate(var(--px), var(--py));
  transition: transform 0.4s cubic-bezier(0.22,0.61,0.36,1);
}

/* ---- Family cards: 3D tilt prep ---- */
.family__grid { perspective: 1000px; }
.family-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---- Button magnetic effect + ripple ---- */
.btn { position: relative; overflow: hidden; }
.btn__ripple {
  position: absolute;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: ripple 0.6s ease-out forwards;
}
.btn--ghost .btn__ripple { background: rgba(26,18,9,0.18); }
.btn--primary .btn__ripple { background: rgba(255,255,255,0.55); }
@keyframes ripple {
  to {
    width: 260px;
    height: 260px;
    opacity: 0;
  }
}

/* ---- Section heading underline draw-in ---- */
.family__header h2,
.team__header h2,
.philosophy__header h2,
.services__header h2 {
  position: relative;
  display: inline-block;
}
.family__header h2::after,
.team__header h2::after,
.philosophy__header h2::after,
.services__header h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -0.55rem;
  width: 60px;
  height: 3px;
  background: var(--red);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
}
.services__header.drawn h2::after,
.philosophy__header.drawn h2::after,
.team__header.drawn h2::after,
.family__header.drawn h2::after {
  animation: underline-draw 0.7s cubic-bezier(0.22,0.61,0.36,1) forwards;
}
@keyframes underline-draw {
  to { transform: translateX(-50%) scaleX(1); }
}

/* ---- Star rating pop (family cards only) ---- */
/* stars animation defined alongside family section */

/* ---- About gallery item: shadow lift on hover (transform is reserved for parallax) ---- */
.about__gallery-item {
  transition: box-shadow 0.45s, filter 0.45s;
}
.about__gallery-item:hover {
  box-shadow: 0 18px 36px rgba(0,0,0,0.12);
  filter: brightness(1.04);
}

/* ---- Pets band images: subtle wobble on hover group ---- */
@keyframes wobble {
  0%,100% { transform: rotate(0); }
  25%     { transform: rotate(-4deg); }
  75%     { transform: rotate(4deg); }
}
.pets-band__img-group img:hover ~ img,
.pets-band__img-group:hover img:first-child {
  animation: wobble 0.5s ease-in-out;
}

/* ---- Nav link letter-pop on hover ---- */
.nav__link { transition: transform 0.25s, color 0.2s; }
.nav__link:hover { transform: translateY(-1px); color: var(--red); }

/* ---- Lang toggle extra: accent flash on change ---- */
@keyframes pill-flash {
  0%   { box-shadow: 0 0 0 0 rgba(214,59,31,0.5); }
  100% { box-shadow: 0 0 0 14px rgba(214,59,31,0); }
}
.lang-toggle__pill {
  animation: pill-flash 0.5s ease-out;
}

/* ============================================
   SCROLL-TRIGGERED ANIMATIONS
   ============================================ */

/* Parallax — JS writes --scroll-y (page) and --about-scroll (section) */
.hero__bg-text {
  will-change: transform;
  transform: translate(-50%, calc(-48% + var(--scroll-y, 0px) * 0.35));
}
.about__gallery-item {
  will-change: transform;
}
.about__gallery-item:nth-child(1) { transform: translateY(calc(var(--about-scroll, 0px) * -0.08)); }
.about__gallery-item:nth-child(2) { transform: translateY(calc(var(--about-scroll, 0px) *  0.06)); }
.about__gallery-item:nth-child(3) { transform: translateY(calc(var(--about-scroll, 0px) * -0.12)); }

/* Alternating slide-in for service + philosophy cards */
.service-card.reveal-on-scroll,
.philosophy-card.reveal-on-scroll {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity  0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.service-card:nth-child(even).reveal-on-scroll,
.philosophy-card:nth-child(even).reveal-on-scroll {
  transform: translateX(40px);
}
.service-card.reveal-on-scroll.revealed,
.philosophy-card.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Team cards — rise + slight rotate on reveal */
.team-card.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px) rotate(-1.2deg);
  transition:
    opacity  0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.team-card:nth-child(even).reveal-on-scroll {
  transform: translateY(40px) rotate(1.2deg);
}
.team-card.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

/* Family review cards — pop up and scale */
.family-card.reveal-on-scroll {
  opacity: 0;
  transform: translateY(60px) scale(0.94);
  transition:
    opacity  0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.family-card.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Word-by-word heading reveal */
.anim-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity  0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: calc(var(--word-index, 0) * 70ms);
}
.drawn .anim-word {
  opacity: 1;
  transform: translateY(0);
}

/* Pets band — thumbs pop into place when the band scrolls in */
.pets-band__img-group img { opacity: 0; transform: scale(0.6); }
.pets-band.revealed .pets-band__img-group img {
  animation: thumb-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.pets-band.revealed .pets-band__col--dogs .pets-band__img-group img:nth-child(1) { animation-delay: 0.10s; }
.pets-band.revealed .pets-band__col--dogs .pets-band__img-group img:nth-child(2) { animation-delay: 0.22s; }
.pets-band.revealed .pets-band__col--cats .pets-band__img-group img:nth-child(1) { animation-delay: 0.34s; }
.pets-band.revealed .pets-band__col--cats .pets-band__img-group img:nth-child(2) { animation-delay: 0.46s; }
@keyframes thumb-pop {
  0%   { opacity: 0; transform: scale(0.5) rotate(-12deg); }
  60%  { opacity: 1; transform: scale(1.08) rotate(4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

/* Ken-burns on the featured service card image */
.service-card--featured .service-card__img { overflow: hidden; }
.service-card--featured .service-card__img img {
  animation: ken-burns 14s ease-in-out infinite alternate;
}
@keyframes ken-burns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.08) translate(-2%, -3%); }
}

/* Contact section slides in from opposite sides */
.contact__info.reveal-on-scroll {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.75s cubic-bezier(0.22,0.61,0.36,1),
              transform 0.75s cubic-bezier(0.22,0.61,0.36,1);
}
.contact__form-wrap.reveal-on-scroll {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.75s cubic-bezier(0.22,0.61,0.36,1),
              transform 0.75s cubic-bezier(0.22,0.61,0.36,1);
}
.contact__info.reveal-on-scroll.revealed,
.contact__form-wrap.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Marquee speeds up while it's on screen */
.marquee.revealed .marquee__track { animation-duration: 16s; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--featured { grid-column: span 2; grid-row: span 1; flex-direction: row; }
  .service-card__img { width: 45%; padding-top: 0; margin-left: auto; margin-top: 0; }
  .about { grid-template-columns: 1fr; }
  .about__gallery { max-width: 560px; margin-inline: auto; }
  .philosophy__grid { grid-template-columns: repeat(2, 1fr); }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .family__grid { grid-template-columns: repeat(2, 1fr); }
  .family-card, .family-card--featured { grid-column: span 1; }
  .pets-band__img-group img { width: 90px; height: 90px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav__center { display: none; }
  .hero__bg-text { font-size: 45vw; }
  .hero__float--dog { right: -2%; }
  .hero__float--paw1 { display: none; }
  .hero__badge { top: calc(var(--nav-h) + 0.5rem); right: 1rem; }
  .hero__badge-inner { width: 64px; height: 64px; font-size: 0.42rem; }
  .hero__badge-inner strong { font-size: 0.95rem; }
  .services { padding: 4rem 1.5rem; }
  .services__grid { grid-template-columns: 1fr; }
  .service-card--featured { flex-direction: column; }
  .service-card__img { width: 100%; padding-top: 1rem; }
  .about { padding: 4rem 1.5rem; gap: 2rem; }
  .philosophy { padding: 4rem 1.5rem; }
  .philosophy__grid { grid-template-columns: 1fr; }
  .team { padding: 4rem 1.5rem; }
  .team__grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .team-card { flex-direction: row; align-items: stretch; }
  .team-card__img { width: 40%; aspect-ratio: auto; flex-shrink: 0; }
  .team-card__body { padding: 1.25rem 1.2rem; justify-content: center; }
  .family { padding: 4rem 1.5rem; }
  .family__grid { grid-template-columns: 1fr; }
  .family-card, .family-card--featured { grid-column: span 1; }
  .pets-band { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
  .pets-band__col { flex-direction: column; }
  .pets-band__col--cats { flex-direction: column-reverse; }
  .pets-band__divider { font-size: 4rem; }
  .hours__inner { grid-template-columns: 1fr; gap: 2rem; }
  .contact__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 0.4rem; }
  .hero__cta { flex-direction: column; align-items: center; }
  .hours { padding: 4rem 1.5rem; }
  .contact { padding: 4rem 1.5rem; }
}

@media (max-width: 480px) {
  .nav { padding: 0 1.2rem; }
  .hero__headline { font-size: clamp(3rem, 14vw, 5rem); }
  .hero__float--cat { width: 100px; }
  .hero__float--dog { width: 110px; }
  .about__stat-block { flex-wrap: wrap; gap: 1rem; }
  .team-card { flex-direction: column; }
  .team-card__img { width: 100%; aspect-ratio: 4/5; }
  .form-row__pet { grid-template-columns: 1fr; }
}
