/* ==========================================================
   ArteNativa — landing page
   ========================================================== */

:root {
  --red: #D0202A;
  --red-dark: #A8161F;
  --ink: #231F20;
  --ink-2: #3a3536;
  --muted: #6b6566;
  --line: #e6e2e2;
  --paper: #ffffff;
  --paper-2: #f5f3f2;

  --c-setlist: #4b3cf0;
  --c-organizer: #cb2224; /* red from the Organizer icon */
  --c-trip: #a3399c;

  --radius: 4px;
  --shadow: 0 18px 50px -20px rgba(35, 31, 32, .35);
  --container: 1160px;
  --header-h: 76px;

  --f-head: "DM Serif Display", Georgia, "Times New Roman", serif;
  --f-body: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-link: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); font-family: var(--f-link); font-weight: 500; }
h1, h2, h3, h4, .steps .num, .hero-stats strong, .split strong { font-variant-numeric: lining-nums; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 400; font-synthesis: none; line-height: 1.12; margin: 0 0 .5em; letter-spacing: 0; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-link); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  padding: 15px 26px; border: 2px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-link { padding: 15px 4px; color: var(--ink-2); text-transform: none; letter-spacing: 0; font-family: var(--f-link); font-weight: 500; }
.btn-link:hover { color: var(--red); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0,0,0,.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; position: relative; padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 3px; background: var(--red); transition: right .25s;
}
.nav a:hover::after, .nav a.active::after { right: 0; }

.header-tools { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.lang button {
  font: 700 13px/1 var(--f-link); letter-spacing: .06em; padding: 8px 10px; border: 0; background: transparent; color: var(--ink); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 3px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 880px) {
  .brand img { height: 38px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .2s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a::after { display: none; }
}

/* ---------- Section basics ---------- */
.section { padding: 96px 0; }
@media (max-width: 720px) { .section { padding: 64px 0; } }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* the red band echoes the "NATIVA" bar from the logo */
.band {
  font-size: clamp(32px, 4.6vw, 52px); font-weight: 400; letter-spacing: 0;
  display: inline-block; position: relative; padding-bottom: 14px; margin-bottom: 22px;
}
.band::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 8px; background: var(--red);
}

.lead { font-size: clamp(18px, 2vw, 20px); color: var(--ink-2); }

.kicker {
  display: inline-block; background: var(--red); color: #fff; margin-bottom: 22px;
  font: 700 13px/1 var(--f-link); letter-spacing: .5em; text-transform: uppercase; padding: 9px 10px 9px 16px;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 48px; overflow: hidden; background:
  linear-gradient(180deg, #fff 0%, var(--paper-2) 100%); }
.hero::before {
  /* oversize ring, a nod to the circle in the mark */
  content: ""; position: absolute; width: 760px; height: 760px; right: -260px; top: -180px;
  border: 26px solid rgba(35, 31, 32, .05); border-radius: 50%;
}
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(38px, 5.8vw, 68px); font-weight: 400; line-height: 1.06; }
.hero .lead { max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero-mark { width: min(320px, 70vw); aspect-ratio: 1; display: grid; place-items: center; }
.hero-mark img { width: 100%; mix-blend-mode: multiply; animation: float 7s ease-in-out infinite; }

.hero-chips { position: absolute; inset: 0; pointer-events: none; }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 999px;
  padding: 7px 16px 7px 7px; font-weight: 600; font-size: 14px; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.chip img { width: 32px; height: 32px; border-radius: 8px; }
.chip-setlist { top: 6%; left: -4%; animation-delay: -1s; }
.chip-trip { top: 46%; right: -6%; animation-delay: -3s; }
.chip-organizer { bottom: 4%; left: 6%; animation-delay: -5s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-mark img, .chip { animation: none; } }

.hero-stats {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px;
  border-top: 2px solid var(--ink);
}
.hero-stats div { padding: 20px 16px 0 0; }
.hero-stats strong { display: block; font: 400 clamp(26px, 3.4vw, 38px)/1 var(--f-head); color: var(--red); }
.hero-stats span { font-size: 14px; color: var(--muted); }

@media (max-width: 880px) {
  .hero { padding-top: 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { min-height: 300px; }
  .chip-setlist { left: 0; }
  .chip-trip { right: 0; }
}
@media (max-width: 520px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats div { display: flex; align-items: baseline; gap: 12px; padding: 14px 0 0; }
  .hero-stats strong { min-width: 84px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Apps ---------- */
.apps { background: #fff; }
.app {
  --accent: var(--red);
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 56px 0; border-top: 1px solid var(--line);
}
.app:first-of-type { border-top: 0; padding-top: 0; }
.app:nth-of-type(even) .app-media { order: 2; }
.app-setlist { --accent: var(--c-setlist); }
.app-organizer { --accent: var(--c-organizer); }
.app-trip { --accent: var(--c-trip); }

.app-title { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.app-title img { border-radius: 14px; box-shadow: 0 8px 20px -8px var(--accent); }
.app-title h3 { font-size: clamp(28px, 3vw, 36px); font-weight: 400; margin: 0; }
.app-title .tag { margin: 2px 0 0; color: var(--muted); font-weight: 500; }

.features { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 10px; }
.features li { position: relative; padding-left: 28px; }
.features li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* square, like the logo letters */
}
.app-actions { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }

/* Mock "device" screens — placeholders until real screenshots */
.app-media { position: relative; display: grid; place-items: center; padding: 24px; }
.app-media::before {
  content: ""; position: absolute; inset: 0 8% 0 8%;
  background: var(--accent); opacity: .1; border-radius: 6px;
  transform: rotate(-3deg);
}
.device {
  position: relative; width: min(360px, 100%); background: #fff; border-radius: 22px; padding: 14px;
  border: 8px solid var(--ink); box-shadow: var(--shadow); font-size: 14px;
}
.device-bar {
  display: flex; align-items: center; gap: 10px; font-weight: 700; padding: 6px 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 10px;
}
.device-bar img { width: 28px; height: 28px; border-radius: 7px; }
.mock-block {
  font: 700 11px/1 var(--f-link); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 12px 4px 6px;
}
.mock-row { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; padding: 9px 8px; border-radius: 8px; background: var(--paper-2); margin-bottom: 6px; }
.mock-row b { color: var(--muted); font-weight: 600; }
.mock-row em, .chk em, .chk-total em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.mock-foot { display: flex; gap: 8px; margin-top: 12px; }
.mock-foot span { flex: 1; text-align: center; padding: 8px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600; font-size: 13px; }
.mock-foot span + span { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }

.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.col { background: var(--paper-2); border-radius: 8px; padding: 8px; min-height: 120px; }
.col h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
.card { background: #fff; border-radius: 6px; padding: 7px 8px; margin-bottom: 6px; font-size: 12.5px; line-height: 1.3; box-shadow: 0 1px 2px rgba(0,0,0,.08); border-left: 3px solid var(--line); }
.card.hot { border-left-color: var(--accent); }
.card.done { text-decoration: line-through; color: var(--muted); }
.mock-list { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.chk { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 8px; padding: 5px 4px; }
.chk i { width: 16px; height: 16px; border: 2px solid var(--muted); border-radius: 4px; }
.chk.on i { background: var(--accent); border-color: var(--accent); }
.chk.on span { text-decoration: line-through; color: var(--muted); }
.chk-total { display: flex; justify-content: space-between; padding: 8px 4px 0; font-weight: 700; border-top: 1px dashed var(--line); margin-top: 4px; }
.chk-total em { color: var(--ink); }

.day { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 10px 8px; border-left: 3px solid var(--accent); background: var(--paper-2); border-radius: 0 8px 8px 0; margin-bottom: 6px; }
.day b { color: var(--accent); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.split div { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.split small { display: block; color: var(--muted); font-size: 12px; }
.split strong { font: 400 20px/1.2 var(--f-head); }

@media (max-width: 880px) {
  .app { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .app:nth-of-type(even) .app-media { order: 0; }
  .app-media { padding: 12px 0; }
}

/* ---------- About (dark) ---------- */
.dark { background: var(--ink); color: #e9e6e6; }
.dark .lead { color: #fff; }
.dark .band { color: #fff; }
.about-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; background: rgba(255,255,255,.08); }
.services li { background: var(--ink); padding: 24px 0 24px 24px; border-left: 4px solid var(--red); }
.services h3 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.services p { margin: 0; color: #b9b3b4; font-size: 15.5px; }
@media (max-width: 880px) { .about-inner { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Process ---------- */
.process { background: var(--paper-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { background: #fff; padding: 28px 24px; border-top: 6px solid var(--ink); transition: border-color .2s, transform .2s; }
.steps li:hover { border-color: var(--red); transform: translateY(-4px); }
.steps .num { display: block; font: 400 40px/1 var(--f-head); color: var(--red); margin-bottom: 16px; }
.steps h3 { font-size: 20px; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.mail { margin-top: 28px; color: var(--muted); }
.mail a { font: 700 clamp(20px, 2.4vw, 26px)/1.4 var(--f-link); color: var(--ink); text-decoration: none; border-bottom: 4px solid var(--red); }
.mail a:hover { color: var(--red); }

.form { background: var(--paper-2); padding: 32px; border-top: 8px solid var(--red); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 2px solid var(--line); border-radius: var(--radius); padding: 12px 14px; transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.field .err { display: block; color: var(--red); font-size: 13px; margin-top: 4px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.spinner { display: none; width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.form.sending .spinner { display: inline-block; }
.form.sending button { opacity: .8; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status { margin: 14px 0 0; font-weight: 600; min-height: 1.6em; }
.form-status.ok { color: #1f7a3a; }
.form-status.error { color: var(--red); }

@media (max-width: 880px) { .contact-inner { grid-template-columns: 1fr; gap: 32px; } .form { padding: 22px 16px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9b3b4; padding: 32px 0; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer-mark { background: #fff; border-radius: 6px; padding: 3px; }
.site-footer p { margin: 0; flex: 1; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--red); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
