/* Farmácia Aliança. Cores tiradas do logo: azul royal (mão escura), azul céu (mão clara), verde da folha só para "aberto". */
:root {
  --royal: #1226e0;
  --royal-deep: #0b1aa8;
  --sky: #0f92cc;
  --sky-ink: #0a6f9e;      /* azul céu escurecido para texto (contraste 5:1 no branco) */
  --leaf: #6db33f;
  --leaf-ink: #2f7a12;     /* verde para texto de status */
  --ink: #0b1638;
  --ink-2: #44506e;
  --paper: #ffffff;
  --mist: #f2f7fb;
  --line: #d9e3ee;
  --font: "Outfit", system-ui, sans-serif;
  --r: 14px;
  --bar-h: 72px;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --shell: rgba(11, 22, 56, .045);
  --hair: rgba(11, 22, 56, .07);
  --lift: 0 1px 1px rgba(11, 22, 56, .04), 0 24px 48px -28px rgba(11, 22, 56, .22);
}

/* Casca dupla: bandeja de fora + placa de dentro, cantos concêntricos */
.shell { padding: 7px; border-radius: 30px; background: var(--shell); box-shadow: inset 0 0 0 1px var(--hair); }
.core { height: 100%; border-radius: 23px; background: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), var(--lift); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--font); overflow-x: hidden; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { top: 1rem; }

.wrap { width: min(1240px, 100% - 3rem); margin-inline: auto; }
.h2 { font-weight: 700; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.05; letter-spacing: -.025em; max-width: 22ch; text-wrap: balance; }

/* ---------- Barra ---------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--bar-h); display: flex; align-items: center; gap: 2rem; padding: 0 clamp(1rem, 3vw, 2.5rem); background: rgba(255, 255, 255, 0); border-bottom: 1px solid transparent; transition: background-color .5s var(--ease), border-color .5s var(--ease); }
.bar.is-solid { background: #fff; border-bottom-color: var(--hair); }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand__mark { width: 42px; height: 40px; }
.brand__name { display: flex; flex-direction: column; font-weight: 800; font-size: 1.3rem; line-height: .95; color: var(--sky-ink); letter-spacing: -.01em; }
.brand__name small { font-size: .7rem; font-weight: 600; letter-spacing: .32em; color: var(--royal); text-transform: uppercase; }
.bar__nav { display: flex; gap: 1.8rem; margin-left: auto; }
.bar__nav a { text-decoration: none; font-weight: 500; color: var(--ink-2); padding: .4rem 0; background: linear-gradient(var(--royal), var(--royal)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease), color .3s var(--ease); }
.bar__nav a:hover { color: var(--ink); background-size: 100% 2px; }
@media (max-width: 900px) { .bar__nav { display: none; } .bar .btn { margin-left: auto; } }

/* ---------- Botões (o movimento vem do GSAP em main.js) ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; isolation: isolate; min-height: 3.2rem; padding: 0 1.6rem; border-radius: 999px; background: var(--royal); color: #fff; font: 600 1rem/1 var(--font); text-decoration: none; white-space: nowrap; border: 2px solid var(--royal); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.btn--sm { min-height: 2.6rem; padding: 0 1.15rem; font-size: .93rem; }
.btn--lg { min-height: 3.6rem; padding: 0 1.9rem; font-size: 1.05rem; }
.btn--xl { min-height: 4.4rem; padding: 0 2.6rem; font-size: 1.2rem; }
.btn--wide { width: 100%; }
.btn--ghost { background: transparent; color: var(--royal); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--white { background: #fff; color: var(--royal-deep); border-color: #fff; }
.btn__fill { position: absolute; left: 0; top: 0; z-index: -1; border-radius: 50%; background: var(--ink); transform: scale(0); pointer-events: none; }
.btn--ghost .btn__fill, .btn--line .btn__fill { background: var(--royal); }
.btn--white .btn__fill { background: var(--leaf); }
.btn__roll { position: relative; display: block; overflow: hidden; height: 1.2em; line-height: 1.2; }
.btn__roll > span { display: block; }
.btn--icon { padding-right: .4rem; gap: 1rem; }
.btn--sm.btn--icon { padding-right: .3rem; }
.btn__icon { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: color-mix(in srgb, currentColor 16%, transparent); }
.btn--lg .btn__icon { width: 2.75rem; height: 2.75rem; }
.btn--xl .btn__icon { width: 3.4rem; height: 3.4rem; }
.btn__icon svg { width: 42%; height: 42%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--wide.btn--icon { justify-content: space-between; padding-left: 1.9rem; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--paper); }
.hero__pin { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(1rem, 4vw, 4rem); padding: calc(var(--bar-h) + 2rem) clamp(1.5rem, 5vw, 5rem) 3rem; overflow: hidden; }
.hero__where { font-weight: 600; color: var(--sky-ink); margin-bottom: 1.2rem; font-size: 1.05rem; }
.hero h1 { font-weight: 800; font-size: clamp(2.6rem, 4.9vw, 5rem); line-height: 1; letter-spacing: -.035em; max-width: 15ch; text-wrap: balance; }
.hero__lead { margin-top: 1.5rem; max-width: 34ch; font-size: clamp(1.1rem, 1.4vw, 1.3rem); color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.status { margin-top: 1.4rem; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: .55rem; }
.status.is-open, .final__status.is-open { color: var(--leaf-ink); }
.status.is-open::before { content: ""; width: 14px; height: 14px; flex: none; background: var(--leaf); clip-path: path("M0.5 12C1 4 6 .5 13.5 .2 13.3 7.6 8.5 12.5 1.6 13.5 1 13.6.5 13 .5 12z"); }
.hero__art { position: relative; display: grid; place-items: center; }
.shake { width: min(100%, 640px); height: auto; overflow: visible; }

@media (max-width: 860px) {
  .hero__pin { grid-template-columns: 1fr; align-content: start; gap: 1rem; padding-top: calc(var(--bar-h) + 1rem); }
  .hero__art { order: -1; }
  .shake { width: min(78vw, 360px); }
  .hero h1 { font-size: clamp(2.3rem, 9.6vw, 3.4rem); max-width: 16ch; }
  .hero__lead { margin-top: 1rem; }
  .hero__cta { margin-top: 1.5rem; }
  .hero__cta .btn { flex: 1 1 auto; }
}

/* ---------- Informações ---------- */
.info { padding: clamp(6rem, 12vw, 10rem) 0 clamp(5rem, 9vw, 8rem); background: var(--mist); }
.info .h2 { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.visit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.visit__now { font-weight: 700; font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.1; letter-spacing: -.02em; }
.visit__now.is-open { color: var(--leaf-ink); }
.week { list-style: none; margin: 1.8rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.week li { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
.week span { font-weight: 500; }
.week b { font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.week .is-today span, .week .is-today b { color: var(--royal); font-weight: 700; }
.week .is-today span::after { content: "hoje"; margin-left: .7rem; padding: .15rem .55rem; border-radius: 6px; background: var(--royal); color: #fff; font-size: .78rem; font-weight: 600; vertical-align: .12em; }
.visit__note { margin-top: 1.4rem; color: var(--ink-2); font-size: .98rem; }
.visit__place { padding-top: .5rem; }
.visit__label { font-weight: 600; color: var(--ink-2); margin-bottom: .8rem; }
.visit__addr { font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.08; letter-spacing: -.02em; }
.visit__cep { margin: .6rem 0 1.8rem; color: var(--ink-2); font-size: 1.08rem; }
.visit__pay { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--ink-2); max-width: 30ch; }
@media (max-width: 860px) {
  .visit { grid-template-columns: 1fr; gap: 3.5rem; }
}

/* ---------- Mensagem pronta ---------- */
.order { padding: clamp(6rem, 12vw, 10rem) 0; }
.order__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.order__head { position: sticky; top: calc(var(--bar-h) + 2rem); }
.order__lead { margin-top: 1.4rem; max-width: 36ch; color: var(--ink-2); font-size: 1.15rem; }
.composer { display: grid; gap: 1.6rem; padding: clamp(1.6rem, 3.4vw, 2.8rem); }
.composer fieldset { border: 0; margin: 0; padding: 0; }
.composer legend, .field label { font-weight: 600; margin-bottom: .7rem; padding: 0; display: block; }
.field label span { font-weight: 400; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip { position: relative; display: inline-flex; overflow: hidden; isolation: isolate; border-radius: 999px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .5s var(--ease); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: block; padding: .8rem 1.15rem; font-weight: 500; transition: color .4s var(--ease); }
.chip .btn__fill { background: var(--royal); }
.chip:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--royal); }
.chip:has(input:checked) span { color: #fff; }
.chip:has(input:focus-visible) { outline: 3px solid var(--royal); outline-offset: 3px; }
.field input { width: 100%; min-height: 3.4rem; padding: 0 1.1rem; border: 0; border-radius: 16px; font: 400 1.05rem var(--font); color: var(--ink); background: var(--mist); box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .5s var(--ease), background-color .5s var(--ease); }
.field input::placeholder { color: #6b7590; }
.field input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--royal), 0 0 0 5px rgba(18, 38, 224, .1); }
.bubble { position: relative; padding: 1.2rem 1.4rem 1.3rem; background: #eaf4fb; border-radius: 22px 22px 22px 6px; }
.bubble__to { font-size: .9rem; font-weight: 600; color: var(--sky-ink); margin-bottom: .35rem; }
.bubble__msg { font-size: 1.12rem; line-height: 1.45; min-height: 3em; }
@media (max-width: 860px) {
  .order__grid { grid-template-columns: 1fr; }
  .order__head { position: static; }
}

/* ---------- Onde ---------- */
.where { padding: 0 0 clamp(6rem, 12vw, 10rem); }
.where__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.where__text p { margin-top: 1.3rem; max-width: 36ch; color: var(--ink-2); font-size: 1.12rem; }
.where__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.map { overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); }
.map { position: relative; isolation: isolate; }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.75); }
.map__pin { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -34px 0 0 -14px; background: var(--royal); border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); pointer-events: none; }
@media (max-width: 860px) { .where__grid { grid-template-columns: 1fr; } }

/* ---------- Chamada final ---------- */
.final { background: var(--royal); color: #fff; padding: clamp(6rem, 12vw, 9rem) 0; overflow: hidden; }
.final__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.final h2 { font-weight: 800; font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: 1; letter-spacing: -.035em; }
.final__status { margin: 1.3rem 0 2.4rem; font-size: 1.2rem; font-weight: 500; color: #dfe6ff; }
.final__status.is-open { color: #c9f0ad; }
.final__phone { margin-top: 1.5rem; color: #dfe6ff; }
.final__phone a { color: #fff; font-weight: 600; }

/* ---------- Rodapé ---------- */
.foot { padding: 4rem 0 2.5rem; background: var(--ink); color: #c8d0e4; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.foot__brand { display: flex; gap: 1rem; align-items: flex-start; }
.foot strong { color: #fff; }
.foot a { color: #fff; }
.foot__legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; color: #9aa5c2; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; } }
