/* Império Cutelaria Artesanal - Landing Page */

:root {
  --bg: #0D0B08;
  --leather: #21160F;
  --deep: #080705;
  --cta: #783117;
  --cta-hover: #934421;
  --bronze: #845C36;
  --gold: #D6AB72;
  --ivory: #F5E8D0;
  --muted: #D9C6AA;
  --parch: #E5CCAA;
  --parch-light: #F0DFC6;
  --ink: #17130F;
  --rust: #7B371F;

  --font-title: "Cinzel", Georgia, serif;
  --font-text: "Montserrat", Arial, sans-serif;

  --gutter: 20px;
  --max: 1280px;
  --header-h: 100px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }
.about :focus-visible, .custom :focus-visible { outline-color: var(--ink); }

.icon { width: 24px; height: 24px; flex: none; }

.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  background: var(--ivory); color: var(--ink);
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; font-weight: 600;
}
.skip-link:focus { top: 8px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 22px;
  background: linear-gradient(180deg, #8a3a1c, var(--cta));
  border: 1px solid var(--bronze); border-radius: 3px;
  box-shadow: inset 0 1px 0 #ffffff1a, 0 2px 6px #08070566;
  color: var(--ivory);
  font: 500 12px/1.3 var(--font-text);
  letter-spacing: .03em; text-transform: uppercase;
  transition: background-color 160ms, border-color 160ms;
}
.btn:hover { background: linear-gradient(180deg, #a44d28, var(--cta-hover)); }
.btn .icon { width: 18px; height: 18px; }
.btn--ghost { background: transparent; border-color: var(--gold); color: var(--gold); box-shadow: none; }
.btn--ghost:hover { background: #d6ab7222; }

/* Títulos */
.eyebrow {
  font: 500 11px/1.4 var(--font-text);
  letter-spacing: .09em; text-transform: uppercase; color: var(--rust);
}
.title-narrative {
  font: 600 26px/1.08 var(--font-title);
  text-transform: uppercase; letter-spacing: .02em; color: var(--ink);
}
.title-section {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  font: 500 20px/1.25 var(--font-title);
  text-transform: uppercase; letter-spacing: .06em; color: var(--gold);
  text-align: center;
}
.title-section::before, .title-section::after {
  content: ""; height: 1px; width: min(90px, 15vw);
  background: linear-gradient(90deg, transparent, var(--bronze));
}
.title-section::after { transform: scaleX(-1); }
#produtos-titulo { font-size: 19px; gap: 10px; }
#produtos-titulo::before, #produtos-titulo::after { width: 24px; flex: 0 0 24px; }
#produtos-titulo span { white-space: nowrap; }
.title-section--left { justify-content: flex-start; }
.title-section--left::before { display: none; }
.title-section--left::after { width: 80px; transform: none; background: linear-gradient(90deg, var(--bronze), transparent); }

.ornament-line {
  display: block; width: 120px; height: 1px; margin: 12px 0 16px;
  background: linear-gradient(90deg, var(--rust), transparent);
}

/* Header */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  background: linear-gradient(180deg, #080705f5 0, #080705d9 76px, #08070500 112px);
}
.site-header__inner {
  position: relative;
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  padding: 12px var(--gutter);
  max-width: 1440px; margin: 0 auto;
}
.brand { grid-column: 2; grid-row: 1; justify-self: center; display: block; }
.brand img { width: 144px; height: auto; aspect-ratio: 420 / 230; object-fit: contain; }

.nav-toggle {
  grid-column: 3; grid-row: 1; justify-self: end;
  width: 44px; height: 44px; padding: 0; background: none; border: 0;
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  color: var(--ivory); cursor: pointer;
}
.js .nav-toggle { display: flex; }
.nav-toggle__bar { display: block; width: 24px; height: 2px; background: currentColor; transition: transform 160ms, opacity 160ms; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* sem JS: cabeçalho em fluxo, menu sempre visível */
html:not(.js) .site-header { position: relative; background: var(--bg); }
html:not(.js) .site-header__inner { grid-template-columns: 1fr; }
html:not(.js) .brand { grid-column: 1; }

.site-nav {
  grid-column: 1 / -1; grid-row: 2;
  background: var(--bg); border-top: 1px solid #845c3680; border-bottom: 1px solid #845c3680;
  margin: 8px calc(var(--gutter) * -1) 0;
}
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.site-nav__list a, .site-nav__icons a {
  display: flex; align-items: center; gap: 12px; min-height: 48px;
  padding: 0 var(--gutter);
  font: 600 15px/1.4 var(--font-text); letter-spacing: .04em; text-transform: uppercase;
}
.site-nav__list a:hover, .site-nav__icons a:hover { color: var(--gold); }
.site-nav__icons { border-top: 1px solid #845c3655; }

/* Hero */
.hero {
  position: relative; isolation: isolate;
  min-height: calc(345px + 50.4vw);
  display: flex; align-items: flex-end;
  background: var(--deep);
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img {
  position: absolute; max-width: none; width: 140%; height: 140%; left: -20%; top: 28px;
  object-fit: cover; object-position: 50% 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, #080705b3 0, transparent 26%),
    linear-gradient(200deg, transparent 35%, #080705b3 80%),
    linear-gradient(0deg, #080705cc 0, transparent 45%);
}
.hero__inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: calc(var(--header-h) + 24px) var(--gutter) 28px; }
.hero__content { display: flex; flex-direction: column; align-items: flex-end; text-align: right; margin-left: auto; max-width: 260px; }
.hero h1 {
  font: 500 30px/1 var(--font-title); text-transform: uppercase; letter-spacing: .02em;
  color: #E9D3AE; text-shadow: 0 2px 12px #080705cc;
}
.hero__lead { margin: 12px 0 18px; font-size: 12px; line-height: 1.45; color: var(--ivory); text-shadow: 0 1px 8px #080705cc; }
.hero__runes { display: none; }

/* Diferenciais */
.features { background: var(--bg) url("../img/textura-madeira.webp"); background-blend-mode: multiply; border-bottom: 1px solid #845c3655; }
.features__list {
  max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: center; row-gap: 16px;
}
.feature {
  flex: 0 0 33.333%; display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 8px; padding: 0 6px;
}
.feature:nth-child(2), .feature:nth-child(3), .feature:nth-child(5) { border-left: 1px solid #845c3666; }
.feature__icon { width: 40px; height: 40px; }
.feature__title { font: 500 11px/1.3 var(--font-text); text-transform: uppercase; letter-spacing: .02em; color: var(--ivory); }
.feature__note { display: none; }

/* Sobre */
.about {
  position: relative; overflow: hidden;
  background: var(--parch) url("../img/textura-pergaminho.webp");
  color: var(--ink);
}
.about__inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter); }
.about__media { display: none; margin: 0; }
.about__content { max-width: 460px; display: flex; flex-direction: column; align-items: flex-start; }
.about__content p:not(.eyebrow) { font-size: 14px; line-height: 1.5; margin-bottom: 20px; max-width: 34em; }
.about__content .eyebrow { margin-bottom: 4px; }
.about__ornament {
  position: absolute; z-index: 0; right: -30px; bottom: 0; width: 260px; height: auto; opacity: .22;
  pointer-events: none;
}

/* Produtos */
.products { background: var(--bg) url("../img/textura-madeira.webp"); background-blend-mode: multiply; padding: 20px 0 24px; }
.carousel { position: relative; margin: 14px auto 0; max-width: 1440px; }
.carousel__track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 2px var(--gutter); scroll-padding-inline: var(--gutter);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carousel__track::-webkit-scrollbar { display: none; }
.product-card { flex: 0 0 clamp(148px, 42vw, 180px); scroll-snap-align: start; }
.product-card a {
  display: flex; flex-direction: column; height: 100%;
  background: var(--bg); border: 1px solid var(--bronze); border-radius: 2px; overflow: hidden;
  transition: border-color 160ms;
}
.product-card a:hover { border-color: var(--gold); }
.product-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.product-card__label {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 6px 8px; text-align: center;
  font: 500 11px/1.3 var(--font-text); letter-spacing: .02em; text-transform: uppercase;
}
.product-card__label .icon { width: 14px; height: 14px; }
.carousel__btn {
  position: absolute; top: calc(50% - 22px); z-index: 2;
  width: 44px; height: 44px; padding: 0; display: grid; place-items: center;
  background: #0D0B08d9; border: 1px solid var(--bronze); border-radius: 2px;
  color: var(--gold); cursor: pointer;
}
.carousel__btn[hidden] { display: none; }
.carousel__btn:disabled { opacity: .35; cursor: default; }
.carousel__btn--prev { left: 4px; }
.carousel__btn--next { right: 4px; }
.carousel__btn .icon { width: 20px; height: 20px; }

/* Eventos */
.events { background: var(--leather); border-top: 1px solid #845c3680; }
.events__inner {
  position: relative; max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter);
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
.events__rune { display: none; }
.events p { font-size: 14px; color: var(--muted); max-width: 32em; }

/* Personalizados */
.custom { background: var(--parch) url("../img/textura-pergaminho.webp"); color: var(--ink); }
.custom__inner {
  max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter);
  display: flex; flex-direction: column; align-items: flex-start;
}
.custom p { font-size: 14px; max-width: 32em; margin-bottom: 20px; }

/* Contato */
.contact { background: var(--bg) url("../img/textura-madeira.webp"); background-blend-mode: multiply; }
.contact__inner { max-width: 720px; margin: 0 auto; padding: 40px var(--gutter); }
.contact .title-section { justify-content: flex-start; }
.contact .title-section::before { display: none; }
.contact .title-section::after { transform: none; background: linear-gradient(90deg, var(--bronze), transparent); }
.contact p { margin: 16px 0 24px; color: var(--muted); }
.contact__actions { display: flex; flex-direction: column; gap: 12px; }

/* Rodapé */
.site-footer { background: var(--deep); border-top: 1px solid #845c3699; }
.site-footer__inner {
  max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter);
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.site-footer__brand img { width: 140px; height: auto; aspect-ratio: 420 / 230; }
.site-footer__links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; text-align: center; }
.site-footer__links a, .site-footer__icons a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px;
  font: 500 12px/1.4 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.site-footer__links a:hover, .site-footer__icons a:hover { color: var(--gold); }
.site-footer__icons { display: flex; gap: 8px; }
.site-footer__copy { font-size: 12px; color: var(--muted); }
.site-footer__copy a { text-decoration: underline; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }

/* ===== 390 e 412: ajustes de tipografia ===== */
@media (min-width: 390px) {
  .hero h1 { font-size: 32px; }
  .hero__lead { font-size: 13px; }
}
@media (min-width: 412px) {
  .hero h1 { font-size: 34px; }
  .hero__lead { font-size: 14px; }
  .hero__content { max-width: 280px; }
}

/* ===== Tablet 768+ ===== */
@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 110px; }
  body { font-size: 15px; }
  .brand img { width: 160px; }
  .hero { min-height: 540px; }
  .site-header { background: none; }
  .hero__media img { left: 0; top: 0; width: 100%; height: 100%; object-position: 40% 50%; }
  .hero::after {
    background:
      linear-gradient(90deg, #080705b3 0, transparent 55%),
      linear-gradient(0deg, #080705b3 0, transparent 35%);
  }
  .hero__inner { padding-bottom: 56px; }
  .hero__content { align-items: flex-start; text-align: left; margin-left: 0; max-width: 340px; }
  .hero h1 { font-size: 42px; }
  .hero__lead { font-size: 17px; }
  .btn { font-size: 13px; }

  .features__list { flex-wrap: nowrap; padding-block: 28px; }
  .feature { flex: 1 1 0; }
  .feature:nth-child(n+2) { border-left: 1px solid #845c3666; }
  .feature__title { font-size: 12px; }

  .about__inner { padding-block: 32px; }
  .about__media { display: block; max-width: 480px; margin-bottom: 24px; }
  .about__media img {
    width: 100%; max-height: 300px; object-fit: cover;
    clip-path: polygon(1% 4%, 12% 1%, 30% 3%, 52% 0, 74% 3%, 92% 1%, 99% 6%, 100% 30%, 98% 55%, 100% 80%, 97% 97%, 78% 100%, 55% 98%, 32% 100%, 10% 98%, 2% 95%, 0 70%, 2% 45%, 0 20%);
  }
  .about__content p:not(.eyebrow) { font-size: 15px; }
  .about__ornament { width: 200px; right: 0; bottom: -20px; opacity: .5; }

  .title-narrative { font-size: 30px; }
  .title-section, #produtos-titulo { font-size: 22px; gap: 16px; }
  #produtos-titulo::before, #produtos-titulo::after { width: min(90px, 15vw); flex: 0 1 auto; }
  .products { padding-block: 40px 48px; }
  .carousel { margin-top: 20px; }
  .carousel__track { padding-inline: 56px; scroll-padding-inline: 56px; gap: 16px; }
  .product-card { flex-basis: calc((100% - 2 * 16px) / 3); }
  .product-card__label { font-size: 12px; }
  .carousel__btn--prev { left: 6px; }
  .carousel__btn--next { right: 6px; }

  .events__inner, .custom__inner, .contact__inner { padding-block: 64px; }
  .contact__actions { flex-direction: row; }
  .events p, .custom p, .contact p { font-size: 16px; }

  .site-footer__inner { padding-block: 32px; }
  .site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 16px; }
}

/* ===== Desktop 1024+ ===== */
@media (min-width: 1024px) {
  :root { --gutter: 48px; --header-h: 112px; }
  .site-header { background: linear-gradient(180deg, #080705eb 0, #080705d9 76px, #08070500 124px); }
  .site-header__inner { grid-template-columns: auto 1fr auto; column-gap: 16px; padding-block: 11px; }
  .brand { grid-column: 1; justify-self: start; }
  .nav-toggle, .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav { display: contents; }
  .site-nav__list { grid-column: 2; grid-row: 1; justify-self: center; display: flex; gap: 16px; }
  .site-nav__icons { grid-column: 3; grid-row: 1; display: flex; gap: 4px; border: 0; }
  .site-nav__list a { min-height: 44px; padding: 0 4px; font-size: 11px; letter-spacing: .06em; }
  .site-nav__icons a { min-height: 44px; min-width: 44px; padding: 0; justify-content: center; }
  .site-nav__icon-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  html:not(.js) .site-header { position: absolute; background: none; }
  html:not(.js) .site-header__inner { grid-template-columns: auto 1fr auto; }

  .hero { min-height: clamp(540px, 40vw, 574px); align-items: center; }
  .hero::after {
    background:
      linear-gradient(90deg, #080705cc 0, #08070540 35%, transparent 60%, #080705a6 100%),
      linear-gradient(0deg, #080705b3 0, transparent 30%);
  }
  .hero__inner {
    display: grid; grid-template-columns: minmax(300px, 360px) 1fr minmax(170px, 200px); align-items: center;
    padding-top: var(--header-h); padding-bottom: 40px;
  }
  .hero__content { max-width: none; }
  .hero__media img {
    left: -17%; width: 100%;
    -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent);
    mask-image: linear-gradient(90deg, #000 86%, transparent);
  }
  .hero h1 { font-size: 46px; }
  .hero__lead { font-size: 17px; max-width: 22em; }
  .hero__runes {
    grid-column: 3; display: flex; flex-direction: column; gap: 22px;
    font: 500 13px/1.3 var(--font-text); text-transform: uppercase; letter-spacing: .05em; color: var(--gold);
  }
  .hero__runes li { display: flex; align-items: center; gap: 12px; }
  .hero__runes .icon { width: 30px; height: 30px; }

  .features__list { padding-block: 0; min-height: 120px; align-items: stretch; }
  .feature { flex-direction: row; text-align: left; justify-content: center; gap: 14px; padding: 16px 12px; }
  .feature__icon { width: 44px; height: 44px; }
  .feature__title { font-size: 13px; }
  .feature__note { display: block; margin-top: 4px; font-size: 12px; line-height: 1.35; color: var(--muted); }

  .about__inner {
    display: grid; grid-template-columns: 47fr 53fr; gap: 48px; align-items: center;
    padding-block: 32px; min-height: 395px;
  }
  .about__media { max-width: none; margin: 0; }
  .about__media img { max-height: none; aspect-ratio: 7 / 4; }
  .about__content { min-width: 0; max-width: 460px; }
  .about__content p:not(.eyebrow) { font-size: 16px; }
  .about .title-narrative { font-size: 30px; }
  .about__ornament { width: 240px; right: -36px; bottom: auto; top: 50%; transform: translateY(-45%); opacity: .32; }

  .title-narrative { font-size: 36px; }
  .title-section, #produtos-titulo { font-size: 24px; }
  .products { padding-block: 24px 28px; }
  .carousel { margin-top: 16px; }
  .carousel__track { padding-inline: 64px; scroll-padding-inline: 64px; }
  .product-card { flex-basis: calc((100% - 3 * 16px) / 4); }
  .product-card img { aspect-ratio: 1.8 / 1; }
  .product-card__label { font-size: 13px; min-height: 44px; }
  .carousel__btn--prev { left: 12px; }
  .carousel__btn--next { right: 12px; }

  .events__inner { min-height: 300px; justify-content: center; }
  .events__rune { display: block; position: absolute; right: var(--gutter); top: 50%; width: 140px; height: 140px; transform: translateY(-50%); color: var(--bronze); opacity: .35; }

  .custom__inner { min-height: 280px; justify-content: center; }
  .contact .title-section { justify-content: center; }
  .contact .title-section::before { display: block; }
  .contact .title-section::after { transform: scaleX(-1); background: linear-gradient(90deg, transparent, var(--bronze)); }
  .contact p { text-align: center; }
  .contact__actions { justify-content: center; gap: 16px; }

  .site-footer__inner { flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; }
  .site-footer__copy { flex-basis: 100%; }
}

/* ===== 1280+ ===== */
@media (min-width: 1280px) {
  .hero__media img { left: -13%; }
  .hero h1 { font-size: 56px; }
  .about .title-narrative { font-size: 36px; }
  .hero__lead { font-size: 19px; }
  .hero__inner { grid-template-columns: 360px 1fr 200px; }
  .site-nav__list { gap: 26px; }
  .site-nav__list a { font-size: 12px; }
  .brand img { width: 184px; }
}

/* ===== 1440+ ===== */
@media (min-width: 1440px) {
  .hero h1 { font-size: 64px; }
  .hero__lead { font-size: 21px; }
  .product-card { flex-basis: calc((100% - 4 * 16px) / 5); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
