/* Lavadero Curupí — base styles
   Brand palette derived from the wordmark logo:
   - Navy "LAVADERO" → primary/ink
   - Cyan brush "Curupí" → accent
*/

@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Yellowtail&family=Manrope:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* LIGHT — default; matches the white background the logo was designed on */
  --bg: #f4f1e8;
  --bg-tint: #ebe6d6;
  --surface: #ffffff;
  --surface-2: #efece2;
  --border: #ddd7c4;
  --border-strong: #b8b09a;
  --ink: #111a4d;            /* the navy from "LAVADERO" */
  --ink-soft: #2a3478;
  --text: #111a4d;
  --text-muted: #6c6f87;
  --text-faint: #9a9caf;
  --accent: #2bb0cf;          /* the cyan from "Curupí" */
  --accent-deep: #1d8aa5;
  --accent-ink: #062633;
  --accent-soft: color-mix(in oklab, var(--accent) 16%, transparent);

  --font-display: "Alfa Slab One", "Ultra", Georgia, serif;
  --font-script: "Yellowtail", "Brush Script MT", cursive;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-card: 0 1px 0 rgba(17, 26, 77, 0.04), 0 12px 32px -16px rgba(17, 26, 77, 0.12);
}

[data-theme="dark"] {
  /* DARK — navy-on-navy, the logo lockup inverted onto its own ink */
  --bg: #0a1138;
  --bg-tint: #0e1746;
  --surface: #131c52;
  --surface-2: #1a2461;
  --border: #25307a;
  --border-strong: #3a4699;
  --ink: #f4f1e8;
  --ink-soft: #c8c4b3;
  --text: #f4f1e8;
  --text-muted: #9aa1c8;
  --text-faint: #5c6597;
  --accent: #3cc6e6;
  --accent-deep: #2bb0cf;
  --accent-ink: #051a25;
  --accent-soft: color-mix(in oklab, var(--accent) 20%, transparent);
  --shadow-card: 0 1px 0 rgba(0, 0, 0, 0.2), 0 14px 36px -18px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;       /* Alfa Slab One is single-weight */
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.0;
  color: var(--ink);
}

.script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0;
  font-style: normal;
}

button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* Utility */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

.mono { font-family: var(--font-mono); font-size: 0.78em; letter-spacing: 0.02em; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--ink-soft); }
.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-accent:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn-wa {
  background: #25D366;
  color: #062a13;
}
.btn-wa:hover { background: #1fbf5b; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 18px 28px; font-size: 16px; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* Image placeholder w/ stripes */
.img-placeholder {
  background:
    repeating-linear-gradient(135deg,
      color-mix(in oklab, var(--ink) 6%, transparent) 0 12px,
      transparent 12px 24px),
    var(--surface-2);
  border: 1px dashed var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
  padding: 16px;
}

.img-stock {
  background-size: cover;
  background-position: center;
  background-color: var(--surface-2);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-soft); }

/* Reveal animation */
@keyframes lc-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: lc-fade-up .7s cubic-bezier(.2,.7,.3,1) both; }

/* Subtle grain */
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/></svg>");
  mix-blend-mode: multiply;
}

/* Tags / chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-family: var(--font-mono);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.chip.accent {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-color: color-mix(in oklab, var(--accent) 35%, transparent);
}
.chip.ink {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Layout helpers */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; } .gap-4 { gap: 32px; }
.center { align-items: center; justify-content: center; }
.between { justify-content: space-between; align-items: center; }

input, select, textarea {
  font-family: inherit;
  font-size: 15px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  width: 100%;
  outline: none;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
label { font-size: 13px; color: var(--text-muted); display: block; margin-bottom: 6px; font-weight: 500; }

/* Section */
section { position: relative; padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }
.section-head { margin-bottom: 56px; max-width: 760px; }
.section-head h2 {
  font-size: clamp(36px, 5.5vw, 64px);
  margin-top: 16px;
  line-height: 1.02;
}
.section-head h2 .script {
  font-size: 1.05em;
  line-height: 0.9;
  display: inline-block;
  transform: translateY(0.08em);
}
.section-head p { color: var(--text-muted); font-size: 17px; max-width: 580px; margin-top: 20px; }

/* Brand wordmark — typographic recreation of the logo */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  line-height: 0.82;
  position: relative;
}
.wordmark .wm-top {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-size: var(--wm-size, 28px);
}
.wordmark .wm-bot {
  font-family: var(--font-script);
  color: var(--accent);
  font-size: calc(var(--wm-size, 28px) * 0.95);
  margin-top: calc(var(--wm-size, 28px) * -0.45);
  margin-left: calc(var(--wm-size, 28px) * 0.55);
  letter-spacing: 0;
  transform: rotate(-4deg);
  transform-origin: left center;
  text-shadow: 0 1px 0 var(--bg);
}
