/* ============ Jakamar — B2B katalog ============ */
:root {
  --paper: #FBF6EE;
  --paper-2: #F4ECDF;
  --ink: #241B10;
  --ink-soft: #5C5040;
  --accent: #E2622B;
  --accent-deep: #B94716;
  --leaf: #2F6D5E;
  --navy: #252B33;
  --wa: #22A85B;
  --wa-deep: #1B8A4A;
  --card: #FFFDF9;
  --radius: 22px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* grain overlay */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: .9rem clamp(1.2rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}
.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  text-decoration: none; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: .1em;
}
.logo-mark {
  display: inline-grid; place-items: center; width: 1.55em; height: 1.55em;
  background: var(--accent); border-radius: .45em;
  margin-right: .3em; transform: rotate(-6deg);
}
.logo-mark img { width: 62%; height: auto; }
.logo-dot { color: var(--accent); }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink-soft);
  transition: color .2s;
}
.nav a:hover { color: var(--accent-deep); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--wa) 60%, transparent); }
.btn-wa:hover { background: var(--wa-deep); }
.btn-ghost { border: 1.5px solid color-mix(in srgb, var(--ink) 25%, transparent); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--accent-deep); }
.btn-big { padding: 1.05rem 2rem; font-size: 1.1rem; }
.topbar-cta { padding: .55rem 1.1rem; font-size: .9rem; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.25fr 1fr; align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.2rem, 4vw, 3rem) clamp(2rem, 4vw, 3.5rem);
  max-width: 1250px; margin: 0 auto;
}
.kicker {
  display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-deep);
  border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent);
  padding: .35rem .9rem; border-radius: 999px; margin-bottom: 1.4rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  font-weight: 600; line-height: 1.04; letter-spacing: -.025em;
  margin-bottom: 1.3rem;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); max-width: 34em; margin-bottom: 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.2rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; list-style: none; }
.hero-facts li {
  font-size: .92rem; color: var(--ink-soft); position: relative; padding-left: 1.1em;
}
.hero-facts li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); font-size: .8em; top: .25em; }
.hero-facts strong { color: var(--ink); }

.hero-media { position: relative; justify-self: center; }
.phone {
  width: min(300px, 72vw); aspect-ratio: 9/16; border-radius: 34px; overflow: hidden;
  border: 6px solid var(--ink);
  box-shadow: 18px 22px 0 -4px var(--accent), 0 30px 60px -20px rgba(36,27,16,.4);
  transform: rotate(2.5deg);
  transition: transform .4s ease;
}
.phone:hover { transform: rotate(0deg) scale(1.02); }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; top: -1.1rem; left: -3.2rem;
  background: var(--leaf); color: var(--paper);
  font-family: var(--font-display); font-style: italic; font-size: .95rem; line-height: 1.25;
  padding: .8rem 1.1rem; border-radius: 16px 16px 16px 4px;
  transform: rotate(-5deg);
  box-shadow: 0 10px 24px -10px rgba(47,109,94,.55);
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden; white-space: nowrap;
  background: var(--ink); color: var(--paper);
  padding: .75rem 0; transform: rotate(-.6deg) scale(1.02);
  font-family: var(--font-display); font-style: italic; font-size: 1.05rem;
}
.marquee-track { display: inline-block; animation: scroll 28s linear infinite; }
.marquee-track span { padding-right: .5rem; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { max-width: 1250px; margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) clamp(1.2rem, 4vw, 3rem); }
.section-head { display: flex; gap: 1.4rem; align-items: flex-start; margin-bottom: 2.2rem; }
.section-no {
  font-family: var(--font-display); font-style: italic; font-size: clamp(2.4rem, 4vw, 3.4rem);
  color: color-mix(in srgb, var(--accent) 55%, transparent); line-height: 1; font-weight: 600;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -.02em; line-height: 1.1;
  margin-bottom: .5rem;
}
.section-head p { color: var(--ink-soft); max-width: 46em; }

/* ---------- catalog ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.8rem; }
.chip {
  font-family: var(--font-body); font-size: .92rem; font-weight: 600;
  padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink-soft);
  border: 1.5px solid color-mix(in srgb, var(--ink) 18%, transparent);
  transition: all .18s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent-deep); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.3rem;
}
.cat-group { margin-bottom: 2.8rem; }
.cat-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.cat-head .cat-title { margin-bottom: 0; flex: 1; min-width: 240px; }
.cat-action {
  white-space: nowrap; text-decoration: none;
  font-weight: 600; font-size: .92rem; color: #fff;
  background: var(--accent);
  padding: .55rem 1.2rem; border-radius: 999px;
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 65%, transparent);
  transition: all .18s ease;
}
.cat-action:hover { background: var(--accent-deep); transform: translateY(-2px); }
.cat-group.is-hidden { display: none; }
.cat-title {
  font-family: var(--font-display); font-weight: 600; font-size: 1.35rem;
  letter-spacing: -.01em; margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: 1rem;
}
.cat-title::after {
  content: ""; flex: 1; height: 1px;
  background: color-mix(in srgb, var(--ink) 15%, transparent);
}
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  transition: transform .25s ease, box-shadow .25s ease;
  opacity: 0; transform: translateY(18px);
}
.card.is-in { opacity: 1; transform: translateY(0); }
.card.is-hidden { display: none; }
.card:hover {
  transform: translateY(-6px) rotate(-.5deg);
  box-shadow: 0 22px 40px -18px rgba(36,27,16,.28);
}
.card-img { aspect-ratio: 1/1.05; overflow: hidden; background: var(--paper-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 1rem 1.1rem 1.15rem; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: .2rem .6rem; border-radius: 999px; margin-bottom: .45rem;
}
.card-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.25; margin-bottom: .5rem; }
.card-body h3 small { font-weight: 400; color: var(--ink-soft); font-size: .8em; }
.card-cta { font-size: .9rem; font-weight: 600; color: var(--wa-deep); text-decoration: none; }
.card-cta:hover { text-decoration: underline; }
.card-more {
  display: flex; flex-direction: column; justify-content: center; gap: .5rem;
  padding: 1.6rem 1.4rem; text-decoration: none;
  background: var(--navy); color: var(--paper);
  border: none;
}
.card-more .card-more-plus {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: 3rem; line-height: 1; color: var(--accent);
}
.card-more h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.2; }
.card-more p { font-size: .92rem; color: color-mix(in srgb, var(--paper) 72%, transparent); }
.card-more .card-cta { color: #7FD8A4; margin-top: .3rem; }
.card-more:hover { transform: translateY(-6px) rotate(.5deg); }

.catalog-note { margin-top: 2rem; color: var(--ink-soft); font-size: 1rem; }
.catalog-note a { color: var(--wa-deep); font-weight: 600; }

/* ---------- custom production ---------- */
.custom { position: relative; }
.custom::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--paper-2); border-radius: 40px;
  margin: 0 clamp(.4rem, 1.5vw, 1rem);
}
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.6rem; list-style: none; margin-bottom: 2.4rem; counter-reset: step;
}
.steps li {
  background: var(--card); border-radius: 18px; padding: 1.4rem 1.3rem;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  position: relative;
}
.step-no {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: 2.2rem; color: var(--accent); line-height: 1; display: block; margin-bottom: .5rem;
}
.steps h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: .3rem; }
.steps p { font-size: .92rem; color: var(--ink-soft); }
.custom-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.custom-cta p { color: var(--ink-soft); }
.custom-cta a:not(.btn) { color: var(--accent-deep); font-weight: 600; }

/* ---------- about ---------- */
.about-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); }
.about-big {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.35; letter-spacing: -.01em;
}
.about-big em { color: var(--accent); }
.about-big a { color: var(--leaf); text-decoration-thickness: 2px; }
.about-side p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.about-list { list-style: none; }
.about-list li { padding: .55rem 0 .55rem 1.6em; position: relative; font-weight: 600; border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.about-list li::before { content: "✓"; position: absolute; left: 0; color: var(--wa-deep); font-weight: 700; }

/* ---------- faq ---------- */
.faq-list { max-width: 800px; }
.faq-list details {
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  padding: .3rem 0;
}
.faq-list summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  padding: .9rem 2.2rem .9rem 0; position: relative;
  transition: color .2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: .2rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display); font-style: italic; font-size: 1.5rem;
  color: var(--accent); transition: transform .25s ease;
}
.faq-list details[open] summary { color: var(--accent-deep); }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list summary:hover { color: var(--accent-deep); }
.faq-list details p { color: var(--ink-soft); padding: 0 0 1.1rem; max-width: 60ch; }

/* ---------- contact ---------- */
.contact {
  text-align: center;
  background: var(--ink); color: var(--paper);
  border-radius: 40px; margin: 0 clamp(.4rem, 1.5vw, 1rem) 3rem;
  max-width: 1218px;
}
@media (min-width: 1300px) { .contact { margin-left: auto; margin-right: auto; } }
.contact h2 {
  font-family: var(--font-display); font-weight: 600; font-style: italic;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.08; letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.contact > p { color: color-mix(in srgb, var(--paper) 70%, transparent); margin-bottom: 2rem; font-size: 1.1rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.contact .btn-ghost { border-color: color-mix(in srgb, var(--paper) 35%, transparent); color: var(--paper); }
.contact .btn-ghost:hover { border-color: var(--paper); }

/* ---------- footer ---------- */
.footer {
  max-width: 1250px; margin: 0 auto;
  padding: 1rem clamp(1.2rem, 4vw, 3rem) 2.5rem;
  display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: flex-start; justify-content: space-between;
}
.footer-logo { font-size: 1.25rem; }
.footer p { color: var(--ink-soft); font-size: .92rem; }
.footer-links { display: flex; flex-direction: column; gap: .4rem; }
.footer-links a { font-size: .95rem; color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--accent-deep); }
.footer-note { width: 100%; border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); padding-top: 1.2rem; font-size: .85rem !important; }

/* ---------- floating whatsapp ---------- */
.wa-float {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 90;
  width: 3.6rem; height: 3.6rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 10px 26px -8px color-mix(in srgb, var(--wa) 75%, transparent);
  transition: transform .2s ease, background .2s;
}
.wa-float:hover { transform: scale(1.1); background: var(--wa-deep); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--navy) 88%, transparent);
  backdrop-filter: blur(6px);
  animation: lbFade .22s ease;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox figure { text-align: center; max-width: 92vw; }
.lightbox img {
  max-width: 92vw; max-height: 82vh; width: auto; height: auto;
  border-radius: 18px; cursor: default;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.6);
  animation: lbZoom .25s cubic-bezier(.2,.7,.2,1);
}
.lb-title {
  margin-top: 1rem; color: var(--paper);
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
}
.lb-close {
  position: absolute; top: 1.1rem; right: 1.3rem;
  width: 2.8rem; height: 2.8rem; border-radius: 50%;
  border: none; cursor: pointer;
  background: color-mix(in srgb, var(--paper) 16%, transparent);
  color: var(--paper); font-size: 1.7rem; line-height: 1;
  transition: background .2s;
}
.lb-close:hover { background: var(--accent); }
@keyframes lbFade { from { opacity: 0; } }
@keyframes lbZoom { from { transform: scale(.92); opacity: 0; } }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(22px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.r1 { animation-delay: .08s; } .r2 { animation-delay: .18s; } .r3 { animation-delay: .3s; } .r4 { animation-delay: .42s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .card { opacity: 1 !important; transform: none !important; animation: none !important; }
  .marquee-track { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-media { justify-self: start; margin-left: 3rem; margin-top: .5rem; }
  .about-cols { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .topbar { gap: .8rem; }
  .hero-media { margin-left: 2.4rem; }
  .hero-badge { left: -2.4rem; font-size: .85rem; }
  .custom-cta { flex-direction: column; align-items: flex-start; }
}
