/* ============================================================
   Faube Professional — style.css
   CSS puro, mobile-first
   Breakpoints: 768px (tablet), 1024px (desktop)
   ============================================================ */

/* ─── Design Tokens ────────────────────────────────────────── */
:root {
  --brown-dark:   #5C3A2E;
  --brown-mid:    #8C6F5E;
  --bege:         #F5F1EB;
  --cream:        #FAF7F2;
  --text-dark:    #2B2825;
  --text-muted:   #8A8580;
  --gold:         #B5946C;
  --footer-bg:    #2A1F1A;
  --card-bg:      #EEE9E2;
  --error:        #A53D3D;

  --ff-serif: 'Cormorant Garamond', Georgia, serif;
  --ff-sans:  'Inter', system-ui, sans-serif;

  --header-h: 72px;
  --topbar-h: 36px;
  --container: 1200px;
  --radius:    2px;

  --ease: 200ms ease;
  --ease-slow: 600ms ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--ff-sans);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul { list-style: none; }

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

select, input, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ─── Accessibility ──────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1 !important; transform: none !important; }
}

/* ─── Utilities ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.container--narrow {
  max-width: 860px;
}

.label {
  display: block;
  font-family: var(--ff-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.label--center { text-align: center; }

.label--light { color: var(--gold); }

.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 28px;
}

.section-title em {
  font-style: italic;
  font-weight: 400;
}

.section-title--center { text-align: center; }

.section-title--light { color: #fff; }

/* fade-in via IntersectionObserver */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--ease-slow), transform var(--ease-slow);
}

.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

/* ─── Espaçamento global de seções ──────────────────────────── */
main > section:not(.hero) {
  padding-block: 60px;
}

@media (min-width: 768px) {
  main > section:not(.hero) {
    padding-block: 80px;
  }
}

@media (min-width: 1024px) {
  main > section:not(.hero) {
    padding-block: 120px;
  }
}

/* Historia é full-bleed: o espaçamento vive no conteúdo interno */
.historia { padding-block: 0; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--ff-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--ease), color var(--ease), transform var(--ease);
  cursor: pointer;
}

.btn--primary {
  background: var(--brown-dark);
  color: #fff;
}

.btn--primary:hover {
  background: #4a2f25;
}

.btn--secondary {
  background: var(--brown-mid);
  color: #fff;
}

.btn--secondary:hover {
  background: #7a5f50;
}

.btn--full { width: 100%; justify-content: center; }

.btn--icon { gap: 8px; }

.btn__arrow {
  display: inline-block;
  transition: transform var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(5px);
}

/* animated underline link */
.link-underline {
  display: inline-block;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms ease;
}

.link-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ─── Header ─────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--ease), box-shadow var(--ease);
}

/* top bar */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  background: transparent;
  transition: background var(--ease), color var(--ease);
  max-width: var(--container);
  margin-inline: auto;
}

.top-bar__email,
.top-bar__social {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--ease);
}

.top-bar__email:hover,
.top-bar__social:hover {
  color: var(--gold);
}

/* header main row */
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: var(--header-h);
  max-width: var(--container);
  margin-inline: auto;
}

/* logo */
.logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo__name {
  font-family: var(--ff-sans);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: #fff;
  transition: color var(--ease);
  line-height: 1;
}

.logo__sub {
  font-family: var(--ff-sans);
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: rgba(255,255,255,0.7);
  transition: color var(--ease);
}

/* scrolled state */
.site-header.scrolled {
  background: var(--cream);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.site-header.scrolled .top-bar {
  display: none;
}

.site-header.scrolled .logo__name {
  color: var(--text-dark);
}

.site-header.scrolled .logo__sub {
  color: var(--text-muted);
}

.site-header.scrolled .nav__link {
  color: var(--text-dark);
}

.site-header.scrolled .nav__search {
  color: var(--text-dark);
}

.site-header.scrolled .top-bar__email,
.site-header.scrolled .top-bar__social {
  color: var(--text-muted);
}

/* nav */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  position: relative;
  transition: color var(--ease);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 250ms ease;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--gold);
}

.nav__link:hover::after { transform: scaleX(1); }

.nav__search {
  color: rgba(255,255,255,0.9);
  transition: color var(--ease);
  display: flex;
  align-items: center;
}

.nav__search:hover { color: var(--gold); }

/* hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  transition: transform 300ms ease, opacity 300ms ease;
}

.site-header.scrolled .hamburger span { background: var(--text-dark); }

.hamburger[aria-expanded="true"] span { background: var(--text-dark); }

/* ── Drawer header/body/close — desktop defaults ────────────── */
.nav__header { display: none; }
.nav__body    { display: contents; }
.nav__close   { display: none; }
.nav__search-form  { display: none; }
.nav__search-input { display: none; }
.nav__backdrop     { display: none; }

/* hamburger X state when open */
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Mobile: side-drawer ─────────────────────────────────────── */
@media (max-width: 767px) {
  .hamburger { display: flex; }

  /* Gaveta lateral */
  .nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(85vw, 360px);
    background: var(--cream);
    z-index: 99;
    transform: translateX(-100%);
    transition: transform 280ms ease;
    box-shadow: 4px 0 24px rgba(0,0,0,.18);
    overflow-y: auto;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  /* Cabeçalho da gaveta */
  .nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px 18px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    flex-shrink: 0;
  }

  .nav__brand {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
  }

  .nav__brand-name {
    font-family: var(--ff-serif);
    font-size: 1.15rem;
    letter-spacing: .12em;
    color: var(--brown-dark);
  }

  .nav__brand-sub {
    font-size: 0.58rem;
    letter-spacing: .22em;
    color: var(--text-muted);
    text-transform: uppercase;
  }

  .nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-dark);
  }

  /* Corpo da gaveta */
  .nav__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 28px 24px;
    gap: 28px;
    background: rgba(245,241,235,.55);
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .nav__link {
    color: var(--text-dark);
    font-size: 1rem;
    letter-spacing: .12em;
  }

  /* Barra de pesquisa */
  .nav__search-form {
    display: block;
    position: relative;
    margin-top: auto;
  }

  .nav__search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
  }

  .nav__search-input {
    display: block;
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: var(--radius);
    background: #fff;
    font-size: .9rem;
    color: var(--text-dark);
  }

  .nav__search-input::placeholder { color: var(--text-muted); }

  /* Botão de busca do desktop — oculto no mobile */
  .nav__search { display: none; }

  /* Backdrop */
  .nav__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 50;
    opacity: 0;
    transition: opacity 280ms ease;
  }

  .nav__backdrop.is-visible { opacity: 1; }

  /* esconde molduras decorativas que causam overflow no mobile */
  .historia__image::after { display: none; }
  .linhas__image-wrap::after { display: none; }
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(20, 12, 8, 0.75) 0%,
    rgba(20, 12, 8, 0.45) 55%,
    rgba(20, 12, 8, 0.15) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding-top: calc(var(--header-h) + var(--topbar-h) + 40px);
  padding-bottom: 80px;
}

.hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--ff-serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 24px;
}

.hero__title em {
  font-style: italic;
  font-weight: 400;
}

.hero__subtitle {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  margin-bottom: 40px;
  max-width: 480px;
}

.break-desktop { display: none; }

@media (min-width: 1024px) {
  .break-desktop { display: inline; }
}

.hero__cta { font-size: 0.75rem; }

/* ─── Nossa História ─────────────────────────────────────────── */
.historia {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--cream);
}

/* image column */
.historia__image {
  position: relative;
  min-height: 340px;
}

.historia__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0);          /* clips zoom overflow without hiding ::after */
  transition: transform 500ms ease;
}

.historia__image:hover img { transform: scale(1.03); }

/* moldura decorativa deslocada no canto inferior direito */
.historia__image::after {
  content: '';
  position: absolute;
  bottom: -18px;
  right: -18px;
  width: 54%;
  height: 48%;
  border: 1px solid var(--gold);
  opacity: 0.65;
  pointer-events: none;
  z-index: 2;
}

/* content column */
.historia__content {
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.historia__content .label {
  margin-bottom: 12px;
}

.historia__content .section-title {
  margin-bottom: 24px;
}

.historia__content p {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.historia__content p:last-of-type {
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .historia {
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
  }

  .historia__image { min-height: auto; }

  .historia__content {
    padding: 80px 60px 80px 80px;
    max-width: 580px;
  }
}

@media (min-width: 1024px) {
  .historia {
    min-height: 680px;
  }

  .historia__content {
    padding: 120px 80px 120px 100px;
  }
}

/* ─── Nossas Linhas (split 50/50) ────────────────────────────── */
.linhas {
  background: var(--bege);
}

.linhas__container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.linhas__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

/* media column */
.linhas__media {
  width: 100%;
}

.linhas__image-wrap {
  position: relative;
  width: 100%;
  min-height: 360px;
  z-index: 0;
}

.linhas__image-wrap img {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
  z-index: 1;
}

/* moldura fina deslocada — efeito de profundidade */
.linhas__image-wrap::after {
  content: '';
  position: absolute;
  inset: 30px -30px -30px 30px;
  border: 1px solid #D4CCC2;
  z-index: -1;
  pointer-events: none;
}

/* content column */
.linhas__content .label {
  margin-bottom: 16px;
}

.linhas__content .section-title {
  margin-bottom: 48px;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.1;
}

/* list */
.linhas-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.linha-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 16px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid #D4CCC2;
  cursor: pointer;
  /* stagger entrance state (default) */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.linha-item:last-child {
  border-bottom: none;
}

.linha-item.visible {
  opacity: 1;
  transform: none;
}

.linha-num {
  font-family: var(--ff-sans);
  font-size: 13px;
  font-weight: 400;
  color: #A89F95;
  letter-spacing: 0.03em;
  align-self: start;
  padding-top: 6px;
}

.linha-info {
  overflow: hidden;
}

.linha-nome {
  font-family: var(--ff-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.2;
  margin: 0;
  transition: color 300ms ease;
}

.linha-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 300ms ease, opacity 300ms ease, margin-top 300ms ease;
}

.linha-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid #D4CCC2;
  border-radius: 999px;
  padding: 6px 18px;
  white-space: nowrap;
  /* mobile: tag vai para a 2ª linha */
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 12px;
}

/* hover/focus interactions */
.linha-item:hover .linha-nome,
.linha-item:focus .linha-nome,
.linha-item:focus-within .linha-nome {
  color: var(--gold);
}

.linha-item:hover .linha-desc,
.linha-item:focus .linha-desc,
.linha-item:focus-within .linha-desc {
  max-height: 80px;
  opacity: 1;
  margin-top: 8px;
}

/* tablet & desktop layout */
@media (min-width: 768px) {
  .linhas__container {
    padding: 0 60px;
  }

  .linhas__split {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .linhas__image-wrap,
  .linhas__image-wrap img {
    min-height: 520px;
  }

  /* tag de volta na linha junto com o nome */
  .linha-item {
    grid-template-columns: 40px 1fr auto;
    column-gap: 24px;
  }

  .linha-tag {
    grid-column: auto;
    justify-self: end;
    margin-top: 0;
    align-self: center;
  }
}

@media (min-width: 1024px) {
  .linhas__split {
    gap: 0;
  }
}

/* ─── Produtos abaixo da História ───────────────────────────── */
.historia-produtos {
  background: var(--bege);
  padding: 48px 0 64px;
}

.historia-produtos__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 576px) {
  .historia-produtos__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .historia-produtos__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .historia-produtos__grid { grid-template-columns: repeat(5, 1fr); }
}

/* ─── Catálogo ───────────────────────────────────────────────── */
.catalogo {
  background: var(--cream);
}

/* filter chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
  justify-content: center;
}

.chip {
  padding: 7px 16px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 50px;
  color: var(--text-muted);
  background: transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  cursor: pointer;
}

.chip:hover {
  border-color: var(--text-dark);
  color: var(--text-dark);
}

.chip.active {
  background: var(--text-dark);
  border-color: var(--text-dark);
  color: #fff;
}

/* product grid */
.produtos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 576px) {
  .produtos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .produtos-grid { grid-template-columns: repeat(4, 1fr); }
}

/* product card */
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform 250ms ease, box-shadow 250ms ease;
  cursor: default;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.product-card.is-hidden {
  display: none;
}

.product-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--brown-dark);
  color: #fff;
  padding: 3px 10px;
  border-radius: 50px;
  z-index: 1;
}

.product-card__img-wrap {
  background: var(--card-bg);
  aspect-ratio: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 300ms ease;
}

.product-card:hover .product-card__img-wrap img {
  transform: scale(1.05);
}

.product-card__body {
  padding: 16px 18px 20px;
}

.product-card__sub {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.product-card__name {
  font-family: var(--ff-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.2;
}

.product-card__desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.product-card__desc.is-expanded {
  display: block;
  overflow: visible;
}

.product-card__toggle {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.75rem;
  color: var(--brown-dark);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.product-card__toggle:hover { opacity: 0.7; }

/* ─── Newsletter ─────────────────────────────────────────────── */
.newsletter {
  position: relative;
  overflow: hidden;
  background: #1a1109;
}

.newsletter__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
  z-index: 0;
}

.newsletter__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 17, 9, 0.45);
  z-index: 1;
}

.newsletter__watermark {
  position: absolute;
  bottom: -0.2em;
  right: -0.05em;
  font-family: var(--ff-sans);
  font-size: clamp(8rem, 18vw, 16rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  opacity: 0.05;
  z-index: 1;
  pointer-events: none;
  line-height: 1;
  user-select: none;
}

.newsletter__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.newsletter__text .section-title {
  color: #fff;
  margin-bottom: 16px;
}

.newsletter__sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 420px;
}

.newsletter__form-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter__form .form-field input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.88rem;
  transition: border-color var(--ease);
  box-shadow: none;
}

.newsletter__form .form-field input::placeholder { color: rgba(255,255,255,0.5); }

.newsletter__form .form-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: none;
}

.newsletter__success {
  color: #fff;
  font-size: 0.9rem;
  padding: 16px 0;
}

/* input + botão lado a lado a partir de 576px */
@media (min-width: 576px) {
  .newsletter__form {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }

  .newsletter__form .form-field {
    flex: 1;
  }

  .newsletter__form .form-field input {
    border-radius: var(--radius) 0 0 var(--radius) !important;
    border-right: none;
  }

  .newsletter__form .btn {
    border-radius: 0 var(--radius) var(--radius) 0;
    white-space: nowrap;
    align-self: flex-start;
    height: 49px;
  }
}

@media (min-width: 768px) {
  .newsletter__inner {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }

  .newsletter__text { flex: 1; }

  .newsletter__form-wrap { flex: 0 0 380px; }
}

/* ─── Forms (shared) ─────────────────────────────────────────── */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 16px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text-dark);
  font-size: 0.9rem;
  transition: border-color var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

.form-field textarea {
  resize: none;
}

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A8580' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(181, 148, 108, 0.12);
}

.form-field--full { grid-column: 1 / -1; }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 576px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.field-error {
  font-size: 0.74rem;
  color: var(--error);
  min-height: 1.1em;
  display: block;
}

/* ─── reCAPTCHA Mock ─────────────────────────────────────────── */
.recaptcha-mock {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #f5f5f5;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  cursor: pointer;
  user-select: none;
  font-size: 0.88rem;
  color: #333;
}

.recaptcha-mock__checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  background: #fff;
  flex-shrink: 0;
  position: relative;
  transition: border-color 200ms ease;
}

.recaptcha-mock.checked .recaptcha-mock__checkbox {
  border-color: #1a73e8;
  background: #1a73e8;
}

.recaptcha-mock.checked .recaptcha-mock__checkbox::after {
  content: '';
  position: absolute;
  left: 5px; top: 2px;
  width: 8px; height: 12px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(40deg);
}

.recaptcha-mock__logo {
  margin-left: auto;
  text-align: center;
  font-size: 0.6rem;
  color: #888;
  line-height: 1.4;
}

.recaptcha-mock__logo span {
  display: block;
  font-size: 0.65rem;
  color: #555;
  font-weight: 500;
}

/* ─── Seja um Parceiro ───────────────────────────────────────── */
.parceiro {
  background: var(--cream);
}

.parceiro__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.parceiro__info .section-title { margin-bottom: 16px; }

.parceiro__desc {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.parceiro__bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.parceiro__bullets li {
  font-size: 0.88rem;
  color: var(--text-dark);
  padding-left: 20px;
  position: relative;
}

.parceiro__bullets li::before {
  content: '°';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 400;
}

.parceiro__form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.parceiro__success {
  background: var(--bege);
  border-radius: 4px;
  padding: 48px 32px;
}

.parceiro__success-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  color: var(--brown-dark);
}

.parceiro__success-inner h3 {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: 400;
}

.parceiro__success-inner p {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 320px;
}

@media (min-width: 768px) {
  .parceiro__grid {
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    align-items: start;
  }
}

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--footer-bg);
  padding: 60px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer__brand .logo--light .logo__name { color: rgba(255,255,255,0.9); }
.footer__brand .logo--light .logo__sub  { color: rgba(255,255,255,0.4); }

.footer__brand p {
  margin-top: 16px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #9a9189;
  max-width: 300px;
}

.footer__heading {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer__nav ul,
.footer__contact ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav a,
.footer__contact a {
  font-size: 0.82rem;
  color: #9a9189;
  transition: color var(--ease);
}

.footer__nav a:hover,
.footer__contact a:hover { color: var(--gold); }

.footer__contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #9a9189;
}

.footer__contact svg { flex-shrink: 0; color: var(--gold); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 18px 0;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
}

.footer__bottom-inner a {
  color: rgba(255,255,255,0.3);
  transition: color var(--ease);
}

.footer__bottom-inner a:hover { color: var(--gold); }

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
  }
}

/* ─── Back to top ────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 28px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brown-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 300ms ease, transform 300ms ease;
  pointer-events: none;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.back-to-top:hover {
  background: #4a2f25;
}

/* hide native hidden attr but keep for JS toggle */
[hidden] { display: none !important; }

/* ─── Seletor de idioma ──────────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
}

.lang-sep {
  opacity: .35;
  font-size: .7rem;
  line-height: 1;
  pointer-events: none;
}

.lang-flag {
  border: 0;
  padding: 2px 3px;
  background: transparent;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: inherit;
  opacity: .55;
  transition: opacity .15s;
  line-height: 1;
}

.lang-flag:hover   { opacity: .9; }
.lang-flag--active { opacity: 1; font-weight: 700; }

/* Campo CPF/CNPJ visível apenas em PT */
html:not([lang="pt-BR"]) #doc-field-wrap { display: none; }

/* ─── Phone input group ──────────────────────────────────────── */
.phone-input-group {
  display: flex;
  gap: 8px;
}

.phone-input-group > input {
  flex: 1;
  min-width: 0;
}

/* ─── Custom phone-select (dial code) ───────────────────────── */
.phone-select {
  position: relative;
  flex: 0 0 auto;
  width: 210px;
}

.phone-select__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 36px 12px 12px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--ease);
  position: relative;
}

.phone-select__trigger:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(181, 148, 108, 0.12);
}

.phone-select__trigger[aria-expanded="true"] {
  border-color: var(--gold);
}

.phone-select__label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-select__chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8A8580;
  pointer-events: none;
  transition: transform .2s;
}

.phone-select__trigger[aria-expanded="true"] .phone-select__chevron {
  transform: translateY(-50%) rotate(180deg);
}

.phone-select__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 320px;
  width: 100%;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 200;
  max-height: 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.phone-select__search {
  flex-shrink: 0;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
}

.phone-select__search:focus {
  background: var(--cream);
}

.phone-select__list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  overflow-y: auto;
  flex: 1;
}

.phone-select__option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-dark);
  transition: background .1s;
}

.phone-select__option img {
  display: block;
  width: 24px;
  height: 18px;
  border-radius: 2px;
  flex-shrink: 0;
  object-fit: cover;
}

.phone-select__option:hover,
.phone-select__option:focus,
.phone-select__option.is-active {
  background: var(--cream);
  outline: none;
}

.phone-select__option--featured + .phone-select__option:not(.phone-select__option--featured) {
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: 4px;
  padding-top: 12px;
}

.phone-select__empty {
  padding: 16px 12px;
  text-align: center;
  color: #8A8580;
  font-size: 0.88rem;
}

.phone-select__flag-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  width: 24px;
  height: 18px;
}

.phone-select__flag-wrap img {
  display: block;
  width: 24px;
  height: 18px;
  border-radius: 2px;
  object-fit: cover;
}

.dial-flag {
  display: block;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  overflow: hidden;
}

@media (max-width: 480px) {
  .phone-input-group { flex-direction: column; gap: 6px; }
  .phone-select      { width: 100%; }
}

/* ─── Custom country-select ─────────────────────────────────── */
.country-select {
  position: relative;
  width: 100%;
}

.country-select__trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 36px 12px 12px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--ease);
  position: relative;
  min-height: 46px;
}

.country-select__trigger:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(181, 148, 108, 0.12);
}

.country-select__trigger[aria-expanded="true"] {
  border-color: var(--gold);
}

.country-select__flag-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  width: 24px;
  height: 18px;
}

.country-select__flag-wrap img {
  display: block;
  width: 24px;
  height: 18px;
  border-radius: 2px;
  object-fit: cover;
}

.country-select__label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-dark);
}

.country-select__label.is-placeholder {
  color: #8A8580;
}

.country-select__chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8A8580;
  pointer-events: none;
  transition: transform .2s;
}

.country-select__trigger[aria-expanded="true"] .country-select__chevron {
  transform: translateY(-50%) rotate(180deg);
}

.country-select__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 200;
  max-height: 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.country-select__search {
  flex-shrink: 0;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
}

.country-select__search:focus {
  background: var(--cream);
}

.country-select__list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  overflow-y: auto;
  flex: 1;
}

.country-select__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: background .1s;
}

.country-select__option img {
  display: block;
  width: 24px;
  height: 18px;
  border-radius: 2px;
  flex-shrink: 0;
  object-fit: cover;
}

.country-select__option:hover,
.country-select__option:focus,
.country-select__option.is-active {
  background: var(--cream);
  outline: none;
}

.country-select__option--featured + .country-select__option:not(.country-select__option--featured) {
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: 4px;
  padding-top: 12px;
}

.country-select__empty {
  padding: 16px 12px;
  text-align: center;
  color: #8A8580;
  font-size: 0.88rem;
}
