/* PetFamily Hospital Veterinário 24h */
:root {
  --blue: #1b4d9b;
  --blue-d: #0f2f63;
  --green: #6cc83a;
  --green-d: #4fa522;
  --mint: #eef8e8;
  --sky: #eaf1fb;
  --paper: #ffffff;
  --ink: #12213a;
  --mute: #5f6c80;
  --line: #dbe3ee;
  --red: #e5483d;
  --head: "Rubik", "Segoe UI", system-ui, sans-serif;
  --body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --pad: clamp(18px, 4.5vw, 64px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; font-family: var(--body); font-size: 1.07rem; line-height: 1.6; color: var(--ink); background: var(--paper); }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.02; letter-spacing: -.025em; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.motion [data-split] { visibility: hidden; }
.ln { padding: .16em 0 .06em; margin-top: -.16em; }
.eyebrow { font-family: var(--head); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green-d); margin-bottom: 1.1rem; }
.eyebrow--light { color: #b7f08f; }

.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 600; font-size: 1rem; padding: .85em 1.4em; border-radius: 14px; text-decoration: none; border: 2px solid transparent; transition: transform .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--green { background: var(--green); color: var(--blue-d); }
.btn--line { border-color: var(--blue); color: var(--blue); }
.btn--line:hover { background: var(--blue); color: #fff; }
.btn--lg { padding: 1.05em 1.7em; font-size: 1.06rem; }
.btn--sm { padding: .6em 1.1em; font-size: .92rem; border-radius: 12px; }

/* emergency bar */
.er { position: sticky; top: 0; z-index: 60; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px var(--pad); background: var(--blue-d); color: #e6eeff; font-size: .92rem; }
.er p { margin: 0; }
.er b { color: #fff; }
.er a { font-family: var(--head); font-weight: 600; color: var(--blue-d); background: var(--green); padding: 5px 12px; border-radius: 10px; text-decoration: none; white-space: nowrap; }
.er__dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-right: 4px; box-shadow: 0 0 0 0 rgba(108,200,58,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(108,200,58,0); } 100% { box-shadow: 0 0 0 0 rgba(108,200,58,0); } }
time { font-variant-numeric: tabular-nums; color: #fff; font-weight: 700; }

/* header */
.header { position: sticky; top: 39px; z-index: 55; display: flex; align-items: center; gap: 28px; height: 82px; padding: 0 var(--pad); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: transform .45s cubic-bezier(.2,.7,.2,1), border-color .3s; }
.header.is-scrolled { border-bottom-color: var(--line); }
.header.is-hidden { transform: translateY(-140%); }
.brand img { width: 168px; height: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-family: var(--head); font-weight: 500; text-decoration: none; color: var(--blue); }
.nav a:hover { color: var(--green-d); }
.menu-btn { display: none; }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding: 60px var(--pad) 90px; background: linear-gradient(180deg, var(--sky), #fff 75%); }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5.8rem); color: var(--blue-d); max-width: 13ch; }
.hero h1 span { color: var(--green-d); }
.hero__lead { font-size: 1.18rem; color: var(--mute); max-width: 44ch; margin-top: 1.6rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }
.hero__img { position: relative; margin: 0; border-radius: 200px 200px 36px 36px; overflow: hidden; aspect-ratio: 900 / 942; box-shadow: 18px 18px 0 var(--green); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__img figcaption { position: absolute; left: 18px; bottom: 18px; background: #fff; color: var(--blue-d); border-radius: 14px; padding: 10px 16px; font-family: var(--head); font-weight: 600; box-shadow: 0 10px 30px rgba(15,47,99,.18); }
.hero__img figcaption b { font-size: 1.4rem; margin-right: 4px; }

/* now */
.now { padding: 110px var(--pad); }
.now h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); color: var(--blue-d); max-width: 16ch; margin-bottom: 48px; }
.now__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; text-decoration: none; padding: 26px 24px 22px; border-radius: 24px; background: var(--sky); color: var(--ink); min-height: 290px; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.tile:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(15,47,99,.45); }
.tile__k { font-family: var(--head); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.tile h3 { font-size: 1.75rem; margin: 14px 0 10px; color: var(--blue-d); }
.tile p { color: var(--mute); font-size: .98rem; }
.tile__go { margin-top: auto; font-family: var(--head); font-weight: 600; color: var(--blue); }
.tile--red { background: var(--red); color: #fff; }
.tile--red h3, .tile--red .tile__k, .tile--red .tile__go { color: #fff; }
.tile--red p { color: #ffe3df; }
.tile--green { background: var(--mint); }

/* specs */
.specs { padding: 110px var(--pad); background: var(--blue-d); color: #fff; overflow: hidden; }
.specs__head { display: flex; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.specs__n { font-family: var(--head); font-weight: 800; font-size: clamp(7rem, 18vw, 15rem); line-height: .8; margin: 0; color: var(--green); letter-spacing: -.05em; }
.specs h2 { font-size: clamp(2rem, 4.4vw, 3.8rem); max-width: 12ch; padding-bottom: 12px; }
.specs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 12px; }
.specs__list li { font-family: var(--head); font-weight: 500; font-size: clamp(1.1rem, 2vw, 1.6rem); padding: .45em .95em; border: 1.5px solid rgba(255,255,255,.25); border-radius: 999px; transition: background .25s, color .25s, border-color .25s; }
.specs__list li:hover { background: var(--green); color: var(--blue-d); border-color: var(--green); }

/* story */
.story { background: #0c1a33; color: #e8eefb; }
.story__pin { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 100px); align-items: center; min-height: 100svh; padding: 100px var(--pad); }
.story__media { position: relative; aspect-ratio: 720 / 860; max-height: 76svh; border-radius: 28px; overflow: hidden; background: #000; }
.sm { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.sm.is-on { opacity: 1; }
.story h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); max-width: 14ch; margin-bottom: 2rem; }
.story ol { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.story li { counter-increment: st; padding: 20px 0 20px 54px; position: relative; color: #6e7f9c; border-top: 1px solid rgba(255,255,255,.1); transition: color .4s; }
.story li::before { content: counter(st); position: absolute; left: 0; top: 18px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-weight: 700; border: 2px solid #33476b; color: #6e7f9c; transition: all .4s; }
.story li b { display: block; font-family: var(--head); font-size: 1.35rem; color: inherit; margin-bottom: 4px; }
.story li.is-on { color: #e8eefb; }
.story li.is-on::before { background: var(--green); border-color: var(--green); color: var(--blue-d); }

/* infra */
.infra { padding: 120px var(--pad); }
.infra__head { max-width: 760px; margin-bottom: 44px; }
.infra h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); color: var(--blue-d); }
.infra__grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; grid-template-rows: 280px 280px; gap: 16px; }
.infra figure { position: relative; margin: 0; border-radius: 22px; overflow: hidden; }
.infra img, .infra video { width: 100%; height: 100%; object-fit: cover; }
.infra figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.94); color: var(--blue-d); font-family: var(--head); font-weight: 600; font-size: .9rem; padding: 6px 12px; border-radius: 10px; }
.i1 { grid-row: span 2; }
.i2 { grid-column: 2; }
.i3 { grid-column: 3; grid-row: span 2; }
.i4 { grid-column: 2; }
.infra__list { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.infra__list li { border-top: 3px solid var(--green); padding-top: 14px; color: var(--mute); font-size: .96rem; }
.infra__list b { display: block; font-family: var(--head); color: var(--blue-d); font-size: 1.1rem; }

/* care */
.care { padding: 110px var(--pad); background: var(--green); color: var(--blue-d); }
.care .eyebrow--light { color: var(--blue-d); opacity: .75; }
.care h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); max-width: 18ch; margin-bottom: 44px; }
.care__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.care article { background: #fff; border-radius: 22px; padding: 26px 24px; }
.care h3 { font-size: 1.5rem; margin-bottom: 8px; color: var(--blue); }
.care p { color: var(--mute); margin: 0; }

/* reviews */
.reviews { padding: 120px var(--pad); }
.reviews h2 { font-size: clamp(2.2rem, 4.8vw, 4.4rem); color: var(--blue-d); max-width: 20ch; }
.reviews__src { color: var(--mute); margin: 1rem 0 48px; }
.reviews__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.reviews blockquote { margin: 0; padding: 24px; border-radius: 22px; background: var(--sky); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.reviews p { margin: 0; }
.reviews cite { font-style: normal; font-family: var(--head); font-weight: 600; color: var(--blue); }
.reviews__score { margin-top: 32px; color: var(--mute); }
.reviews__score b { font-family: var(--head); font-size: 2rem; color: var(--blue-d); margin-right: 6px; }

/* visit */
.visit { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 6vw, 100px); align-items: center; padding: 110px var(--pad); background: var(--sky); }
.visit h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); color: var(--blue-d); }
.visit dl { margin: 2rem 0; }
.visit dl div { display: grid; grid-template-columns: 12rem 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.visit dt { font-family: var(--head); font-weight: 600; color: var(--blue); }
.visit dd { margin: 0; }
.visit__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.visit__img { margin: 0; border-radius: 30px; overflow: hidden; aspect-ratio: 800 / 914; box-shadow: -16px 16px 0 var(--green); }
.visit__img img { width: 100%; height: 100%; object-fit: cover; }

.footer { display: flex; align-items: center; gap: 28px; padding: 34px var(--pad) 40px; background: var(--blue-d); color: #b9c8e6; font-size: .9rem; }
.footer img { width: 150px; }
.footer p { margin: 0; }
.call-fab { display: none; }

@media (max-width: 1080px) {
  .now__grid { grid-template-columns: 1fr 1fr; }
  .infra__list { grid-template-columns: 1fr 1fr; }
  .reviews__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .er__clock { display: none; }
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
  .menu-btn span { height: 2.5px; border-radius: 2px; background: var(--blue); transition: transform .25s; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .header .btn--sm { display: none; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; gap: 0; padding: 6px var(--pad) 22px; background: #fff; border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .hero, .story__pin, .visit { grid-template-columns: 1fr; }
  .hero__img { max-width: 440px; }
  .specs__head { flex-direction: column; align-items: start; }
  .story__media { max-width: 420px; }
  .infra__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; grid-auto-rows: 220px; }
  .i1, .i2, .i3, .i4 { grid-column: auto; grid-row: auto; }
  .i1 { grid-column: 1 / -1; grid-row: span 2; }
  .care__grid { grid-template-columns: 1fr; }
  .now, .specs, .infra, .care, .reviews, .visit { padding-top: 80px; padding-bottom: 80px; }
  .call-fab { display: block; position: fixed; left: 14px; right: 14px; bottom: 12px; z-index: 70; text-align: center; background: var(--red); color: #fff; font-family: var(--head); font-weight: 600; padding: 15px; border-radius: 16px; text-decoration: none; box-shadow: 0 12px 30px -10px rgba(229,72,61,.7); }
  body { padding-bottom: 70px; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .er { font-size: .82rem; }
  .header { height: 70px; }
  .brand img { width: 140px; }
  .hero { padding-top: 36px; }
  .hero h1 { font-size: 2.6rem; }
  .hero__cta .btn { width: 100%; }
  .now__grid, .reviews__grid, .infra__list { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .visit dl div { grid-template-columns: 1fr; gap: 2px; }
  .footer { flex-direction: column; align-items: start; }
}
