/* ==========================================================================
   Fonts — Bubbleboddy Neue (títulos)
   ========================================================================== */

@font-face {
  font-family: 'BubbleBody';
  src: url('fonts/BubbleboddyNeue-Thin%20Trial.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BubbleBody';
  src: url('fonts/BubbleboddyNeue-Light%20Trial.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BubbleBody';
  src: url('fonts/bubbleboddyneue-regular%20trial.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BubbleBody';
  src: url('fonts/BubbleboddyNeue-Bold%20Trial.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BubbleBody';
  src: url('fonts/BubbleboddyNeue-ExtraBold%20Trial.ttf') format('truetype');
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Pet Samary's — Design tokens
   ========================================================================== */

:root {
  --color-orange: #F3A807;
  --color-orange-dark: #835000;
  --color-blue: #74a9ff;
  --color-blue-bg: #e6f0ff;
  --color-green: #67dc48;
  --color-green-bg: #e9ffe4;
  --color-pink: #ff6c6f;
  --color-pink-bg: #f4f4f4;
  --color-text: #4b4b4b;
  --color-text-meta: #939393;
  --color-cream: #F3BD53;
  --color-band-1: #ffd99e;
  --color-band-2: #ffca79;
  --color-section-grey: #eeeeee;

  --font-base: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-heading: 'BubbleBody', 'Poppins', system-ui, sans-serif;

  --radius-lg: 35px;
  --radius-md: 30px;
  --radius-pill: 55px;

  --container-max: 1440px;
  /* Keeps the content column at the Figma width (1120px) for as long as it
     fits, instead of letting a fixed gutter squeeze the cards on laptops. */
  --gutter: max(20px, (min(100vw, 1440px) - 1120px) / 2);
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: #fff;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 10px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--solid {
  background: var(--color-orange);
  color: #fff;
  border: 1px solid var(--color-orange);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid currentColor;
}

.btn--outline.btn--orange {
  color: var(--color-orange);
}

.btn--outline.btn--blue {
  color: var(--color-blue);
}

.btn--outline.btn--green {
  color: var(--color-green);
}

.btn--outline.btn--pink {
  color: var(--color-pink);
}

.hero__buttons .btn--outline {
  color: var(--color-orange);
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  flex-wrap: wrap;
}

.navbar__logo {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.91);
  border-radius: 48px;
  padding: 15px 22px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.navbar__logo img {
  height: 20px;
  width: auto;
}

.navbar__menu {
  background: rgba(255, 255, 255, 0.91);
  border-radius: 48px;
  display: flex;
  align-items: center;
  gap: 62px;
  padding: 14px 40px;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: #623600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.navbar__menu a:hover {
  color: var(--color-orange);
}

.navbar__whatsapp {
  background: rgba(255, 255, 255, 0.91);
  border-radius: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  color: var(--color-orange);
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.navbar__whatsapp i {
  font-size: 22px;
}

.navbar.is-scrolled .navbar__logo,
.navbar.is-scrolled .navbar__menu,
.navbar.is-scrolled .navbar__whatsapp,
.navbar.is-scrolled .navbar__toggle {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.91);
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.navbar__toggle span {
  width: 20px;
  height: 2px;
  background: var(--color-orange);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
}

.hero__top {
  background: linear-gradient(to bottom, var(--color-cream) 0%, #f7ead9 60%, #fff 100%);
  padding-top: 140px;
  position: relative;
  z-index: 10;
}

.hero__content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 21px;
}

.hero__image-wrap {
  position: relative;
  max-width: 1120px;
  width: 100%;
  height: 460px;
  margin: 0 auto;
  margin-top: -100px;
  overflow: hidden;

}

.hero__image {
  width: 100%;
  max-width: 1120px;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__image-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 15%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 90%);
}

.hero__content h1 {
  font-weight: 600;
  font-size: 73px;
  line-height: 1.05;
  color: var(--color-orange);
}

.hero__subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-orange-dark);
  max-width: 560px;
}

.hero__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__tagline {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  background: #fff;
}

.hero__tagline h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 400;
  color: var(--color-orange);
  line-height: 1.15;
}

.hero__tagline h2 em {
  font-style: italic;
  font-weight: 700;
}

.hero__tagline p {
  font-size: 16px;
  line-height: 1.5;
  color: #1a1a1a;
  max-width: 700px;
  margin: 0 auto;
}

/* ==========================================================================
   Services
   ========================================================================== */

.services {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 40px var(--gutter) 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Two card patterns:
   1. framed photo (Viagens) — a rectangular photo filling the right side of the card
   2. --cutout — a transparent PNG of the animal, anchored to the card's bottom-right
      corner and taller than the card, so it rises above the card's top edge */

.service-card {
  position: relative;
  display: flex;
  border-radius: var(--radius-lg);
  /* Titles scale with the card, not the viewport, so they keep clear of the
     image at every breakpoint. */
  container-type: inline-size;
}

.service-card__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}

.service-card__media {
  position: absolute;
  right: 0;
  bottom: 0;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 35px;
  object-position: left;
}

.service-card__eyebrow {
  color: var(--color-orange);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1px;
}

.service-card h3 {
  font-size: clamp(26px, 3.2vw, 40px);
  font-size: clamp(26px, 3.6cqw, 40px);
  font-weight: 700;
  color: var(--color-orange);
  line-height: 1.15;
}

.service-card__text p {
  font-size: 16px;
  line-height: 1.7;
}

/* The cutout floats over the card; it must never swallow clicks on the text. */
.service-card--cutout .service-card__media {
  pointer-events: none;
}

/* Viagens internacionais — square photo flush with the card's right edge */
.service-card--orange {
  background: rgba(255, 237, 208, 0.55);
  min-height: 492px;
}

.service-card--orange .service-card__text {
  width: 50%;
  padding: 44px 32px;
}

.service-card--orange .service-card__media {
  top: 0;
  width: 44%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Banho e Tosa + Consultas Veterinárias — half-width cards side by side */
.services__row {
  display: flex;
  gap: 36px;
}

.service-card--blue,
.service-card--green {
  flex: 1;
  min-height: 328px;
}

.service-card--blue {
  background: var(--color-blue-bg);
}

.service-card--green {
  background: var(--color-green-bg);
}

.service-card--blue h3 {
  color: var(--color-blue);
}

.service-card--green h3 {
  color: var(--color-green);
}

/* The title gets the full column; the paragraph stays narrower so it never
   runs under the animal (same relationship as in the Figma file). */
.service-card--blue .service-card__text,
.service-card--green .service-card__text {
  width: 66%;
  padding: 28px;
}

.service-card--blue .service-card__text p,
.service-card--green .service-card__text p {
  max-width: 86%;
}

.service-card--blue h3,
.service-card--green h3 {
  font-size: clamp(22px, 2.78vw, 40px);
  font-size: clamp(22px, 7.4cqw, 40px);
}

/* "Banho e Tosa" always reads as a single line */
.service-card--blue h3 {
  white-space: nowrap;
}

.service-card--blue .service-card__media {
  width: 62%;
  height: calc(100% + 30px);
}

.service-card--green .service-card__media {
  width: 47%;
  height: calc(100% + 83px);
}

.service-card--green .service-card__media img {
  object-position: 36.5% 50%;
}

/* Farmácia Veterinária — full-width short card */
.service-card--pink {
  background: var(--color-pink-bg);
  min-height: 224px;
}

.service-card--pink h3 {
  color: var(--color-pink);
}

.service-card--pink .service-card__text {
  width: 52%;
  padding: 32px;
}

.service-card--pink .service-card__media {
  width: 55%;
  height: calc(100% + 60px);
}

.service-card--pink .service-card__media img {
  object-position: center bottom;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 40px var(--gutter) 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.testimonials__head {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.testimonials__head h2 {
  color: var(--color-orange);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 400;
}

.testimonials__head p {
  font-size: 16px;
  color: #000;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.testimonial-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 41px;
  height: 41px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-card__avatar--letter {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-blue);
  color: #fff;
  font-size: 16px;
}

.testimonial-card__avatar--alt {
  background: var(--color-green);
}

.testimonial-card__top strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #000;
}

.testimonial-card__date {
  font-size: 14px;
  color: var(--color-text-meta);
}

.testimonial-card__stars {
  width: 115px;
  height: 23px;
}

.testimonial-card__text {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  color: #000;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.testimonial-card__text.is-expanded {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.testimonial-card__more {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-meta);
}

.testimonial-card__more:hover {
  color: var(--color-orange);
}

/* ==========================================================================
   Location
   ========================================================================== */

.location {
  background: rgba(238, 238, 238, 0.55);
  display: flex;
  align-items: center;
  gap: 42px;
  /* Background stays full-bleed; the side padding grows so that the text and
     the map together never exceed the 1120px content column. */
  padding: 60px max(var(--gutter), (100% - 1120px) / 2);
}

.location__text {
  flex: 1 1 460px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.location__text h2 {
  color: var(--color-orange);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 400;
  line-height: 1.15;
}

.location__text p {
  font-size: 16px;
  line-height: 1.7;
}

.location__address {
  font-weight: 700;
}

.location__hours strong {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

.location__hours p {
  margin-top: 4px;
}

.location__map {
  flex: 1 1 500px;
  /* An iframe has no intrinsic size, so the height is set here */
  height: 465px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.location__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-top: -1px;
}

.footer__top {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 48px var(--gutter) 32px;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.footer__brand {
  width: 25%;
}

.footer__social {
  width: 15%;
}

.footer__brand img {
  max-width: 225px;
  height: auto;
}

.footer__contact,
.footer__hours {
  width: 30%;
}

.footer__contact .footer__contact p,
.footer__hours p {
  font-size: 15px;
  line-height: 1.7;
  margin: 6px 0 0;
}

.footer__contact strong,
.footer__hours strong {
  font-size: 15px;
  font-weight: 700;
}

.footer__social {
  display: flex;
  gap: 20px;
  font-size: 26px;
  color: var(--color-text);
  margin-left: auto;
}

.footer__social a:hover {
  color: var(--color-orange);
}

.footer__bottom {
  background: var(--color-band-2);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

/* ==========================================================================
   WhatsApp floating button (mobile helper)
   ========================================================================== */

.whatsapp-fab {
  display: flex;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 90;
}

/* ==========================================================================
   Responsive — tablets
   ========================================================================== */

@media (max-width: 1180px) {
  :root {
    --gutter: 60px;
  }

  .hero__content h1 {

    font-size: 50px;
    line-height: 0.9;

  }

  .services__row {
    flex-direction: column;
  }

  /* Stacked full-width cards: keep the cutout narrow so the animal isn't cropped */
  .service-card--blue .service-card__media,
  .service-card--green .service-card__media {
    width: 50%;
  }

  .service-card--blue .service-card__text,
  .service-card--green .service-card__text {
    width: 68%;
  }

  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .location {
    flex-direction: column;
  }

  .location__text,
  .location__map {
    flex: 1 1 auto;
    width: 100%;
  }
}

/* ==========================================================================
   Responsive — mobile
   ========================================================================== */

@media (max-width: 860px) {
  :root {
    --gutter: 20px;
  }


  .navbar {
    top: 0;
    justify-content: space-between;
    padding: 16px 16px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  }

  .navbar__logo {
    padding: 12px 16px;
  }

  .navbar__logo img {
    height: 20px;
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar__whatsapp span {
    display: none;
  }

  .navbar__whatsapp {
    padding: 10px;
  }

  .navbar__menu {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    margin-top: 8px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 24px;
    border-radius: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .navbar__menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navbar__toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .navbar__toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .navbar__toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero__image-wrap {
    margin-top: -70px;
  }

  .hero__top {
    padding-top: 100px;
  }

  .hero__image-wrap {
    height: 280px;
  }

  .hero__content {
    gap: 16px;
    padding: 0 20px 40px;
  }

  .hero__subtitle br {
    display: none;
  }

  .hero__buttons {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .hero__buttons .btn {
    width: 100%;
  }

  .hero__tagline {
    margin-top: -20px;
    padding: 0 20px 40px;
  }

  .services {
    padding: 20px 16px 60px;
    gap: 24px;
  }

  /* Phones: no floating image — text on top, image stacked below */
  .service-card {
    display: block;
    min-height: 0;
  }

  .service-card--orange,
  .service-card--blue,
  .service-card--green,
  .service-card--pink {
    min-height: 0;
  }

  .service-card .service-card__text {
    width: 100%;
    padding: 24px 20px 0;
  }

  .service-card h3 {
    font-size: 28px;
    white-space: normal;
  }

  .service-card .service-card__media {
    position: static;
    width: 100%;
    height: 220px;
    border-radius: 0;
    overflow: visible;
  }

  .service-card--cutout .service-card__media img {
    object-fit: contain;
    object-position: center bottom;
  }

  .service-card--orange .service-card__media {
    height: 260px;
    margin-top: 20px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
  }

  .testimonials {
    padding: 20px 16px 60px;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .location {
    padding: 40px 16px;
  }

  .location__map {
    height: 300px;
  }

  .footer__top {
    padding: 32px 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer__social {
    margin-left: 0;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px;
    font-size: 13px;
  }

  .footer__brand,
  .footer__social,
  .footer__contact,
  .footer__hours {
    width: 100%;
    text-align: center;
  }

  .footer__brand img {
    margin: 0 auto;
  }

  .footer__social {
    justify-content: center;
  }
}