/* ============================================
   DXavier Minis — design tokens
   ============================================ */
:root {
  --ink: #100d0c;
  --charcoal: #1b1714;
  --charcoal-2: #221c18;
  --line: #342c25;
  --bone: #ede3d0;
  --bone-dim: #b7ab96;
  --brass: #c79a4b;
  --brass-bright: #e3bc72;
  --crimson: #8a2432;
  --verdigris: #4f7a6b;

  --display: "Cinzel", serif;
  --body: "Work Sans", sans-serif;
  --mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  width: 100%;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.mono { font-family: var(--mono); }

/* subtle film-grain overlay for atmosphere */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 5vw;
  background: rgba(16, 13, 12, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2.10rem;
  letter-spacing: 0.03em;
  color: var(--bone);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.logo-mark { color: var(--brass); }
.logo-thin { font-weight: 500; color: var(--bone-dim); }

.nav {
  display: flex;
  gap: 12px;
  flex: 1;
  justify-content: center;
}

.nav a {
  font-size: 0.88rem;
  color: var(--bone-dim);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.nav a:hover {
  color: var(--brass-bright);
  border-color: var(--brass);
  background: rgba(199, 154, 75, 0.08);
}

.nav-cta {
  font-family: var(--mono);
  font-size: 0.88rem;
  padding: 8px 16px;
  border: 1px solid var(--brass);
  color: var(--brass-bright);
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { background: var(--brass); color: var(--ink); }

/* Hamburger button — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--bone);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .site-header { padding: 14px 5vw; }
  .nav-toggle { display: flex; }

  /* Menu vira um painel que desliza abaixo do cabeçalho */
  .nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 6vw 18px;
    background: rgba(16, 13, 12, 0.98);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 99;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav a {
    padding: 14px 6px;
    border: none;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    text-align: left;
  }
}

/* Telas bem estreitas: evita que logo + botão + CTA apertem demais */
@media (max-width: 420px) {
  .site-header { gap: 10px; padding: 12px 5vw; }
  .logo { font-size: 1.5rem; }
  .nav-cta { padding: 8px 12px; font-size: 0.8rem; }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16,13,12,0.97) 0%, rgba(16,13,12,0.75) 38%, rgba(16,13,12,0.25) 68%, rgba(16,13,12,0.05) 100%),
    linear-gradient(to top, rgba(16,13,12,0.9) 0%, transparent 30%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 5vw;
  max-width: 640px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 18px;
}

h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12;
  margin: 0 0 20px;
  color: var(--bone);
  position: relative;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--bone-dim);
  max-width: 480px;
  margin: 0 0 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* brush-stroke underline — the signature element */
.brush-underline {
  display: block;
  width: 92px;
  height: 14px;
  margin-top: 10px;
}
.brush-underline::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24'><path d='M4 16c30-10 60-14 90-10 26 3 50 10 100-2' fill='none' stroke='%23C79A4B' stroke-width='7' stroke-linecap='round'/></svg>") no-repeat left center / contain;
  transform-origin: left center;
  transform: scaleX(0);
  animation: paint-in 1s cubic-bezier(.4,0,.2,1) 0.4s forwards;
}
h2 .brush-underline::after { animation-play-state: paused; }
h2.in-view .brush-underline::after { animation-play-state: running; }

@keyframes paint-in {
  to { transform: scaleX(1); }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { background: var(--brass-bright); }

.btn-ghost { border-color: var(--bone-dim); color: var(--bone); }
.btn-ghost:hover { border-color: var(--bone); }

.btn-outline { border-color: var(--brass); color: var(--brass-bright); }
.btn-outline:hover { background: var(--brass); color: var(--ink); }

.btn-small { padding: 9px 16px; font-size: 0.82rem; }

/* ============================================
   Intro strip
   ============================================ */
.intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 40px 5vw;
  background: var(--charcoal);
  border-bottom: 1px solid var(--line);
}
.intro p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--bone-dim);
}
.intro .mono {
  color: var(--brass);
  margin-right: 10px;
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 100px 5vw;
}
.section-alt { background: var(--charcoal); }

.section-head {
  max-width: 620px;
  margin: 0 0 52px;
}

h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin: 0 0 6px;
}

.section-lede {
  color: var(--bone-dim);
  font-size: 1rem;
  margin: 16px 0 0;
}

/* ============================================
   Gallery
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.gallery-item {
  margin: 0;
  background: var(--charcoal);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-item figcaption {
  padding: 16px 18px 20px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--bone-dim);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sw, var(--brass));
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.3);
}

.gallery-item figcaption p {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: var(--bone);
}

.gallery-note {
  margin-top: 36px;
  font-size: 0.9rem;
  color: var(--bone-dim);
}
.gallery-note a { color: var(--brass-bright); border-bottom: 1px solid var(--brass); }

/* ============================================
   Pricing / Services
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.price-card {
  background: var(--ink);
  border: 1px solid var(--line);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.price-card-featured {
  border-color: var(--brass);
  background: linear-gradient(180deg, rgba(199,154,75,0.08), transparent 40%);
}

.price-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass);
  margin: 0;
}

.price-card h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  margin: 0;
}

.price {
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--bone);
  margin: 0;
}
.price span {
  font-size: 0.75rem;
  color: var(--bone-dim);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-card li {
  font-size: 0.9rem;
  color: var(--bone-dim);
  padding-left: 18px;
  position: relative;
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--brass);
  border-radius: 50%;
}

.pricing-note {
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--bone-dim);
}

/* ============================================
   Shop
   ============================================ */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--charcoal);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover img { transform: scale(1.05); }

.product-info { padding: 20px 22px 24px; }

.product-info h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.product-desc {
  font-size: 0.88rem;
  color: var(--bone-dim);
  margin: 0 0 18px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-tag-inline {
  font-family: var(--mono);
  color: var(--brass-bright);
  font-size: 1rem;
}

.product-card-ghost {
  border-style: dashed;
  align-items: center;
  justify-content: center;
  display: flex;
}
.product-ghost-inner {
  padding: 40px 26px;
  text-align: center;
}
.product-ghost-inner p:first-child { color: var(--brass); margin-bottom: 10px; }
.product-ghost-inner p:nth-child(2) {
  color: var(--bone-dim);
  font-size: 0.88rem;
  margin: 0 0 20px;
}

/* ============================================
   CTA band / contact
   ============================================ */
.cta-band {
  padding: 110px 5vw;
  text-align: center;
  background: var(--charcoal-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band h2 { display: inline-block; }
.cta-band .brush-underline { margin: 10px auto 0; }
.cta-band p {
  color: var(--bone-dim);
  max-width: 460px;
  margin: 0 auto 34px;
}
.cta-band .hero-actions { justify-content: center; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  padding: 32px 5vw;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--bone-dim);
}
.site-footer a { border-bottom: 1px solid var(--line); }
.site-footer a:hover { color: var(--brass-bright); border-color: var(--brass); }

/* ============================================
   Reduced motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brush-underline::after { animation: none; transform: scaleX(1); }
  .gallery-item img { transition: none; }
}

/* Visible keyboard focus */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 3px;
}
