/* ════════════════════════════════════════════════
   GRANDES AMIGOS — Pet Shop e Clínica Veterinária
   style.css
   Abordagem: mobile-first
════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────── */
:root {
  --green:        #176B66;
  --green-dark:   #0F4F4B;
  --green-light:  #EAF5F3;
  --beige:        #F7F3EC;
  --white:        #FFFFFF;
  --text:         #263333;
  --text-muted:   #5B6968;
  --accent:       #E58B45;
  --accent-hover: #CF7433;
  --border:       #DDE7E5;

  --radius:       10px;
  --radius-lg:    16px;
  --shadow-sm:    0 1px 4px rgba(23,107,102,.08);
  --shadow-md:    0 4px 20px rgba(23,107,102,.12);

  --max-w:        1160px;
  --header-h:     68px;

  --font: Inter, Arial, Helvetica, sans-serif;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
ul[role="list"], ol[role="list"] { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── FOCO VISÍVEL ────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── SKIP LINK ───────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: .5rem 1rem;
  background: var(--green);
  color: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  z-index: 10000;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ── CONTAINER ───────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ── BOTÕES ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  min-height: 48px;
  transition: background .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-secondary:hover { background: var(--green-light); }

/* ── HEADER ──────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

/* Marca */
.brand {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-icon svg { flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green);
}
.brand-sub {
  font-size: .72rem;
  color: var(--text-muted);
  letter-spacing: .01em;
}

/* Nav desktop */
.main-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.main-nav ul a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--text);
  transition: color .2s;
  padding-block: .25rem;
}
.main-nav ul a:hover { color: var(--green); }
.btn-nav { padding: .6rem 1.2rem; font-size: .88rem; min-height: 42px; }

/* Hambúrguer */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: .5rem;
  border-radius: var(--radius);
}
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile */
.menu-mobile {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0;
  background: var(--white);
  z-index: 99;
  overflow-y: auto;
  padding: 1.5rem 1.25rem 2rem;
  border-top: 1px solid var(--border);
}
.menu-mobile.is-open { display: block; }
.menu-mobile ul { list-style: none; display: flex; flex-direction: column; gap: .25rem; }
.menu-mobile ul a,
.mobile-link {
  display: block;
  padding: .875rem 1rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: background .15s, color .15s;
}
.menu-mobile ul a:hover { background: var(--green-light); color: var(--green); }
.btn-mobile-cta {
  width: 100%;
  justify-content: center;
  margin-top: .75rem;
}

/* ── HERO ────────────────────────────────────── */
.hero {
  padding: 3.5rem 0 0;
  background: var(--white);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.hero-eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-light);
  padding: .35rem .85rem;
  border-radius: 100px;
  margin-bottom: .75rem;
}

.hero-headline {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: .75rem;
}

.hero-body {
  font-size: .97rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  margin-bottom: 1rem;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: .25rem;
}
.hero-note svg { flex-shrink: 0; color: var(--green); }

/* Hero imagem */
.hero-image {
  width: 100%;
  order: 1;
}
.hero-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 16/10;
}

.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--green-light);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
  color: var(--text-muted);
  text-align: center;
  padding: 3rem 2rem;
  min-height: 280px;
}
.img-placeholder p { font-size: .9rem; line-height: 1.6; }
.img-placeholder small { font-size: .8rem; font-family: monospace; }
.img-placeholder--hero { aspect-ratio: 16/10; min-height: unset; }

/* ── DIFERENCIAIS ────────────────────────────── */
.diferenciais {
  background: var(--green-light);
  padding: 2.5rem 0;
  margin-top: 3rem;
}

.diferenciais-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.diferencial-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.diferencial-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.diferencial-titulo {
  font-size: .95rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: .25rem;
}

.diferencial-desc {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── SERVIÇOS ────────────────────────────────── */
.servicos {
  padding: 4rem 0;
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  margin-bottom: .75rem;
  line-height: 1.25;
}
.section-header p {
  font-size: .97rem;
  color: var(--text-muted);
}
.section-header--light h2 { color: var(--white); }
.section-header--light p  { color: rgba(255,255,255,.8); }

.servicos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.servico-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: box-shadow .2s, border-color .2s;
}
.servico-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green);
}

.servico-icon { display: block; }

.servico-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.servico-card p {
  font-size: .93rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.servico-nota {
  display: flex !important;
  align-items: flex-start;
  gap: .4rem;
  font-size: .83rem !important;
  color: var(--text-muted) !important;
  background: var(--green-light);
  padding: .5rem .75rem;
  border-radius: 6px;
  border-left: 3px solid var(--green);
}
.servico-nota svg { flex-shrink: 0; color: var(--green); margin-top: 1px; }

.servico-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--green);
  margin-top: .25rem;
  transition: gap .2s, color .2s;
  align-self: flex-start;
}
.servico-link:hover { color: var(--green-dark); gap: .65rem; }

/* ── SOBRE ───────────────────────────────────── */
.sobre {
  background: var(--beige);
  padding: 4.5rem 0;
}

.sobre-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.sobre-image {
  flex-shrink: 0;
}
.sobre-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
}
.img-placeholder--sobre {
  aspect-ratio: 4/3;
  min-height: unset;
}

.sobre-text h2 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  margin-bottom: 1rem;
  line-height: 1.25;
}
.sobre-text > p {
  font-size: .97rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 48ch;
}

.sobre-lista {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.sobre-lista li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .95rem;
  color: var(--text);
  font-weight: 500;
}
.sobre-lista li svg { flex-shrink: 0; }

/* ── ATENDIMENTO ─────────────────────────────── */
.atendimento {
  background: var(--green-dark);
  padding: 4.5rem 0;
  color: var(--white);
}

.atendimento .section-header { margin-bottom: 3rem; }

.atendimento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.atendimento-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .625rem;
}

.atendimento-icon {
  display: block;
  margin-bottom: .25rem;
}
.atendimento-icon svg { stroke: rgba(255,255,255,.85); }

.atendimento-card h3 {
  font-size: .92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.65);
}

.atendimento-card p,
.atendimento-card address {
  font-size: .97rem;
  color: var(--white);
  line-height: 1.65;
}

.atendimento-sub {
  font-size: .87rem !important;
  color: rgba(255,255,255,.65) !important;
}

.atendimento-phone {
  font-size: 1.1rem !important;
  font-weight: 600;
}

.atendimento-email {
  color: var(--white);
  font-size: .97rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.atendimento-email:hover { color: var(--green-light); }

.badge-provisorio {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(229,139,69,.15);
  border: 1px solid rgba(229,139,69,.4);
  padding: .2rem .6rem;
  border-radius: 100px;
  letter-spacing: .02em;
}

.atendimento-cta {
  display: flex;
  justify-content: center;
}
.btn-wa-atendimento {
  background: #25D366;
  color: var(--white);
  font-size: 1rem;
  padding: .875rem 2rem;
}
.btn-wa-atendimento:hover { background: #1ebe5d; }

/* ── FOOTER ──────────────────────────────────── */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.8);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .1rem;
}
.footer-brand-sub {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  margin-bottom: .75rem;
}
.footer-desc {
  font-size: .88rem;
  line-height: 1.6;
  max-width: 28ch;
}

.footer-col h3 {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(255,255,255,.5);
  margin-bottom: .75rem;
}
.footer-col p,
.footer-col address {
  font-size: .9rem;
  line-height: 1.7;
  color: rgba(255,255,255,.8);
}
.footer-col a {
  color: rgba(255,255,255,.8);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--white); }

.footer-legal {
  padding: 1.5rem 0;
  border-top: none;
}
.footer-legal .container {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: .25rem;
}

.footer-link-modal {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.footer-link-modal:hover { color: var(--white); }

.footer-empresa {
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}
.footer-cnpj {
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}
.footer-copyright {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}

/* ── BOTÃO FAB WHATSAPP ──────────────────────── */
.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37,211,102,.55);
}
.whatsapp-fab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.fab-tooltip {
  position: absolute;
  right: calc(100% + .75rem);
  top: 50%;
  transform: translateY(-50%);
  background: var(--text);
  color: var(--white);
  font-size: .8rem;
  font-weight: 500;
  white-space: nowrap;
  padding: .4rem .75rem;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.fab-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--text);
}
.whatsapp-fab:hover .fab-tooltip,
.whatsapp-fab:focus-visible .fab-tooltip {
  opacity: 1;
}

/* ── MODAIS ──────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15,30,30,.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
.modal-overlay.is-open { display: flex; }

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  margin: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.modal-close:hover { background: var(--green-light); color: var(--text); }

.modal-body {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.modal-body p {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.modal-body a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.modal-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin-block: .5rem;
}
.modal-empresa {
  font-size: .82rem !important;
  color: rgba(38,51,51,.5) !important;
  line-height: 1.6 !important;
}

.modal-footer {
  padding: 1rem 1.75rem 1.5rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
}

/* ── RESPONSIVIDADE ──────────────────────────── */

/* Tablet (≥ 640px) */
@media (min-width: 640px) {
  .diferenciais-grid {
    grid-template-columns: 1fr 1fr;
  }
  .servicos-grid {
    grid-template-columns: 1fr 1fr;
  }
  .atendimento-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Desktop (≥ 900px) */
@media (min-width: 900px) {
  /* Header */
  .main-nav { display: flex; }
  .menu-toggle { display: none; }

  /* Hero em 2 colunas */
  .hero { padding: 5rem 0 0; }
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }
  .hero-text { flex: 1; }
  .hero-image {
    flex: 1;
    order: 0;
    max-width: 520px;
  }
  .hero-image img {
    aspect-ratio: 900/700;
    border-radius: var(--radius-lg);
  }
  .img-placeholder--hero { aspect-ratio: 900/700; }

  /* Diferenciais em 4 colunas */
  .diferenciais { margin-top: 0; }
  .diferenciais-grid { grid-template-columns: repeat(4, 1fr); }

  /* Serviços em 4 colunas */
  .servicos-grid { grid-template-columns: repeat(4, 1fr); }

  /* Sobre em 2 colunas */
  .sobre-inner {
    flex-direction: row;
    align-items: center;
    gap: 5rem;
  }
  .sobre-image {
    flex: 0 0 460px;
  }
  .sobre-image img { aspect-ratio: 4/3.25; }
  .img-placeholder--sobre { aspect-ratio: 4/3.25; }
  .sobre-text { flex: 1; }

  /* Atendimento em 4 colunas */
  .atendimento-grid { grid-template-columns: repeat(4, 1fr); }

  /* Footer em 4 colunas */
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
  .footer-legal .container { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
  .footer-links { margin-bottom: 0; }
}

/* Larguras largas */
@media (min-width: 1200px) {
  .hero-text { max-width: 560px; }
}

/* ── HERO: diferenciais logo abaixo ─────────── */
@media (min-width: 900px) {
  .hero { padding-bottom: 0; }
  .diferenciais { padding: 3rem 0; }
}

/* Mobile pequeno (≤ 375px) */
@media (max-width: 375px) {
  .hero-headline { font-size: 1.65rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .btn-nav { display: none; }
}
