/* =========================================================
   Assistência Funerária Minicceli — versão "só o cartão"
   Cores: todas definidas aqui em :root.
   ========================================================= */
:root {
  --azul-900: #0f2345;
  --azul-800: #16305c;
  --azul-700: #1f3f75;
  --azul-100: #e3eaf5;

  --gelo:    #f3f6f9;
  --gelo-2:  #e9eef3;
  --branco:  #ffffff;
  --texto:   #1f2733;
  --texto-2: #5a6573;
  --borda:   #d8e0e8;

  --whatsapp:       #1f9d55;
  --whatsapp-hover: #188447;

  --font-titulo: "Cormorant Garamond", Georgia, serif;
  --font-texto:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --raio: 10px;
  --sombra: 0 1px 2px rgba(15, 35, 69, .06), 0 6px 20px rgba(15, 35, 69, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-texto);
  font-size: 16px;
  line-height: 1.6;
  color: var(--texto);
  background: var(--gelo);
  -webkit-font-smoothing: antialiased;
}
svg { display: block; }
a { color: var(--azul-700); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; color: var(--azul-900); }
h2 { font-family: var(--font-titulo); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.eyebrow {
  display: inline-block; margin-bottom: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--azul-700);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  border-radius: 8px; border: 2px solid transparent;
  font: 600 .95rem/1 var(--font-texto); letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .88rem; }
.btn--primary { background: var(--azul-800); color: var(--branco); }
.btn--primary:hover { background: var(--azul-900); }
.btn--whatsapp { background: var(--whatsapp); color: var(--branco); }
.btn--whatsapp:hover { background: var(--whatsapp-hover); }
.btn--outline { border-color: var(--azul-800); color: var(--azul-800); }
.btn--outline:hover { background: var(--azul-800); color: var(--branco); }
a:focus-visible { outline: 3px solid #7aa2e3; outline-offset: 2px; }

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--borda);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--azul-800); }
.brand__logo { width: 52px; height: 52px; flex-shrink: 0; --logo-traco: 26; }
.brand__text { display: flex; flex-direction: column; font-family: var(--font-titulo); line-height: 1.05; }
.brand__small { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.brand__name  { font-size: 1.45rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.brand--light { color: var(--branco); }

.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { color: var(--texto); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--azul-700); }
/* ---------- Abertura ---------- */
.hero {
  background:
    radial-gradient(700px 360px at 50% 0%, var(--azul-100), transparent 75%),
    var(--gelo);
  padding: 80px 0 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
  --centro-logo: 155px;   /* altura do centro da logo (padding + metade da logo) */
}
.hero__inner { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; }

/* marca d'água: molduras da logo em grande, concêntricas com a logo, sumindo nas bordas */
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 60% 75% at 50% 30%, #000 35%, transparent 100%);
          mask-image: radial-gradient(ellipse 60% 75% at 50% 30%, #000 35%, transparent 100%);
}
.hero__moldura {
  position: absolute; left: 50%; top: var(--centro-logo);
  color: var(--azul-800);
  translate: -50% -50%;
}
.hero__moldura--1 { width: 620px; height: 620px; opacity: .09; --logo-traco: 3; }
.hero__moldura--2 { width: 1150px; height: 1150px; opacity: .06; --logo-traco: 2; rotate: 22.5deg; }
.hero__logo { width: 150px; height: 150px; color: var(--azul-800); margin-bottom: 20px; }
.hero h1 {
  font-family: var(--font-titulo); font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  letter-spacing: .08em; text-transform: uppercase;
  line-height: 1.05;
}
.hero__small {
  display: block;
  font-size: .38em; letter-spacing: .2em; font-weight: 600;
  color: var(--azul-700); margin-bottom: 6px;
}
/* selo de experiência: dois números lado a lado, separados por um traço fino */
.hero__exp {
  display: flex; justify-content: center; align-items: stretch;
  margin: 10px 0 14px;
}
.hero__exp p {
  margin: 0; padding: 4px 36px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.hero__exp p + p { border-left: 1px solid var(--borda); }
.hero__exp strong {
  font-family: var(--font-titulo); font-weight: 600;
  font-size: 3rem; line-height: 1;
  font-variant-numeric: lining-nums;
  color: var(--azul-800);
}
.hero__exp span {
  max-width: 17em;
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  line-height: 1.5;
  color: var(--azul-700);
}
.lead { font-size: 1.15rem; color: var(--texto-2); max-width: 34em; margin-top: 8px; }
.hero__people { color: var(--texto); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; margin-top: 16px; }

/* ---------- Seções ---------- */
.section { padding: 80px 0; }
.section--white { background: var(--branco); }
.section__head { text-align: center; margin-bottom: 40px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--gelo);
  border: 1px solid var(--borda);
  border-top: 3px solid var(--azul-800);
  border-radius: var(--raio);
  padding: 32px 26px;
  text-align: center;
}
.card h3 { font-size: 1.1rem; margin: 0; }
.card__icon {
  width: 56px; height: 56px; margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--azul-100); color: var(--azul-800);
}
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Animações dos ícones de Serviços (ao passar o mouse no cartão) ---------- */
.card__icon--recorte { overflow: hidden; }   /* só o avião: some ao sair do círculo */
.card__icon svg { overflow: visible; }        /* o coração sobe além da área do desenho sem ser cortado */

/* avião: decola na diagonal, some e volta entrando pelo lado oposto */
@keyframes aviao-voa {
  0%   { transform: translate(0, 0); opacity: 1; }
  40%  { transform: translate(30px, -30px); opacity: 0; }
  41%  { transform: translate(-30px, 30px); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}
.card:hover .anim-aviao { animation: aviao-voa 1.1s cubic-bezier(.45, 0, .25, 1); }

/* coração: sobe, dá um giro de 360° e volta para a mão */
.anim-coracao { transform-box: fill-box; transform-origin: center; }
@keyframes coracao-gira {
  0%   { transform: translateY(0) rotate(0); }
  25%  { transform: translateY(-5px) rotate(0); }
  75%  { transform: translateY(-5px) rotate(360deg); }
  100% { transform: translateY(0) rotate(360deg); }
}
.card:hover .anim-coracao { animation: coracao-gira 1.2s ease-in-out; }

/* lápide: as duas linhas são "gravadas" de novo, uma após a outra */
.anim-gravar { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
@keyframes gravar {
  0%, 15% { stroke-dashoffset: 1; }
  100%    { stroke-dashoffset: 0; }
}
.card:hover .anim-gravar { animation: gravar .7s ease-out both; }
.card:hover .anim-gravar--2 { animation-delay: .35s; }

/* ---------- Orçamentos ---------- */
.section__sub { color: var(--texto-2); margin: 0; }

/* título à esquerda, lista de serviços à direita (estilo cardápio) */
.quote-layout {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px; align-items: start;
}
.quote-layout__head { position: sticky; top: 110px; }
.quote-layout__head h2 { margin-bottom: 14px; }
.quote-layout__wa {
  display: inline-block; margin-top: 22px;
  font-family: var(--font-titulo); font-size: 1.5rem; font-weight: 600;
  color: var(--azul-800); text-decoration: none;
  border-bottom: 1px solid var(--borda);
  font-variant-numeric: lining-nums;   /* Cormorant usa números "antigos" (11 parece ıı) */
}
.quote-layout__wa:hover { border-color: var(--azul-800); }

.quote-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--borda); }
.quote-list li { border-bottom: 1px solid var(--borda); }
.quote-row {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 20px;
  padding: 22px 16px;
  color: inherit; text-decoration: none;
  transition: background .2s;
}
.quote-row__icon { color: var(--azul-800); display: flex; }
.quote-row__icon svg {
  width: 30px; height: 30px;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.quote-row__name {
  font-family: var(--font-titulo); font-weight: 600; font-size: 1.6rem; line-height: 1.2;
  color: var(--azul-900);
}
.quote-row__cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--azul-700);
  white-space: nowrap;
}
.quote-row__cta svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .25s ease;
}
.quote-row:hover, .quote-row:focus-visible { background: var(--branco); }
.quote-row:hover .quote-row__cta svg, .quote-row:focus-visible .quote-row__cta svg { transform: translateX(5px); }
.quote-row:focus-visible { outline: 3px solid #7aa2e3; outline-offset: -3px; }

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: stretch; }
.contact__card {
  background: var(--gelo);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 32px;
}
.contact__card h3 {
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--texto-2); margin: 24px 0 8px;
}
.contact__card h3:first-child { margin-top: 0; }
.phones { list-style: none; margin: 0; padding: 0; }
.phones li { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.phones a:not(.tag-wa) { font-size: 1.2rem; font-weight: 600; color: var(--azul-900); text-decoration: none; }
.phones a:not(.tag-wa):hover { text-decoration: underline; }
.tag-wa {
  font-size: .75rem; font-weight: 600; text-decoration: none;
  color: var(--branco); background: var(--whatsapp);
  padding: 3px 10px; border-radius: 999px;
}
.email { font-weight: 500; word-break: break-all; }
address { font-style: normal; margin-bottom: 16px; }

.map { border-radius: var(--raio); overflow: hidden; border: 1px solid var(--borda); background: var(--gelo-2); min-height: 380px; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Rodapé ---------- */
.footer { background: var(--azul-900); color: #b9c7db; padding: 40px 0; font-size: .9rem; text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer p { margin: 0; }
.footer__copy { font-size: .8rem; color: #8ea0ba; }

/* ---------- Botões de ícone (telefone / WhatsApp) ----------
   Mostram só o ícone; ao passar o mouse (ou focar pelo teclado)
   o botão se estica e o texto aparece. */
.icon-btn {
  --tam: 64px;
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--tam); min-width: var(--tam);
  padding: 0 calc((var(--tam) - 28px) / 2);
  border-radius: 999px;
  color: var(--branco);
  font: 600 1rem/1 var(--font-texto); letter-spacing: .02em;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15, 35, 69, .16);
  transition: background .2s, box-shadow .2s, transform .2s;
}
.icon-btn svg { width: 28px; height: 28px; flex-shrink: 0; }
.icon-btn__label {
  max-width: 0; margin-left: 0;
  overflow: hidden; white-space: nowrap;
  line-height: 1.5;   /* espaço para a "perninha" do g/p (o overflow cortava) */
  opacity: 0;
  transition: max-width .35s ease, margin-left .35s ease, opacity .2s ease;
}
.icon-btn:hover, .icon-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 35, 69, .22);
}
.icon-btn:hover .icon-btn__label,
.icon-btn:focus-visible .icon-btn__label {
  max-width: 220px; margin-left: 12px; opacity: 1;
  transition: max-width .35s ease, margin-left .35s ease, opacity .25s ease .1s;
}
.icon-btn--phone { background: var(--azul-800); }
.icon-btn--phone:hover { background: var(--azul-900); }
.icon-btn--whatsapp { background: var(--whatsapp); }
.icon-btn--whatsapp:hover { background: var(--whatsapp-hover); }
.icon-btn:focus-visible { outline: 3px solid #7aa2e3; outline-offset: 3px; }

/* Celular/tablet (sem mouse): o texto dos botões da abertura fica sempre visível */
@media (hover: none) {
  .hero__actions .icon-btn__label { max-width: 220px; margin-left: 12px; opacity: 1; }
}
@media (hover: none) and (max-width: 600px) {
  .hero__actions { width: 100%; flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .icon-btn, .icon-btn__label { transition: none !important; }
  .icon-btn:hover, .icon-btn:focus-visible { transform: none; }
  .card:hover .anim-aviao, .card:hover .anim-coracao, .card:hover .anim-gravar { animation: none; }
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .quote-layout { grid-template-columns: 1fr; gap: 32px; }
  .quote-layout__head { position: static; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav a:not(.btn) { display: none; }
  .brand__logo { width: 46px; height: 46px; }
  .brand__name { font-size: 1.2rem; }
  .brand__small { font-size: .66rem; }

  .hero { padding: 56px 0 64px; --centro-logo: 116px; }
  .hero__exp p { padding: 4px 16px; }
  .hero__exp strong { font-size: 2.5rem; }
  .hero__exp span { font-size: .64rem; letter-spacing: .1em; }
  .hero__moldura--1 { width: 420px; height: 420px; }
  .hero__moldura--2 { width: 760px; height: 760px; }
  .hero__logo { width: 120px; height: 120px; }
  .section { padding: 60px 0; }
  .contact__card { padding: 24px; }
  .quote-row { grid-template-columns: 32px 1fr auto; gap: 14px; padding: 18px 4px; }
  .quote-row__icon svg { width: 26px; height: 26px; }
  .quote-row__name { font-size: 1.35rem; }
  .quote-row__cta { font-size: 0; gap: 0; }          /* no celular fica só a seta */
  .quote-row__cta svg { width: 22px; height: 22px; }}
