/* ─── Header ────────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: transform 0.6s var(--ease-out);
}
.site-header::before { /* fundo que surge ao rolar */
  content: ''; position: absolute; inset: 0;
  background: rgba(250, 243, 239, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity 0.5s var(--ease-out);
}
.site-header.is-scrolled::before, .site-header.is-solid::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__bar {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem;
  height: var(--header-h); transition: height 0.5s var(--ease-out);
}
.site-header.is-scrolled .site-header__bar { height: var(--header-h-compact); }

.brand { position: relative; display: inline-flex; align-items: center; gap: 0.85rem; transform-origin: 30% 50%; }
.brand__badge {
  width: 56px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; flex: none;
  box-shadow: 0 0 0 1px rgba(110, 58, 65, 0.1);
  transition: width 0.5s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
/* microinteração: linha vinho que se revela e destaque discreto do nome */
.brand__line {
  position: absolute; left: 0; right: 0; bottom: -8px; height: 1px; background: var(--wine); opacity: 0.75;
  transform: scaleX(0); transform-origin: right center; transition: transform 0.7s var(--ease-out);
  pointer-events: none;
}
.brand.is-near .brand__line, .brand.is-tap .brand__line { transform: scaleX(1); transform-origin: left center; transition-duration: 0.9s; }
.brand.is-near .brand__badge { box-shadow: 0 0 0 1px rgba(110, 58, 65, 0.3), 0 8px 22px -10px rgba(63, 30, 35, 0.45); }
.brand .brand__name { transition: color 0.6s var(--ease-out); }
.brand:active .brand__badge { transform: scale(0.97); transition: transform 0.2s; }
.brand__badge img { width: 100%; height: 100%; object-fit: cover; }
.site-header.is-scrolled .brand__badge { width: 44px; }
.brand__name {
  font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--wine-deep);
  line-height: 1;
}
.brand__name small { display: block; margin-top: 0.3rem; font-family: var(--sans); font-size: 0.56rem; letter-spacing: 0.42em; color: var(--ink-3); }

/* menu em cápsula de vidro (Liquid Glass) com uma lente que desliza até o item */
.primary-nav { justify-self: center; border-radius: 999px; padding: 0.3rem 0.5rem; }
.site-header:not(.is-over-media) .primary-nav { --glass-tint: 242, 218, 216; --glass-alpha: 0.3; border-color: rgba(255, 255, 255, 0.7); }
.primary-nav ul { position: relative; display: flex; align-items: center; gap: clamp(0.2rem, -0.4rem + 0.9vw, 0.9rem); }
.nav-lens {
  position: absolute; left: 0.5rem; top: 0.3rem; bottom: 0.3rem; width: 0; border-radius: 999px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.22));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(110, 58, 65, 0.12), 0 4px 14px -6px rgba(63, 30, 35, 0.35);
  opacity: 0; transform-origin: left center;
  transition: transform 0.6s var(--ease-out), width 0.6s var(--ease-out), opacity 0.4s var(--ease-out);
}
.nav-lens.is-on { opacity: 0.75; }
.nav-lens.is-on.is-hover { opacity: 1; }
.is-over-media .nav-lens { background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.1)); }
.nav-link {
  position: relative; z-index: 1; display: inline-flex; align-items: center; padding: 0.55rem 0.7rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
  white-space: nowrap; transition: color 0.4s var(--ease-out);
}
.nav-link[aria-current='page'] { color: var(--wine); }
@media (max-width: 1340px) {
  .nav-link { font-size: 0.66rem; letter-spacing: 0.08em; padding-inline: 0.55rem; }
}
.roll { display: block; }

/* sobre o vídeo da hero: texto claro, sem barra de fundo */
.is-over-media .nav-link, .is-over-media .icon-btn, .is-over-media .brand__name { color: #FBF5F1; }
.is-over-media .nav-link[aria-current='page'] { color: #FBF5F1; }
.is-over-media .brand__name small { color: rgba(251, 245, 241, 0.7); }
.is-over-media .burger span { background: #FBF5F1; }
.is-over-media .brand__line { background: var(--blush); }
@media (hover: hover) { .is-over-media .icon-btn:hover { background: rgba(255, 255, 255, 0.14); color: #FBF5F1; } }

.header-actions { display: flex; align-items: center; gap: 0.15rem; justify-self: end; }
.count-badge {
  position: absolute; top: 5px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  display: grid; place-items: center; background: var(--wine); color: var(--off);
  font-size: 0.62rem; font-weight: 700; line-height: 1;
  transform: scale(0); transition: transform 0.4s var(--ease-out);
}
.count-badge.is-on { transform: scale(1); }
.count-badge.bump { animation: bump 0.5s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.35); } }
.bag-soon { opacity: 0.55; cursor: default; }
.bag-soon .tip {
  position: absolute; top: calc(100% + 6px); right: 0; padding: 0.4rem 0.7rem; border-radius: var(--r-sm);
  background: var(--ink); color: var(--off); font-size: 0.68rem; letter-spacing: 0.04em; white-space: nowrap;
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease-out);
}
.bag-soon:hover .tip, .bag-soon:focus-visible .tip { opacity: 1; transform: none; }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.burger span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform 0.45s var(--ease-out), width 0.45s var(--ease-out);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; right: 18px; }
@media (hover: hover) { .burger:hover span:nth-child(2) { right: 11px; } }

@media (max-width: 1180px) {
  .primary-nav { display: none; }
  .burger { display: inline-block; }
  .site-header__bar { grid-template-columns: 1fr auto 1fr; gap: 0.5rem; }
  .brand { justify-self: center; grid-column: 2; grid-row: 1; }
  .burger { grid-column: 1; grid-row: 1; justify-self: start; margin-left: -10px; }
  .header-actions { grid-column: 3; grid-row: 1; margin-right: -8px; }
}
@media (max-width: 560px) {
  .brand__name { display: none; }
  .brand__badge { width: 46px; }
  .site-header.is-scrolled .brand__badge { width: 40px; }
  .header-actions .icon-btn { width: 42px; height: 42px; }
}

/* ─── Menu mobile ───────────────────────────────────────────────────────────── */
.mobile-nav {
  position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column;
  background: var(--blush); color: var(--ink);
  clip-path: inset(0 0 100% 0); transition: clip-path 0.8s var(--ease-io);
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-nav.is-open { clip-path: inset(0 0 0 0); }
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding-inline: var(--gutter); }
.mobile-nav__top .brand__badge { width: 46px; }
.mobile-nav__close { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(110, 58, 65, 0.25); }
.mobile-nav__list { padding: 1.5rem var(--gutter) 2rem; display: grid; gap: 0.2rem; }
.mobile-nav__list a {
  display: flex; align-items: baseline; gap: 1rem; padding-block: 0.45rem;
  font-family: var(--serif); font-size: clamp(2.1rem, 8.5vw, 3.2rem); line-height: 1.05; color: var(--wine-deep);
}
.mobile-nav__list a small { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.2em; color: var(--wine); opacity: 0.7; min-width: 1.6rem; }
.mobile-nav__list a[aria-current='page'] { font-style: italic; color: var(--wine); }
.mobile-nav__item { overflow: hidden; }
.mobile-nav__item > a { transform: translateY(105%); transition: transform 0.8s var(--ease-out); transition-delay: calc(0.18s + var(--i) * 0.06s); }
.mobile-nav.is-open .mobile-nav__item > a { transform: none; }
/* Liquid Glass sutil nos itens: aparece no hover (desktop) ou enquanto o dedo toca (celular) e some sozinho */
/* a folga fica no item (que recorta a animação de entrada) para a pílula de vidro não ser cortada */
.mobile-nav__item { margin-inline: -0.65rem; padding: 0.1rem 0.65rem; }
.mobile-nav__list a { position: relative; isolation: isolate; width: fit-content; margin-inline: -0.65rem; padding-inline: 0.65rem 1.2rem; border-radius: 18px; -webkit-tap-highlight-color: transparent; }
.mobile-nav__list a::before {
  content: ''; position: absolute; inset: 0.1rem 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(140px circle at var(--gx, 30%) var(--gy, 0%), rgba(255, 255, 255, 0.55), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.14) 55%, rgba(255, 255, 255, 0.26) 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -1px 0 rgba(110, 58, 65, 0.08), 0 10px 26px -18px rgba(63, 30, 35, 0.45);
  opacity: 0; transform: scale(0.97);
  transition: opacity 0.45s var(--ease-out), transform 0.55s var(--ease-out);
}
.mobile-nav__list a.is-touch::before { opacity: 1; transform: none; transition-duration: 0.18s, 0.3s; }
@media (hover: hover) and (pointer: fine) { .mobile-nav__list a:hover::before { opacity: 1; transform: none; } }
.mobile-nav__foot {
  margin-top: auto; padding: 1.5rem var(--gutter) max(2rem, env(safe-area-inset-bottom));
  display: grid; gap: 1.2rem; border-top: 1px solid rgba(110, 58, 65, 0.15);
  opacity: 0; transition: opacity 0.6s 0.5s;
}
.mobile-nav.is-open .mobile-nav__foot { opacity: 1; }
.mobile-nav__foot p { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--wine); }
.mobile-nav__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.mobile-nav__actions .chip { border-color: rgba(110, 58, 65, 0.3); background: rgba(250, 243, 239, 0.5); }

/* ─── Busca ─────────────────────────────────────────────────────────────────── */
.search { position: fixed; inset: 0; z-index: 130; }
.search__backdrop { position: absolute; inset: 0; background: rgba(48, 40, 42, 0.38); opacity: 0; transition: opacity 0.5s; }
.search__panel {
  position: relative; max-height: 88vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--off); padding: calc(var(--header-h) * 0.5) 0 2.5rem;
  transform: translateY(-102%); transition: transform 0.7s var(--ease-out);
  box-shadow: var(--shadow-soft);
}
.search.is-open .search__backdrop { opacity: 1; }
.search.is-open .search__panel { transform: none; }
.search__head { display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line-2); padding-bottom: 0.6rem; }
.search__head .icon { color: var(--wine); }
.search__input {
  flex: 1; min-width: 0; border: 0; background: none; padding: 0.4rem 0;
  font-family: var(--serif); font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.2rem); line-height: 1.2; color: var(--ink);
}
.search__input::placeholder { color: var(--ink-3); opacity: 0.7; }
.search__input:focus-visible { outline: none; }
.search__input::-webkit-search-cancel-button, .search__input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search__head:focus-within { border-bottom-color: var(--wine); }
.search__close { flex: none; }
.search__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1.4rem; }
.search__meta > span { font-size: var(--fs-xs); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--ink-3); margin-right: 0.4rem; }
.search__results { margin-top: 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.6rem 1.6rem; }
.search__empty { margin-top: 2rem; color: var(--ink-2); }
.result {
  display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: center; padding: 0.5rem; border-radius: var(--r-md);
  transition: background var(--t-fast);
}
.result:hover, .result:focus-visible { background: var(--off-2); }
.result img { width: 64px; height: 84px; object-fit: cover; border-radius: var(--r-sm); background: var(--blush); }
.result strong { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; line-height: 1.15; }
.result span { font-size: var(--fs-sm); color: var(--ink-3); }
.result mark { background: var(--blush); color: inherit; border-radius: 2px; }

/* ─── Rodapé ────────────────────────────────────────────────────────────────── */
.site-footer {
  position: relative; overflow: hidden; background: var(--wine-deep); color: var(--off);
  padding-top: clamp(4rem, 3rem + 5vw, 7rem);
}
.site-footer a { transition: color var(--t-fast); }
.footer-top { display: grid; gap: 3rem; }
@media (min-width: 960px) { .footer-top { grid-template-columns: 1.1fr 2fr; gap: 4rem; } }
.footer-brand { display: grid; gap: 1.4rem; align-content: start; }
.footer-brand__badge {
  width: 132px; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(242, 218, 216, 0.25), 0 0 0 10px rgba(242, 218, 216, 0.06);
}
.footer-brand__badge img { width: 100%; height: 100%; object-fit: cover; }
.footer-brand p.serif { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); line-height: 1.05; font-style: italic; color: var(--blush); }
.footer-brand p:not(.serif) { color: rgba(250, 243, 239, 0.7); max-width: 26rem; font-size: var(--fs-sm); }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
/* telas de 320px: as colunas podem encolher e links longos quebram em vez de vazar */
.footer-top > *, .footer-col { min-width: 0; }
.footer-col a, .footer-col span { overflow-wrap: anywhere; }
@media (min-width: 720px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.footer-col h3 { font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--rose); margin-bottom: 1.1rem; }
.footer-col li + li { margin-top: 0.55rem; }
.footer-col a, .footer-col span { font-size: var(--fs-sm); color: rgba(250, 243, 239, 0.82); }
.footer-col a:hover { color: var(--blush); }
.footer-col .pending { color: rgba(250, 243, 239, 0.5); font-style: italic; }
.footer-word {
  display: flex; justify-content: center; margin-top: clamp(3rem, 2rem + 5vw, 6rem);
  font-family: var(--serif); font-weight: 300; font-size: clamp(4rem, 1rem + 15.5vw, 17rem); line-height: 0.8; letter-spacing: -0.03em;
  color: var(--blush); white-space: nowrap; user-select: none;
}
.footer-word span { display: inline-block; }
.footer-word em { font-style: italic; color: var(--rose); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.6rem max(1.6rem, env(safe-area-inset-bottom)); margin-top: 1.5rem;
  border-top: 1px solid var(--line-light); font-size: 0.74rem; color: rgba(250, 243, 239, 0.6);
}
.to-top { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--off); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.7rem; min-height: 44px; }
.to-top svg { width: 16px; height: 16px; transition: transform var(--t-med) var(--ease-out); }
.to-top:hover svg { transform: translateY(-3px); }

/* assinatura do rodapé: sobe uma única vez por trás de uma máscara */
.footer-word { overflow: hidden; padding-bottom: 0.08em; }
.footer-word__in { display: inline-block; }

/* crédito do estúdio: discreto, só o nome é link */
.credit { color: rgba(250, 243, 239, 0.55); letter-spacing: 0.04em; }
.credit a {
  position: relative; margin-left: 0.2em; color: var(--blush); font-weight: 600; letter-spacing: 0.22em;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  padding-bottom: 2px; transition: background-size 0.5s var(--ease-out), color 0.3s;
}
.credit a:hover, .credit a:focus-visible { background-size: 100% 1px; color: var(--off); }

/* ─── Logo: monograma AF (PNG transparente) + "Alves Femme" ─────────────────────
   O arquivo é usado inteiro, sem recortes nem círculo. Sobre fundos escuros (vídeo da
   hero, rodapé vinho) entra a versão monocromática clara — uso padrão de marca em fundo
   escuro —, com transição suave quando o cabeçalho ganha fundo claro. */
.brand { gap: 0.75rem; }
.brand__badge {
  width: 46px; aspect-ratio: 480 / 431; border-radius: 0; overflow: visible; box-shadow: none;
  transition: width 0.5s var(--ease-out), filter 0.6s var(--ease-out);
}
.brand__badge img { object-fit: contain; transition: filter 0.6s var(--ease-out); }
.site-header.is-scrolled .brand__badge { width: 40px; }
.brand.is-near .brand__badge { box-shadow: none; } /* no hover só o traço aparece: sem sombra, sem cor, sem movimento */
.brand__name { font-size: 1.12rem; font-weight: 500; letter-spacing: 0.2em; }
.brand__name small { margin-top: 0.35rem; }
.is-over-media .brand__badge img { filter: brightness(0) invert(0.96) sepia(0.12); }
.mobile-nav__top .brand__badge { width: 40px; }
.mobile-nav__top .brand__name { font-size: 1rem; }
@media (max-width: 1180px) {
  /* menu ☰ · marca · ações — a marca encosta no menu para o nome caber ao lado do símbolo */
  .site-header__bar { grid-template-columns: auto 1fr auto; }
  .brand { justify-self: start; }
}
@media (max-width: 560px) {
  .brand__name { display: block; font-size: 0.92rem; letter-spacing: 0.16em; }
  .brand__badge { width: 36px; }
  .site-header.is-scrolled .brand__badge { width: 34px; }
  .brand { gap: 0.55rem; }
}
@media (max-width: 380px) {
  .brand__name small { display: none; }
  .brand__name { font-size: 0.84rem; letter-spacing: 0.12em; }
}
@media (max-width: 350px) {
  /* telas mínimas: "ALVES" sobre "FEMME" — lockup empilhado em vez de texto miúdo */
  .brand__name { width: min-content; font-size: 0.8rem; letter-spacing: 0.2em; line-height: 1.12; }
}
.footer-brand__badge { width: 112px; aspect-ratio: 480 / 431; border-radius: 0; overflow: visible; box-shadow: none; }
.footer-brand__badge img { object-fit: contain; filter: brightness(0) invert(0.94) sepia(0.18); }
