/* ==========================================================================
   Ibiza Imports — Base: tokens de design, reset, tipografia e utilitários
   ========================================================================== */

:root {
  /* Cores da marca (extraídas da logo) */
  --gold: #f2b233;
  --gold-light: #ffcf6b;
  --gold-dark: #c98a12;
  --gold-soft: rgba(242, 178, 51, 0.14);

  /* Escuros */
  --black: #0a0a0b;
  --ink: #111113;
  --ink-2: #19191c;
  --ink-3: #25252a;
  --ink-line: rgba(255, 255, 255, 0.09);

  /* Claros (bege mais quente e um pouco mais escuro) */
  --paper: #d9cdb6;       /* fundo das seções claras */
  --surface: #ebe3d3;     /* cards, painéis e campos */
  --media-light: #f3eee4; /* fundo das fotos dos produtos */
  --media-dark: #ddd2bd;
  --white: #ffffff;       /* usado apenas para texto sobre fundos escuros */
  --cream: #f3efe6;
  --line: #c7b9a0;
  --line-strong: #ae9f84;

  /* Texto */
  --text: #131315;
  --text-2: #44433f;
  --muted: #6c6a64;
  --text-on-dark: #f3efe6;
  --muted-on-dark: #a19e96;

  /* Estados */
  --success: #1f9d61;
  --danger: #d6453d;

  /* Tipografia */
  --font-display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(15, 15, 18, 0.06), 0 2px 8px rgba(15, 15, 18, 0.04);
  --shadow: 0 10px 30px -12px rgba(15, 15, 18, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(15, 15, 18, 0.35);
  --shadow-gold: 0 12px 30px -10px rgba(242, 178, 51, 0.55);

  /* Movimento */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 160ms;
  --t: 280ms;
  --t-slow: 520ms;
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

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

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

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type='number'] { -moz-appearance: textfield; appearance: textfield; }
input[type='search']::-webkit-search-cancel-button { -webkit-appearance: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--gold); color: var(--black); }

/* ---------- Tipografia ---------- */
.display,
h1, h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 0.98;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.eyebrow--light { color: var(--gold); }

.text-accent { color: var(--gold); }
.muted { color: var(--muted); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.app {
  flex: 1;
  outline: none;
}

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--light { background: var(--paper); }
.section--white { background: var(--surface); }
.section--dark {
  background: var(--ink);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Transição entre páginas ---------- */
.app.is-leaving {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms var(--ease-in-out), transform 180ms var(--ease-in-out);
}
.app.is-entering { animation: page-in 460ms var(--ease) both; }

@keyframes page-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Revelar ao rolar ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

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