/* ============================================================
   GRUPO VOITA — Custom Styles
   Complementa o Tailwind com refinamentos visuais
   ============================================================ */

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  --voita-dark:    #1A0800;
  --voita-ink:     #2E1006;
  --voita-red:     #8B1A1A;
  --voita-crimson: #A31515;
  --voita-gold:    #B8860B;
  --voita-amber:   #D4940A;
  --voita-cream:   #FAF6EE;
  --voita-sand:    #F0E8D4;
  --voita-linen:   #E8DCC8;
  --voita-stone:   #8C7B6B;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-soft: 0 4px 24px rgba(26,8,0,.08);
  --shadow-card: 0 2px 12px rgba(26,8,0,.06), 0 8px 32px rgba(26,8,0,.04);
  --shadow-lift: 0 12px 48px rgba(26,8,0,.14);
}

/* ── Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--voita-cream);
  color: var(--voita-ink);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[x-cloak] { display: none !important; }

/* ── Typography ──────────────────────────────────────────── */
.font-display { font-family: 'Fraunces', Georgia, serif; }

h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; line-height: 1.2; }
h4, h5, h6 { font-family: 'DM Sans', system-ui, sans-serif; }

.text-balance { text-wrap: balance; }

/* Display hero text */
.hero-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* ── Grain texture overlay ───────────────────────────────── */
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  border-radius: inherit;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 100px;
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--voita-amber);
  color: var(--voita-dark);
}
.btn-primary:hover {
  background: var(--voita-gold);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(212,148,10,.25);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
}

.btn-dark {
  background: var(--voita-ink);
  color: white;
}
.btn-dark:hover {
  background: var(--voita-dark);
  transform: translateY(-1px);
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.card-product {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--voita-linen);
  overflow: hidden;
  transition: all 0.25s ease;
}
.card-product:hover {
  border-color: var(--voita-amber);
  box-shadow: 0 4px 20px rgba(212,148,10,.12);
}

/* ── Sections ────────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--voita-amber);
  background: rgba(212,148,10,.08);
  border: 1px solid rgba(212,148,10,.2);
  border-radius: 100px;
  padding: 5px 12px;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--voita-ink);
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--voita-stone);
  margin-top: 8px;
  max-width: 540px;
}

/* ── Dividers & accents ──────────────────────────────────── */
.accent-line {
  width: 48px;
  height: 3px;
  background: var(--voita-amber);
  border-radius: 2px;
  margin: 16px 0;
}

/* ── Form elements ───────────────────────────────────────── */
.form-input {
  width: 100%;
  background: white;
  border: 1.5px solid var(--voita-linen);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: var(--voita-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.form-input:focus {
  border-color: var(--voita-amber);
  box-shadow: 0 0 0 3px rgba(212,148,10,.1);
}
.form-input::placeholder {
  color: var(--voita-stone);
  opacity: 0.6;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--voita-ink);
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}

/* ── Dark Section variant ────────────────────────────────── */
.section-dark {
  background: var(--voita-dark);
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,148,10,.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position: 200% 0; }
}

.animate-fade-up   { animation: fadeUp 0.6s ease forwards; }
.animate-fade-in   { animation: fadeIn 0.5s ease forwards; }

/* Staggered delays */
.delay-100 { animation-delay: 0.1s; opacity: 0; }
.delay-200 { animation-delay: 0.2s; opacity: 0; }
.delay-300 { animation-delay: 0.3s; opacity: 0; }
.delay-400 { animation-delay: 0.4s; opacity: 0; }
.delay-500 { animation-delay: 0.5s; opacity: 0; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--voita-sand) 25%, var(--voita-linen) 50%, var(--voita-sand) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ── Tags & badges ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 100px;
}
.badge-red    { background: rgba(139,26,26,.1); color: var(--voita-crimson); }
.badge-amber  { background: rgba(212,148,10,.1); color: var(--voita-gold); }
.badge-green  { background: rgba(34,197,94,.1); color: #16a34a; }

/* ── Scroll reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Custom scrollbar ────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--voita-sand); }
::-webkit-scrollbar-thumb { background: var(--voita-linen); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--voita-stone); }

/* ── Responsive utilities ────────────────────────────────── */
@media (max-width: 768px) {
  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
}
