/* Abrigo Amigo
   Cores tiradas do logo: azul-gelo do fundo (#E0E8F0) e azul-petróleo do traço (#5B6F76).
   O coral do coração (--heart) é a única cor extra e só aparece em chamadas de ajuda. */

:root {
  --ice: #e0e8f0;
  --mist: #f4f7fa;
  --sky: #b9cddc;
  --slate: #5b6f76;
  --deep: #1f323a;
  --heart: #c8452f;
  --white: #fff;

  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--deep);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }

:focus-visible { outline: 3px solid var(--heart); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--deep); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-size: clamp(2.9rem, 7.4vw, 6.2rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 700; max-width: 18ch; }
h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 46ch; color: var(--slate); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.7rem; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--sm { padding: 0.7rem 1.2rem; font-size: 0.95rem; }
.btn--deep { background: var(--deep); color: var(--white); }
.btn--deep:hover { background: var(--slate); }
.btn--heart { background: var(--heart); color: var(--white); }
.btn--heart:hover { background: #a93924; }
.btn--line { border-color: var(--deep); color: var(--deep); }
.btn--line:hover { background: var(--deep); color: var(--white); }
.link { font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--sky); }
.link:hover { text-decoration-color: var(--heart); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

/* ---------- Aviso no topo ---------- */
.alert { background: var(--heart); color: var(--white); font-size: .98rem; line-height: 1.4; }
.alert__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; padding-top: 10px; padding-bottom: 10px; text-align: center; }
.alert a { font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.alert a:hover { text-decoration-color: var(--ice); }
.alert :focus-visible { outline-color: var(--white); }

/* ---------- Navegação ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgb(244 247 250 / .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ice); }
.nav__bar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__logo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.brand__name { font: 700 1.3rem/1 var(--display); letter-spacing: -0.02em; }
.nav__menu { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.nav__menu a:not(.btn) { text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav__menu a:not(.btn):hover { border-bottom-color: var(--sky); }
.nav__toggle { display: none; font: 600 1rem var(--body); background: none; border: 2px solid var(--deep); border-radius: 999px; padding: 0.55rem 1.1rem; color: var(--deep); cursor: pointer; }

/* ---------- Placeholder de foto e arco ---------- */
.arch { overflow: hidden; border-radius: 999px 999px 0 0; background: var(--ice); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.ph {
  position: relative;
  background-color: var(--ice);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none' stroke='%235b6f76' stroke-opacity='.28' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M32 46c-6 0-11-4-11-8 0-5 5-9 11-9s11 4 11 9c0 4-5 8-11 8z'/%3E%3Cellipse cx='19' cy='24' rx='3.5' ry='5'/%3E%3Cellipse cx='45' cy='24' rx='3.5' ry='5'/%3E%3Cellipse cx='27' cy='16' rx='3.5' ry='5'/%3E%3Cellipse cx='37' cy='16' rx='3.5' ry='5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 56px;
}
.ph img { position: absolute; inset: 0; }

/* ---------- Hero ---------- */
.hero { background: var(--ice); padding-top: clamp(40px, 7vw, 88px); }
.hero__grid { display: grid; grid-template-columns: .95fr 1.15fr; gap: clamp(24px, 5vw, 72px); align-items: end; }
.hero__text { padding-bottom: clamp(40px, 6vw, 88px); }
.hero__text h1 { max-width: 11ch; margin-bottom: 1.5rem; }

.hero__arches { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: clamp(8px, 1.4vw, 16px); align-items: end; }
.hero__arches .arch { width: 100%; }
.arch--a { aspect-ratio: 1 / 1.45; }
.arch--b { aspect-ratio: 1 / 1.85; }
.arch--c { aspect-ratio: 1 / 1.2; }

.hero__strip {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); background: var(--deep); color: var(--ice); text-decoration: none;
  font-weight: 500;
}
.hero__strip-cta { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--slate); }
.hero__strip:hover .hero__strip-cta { text-decoration-color: var(--heart); }

/* Único momento de movimento: os arcos sobem ao carregar. */
@media (prefers-reduced-motion: no-preference) {
  .hero__arches .arch { transform-origin: bottom; animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .arch--b { animation-delay: .12s !important; }
  .arch--c { animation-delay: .24s !important; }
  @keyframes rise { from { transform: translateY(60px) scaleY(.7); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---------- Seções ---------- */
.section { padding: clamp(56px, 9vw, 120px) 0; }
.section--ice { background: var(--ice); }
.section--deep { background: var(--deep); color: var(--ice); }
.section__head { display: grid; gap: 1rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head p { max-width: 56ch; color: var(--slate); }
.note { font-size: .9rem; background: var(--ice); padding: .4rem .8rem; border-radius: 6px; justify-self: start; }

/* Cães */
.dogs { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.dog .arch { aspect-ratio: 4 / 5; }
.dogs__cta { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 48px); }
.dogs__cta .btn { font-size: 1.15rem; padding: 1.1rem 2.6rem; }

/* Passos */
.steps { margin-top: clamp(48px, 7vw, 96px); padding: clamp(24px, 4vw, 48px); border-radius: 32px; background: var(--white); border: 1px solid var(--ice); display: grid; gap: 1.5rem; }
.steps__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps__list li { position: relative; padding-top: 3rem; display: grid; gap: .3rem; align-content: start; counter-increment: step; }
.steps__list li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--ice); color: var(--deep); font: 700 1rem var(--display);
}
.steps__list strong { font: 700 1.15rem/1.2 var(--display); }
.steps__list span { color: var(--slate); font-size: .98rem; line-height: 1.5; }
.steps .btn { justify-self: start; }

/* Doação presencial */
.visit__address { font-weight: 600; }
.visit__map { border-radius: 32px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ice); border: 1px solid var(--ice); }
.visit__map iframe { display: block; width: 100%; height: 100%; }

/* Duas colunas */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
.split--rev .split__text { order: 0; }
.split__text { display: grid; gap: 1.25rem; justify-items: start; }
.split__text p { max-width: 50ch; }
.arch--wide { aspect-ratio: 1 / 1.05; width: 100%; max-width: 520px; justify-self: center; }

/* Doar */
.donate { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.donate__intro { display: grid; gap: 1.25rem; }
.donate__intro h2 { color: var(--white); }
.donate__intro p { max-width: 42ch; color: var(--sky); }
.donate__box { background: var(--mist); color: var(--deep); border-radius: 32px; padding: clamp(20px, 3.5vw, 40px); display: grid; gap: 20px; }
.donate__title { font: 700 1.3rem/1.2 var(--display); }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tier { display: grid; gap: 2px; height: 100%; padding: 16px 18px; border: 2px solid var(--sky); border-radius: 20px; background: var(--white); text-decoration: none; transition: border-color .15s, background-color .15s; }
.tier:hover { border-color: var(--deep); background: var(--ice); }
.tier__amount { font: 700 1.5rem/1.1 var(--display); }
.tier__what { font-size: .92rem; color: var(--slate); line-height: 1.35; }
.donate__hint { font-size: .95rem; color: var(--slate); }

/* Dívidas a quitar */
.bar { display: flex; height: 56px; border-radius: 999px; overflow: hidden; background: var(--ice); gap: 3px; }
.bar__seg { flex: var(--p) 1 0; min-width: 0; }
.legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: 28px; }
.legend li { display: grid; gap: 6px; align-content: start; }
.legend b { font: 700 clamp(1.9rem, 3vw, 2.6rem)/1 var(--display); letter-spacing: -0.02em; }
.legend strong { font-weight: 600; font-size: 1.1rem; }
.legend span { color: var(--slate); font-size: .98rem; line-height: 1.5; max-width: 36ch; }
.sw { width: 14px; height: 14px; border-radius: 50%; display: block; }
.bar__seg--1, .sw--1 { background: var(--deep); }
.bar__seg--2, .sw--2 { background: var(--slate); }
.bar__seg--3, .sw--3 { background: var(--heart); }
.debt__cta { margin-top: clamp(28px, 4vw, 48px); }

/* Rodapé */
.footer { background: var(--deep); color: var(--ice); padding-top: clamp(48px, 7vw, 80px); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer__brand { display: grid; gap: 16px; justify-items: start; max-width: 36ch; }
.footer__nav, .footer__contact { display: grid; gap: 10px; align-content: start; }
.footer a { text-underline-offset: 4px; }
.footer__legal { margin-top: 48px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--slate); font-size: .9rem; color: var(--sky); }

/* ---------- Telas menores ---------- */
@media (max-width: 960px) {
  .hero__grid, .donate, .split { grid-template-columns: 1fr; }
  .hero__text { padding-bottom: 0; }
  .hero__arches { max-width: 560px; }
  .dogs, .steps__list { grid-template-columns: 1fr 1fr; }
  .legend { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav__toggle { display: inline-block; }
  .nav__menu { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--mist); border-bottom: 1px solid var(--ice); }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--ice); }
  .nav__menu .btn { margin-top: 14px; }
}
@media (max-width: 560px) {
  .steps__list, .tiers { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .bar { height: 40px; }
}

/* Placeholder mais escuro onde o fundo já é azul-gelo */
.hero .ph, .section--ice .ph { background-color: var(--sky); }

/* Foto de grupo: arco mais aberto para não cortar quem está nas pontas */
.arch--group { border-radius: 50% 50% 0 0 / 30% 30% 0 0; }
