/* =============================================================
   Kayron Soluções — folha de estilo
   1. Tokens          5. Cartões de produto
   2. Base            6. Formulários e modal
   3. Cabeçalho       7. Rodapé
   4. Secções         8. Responsivo
   ============================================================= */

/* ---------------------------------------------------- 1. tokens */
:root{
  --green:#8db026;
  --green-dark:#617b18;
  --yellow:#ffbe00;
  --yellow-soft:#fff4c7;
  --ink:#111316;
  --ink-soft:#34393d;
  --muted:#667078;
  --paper:#f6f7f4;
  --white:#fff;
  --line:#e5e8e4;

  --shadow-sm:0 6px 20px rgba(17,19,22,.05);
  --shadow:0 18px 44px rgba(17,19,22,.09);

  --radius-sm:12px;
  --radius:18px;
  --radius-lg:24px;

  --gap:20px;
  --section-y:64px;
  --max:1180px;
}

/* ------------------------------------------------------ 2. base */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--paper);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
h1,h2,h3{text-wrap:balance}

.container{width:min(calc(100% - 36px),var(--max));margin-inline:auto}
.skip-link{position:absolute;left:-9999px;top:auto}
.skip-link:focus{left:16px;top:16px;z-index:9999;background:var(--white);padding:10px 14px;border-radius:10px}

a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:3px solid var(--green-dark);outline-offset:2px;border-radius:4px}

[hidden]{display:none!important}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
body.modal-open{overflow:hidden}

/* --------------------------------------------------- botões */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:46px;padding:0 20px;
  border:1px solid transparent;border-radius:var(--radius-sm);
  font-weight:800;font-size:.94rem;line-height:1;white-space:nowrap;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn-primary{background:var(--yellow);color:var(--ink);box-shadow:0 8px 20px rgba(255,190,0,.24)}
.btn-primary:hover{background:#ffca29}
.btn-dark{background:var(--ink);color:#fff}
.btn-dark:hover{background:#22262a}
.btn-outline{background:transparent;border-color:#cfd5d1;color:var(--ink)}
.btn-outline:hover{border-color:var(--ink);background:rgba(17,19,22,.04)}
.btn-small{min-height:38px;padding:0 14px;font-size:.85rem;border-radius:10px}
.btn-block{width:100%}

/* ------------------------------------------------ 3. cabeçalho */
.topbar{background:var(--ink);color:#fff;font-size:.82rem}
.topbar .container{min-height:38px;display:flex;justify-content:space-between;align-items:center;gap:16px}
.topbar strong{color:var(--yellow)}

.site-header{
  position:sticky;top:0;z-index:1000;
  background:rgba(246,247,244,.94);backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(229,232,228,.9);
}
.nav{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;min-width:160px}
.brand img{width:158px;height:auto}
.nav-links{display:flex;align-items:center;gap:22px}
.nav-links a{font-weight:700;font-size:.93rem;color:var(--ink-soft);position:relative}
.nav-links a::after{content:"";position:absolute;left:0;right:100%;bottom:-8px;height:2px;background:var(--yellow);transition:right .2s ease}
.nav-links a:hover::after,.nav-links a.active::after{right:0}
.nav-links .nav-cta{display:none}
.nav-actions{display:flex;align-items:center;gap:10px}
.lang-btn,.menu-btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:44px;min-height:44px;padding:0 12px;
  border:1px solid var(--line);background:var(--white);border-radius:var(--radius-sm);font-weight:800;
}
.lang-btn:hover,.menu-btn:hover{border-color:#c9cfca}
.menu-btn{display:none}

/* ---------------------------------------------------- 4. secções */
.hero{
  padding:64px 0 56px;
  background:
    radial-gradient(circle at 90% 18%,rgba(255,190,0,.18),transparent 30%),
    radial-gradient(circle at 0% 92%,rgba(141,176,38,.13),transparent 28%),
    var(--paper);
}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:center}
.section .hero-grid{align-items:start}
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:999px;
  background:var(--yellow-soft);font-size:.78rem;font-weight:900;letter-spacing:.04em;
}
.eyebrow::before{content:"";width:7px;height:7px;background:var(--green);border-radius:50%;flex:none}
.hero h1{font-size:clamp(2.4rem,4.6vw,4.5rem);line-height:1.02;letter-spacing:-.045em;margin:16px 0 16px;max-width:15ch}
.hero h1 .accent{color:var(--green-dark)}
.hero p{font-size:1.05rem;color:var(--muted);max-width:56ch;margin:0}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}

.hero-panel{background:var(--ink);border-radius:var(--radius-lg);padding:26px;color:#fff;box-shadow:var(--shadow);position:relative;overflow:hidden}
.hero-panel::before{content:"";position:absolute;width:220px;height:220px;border-radius:50%;right:-80px;top:-100px;background:var(--green);opacity:.22}
.hero-panel::after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;left:-100px;bottom:-100px;background:var(--yellow);opacity:.14}
.panel-label{position:relative;font-size:.8rem;letter-spacing:.04em;color:#c8cdd0;font-weight:800}
.hero-logo{position:relative;background:#fff;border-radius:var(--radius);padding:24px;margin:16px 0 20px}
.hero-logo img{width:min(280px,78%);margin-inline:auto}
.pillars{position:relative;display:grid;gap:8px;margin:0;padding:0;list-style:none}
.pillars li{
  display:flex;align-items:center;gap:10px;
  border:1px solid rgba(255,255,255,.12);border-radius:var(--radius-sm);
  padding:11px 14px;font-size:.9rem;font-weight:700;color:#e8ebec;
}
.pillars li::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--yellow);flex:none}

.section{padding:var(--section-y) 0}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:28px;margin-bottom:28px}
.section-kicker{color:var(--green-dark);font-weight:900;font-size:.8rem;letter-spacing:.04em}
.section h2{font-size:clamp(1.9rem,3.4vw,2.9rem);line-height:1.08;letter-spacing:-.035em;margin:6px 0 0}
.section-head p{max-width:52ch;color:var(--muted);margin:0}

.grid{display:grid;gap:var(--gap)}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
.grid-products{grid-template-columns:repeat(auto-fill,minmax(275px,1fr))}
.grid-contact{grid-template-columns:repeat(2,1fr)}
.grid .notice{grid-column:1/-1}

.card{
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  padding:22px;box-shadow:var(--shadow-sm);
  transition:box-shadow .2s ease,border-color .2s ease;
}
.card:hover{box-shadow:var(--shadow);border-color:#d8ddd8}
.icon{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--yellow-soft);font-size:1.25rem;font-weight:900;flex:none}
.card h3{margin:16px 0 6px;font-size:1.08rem;line-height:1.3}
.card p{margin:0;color:var(--muted);font-size:.93rem}

.category-card{display:flex;flex-direction:column;justify-content:space-between;gap:16px;overflow:hidden;position:relative}
.category-card .shape{position:absolute;width:130px;height:130px;border-radius:50%;right:-46px;bottom:-46px;background:var(--green);opacity:.09}
.category-card a{position:relative;font-weight:900;color:var(--green-dark)}
.category-card a:hover{text-decoration:underline}

.steps{counter-reset:step}
.step{position:relative;padding-top:70px}
.step::before{
  counter-increment:step;content:counter(step,decimal-leading-zero);
  position:absolute;left:22px;top:22px;width:42px;height:42px;border-radius:12px;
  background:var(--yellow);display:grid;place-items:center;font-weight:900;
}
.step h3{margin-top:0}

.band{background:var(--ink);color:#fff;padding:48px 0}
.band-grid{display:grid;grid-template-columns:1fr auto;gap:28px;align-items:center}
.band h2{margin:0;font-size:clamp(1.7rem,3.2vw,2.6rem);letter-spacing:-.035em;line-height:1.12}
.band p{color:#bdc2c5;margin:10px 0 0;max-width:60ch}

.page-hero{padding:52px 0;background:var(--ink);color:#fff}
.page-hero h1{font-size:clamp(2.1rem,4.4vw,3.6rem);line-height:1.05;margin:8px 0 10px}
.page-hero p{color:#bdc2c5;max-width:64ch;margin:0}
.page-hero .section-kicker{color:var(--yellow)}

.notice{border-left:4px solid var(--yellow);background:#fff9dd;padding:14px 16px;border-radius:0 var(--radius-sm) var(--radius-sm) 0;color:#4e4a36;font-size:.92rem}
.is-spaced{margin-top:22px}

/* ------------------------------------- 5. cartões de produto */
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:22px}
.filters{display:flex;flex-wrap:wrap;gap:8px}
.filter{
  min-height:40px;padding:0 15px;border:1px solid var(--line);background:#fff;
  border-radius:999px;font-weight:800;font-size:.88rem;color:var(--ink-soft);
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}
.filter:hover{border-color:#c3cabd}
.filter.active{background:var(--ink);color:#fff;border-color:var(--ink)}
.result-count{color:var(--muted);font-size:.88rem;font-weight:700}

.product-card{padding:0;overflow:hidden;display:flex;flex-direction:column}
.product-visual{
  position:relative;aspect-ratio:4/3;background:var(--white);
  display:grid;place-items:center;padding:18px;border-bottom:1px solid var(--line);
}
.product-visual img{width:100%;height:100%;object-fit:contain}
.product-tag{
  position:absolute;left:14px;top:14px;z-index:1;
  padding:5px 10px;background:var(--yellow);border-radius:999px;
  font-size:.7rem;font-weight:900;letter-spacing:.02em;
}
.product-body{padding:20px;display:flex;flex-direction:column;flex:1;gap:6px}
.product-body h3{margin:0;font-size:1.05rem;line-height:1.3}
.product-body p{margin:0;font-size:.9rem}
.product-options{display:grid;gap:10px;margin-top:12px}
.product-meta{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  margin-top:auto;padding-top:16px;border-top:1px solid var(--line);
}
.product-meta small{color:var(--muted);font-size:.8rem;font-weight:700;white-space:nowrap}

.option-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.option-label{font-size:.78rem;font-weight:800;color:var(--muted);min-width:62px;margin:0}
.option-select{
  flex:1;min-width:110px;min-height:38px;padding:0 11px;
  border:1px solid #d9deda;background:#fff;border-radius:10px;font-weight:700;font-size:.88rem;
}
.option-select:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(141,176,38,.13);outline:none}
.swatches{display:flex;gap:7px;flex-wrap:wrap}
.swatch{width:26px;height:26px;border-radius:50%;border:2px solid #d3d9d4;padding:0;transition:transform .15s ease,box-shadow .15s ease}
.swatch:hover{transform:scale(1.1)}
.swatch.is-active{border-color:var(--ink);box-shadow:0 0 0 3px rgba(17,19,22,.13)}
.option-value{flex-basis:100%;font-size:.8rem;color:var(--muted);font-weight:700}

/* --------------------------------- 6. formulários e modal */
.quote-box{background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);padding:28px;box-shadow:var(--shadow)}
.quote-box h2{margin:6px 0 14px;font-size:clamp(1.5rem,2.4vw,2rem);letter-spacing:-.03em;line-height:1.15}
.quote-box>.form-note{margin-bottom:20px}
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.field{display:grid;gap:6px}
.field.full{grid-column:1/-1}
.field label{font-size:.84rem;font-weight:800}
.field input,.field select,.field textarea{
  width:100%;border:1px solid #d9deda;background:#fff;border-radius:10px;padding:11px 13px;outline:none;
  transition:border-color .15s ease,box-shadow .15s ease;
}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(141,176,38,.13)}
.field textarea{min-height:120px;resize:vertical}
.form-note{font-size:.84rem;color:var(--muted);margin:6px 0 16px}
.form-actions{margin-top:16px;display:flex;justify-content:flex-end}

.modal{position:fixed;inset:0;display:none;place-items:center;padding:20px;background:rgba(0,0,0,.62);z-index:2000}
.modal.open{display:grid}
.modal-card{width:min(620px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:var(--radius-lg);padding:28px;position:relative}
.modal-close{position:absolute;right:16px;top:16px;border:1px solid var(--line);background:#fff;border-radius:10px;width:38px;height:38px;line-height:1}
.modal-card h2{margin:6px 0 0;font-size:1.6rem;letter-spacing:-.03em}

.toast{position:fixed;right:18px;bottom:18px;max-width:360px;background:var(--ink);color:#fff;padding:14px 17px;border-radius:var(--radius-sm);box-shadow:var(--shadow);transform:translateY(150%);transition:transform .25s ease;z-index:3000}
.toast.show{transform:translateY(0)}

/* ----------------------------------------------------- 7. rodapé */
.footer{background:#0c0e10;color:#dfe3e5;padding:52px 0 0}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.2fr;gap:36px 28px;align-items:start}
.footer h3{color:#fff;font-size:.86rem;font-weight:800;letter-spacing:.03em;margin:0 0 14px}

.footer-brand img{width:180px;background:#fff;border-radius:10px;padding:9px}
.footer-brand p{color:#9ba2a7;font-size:.9rem;margin:16px 0 0;max-width:38ch;line-height:1.6}

.footer-list{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.footer-list a{color:#aeb5b9;font-size:.9rem;transition:color .15s ease}
.footer-list a:hover{color:var(--yellow)}

.footer-contact{list-style:none;margin:0;padding:0;display:grid;gap:11px}
.footer-contact li{display:flex;gap:10px;align-items:flex-start;color:#aeb5b9;font-size:.9rem;line-height:1.5}
.footer-contact .ci{color:var(--yellow);flex:none;width:18px;text-align:center;font-size:.95rem}
.footer-contact a{color:#aeb5b9;transition:color .15s ease}
.footer-contact a:hover{color:var(--yellow)}

.footer-cta{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.footer-cta .btn-outline{border-color:rgba(255,255,255,.22);color:#fff}
.footer-cta .btn-outline:hover{border-color:var(--yellow);background:rgba(255,190,0,.1)}

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);margin-top:40px;padding:18px 0 22px;
  display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;
  font-size:.8rem;color:#899196;
}
.to-top{
  display:inline-flex;align-items:center;gap:7px;background:none;border:0;padding:0;
  color:#899196;font-size:.8rem;font-weight:700;transition:color .15s ease;
}
.to-top:hover{color:var(--yellow)}

/* ------------------------------------------------ 8. responsivo */
@media(max-width:980px){
  .nav-links{
    position:absolute;left:18px;right:18px;top:70px;
    background:#fff;border:1px solid var(--line);border-radius:var(--radius);
    padding:10px;display:none;flex-direction:column;align-items:stretch;gap:2px;
    box-shadow:var(--shadow);
  }
  .nav-links.open{display:flex}
  .nav-links a{padding:11px 12px;border-radius:10px}
  .nav-links a:hover{background:var(--paper)}
  .nav-links a::after{display:none}
  .nav-links a.active{background:var(--paper);color:var(--ink)}
  .nav-links .nav-cta{display:inline-flex;margin-top:8px}
  .menu-btn{display:inline-flex}
  .nav-actions>.btn{display:none}
  .hero-grid{grid-template-columns:1fr;gap:34px}
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr;gap:32px 24px}
}

@media(max-width:680px){
  :root{--section-y:44px;--gap:16px}
  .container{width:min(calc(100% - 24px),var(--max))}
  .topbar .container{justify-content:center}
  .topbar .hide-mobile{display:none}
  .nav{min-height:66px}
  .brand img{width:140px}
  .hero{padding:40px 0 36px}
  .hero h1{font-size:clamp(2.1rem,10vw,3rem)}
  .hero-actions .btn{flex:1 1 100%}
  .section-head{display:block}
  .section-head p{margin-top:10px}
  .grid-2,.grid-3,.grid-4,.grid-contact{grid-template-columns:1fr}
  .grid-products{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
  .band{padding:40px 0}
  .band-grid{grid-template-columns:1fr}
  .band .btn{width:100%}
  .page-hero{padding:40px 0}
  .form-grid{grid-template-columns:1fr}
  .field.full{grid-column:auto}
  .form-actions .btn{width:100%}
  .modal-card{padding:22px}
  .quote-box{padding:22px}
  .toolbar{display:block}
  .result-count{display:block;margin-top:10px}
  .option-label{min-width:100%}
  .option-select{flex:1 1 100%}
  .footer{padding-top:42px}
  .footer-grid{grid-template-columns:1fr;gap:30px}
  .footer-bottom{justify-content:flex-start}
  .footer-cta .btn{width:100%}
}

@media(max-width:400px){
  .grid-products{grid-template-columns:1fr}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
}

.card .service-email{margin-top:14px;font-size:.88rem}
.card .service-email a{color:var(--green-dark);font-weight:650;overflow-wrap:anywhere;border-bottom:1px solid rgba(72,98,34,.28)}
.card .service-email a:hover{border-bottom-color:currentColor}
