/* =========================================================
   Spana Flexografia: layout industrial
   Design tokens
   ========================================================= */
:root{
  --ink: #006ca9;
  --ink-2: #0078bd;
  --ink-3: #0088d6;
  --paper: #f6f4ef;
  --paper-2: #ffffff;
  --line: #e7e2d8;
  --line-dark: #009bf5;

  --gold: #d5a662;
  --gold-dark: #b1823f;
  --gold-light: #f0d9ab;
  --blue: #2274b5;
  --magenta: #c22a70;
  --red: #9e2226;
  --red-light: #e05a51;
  --red-glow: rgba(158, 34, 38, .45);

  --text: #1b1f27;
  --text-muted: #5b6270;
  --text-light: #f4f1ea;
  --text-light-muted: #c9d0da;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 10px 30px -12px rgba(14, 18, 24, .35);
  --shadow-sm: 0 4px 14px -6px rgba(14, 18, 24, .25);

  --container: 1160px;
  --header-h: 84px;

  --font-display: "Barlow Condensed", "Segoe UI", sans-serif;
  --grid-line: rgba(255,255,255,.035);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
html, body{ margin:0; padding:0; }

body{
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style: none; }
h1,h2,h3,h4{
  margin: 0 0 .5em;
  line-height: 1.1;
  letter-spacing: 0;
  font-family: var(--font-display);
  font-weight: 700;
}
h2,h3,h4{
  letter-spacing: .01em;
  text-transform: uppercase;
}
p{ margin: 0 0 1em; }
button{ font: inherit; }

.container{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.eyebrow::before{
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}
.on-dark .eyebrow{ color: var(--gold-light); }

.eyebrow--red{ color: var(--red-light); }
.eyebrow--red::before{ background: var(--red-light); }

.section{ padding: 88px 0; }
.section--tight{ padding: 56px 0; }
.section--dark{
  background:
    repeating-linear-gradient(0deg, var(--grid-line) 0, var(--grid-line) 1px, transparent 1px, transparent 44px),
    repeating-linear-gradient(90deg, var(--grid-line) 0, var(--grid-line) 1px, transparent 1px, transparent 44px),
    var(--ink);
  color: var(--text-light);
}
.section--alt{ background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head{
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head.center{ margin-inline: auto; text-align: center; }
.section-head h2{ font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.section-head p{ color: var(--text-muted); font-size: 1.05rem; }
.on-dark .section-head p{ color: var(--text-light-muted); }

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn svg{ width: 18px; height: 18px; flex: none; }

.btn--gold{
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 60%, var(--gold-dark));
  color: #201404;
  box-shadow: var(--shadow-sm);
}
.btn--ghost-dark{
  border-color: rgba(244,241,234,.35);
  color: var(--text-light);
}
.btn--ghost-dark:hover{ border-color: var(--gold); color: var(--gold-light); }
.btn--ghost-light{
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost-light:hover{ border-color: var(--gold-dark); color: var(--gold-dark); }
.btn--whatsapp{
  background: #22a05b;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--block{ width: 100%; }
.btn--sm{ padding: 10px 18px; font-size: .85rem; }

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(0,108,169,.75), rgba(0,108,169,0));
  transition: background-color .25s ease, box-shadow .25s ease, height .25s ease;
}
.site-header.is-scrolled{
  height: 70px;
  background: rgba(0,108,169,.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 18px rgba(0,0,0,.25);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand img{ height: 56px; width: auto; transition: height .25s ease; }
.site-header.is-scrolled .brand img{ height: 44px; }

.nav-desktop{ display: none; }
.nav-desktop ul{ display: flex; align-items: center; gap: 6px; }
.nav-desktop a{
  display: block;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  border-radius: var(--radius-sm);
  transition: color .15s ease, background-color .15s ease;
}
.nav-desktop a:hover,
.nav-desktop a.is-active{
  color: var(--ink);
  background: var(--gold);
}
.header-actions{ display:flex; align-items:center; gap: 10px; }
.header-actions .btn--gold{ display:none; }

.nav-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(244,241,234,.3);
  background: transparent;
  color: var(--text-light);
}
.nav-toggle svg{ width: 20px; height: 20px; }

.nav-mobile{
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--ink);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  overflow-y: auto;
  z-index: 99;
}
.nav-mobile.is-open{ opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-mobile .container{ padding-top: 20px; padding-bottom: 32px; display:block; }
.nav-mobile a{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 4px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-light);
  border-bottom: 1px solid var(--line-dark);
}
.nav-mobile a.is-active{ color: var(--gold); }
.nav-mobile .btn{ margin-top: 22px; }

@media (min-width: 960px){
  .nav-desktop{ display: block; }
  .nav-toggle{ display: none; }
  .nav-mobile{ display: none; }
  .header-actions .btn--gold{ display: inline-flex; }
}

/* =========================================================
   Hero (home)
   ========================================================= */
.hero{
  position: relative;
  height: clamp(680px, 100vh, 1040px);
  display: flex;
  align-items: center;
  color: var(--text-light);
  background: #0a4e76 url("../../img/cabec/cabec-hero.webp") center 30% / cover no-repeat;
}
.hero::before{
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,78,118,.82) 0%, rgba(10,78,118,.5) 45%, rgba(10,78,118,.92) 100%),
    linear-gradient(100deg, rgba(10,78,118,.68) 8%, rgba(10,78,118,.05) 58%),
    radial-gradient(60% 70% at 78% 55%, rgba(158,34,38,.28), transparent 70%),
    repeating-linear-gradient(0deg, var(--grid-line) 0, var(--grid-line) 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(90deg, var(--grid-line) 0, var(--grid-line) 1px, transparent 1px, transparent 48px);
}
.hero .container{ position: relative; padding-top: var(--header-h); }
.hero-content{ max-width: 680px; }
.hero-content h1{
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
}
.hero-content h1 em{
  font-style: normal;
  background: linear-gradient(100deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-content p{
  font-size: 1.15rem;
  color: var(--text-light-muted);
  max-width: 54ch;
}
.hero-actions{ display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero-stats{
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 640px;
}
.stat{
  border-top: 2px solid rgba(158,34,38,.55);
  padding-top: 14px;
}
.stat strong{
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  color: var(--gold-light);
  font-weight: 800;
}
.stat span{ font-size: .85rem; color: var(--text-light-muted); }

@media (min-width: 640px){
  .hero-stats{ grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================
   Page hero (subpáginas)
   ========================================================= */
.page-hero{
  padding: calc(var(--header-h) + 64px) 0 56px;
  background:
    repeating-linear-gradient(0deg, var(--grid-line) 0, var(--grid-line) 1px, transparent 1px, transparent 44px),
    repeating-linear-gradient(90deg, var(--grid-line) 0, var(--grid-line) 1px, transparent 1px, transparent 44px),
    var(--ink);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}
.page-hero::after{
  content:"";
  position: absolute; right: -10%; top: -30%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(213,166,98,.18), transparent 65%);
}
.page-hero::before{
  content:"";
  position: absolute; left: -8%; bottom: -55%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(158,34,38,.22), transparent 65%);
}
.page-hero .container{ position: relative; }
.breadcrumb{
  display:flex; gap:8px; align-items:center;
  font-size: .82rem; color: var(--text-light-muted);
  margin-bottom: 14px;
}
.breadcrumb a:hover{ color: var(--gold-light); }
.page-hero h1{ font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero .lead{ max-width: 62ch; color: var(--text-light-muted); font-size: 1.05rem; margin-bottom:0; }

/* =========================================================
   Cards
   ========================================================= */
.grid{ display: grid; gap: 22px; }
.grid--2{ grid-template-columns: 1fr; }
.grid--3{ grid-template-columns: 1fr; }
.grid--4{ grid-template-columns: 1fr; }
@media (min-width: 640px){
  .grid--2{ grid-template-columns: repeat(2, 1fr); }
  .grid--4{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px){
  .grid--3{ grid-template-columns: repeat(3, 1fr); }
  .grid--4{ grid-template-columns: repeat(4, 1fr); }
}

.card{
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line); border-top-color: var(--gold-dark); }

.card-icon{
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #201404;
  margin-bottom: 18px;
}
.card-icon svg{ width: 26px; height: 26px; }

.category-icon{
  flex: none;
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #201404;
}
.category-icon svg{ width: 32px; height: 32px; }

.card h3{ font-size: 1.15rem; }
.card p{ color: var(--text-muted); font-size: .95rem; margin-bottom: 14px; }
.card-link{
  font-size: .85rem;
  font-weight: 700;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link svg{ width: 14px; height: 14px; transition: transform .15s ease; }
.card:hover .card-link svg{ transform: translateX(3px); }

.card--on-dark{
  background: var(--ink-2);
  border-color: var(--line-dark);
}
.card--on-dark h3{ color: var(--text-light); }
.card--on-dark p{ color: var(--text-light-muted); }

/* product card */
.card-product{
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.card-product .tag{
  flex: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.card-product h4{ margin: 0 0 4px; font-size: 1rem; }
.card-product p{ margin: 0; font-size: .88rem; color: var(--text-muted); }

/* partner card */
.card-partner{
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 22px;
}
@media (min-width: 720px){
  .card-partner{ grid-template-columns: 200px 1fr; align-items: center; }
}
.card-partner .logo-box{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
  display: flex; align-items: center; justify-content: center;
}

/* =========================================================
   Steps / timeline
   ========================================================= */
.steps{ counter-reset: step; display: grid; gap: 18px; }
.step{
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.step .num{
  counter-increment: step;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-light);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step .num::before{ content: counter(step); }

.avatar-cs{
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-light);
  font-weight: 800;
  font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}
.step h4{ margin: 0 0 4px; font-size: 1.02rem; }
.step p{ margin:0; color: var(--text-muted); font-size: .92rem; }

.timeline{ display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline-item{ position: relative; padding: 0 0 34px 28px; }
.timeline-item:last-child{ padding-bottom: 0; }
.timeline-item::before{
  content:"";
  position: absolute; left: -7px; top: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--paper);
}
.timeline-item strong{ display:block; color: var(--gold-dark); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.timeline-item p{ margin: 0; color: var(--text-muted); }

/* =========================================================
   Highlight banner / CTA
   ========================================================= */
.cta-banner{
  background:
    repeating-linear-gradient(0deg, var(--grid-line) 0, var(--grid-line) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, var(--grid-line) 0, var(--grid-line) 1px, transparent 1px, transparent 40px),
    linear-gradient(120deg, var(--ink), #075c8d 60%, var(--ink));
  color: var(--text-light);
  border-radius: var(--radius);
  padding: 48px;
  display: grid;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.cta-banner::after{
  content:"";
  position:absolute; inset:auto -20% -60% auto;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(213,166,98,.25), transparent 70%);
}
.cta-banner .container-inner{ position: relative; display:flex; flex-wrap: wrap; gap: 28px; align-items:center; justify-content: space-between; }
.cta-banner h2{ margin: 0 0 6px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cta-banner p{ margin:0; color: var(--text-light-muted); max-width: 46ch; }
.cta-actions{ display: flex; gap: 12px; flex-wrap: wrap; }

/* =========================================================
   Logos strip (parceiros)
   ========================================================= */
.logo-strip{
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 42px;
}
.logo-strip img{ height: 46px; width: auto; filter: grayscale(1) opacity(.7); transition: filter .2s ease; }
.logo-strip img:hover{ filter: none; }

/* =========================================================
   Forms
   ========================================================= */
.form-grid{ display: grid; gap: 16px; }
.field{ display: grid; gap: 6px; }
.field label{ font-size: .82rem; font-weight: 700; color: var(--text-muted); }
.field input, .field textarea{
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
  background: var(--paper-2);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus{
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(213,166,98,.18);
}
.field textarea{ resize: vertical; min-height: 130px; }
.form-note{ font-size: .8rem; color: var(--text-muted); }

.contact-panel{
  background: var(--ink);
  color: var(--text-light);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  gap: 20px;
  align-content: center;
}
.contact-panel h3{ color: var(--gold-light); }
.contact-row{ display:flex; gap: 14px; align-items: flex-start; }
.contact-row .ic{
  flex:none; width: 38px; height:38px; border-radius: 10px;
  background: rgba(213,166,98,.15); color: var(--gold-light);
  display:flex; align-items:center; justify-content:center;
}
.contact-row .ic svg{ width:18px; height:18px; }
.contact-row strong{ display:block; font-size: .95rem; }
.contact-row span{ font-size: .85rem; color: var(--text-light-muted); }

.alert{
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.alert--success{ background: #e7f6ec; color: #1c6b3a; border-color: #bfe6cb; }
.alert--danger{ background: #fbe9ec; color: #a3283f; border-color: #f2c3cc; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{ background: var(--ink); color: var(--text-light-muted); padding: 64px 0 26px; }
.footer-grid{
  display: grid;
  gap: 40px;
  margin-bottom: 44px;
}
@media (min-width: 780px){
  .footer-grid{ grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand img{ height: 50px; margin-bottom: 16px; }
.footer-brand p{ max-width: 34ch; font-size: .9rem; }
.footer-col h5{
  color: var(--text-light);
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 16px;
}
.footer-col ul{ display: grid; gap: 10px; }
.footer-col a{ font-size: .92rem; transition: color .15s ease; }
.footer-col a:hover{ color: var(--gold-light); }
.footer-social{ display:flex; gap:10px; margin-top: 16px; }
.footer-social a{
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-dark);
  display:flex; align-items:center; justify-content:center;
}
.footer-social a:hover{ border-color: var(--gold); color: var(--gold-light); }
.footer-social svg{ width: 16px; height:16px; }
.footer-bottom{
  border-top: 1px solid var(--line-dark);
  padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
  font-size: .82rem;
}
.footer-bottom .credit{
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .8rem;
}
.footer-bottom .credit:hover{ border-color: var(--gold); color: var(--gold-light); }

/* =========================================================
   Floating WhatsApp
   ========================================================= */
.float-whatsapp{
  position: fixed;
  right: 22px; bottom: 22px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #22a05b;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(34,160,91,.55);
  z-index: 90;
  transition: transform .15s ease;
}
.float-whatsapp:hover{ transform: scale(1.07); }
.float-whatsapp svg{ width: 28px; height: 28px; }

/* =========================================================
   Utilities
   ========================================================= */
.mt-0{ margin-top:0; }
.text-muted{ color: var(--text-muted); }
.badge-notice{
  display:inline-block;
  background: rgba(213,166,98,.12);
  border: 1px solid rgba(213,166,98,.35);
  color: var(--gold-dark);
  font-size: .78rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
