/* =====================================================================
   Chapelaria — tema "tabaco e couro"
   Tabaco (fundo escuro), couro, sela (ação), palha (destaque), linho (fundo claro)
   ===================================================================== */
:root {
  --tabaco: #24180f;
  --tabaco-2: #33241a;
  --couro: #6b4226;
  --sela: #b9813f;
  --sela-escura: #9a6a32;
  --palha: #d9c29b;
  --linho: #efe6d8;
  --linho-2: #e4d8c5;
  --tinta: #2b2019;
  --tinta-suave: #5e4d40;
  --titulo: 'Zilla Slab', Rockwell, 'Roboto Slab', Georgia, serif;
  --texto: 'Source Sans 3', 'Source Sans Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
html, body { overflow-x: hidden; }
body { font-family: var(--texto); font-size: 1.0625rem; line-height: 1.6; color: var(--tinta); background: var(--linho); }
h1, h2, h3 { font-family: var(--titulo); font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { max-width: 68ch; }
a { color: var(--couro); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--sela); outline-offset: 3px; }

.pular { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--sela); color: var(--tabaco); padding: .6rem 1rem; font-weight: 700; }
.pular:focus { left: 1rem; top: 1rem; }

/* ---------- Botões ---------- */
.btn { border-radius: 3px; font-weight: 700; letter-spacing: .01em; transition: background-color .15s, color .15s, border-color .15s; }
.btn-lg { padding: .8rem 1.6rem; font-size: 1.05rem; }
.btn-sela { background: var(--sela); color: #1d130b; border: 2px solid var(--sela); }
.btn-sela:hover, .btn-sela:focus { background: var(--palha); border-color: var(--palha); color: #1d130b; }
.btn-contorno { border: 2px solid rgba(239,230,216,.55); color: var(--linho); }
.btn-contorno:hover { border-color: var(--linho); background: var(--linho); color: var(--tabaco); }
.btn-linho { background: var(--linho); color: var(--tabaco); border: 2px solid var(--linho); }
.btn-linho:hover { background: #fff; color: var(--tabaco); }
.link-acao { font-weight: 700; color: var(--couro); text-decoration: underline; text-decoration-color: var(--sela); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.link-acao:hover { color: var(--tabaco); }
.link-palha { color: var(--palha); }

/* ---------- Menu ---------- */
.marca { font-family: var(--titulo); font-weight: 700; font-size: 1.35rem; color: var(--linho) !important; letter-spacing: 0; }
.menu { padding: 1rem 0; transition: background-color .25s, padding .25s; background: linear-gradient(180deg, rgba(20,13,8,.78), rgba(20,13,8,0)); }
.menu.rolou { background: var(--tabaco); padding: .55rem 0; box-shadow: 0 1px 0 rgba(217,194,155,.18); }
.menu .nav-link { color: rgba(239,230,216,.85); font-weight: 600; }
.menu .nav-link:hover, .menu .nav-link:focus { color: var(--palha); }
@media (max-width: 991.98px) { .menu { background: var(--tabaco); } .navbar-collapse { padding: .8rem 0 1rem; } }

/* ---------- Hero: texto à esquerda, foto alta à direita ---------- */
.hero { display: grid; background: var(--tabaco); color: var(--linho); min-height: 100svh; }
.hero-foto { background: var(--tabaco-2) center 62% / cover no-repeat; min-height: 46svh; }
.hero-texto { display: flex; align-items: center; padding: 2.5rem 1.25rem 3.5rem; }
.hero-miolo { max-width: 34rem; }
.hero-local { color: var(--palha); font-weight: 600; font-size: 1rem; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.4rem, 4.2vw, 3.9rem); line-height: 1.03; margin-bottom: 1.25rem; }
.hero-sub { font-size: 1.2rem; color: rgba(239,230,216,.82); }
.hero-insta { display: flex; gap: .8rem; align-items: flex-start; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(217,194,155,.25);
  color: rgba(239,230,216,.85); text-decoration: none; font-size: .98rem; max-width: 30rem; }
.hero-insta i { font-size: 1.5rem; color: var(--palha); line-height: 1; }
.hero-insta strong { color: var(--linho); }
.hero-insta:hover strong { text-decoration: underline; text-decoration-color: var(--sela); }
@media (min-width: 992px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-foto { order: 2; min-height: 100svh; }
  .hero-texto { padding: 5.5rem clamp(2rem, 5vw, 6rem) 3rem; justify-content: flex-end; }
}
@media (max-width: 991.98px) { .hero-foto { margin-top: 62px; } }

/* ---------- Faixa de couro com costura ---------- */
.faixa-couro { background: var(--couro); color: var(--linho); position: relative; padding: 1.6rem 0; }
.faixa-couro::before, .faixa-couro::after { content: ""; position: absolute; left: 0; right: 0; border-top: 2px dashed rgba(217,194,155,.55); }
.faixa-couro::before { top: 7px; }
.faixa-couro::after { bottom: 7px; }
.faixa-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; }
.faixa-lista li { display: flex; flex-direction: column; }
.faixa-lista strong { font-family: var(--titulo); font-size: 1.2rem; font-weight: 600; }
.faixa-lista span { font-size: .92rem; color: rgba(239,230,216,.75); }
@media (min-width: 992px) { .faixa-lista { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Seções ---------- */
.secao { padding: clamp(4rem, 8vw, 7rem) 0; }
.secao-linho { background: var(--linho); }
.secao-tabaco { background: var(--tabaco); color: var(--linho); }
.cabeca { max-width: 46rem; margin-bottom: 3rem; }
.cabeca p { color: var(--tinta-suave); font-size: 1.15rem; }
.cabeca-clara p { color: rgba(239,230,216,.75); }

/* ---------- Modelos (vitrine) ---------- */
.modelo { display: flex; flex-direction: column; height: 100%; }
.modelo-foto { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--linho-2); border-radius: 2px; margin-bottom: 1.2rem; }
.modelo-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modelo-foto img.ilustracao { object-fit: contain; padding: 1.5rem; }
.modelo-uso { position: absolute; left: 0; bottom: 0; background: var(--tabaco); color: var(--palha); font-size: .85rem; font-weight: 600; padding: .35rem .8rem; }
.modelo h3 { color: var(--tabaco); margin-bottom: .5rem; }
.modelo p { font-size: .98rem; color: var(--tinta-suave); margin-bottom: .8rem; }
.modelo-itens { list-style: none; padding: 0; margin: 0 0 1.2rem; font-size: .93rem; border-top: 1px solid var(--linho-2); }
.modelo-itens li { padding: .4rem 0; border-bottom: 1px solid var(--linho-2); }
.modelo .link-acao { margin-top: auto; align-self: flex-start; }

/* ---------- Manutenção ---------- */
.foto-alta { margin: 0; height: 100%; min-height: 420px; }
.foto-alta img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; display: block; }
.lead-claro { font-size: 1.18rem; color: rgba(239,230,216,.82); margin-bottom: 2rem; }
.servicos { display: grid; grid-template-columns: 1fr; gap: 0 2.5rem; margin-bottom: 2rem; }
.servicos > div { border-top: 1px solid rgba(217,194,155,.25); padding: 1rem 0; }
.servicos dt { font-family: var(--titulo); font-size: 1.2rem; font-weight: 600; color: var(--palha); margin-bottom: .25rem; }
.servicos dd { margin: 0; color: rgba(239,230,216,.78); font-size: .98rem; }
@media (min-width: 768px) { .servicos { grid-template-columns: 1fr 1fr; } }

/* ---------- Vitrine (looks com chapéu) ---------- */
.vitrine { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-bottom: 4.5rem; }
@media (min-width: 992px) { .vitrine { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.look { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--linho-2); border-radius: 2px; color: var(--linho); text-decoration: none; }
.look img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; transition: transform .5s ease; }
.look::after { content: ""; position: absolute; inset: 45% 0 0 0; background: linear-gradient(180deg, rgba(20,13,8,0), rgba(20,13,8,.85)); }
.look-legenda { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .1rem; }
.look-legenda strong { font-family: var(--titulo); font-size: clamp(1.1rem, 1.8vw, 1.45rem); font-weight: 600; }
.look-legenda span { font-size: .92rem; color: rgba(239,230,216,.85); }
.look-legenda em { font-style: normal; font-weight: 700; font-size: .9rem; color: var(--palha); margin-top: .5rem; text-decoration: underline; text-decoration-color: var(--sela); text-underline-offset: 4px; }
.look:hover img, .look:focus-visible img { transform: scale(1.04); }
.look:hover { color: var(--linho); }
@media (max-width: 575.98px) { .look-legenda span { display: none; } .look-legenda em { font-size: .8rem; } }
.processo { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; grid-template-columns: 1fr; counter-reset: etapa; }
.processo li { counter-increment: etapa; border-top: 3px solid var(--tabaco); padding-top: 1rem; }
.processo li::before { content: counter(etapa); font-family: var(--titulo); font-size: 2.6rem; font-weight: 700; color: var(--sela); line-height: 1; display: block; margin-bottom: .5rem; }
.processo h3 { color: var(--tabaco); margin-bottom: .35rem; }
.processo p { color: var(--tinta-suave); font-size: .98rem; margin: 0; }
@media (min-width: 768px) { .processo { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .processo { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Banda com foto (Instagram) ---------- */
.banda-foto { position: relative; color: var(--linho); background: var(--tabaco) center 55% / cover no-repeat; padding: clamp(5rem, 11vw, 9rem) 0; isolation: isolate; }
.banda-foto::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(36,24,15,.94) 0%, rgba(36,24,15,.78) 45%, rgba(36,24,15,.2) 100%); }
.banda-conteudo { max-width: 32rem; }
.banda-conteudo p { color: rgba(239,230,216,.85); font-size: 1.15rem; margin-bottom: 1.8rem; }

/* ---------- Depoimentos ---------- */
.depoimentos { position: relative; isolation: isolate; overflow: hidden; }
.depoimentos::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fundo) center / cover no-repeat; opacity: .16; filter: grayscale(1) sepia(.5); }
.depoimento { margin: 0; height: 100%; border-left: 3px solid var(--sela); padding: .2rem 0 .2rem 1.4rem; display: flex; flex-direction: column; }
.depoimento .estrelas { color: var(--palha); letter-spacing: .15em; margin-bottom: .8rem; }
.depoimento .estrelas span { opacity: .3; }
.depoimento blockquote { flex: 1; margin: 0 0 1.2rem; }
.depoimento blockquote p { font-family: var(--titulo); font-weight: 500; font-size: 1.25rem; line-height: 1.4; color: var(--linho); }
.depoimento figcaption strong { display: block; color: var(--linho); }
.depoimento figcaption span { color: var(--palha); font-size: .93rem; }

/* ---------- Contato ---------- */
.contatos { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.contatos li { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--linho-2); font-weight: 600; }
.contatos i { color: var(--couro); font-size: 1.2rem; width: 1.4rem; text-align: center; }
.contatos a { color: var(--tinta); text-decoration: none; }
.contatos a:hover { color: var(--couro); text-decoration: underline; }
.foto-contato { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.foto-contato img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.25); }
.ficha { background: #faf5ec; border: 1px solid #dccdb5; border-radius: 4px; padding: clamp(1.5rem, 4vw, 3rem); }
.form-label { font-weight: 700; color: var(--tabaco); margin-bottom: .3rem; }
.form-control, .form-select { border: 1px solid #cdb999; background-color: #fffdf8; padding: .75rem .9rem; border-radius: 3px; }
.form-control:focus, .form-select:focus { border-color: var(--sela); box-shadow: 0 0 0 .2rem rgba(185,129,63,.25); }
.form-check-input:checked { background-color: var(--couro); border-color: var(--couro); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(185,129,63,.25); }
.campo-oculto { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Rodapé ---------- */
.rodape { background: #1a110a; color: rgba(239,230,216,.75); padding: 3rem 0 2rem; }
.social { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(217,194,155,.45); color: var(--palha); margin-left: .4rem; text-decoration: none; border-radius: 3px; }
.social:hover { background: var(--palha); color: var(--tabaco); }
.creditos { font-size: .8rem; margin: 2rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(217,194,155,.15); max-width: none; color: rgba(239,230,216,.55); }
.creditos a { color: rgba(239,230,216,.75); }
.whats-flutuante { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 6px 18px rgba(0,0,0,.3); z-index: 1030; }
.whats-flutuante:hover { color: #fff; }

/* ---------- Logo Emanuel Hats ---------- */
.marca-logo { padding: 0; margin: 0; display: flex; align-items: center; }
.marca-logo img { height: 58px; width: auto; transition: height .25s, opacity .25s; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.menu.rolou .marca-logo img { height: 46px; }
@media (min-width: 992px) {
  /* no topo da página o logo grande do hero já aparece; o do menu surge ao rolar */
  .menu:not(.rolou) .marca-logo img { opacity: 0; pointer-events: none; }
}
.hero-logo { display: block; margin: 0 0 1.25rem; }
.hero-logo img { width: clamp(200px, 19vw, 280px); height: auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,.45)); }
@media (max-width: 991.98px) { .hero-logo img { width: min(70vw, 280px); } }
.rodape-logo { width: 150px; height: auto; }
