/* Vet2Home — refinamentos de ritmo, navegação, FAQ e consistência cromática. */
:root {
  color-scheme: only light;
  --teal: #2f8da0;
  --teal-dark: #124f5f;
  --teal-deep: #0f4654;
  --orange: #ff7a18;
  --orange-light: #ff8a35;
  --gold: #d9a12b;
  --cream: #f4efe4;
  --paper: #f7f2e8;
  --white: #f8f3ea;
  --black: #121417;
  --muted: #6e747d;
  --brand-orange: #ff7a18;
  --brand-orange-rgb: 255, 122, 24;
  --brand-white: #f8f3ea;
}

html {
  color-scheme: light;
  background: #f8f3ea;
}

body {
  background-color: #f8f3ea !important;
  color: #121417;
}

button,
input,
select,
textarea {
  color-scheme: light;
  accent-color: #ff7a18;
}

.booking-form input,
.booking-form textarea,
.booking-form select,
.booking-form .custom-select-trigger {
  border-color: rgba(255, 255, 255, .12) !important;
  background-color: #1b1e20 !important;
  color: #f8f3ea !important;
  -webkit-text-fill-color: #f8f3ea;
}

.booking-form input::placeholder,
.booking-form textarea::placeholder {
  color: rgba(248, 243, 234, .5) !important;
  opacity: 1;
}

.booking-form input:-webkit-autofill,
.booking-form input:-webkit-autofill:hover,
.booking-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f8f3ea !important;
  box-shadow: 0 0 0 1000px #1b1e20 inset !important;
  caret-color: #f8f3ea;
}

::selection {
  color: #fff;
  background: #ff7a18;
}

#como-funciona,
#faq,
#visitas,
#contacto,
#parceria,
#noticias,
#rodape {
  scroll-margin-top: 82px;
}

/* Prova social compacta no primeiro ecrã. */
.hero-google-proof {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 20px;
  color: rgba(255, 255, 255, .82);
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
}

.hero-google-proof__stars {
  color: #ffb23f;
  letter-spacing: .08em;
}

.hero-google-proof:hover,
.hero-google-proof:focus-visible {
  color: #fff;
}

/* Ritmo vertical: comprime apenas os blocos mais longos. */
.quote-band {
  padding: clamp(30px, 4.2vw, 48px) 0 !important;
}

.quote-text {
  font-size: clamp(1.18rem, 2.2vw, 1.72rem) !important;
}

#sobre,
#quando-faz-sentido,
#missao,
#noticias {
  padding-top: clamp(52px, 6vw, 72px) !important;
  padding-bottom: clamp(52px, 6vw, 72px) !important;
}

#sobre .about-grid {
  gap: clamp(38px, 6vw, 68px) !important;
}

#sobre .section-text {
  line-height: 1.72;
}

#missao .values-grid {
  gap: clamp(28px, 4vw, 46px) !important;
  margin-top: 36px !important;
}

#missao .mission-card {
  padding: clamp(30px, 4vw, 44px) !important;
}

#missao .mission-card p {
  line-height: 1.68 !important;
}

#missao .value {
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

.services-grid {
  background: rgba(9, 60, 72, .22) !important;
}

.service {
  background: rgba(255, 255, 255, .025);
}

.service:nth-child(even) {
  background: rgba(15, 70, 84, .08);
}

.service p {
  color: rgba(248, 243, 234, .86) !important;
}

#parceria .partner-card {
  width: min(100%, 920px);
  margin: 20px auto 0 !important;
  padding: clamp(22px, 2.6vw, 28px) !important;
}

#parceria .partner-logo {
  width: min(132px, 52%) !important;
  margin-bottom: 12px !important;
}

#parceria {
  padding-top: clamp(38px, 4.4vw, 50px) !important;
  padding-bottom: clamp(38px, 4.4vw, 50px) !important;
}

#parceria .section-title {
  font-size: clamp(1.95rem, 3.5vw, 2.85rem) !important;
}

#parceria .partner-card h3 {
  margin-bottom: 8px !important;
  font-size: clamp(1.18rem, 2vw, 1.45rem) !important;
}

#parceria .partner-card p {
  max-width: 760px;
  margin: 0 auto !important;
  font-size: .92rem;
  line-height: 1.52 !important;
}

#noticias .news-list {
  margin-top: 30px !important;
}

#noticias .news-card {
  gap: clamp(24px, 4vw, 42px) !important;
  padding: clamp(28px, 4vw, 42px) !important;
}

#noticias .news-card h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.15rem) !important;
}

/* Como funciona. */
.how-section {
  overflow: hidden;
  background: #f8f3ea;
  padding: clamp(56px, 7vw, 82px) 0;
}

.how-section .section-text {
  max-width: 760px;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
  padding: 0;
  list-style: none;
  counter-reset: vet-step;
}

.how-step {
  position: relative;
  min-height: 230px;
  padding: 24px 20px 22px;
  overflow: hidden;
  border: 1px solid #ded7ca;
  border-radius: 18px;
  background: #f7f2e8;
  counter-increment: vet-step;
}

.how-step::before {
  content: "0" counter(vet-step);
  display: block;
  margin-bottom: 34px;
  color: #ff7a18;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.how-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 23px;
  right: -11px;
  z-index: 2;
  color: #124f5f;
  font-size: 1.25rem;
  font-weight: 900;
}

.how-step h3 {
  margin: 0;
  color: #124f5f;
  font-size: 1.04rem;
  line-height: 1.25;
}

.how-step p {
  margin: 10px 0 0;
  color: #6e747d;
  font-size: .87rem;
  line-height: 1.62;
}

/* Galeria: uma única seta leve, sem círculo nem fundo. */
.gallery-carousel-shell {
  position: relative;
  margin-top: 38px;
}

#visitas {
  padding-top: clamp(54px, 6.5vw, 78px) !important;
  padding-bottom: clamp(54px, 6.5vw, 78px) !important;
}

.gallery-carousel-shell .gallery-grid {
  margin-top: 0 !important;
}

.gallery-next-hint {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 8;
  display: grid !important;
  width: 50px;
  height: 58px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #ff7a18;
  background: transparent !important;
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  font-size: 2.15rem;
  line-height: 1;
  text-shadow: 0 3px 10px rgba(0, 0, 0, .48);
  transform: translateY(-50%);
}

.gallery-next-hint span {
  display: block;
  animation: gallery-arrow-nudge 1.35s ease-in-out infinite;
}

.gallery-next-hint:hover,
.gallery-next-hint:focus-visible {
  color: #ff8a35;
  outline: 2px solid rgba(255, 122, 24, .6);
  outline-offset: 3px;
}

@keyframes gallery-arrow-nudge {
  0%, 100% { transform: translateX(-3px); }
  50% { transform: translateX(4px); }
}

/* Avaliações e chamada para marcação. */
.contact-section.booking-entry {
  min-height: auto !important;
  padding-top: clamp(64px, 7vw, 84px) !important;
  padding-bottom: clamp(64px, 7vw, 84px) !important;
}

.booking-review-filter-note {
  display: none !important;
}

.booking-review-track .booking-review-placeholder:not(.is-active):not(.is-leaving) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.booking-start-card {
  margin-top: 2px;
}

/* FAQ. */
.faq-section {
  background: #f4efe4;
  padding: clamp(56px, 7vw, 80px) 0;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr);
  gap: clamp(38px, 7vw, 84px);
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 94px;
}

.faq-intro .section-text {
  max-width: 360px;
  margin-top: 18px;
  text-align: left !important;
  word-spacing: 0 !important;
  letter-spacing: 0 !important;
  text-wrap: pretty;
}

.faq-scroll-panel {
  min-width: 0;
}

.faq-scroll-hint {
  display: none;
}

.faq-scroll-frame {
  position: relative;
}

.faq-scroll-frame::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 0;
  height: 58px;
  border-radius: 0 0 15px 15px;
  background: linear-gradient(180deg, rgba(244, 239, 228, 0), #f4efe4 88%);
  pointer-events: none;
}

.faq-scroll-area {
  max-height: 238px;
  overflow-y: auto;
  padding-right: 12px;
  scrollbar-color: #ff7a18 rgba(18, 79, 95, .16);
  scrollbar-width: thin;
}

.faq-scroll-area::-webkit-scrollbar {
  width: 9px;
}

.faq-scroll-area::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(18, 79, 95, .13);
}

.faq-scroll-area::-webkit-scrollbar-thumb {
  border: 2px solid rgba(244, 239, 228, .95);
  border-radius: 999px;
  background: #ff7a18;
}

.faq-scroll-area::-webkit-scrollbar-thumb:hover {
  background: #e76005;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid #ded7ca;
  border-radius: 15px;
  background: #f8f3ea;
}

.faq-item summary {
  position: relative;
  padding: 19px 52px 19px 22px;
  color: #124f5f;
  cursor: pointer;
  font-weight: 850;
  line-height: 1.4;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 22px;
  color: #ff7a18;
  font-size: 1.45rem;
  font-weight: 500;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 22px 21px;
  color: #5f666e;
  line-height: 1.7;
}

.faq-item a {
  color: #124f5f;
  font-weight: 750;
}

.faq-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 24px;
  padding: 22px;
  border-radius: 16px;
  color: #fff;
  background: #124f5f;
}

.faq-cta p {
  margin: 0;
  line-height: 1.5;
}

.faq-cta .btn {
  flex: 0 0 auto;
  min-height: 50px;
  white-space: nowrap;
}

/* Rodapé informativo. */
.site-footer {
  padding: 44px 0 24px !important;
  color: rgba(255, 255, 255, .64) !important;
  background: #161719 !important;
}

.site-footer .footer-inner {
  display: grid !important;
  grid-template-columns: minmax(200px, .9fr) minmax(230px, 1fr) minmax(210px, .9fr) !important;
  gap: 34px clamp(34px, 5vw, 72px) !important;
  align-items: start !important;
}

.footer-brand-block,
.footer-contact-block,
.footer-zones-block {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-brand-block .logo {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 5px;
}

.footer-brand-block .logo img {
  height: 42px !important;
  width: auto;
}

.footer-tagline {
  width: 280px;
  max-width: 100%;
  margin: 0;
  color: rgba(255, 255, 255, .64);
  font-size: .9rem;
  line-height: 1.5;
}

.footer-label {
  margin-bottom: 7px;
  color: rgba(255, 255, 255, .56);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer-contact-block a,
.footer-social-links a,
.site-footer .privacy-link {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
}

.footer-contact-block a:hover,
.footer-social-links a:hover,
.site-footer .privacy-link:hover {
  color: #ff8a35;
}

.footer-social-links {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 9px;
}

.footer-social-link svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: currentColor;
}

.site-footer .privacy-link {
  width: 280px;
  max-width: 100%;
  margin-top: 8px;
  font-size: .86rem;
}

.footer-zones-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, .72);
  list-style: none;
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  color: rgba(255, 255, 255, .44);
  font-size: .8rem;
}

/* Neutraliza regras antigas que alinhavam todos os spans e parágrafos à direita. */
.site-footer .footer-brand-block > *,
.site-footer .footer-contact-block > *,
.site-footer .footer-zones-block > *,
.site-footer .footer-bottom > * {
  justify-self: start !important;
  text-align: left !important;
  white-space: normal !important;
}

.site-footer .footer-brand-block .privacy-link {
  justify-self: start !important;
  text-align: left !important;
}

.site-footer .footer-brand-block .footer-tagline,
.site-footer .footer-brand-block .privacy-link {
  justify-self: start !important;
  text-align: center !important;
}

.site-footer .footer-social-link span {
  justify-self: auto !important;
  text-align: left !important;
  white-space: nowrap !important;
}

@media (max-width: 1040px) {
  .how-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .how-step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 820px) {
  .hero-google-proof {
    margin-top: 16px;
  }

  .how-steps {
    grid-template-columns: 1fr 1fr !important;
  }

  .how-step {
    min-height: 200px;
  }

  .faq-layout {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }

  .faq-intro {
    position: static;
  }

  .faq-scroll-area {
    max-height: 238px;
  }

  .site-footer .footer-inner {
    grid-template-columns: 1fr 1fr !important;
  }

  .footer-brand-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  #sobre,
  #quando-faz-sentido,
  #missao,
  #noticias {
    padding-top: 46px !important;
    padding-bottom: 46px !important;
  }

  #parceria {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }

  #parceria .partner-card {
    margin-top: 18px !important;
    padding: 20px 18px !important;
  }

  #parceria .partner-logo {
    width: min(116px, 48%) !important;
  }

  .hero-google-proof {
    gap: 7px;
    font-size: .76rem;
  }

  .hero-google-proof__stars {
    letter-spacing: .04em;
  }

  .how-section,
  .faq-section {
    padding: 50px 0;
  }

  .how-steps {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 28px;
  }

  .how-step {
    min-height: auto;
    padding: 20px 20px 19px 70px;
  }

  .how-step::before {
    position: absolute;
    top: 21px;
    left: 20px;
    margin: 0;
  }

  .how-step p {
    font-size: .84rem;
  }

  .gallery-carousel-shell {
    margin-top: 26px;
  }

  #visitas {
    padding-top: 46px !important;
    padding-bottom: 46px !important;
  }

  .gallery-next-hint {
    right: 2px;
    width: 44px;
    font-size: 1.9rem;
  }

  .contact-section.booking-entry {
    padding-top: 52px !important;
    padding-bottom: 52px !important;
  }

  .booking-review-track {
    height: 284px;
  }

  .faq-item summary {
    padding: 17px 48px 17px 18px;
    font-size: .94rem;
  }

  .faq-item summary::after {
    right: 18px;
  }

  .faq-item p {
    padding: 0 18px 18px;
    font-size: .9rem;
  }

  .faq-scroll-hint {
    display: none;
  }

  .faq-scroll-area {
    max-height: 238px;
    padding-right: 10px;
  }

  .faq-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .faq-cta .btn {
    width: 100%;
  }

  .site-footer .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .footer-brand-block {
    grid-column: 1;
  }

  .footer-bottom {
    grid-column: 1;
    padding-top: 18px;
  }

  .footer-brand-block .logo img {
    height: 39px !important;
  }

  .footer-brand-block,
  .footer-contact-block,
  .footer-zones-block {
    justify-items: center;
    text-align: center;
  }

  .site-footer .footer-brand-block > *,
  .site-footer .footer-contact-block > *,
  .site-footer .footer-zones-block > *,
  .site-footer .footer-bottom > *,
  .site-footer .footer-brand-block .privacy-link {
    justify-self: center !important;
    text-align: center !important;
  }

  .footer-social-links {
    justify-items: center;
  }

  .footer-tagline {
    width: min(280px, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-next-hint span {
    animation: none;
  }
}

/* Destaque SIC Mulher / What's UP TV */
#noticias .news-image-sic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  padding: clamp(30px, 5vw, 54px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(244, 122, 32, .30), transparent 28%),
    radial-gradient(circle at 14% 88%, rgba(255, 255, 255, .10), transparent 32%),
    linear-gradient(145deg, #124f5f 0%, #0c3d4b 68%, #092f3a 100%);
}

#noticias .news-image-sic::before,
#noticias .news-image-sic::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

#noticias .news-image-sic::before {
  width: 150px;
  height: 150px;
  right: -44px;
  top: -48px;
  border: 1px solid rgba(255, 255, 255, .18);
}

#noticias .news-image-sic::after {
  width: 90px;
  height: 90px;
  left: -26px;
  bottom: -30px;
  background: rgba(244, 122, 32, .18);
}

#noticias .sic-media-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  width: min(100%, 480px);
  text-align: left;
}

#noticias .sic-media-kicker {
  margin-bottom: 14px;
  color: #ffd0ad;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

#noticias .sic-media-inner strong {
  font-size: clamp(2rem, 4.6vw, 3.65rem);
  line-height: .98;
  letter-spacing: -.05em;
}

#noticias .sic-media-meta {
  margin-top: 20px;
  color: rgba(255, 255, 255, .78);
  font-weight: 750;
}

#noticias .sic-media-time {
  margin-top: 8px;
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -.03em;
}

#noticias .sic-media-cta {
  margin-top: 22px;
  color: #ffd0ad;
  font-size: .88rem;
  font-weight: 850;
}

@media (max-width: 900px) {
  #noticias .news-image-sic {
    min-height: 220px;
  }
}

/* Destaque SIC Mulher — fotografia real do segmento */
#noticias .news-image-sic {
  display: block;
  min-height: 320px;
  padding: 0;
  background: #124f5f;
}

#noticias .news-image-sic::before,
#noticias .news-image-sic::after {
  display: none;
}

#noticias .news-image-sic img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: 50% 24%;
}

@media (max-width: 900px) {
  #noticias .news-image-sic,
  #noticias .news-image-sic img {
    min-height: 260px;
  }

  #noticias .news-image-sic img {
    object-position: 50% 22%;
  }
}


/* Ajuste de enquadramento da notícia SIC */
#noticias .news-card-sic {
  align-items: center;
}

#noticias .news-image-sic {
  display: block;
  min-height: 0;
  height: auto;
  aspect-ratio: 4 / 3;
  max-height: 560px;
  align-self: center;
}

#noticias .news-image-sic img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 50% 20%;
}

@media (max-width: 1100px) {
  #noticias .news-image-sic {
    aspect-ratio: 3 / 4;
    max-height: 640px;
  }

  #noticias .news-image-sic img {
    object-position: 50% 18%;
  }
}

@media (max-width: 900px) {
  #noticias .news-image-sic {
    aspect-ratio: 4 / 5;
    max-height: none;
  }

  #noticias .news-image-sic img {
    object-position: 50% 18%;
  }
}

/* Ajustes finais — apenas mobile */
@media (max-width: 820px) {
  /* Como funciona: uma coluna, cartões mais baixos e legíveis. */
  .how-steps {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .how-step {
    min-height: 0 !important;
    padding: 18px 18px 18px 68px !important;
  }

  .how-step::before {
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    margin: 0 !important;
  }

  .how-step h3 {
    font-size: 1rem !important;
    line-height: 1.25 !important;
  }

  .how-step p {
    margin-top: 7px !important;
    font-size: .88rem !important;
    line-height: 1.5 !important;
  }

  /* Hero: cores da identidade Vet2Home. */
  .hero-google-proof {
    color: rgba(255, 255, 255, .92) !important;
  }

  .hero-google-proof strong {
    color: #fff !important;
  }

  .hero-google-proof__stars {
    color: #ff7a18 !important;
  }
}

/* Correção final da prova social no hero — mobile igual ao desktop */
@media (max-width: 820px) {
  .hero-google-proof,
  .hero-google-proof:link,
  .hero-google-proof:visited,
  .hero-google-proof > span:last-child,
  .hero-google-proof > span:last-child strong {
    color: rgba(255, 255, 255, .92) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, .92) !important;
  }

  .hero-google-proof__stars,
  .hero-google-proof:visited .hero-google-proof__stars {
    color: #ffb23f !important;
    -webkit-text-fill-color: #ffb23f !important;
  }
}



/* Correção do menu hambúrguer em browsers mobile (incl. Xiaomi/Mi Browser) */
@media (max-width: 900px) {
  .menu-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: rgba(255, 255, 255, .10) !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    forced-color-adjust: none;
  }

  .menu-button span,
  .menu-button span::before,
  .menu-button span::after {
    background: #ffffff !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }
}


/* Ajuste final do destaque SIC: imagem mais equilibrada no desktop */
@media (min-width: 901px) {
  #noticias .news-card-sic {
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr) !important;
  }

  #noticias .news-card-sic .news-image-sic {
    width: 100%;
    max-width: 500px;
    justify-self: end;
    aspect-ratio: 4 / 3;
    max-height: 430px;
  }

  #noticias .news-card-sic .news-image-sic img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: 50% 18%;
  }
}
