
:root{
  --sky:#39a9f5;--sky-dark:#178ad2;--sky-soft:#eaf7ff;--navy:#12344d;--navy-2:#0d2a3f;
  --text:#25384a;--muted:#6b7f91;--line:#dfe8ef;--bg:#f6f9fc;--white:#fff;
  --success:#067647;--danger:#b42318;--shadow:0 18px 50px rgba(18,52,77,.12);--radius:20px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text)}
body.menu-open{overflow:hidden}
img{max-width:100%;display:block}
a{color:inherit}
.container{width:min(1180px,92%);margin:0 auto}
.section{padding:84px 0}
.section.white{background:#fff}
.section-head{display:flex;justify-content:space-between;gap:24px;align-items:end;margin-bottom:30px}
.section-head h2{font-size:clamp(2rem,4vw,3rem);line-height:1.1;margin:0}
.section-head p{margin:8px 0 0;color:var(--muted);max-width:700px;line-height:1.7}
.eyebrow{display:inline-block;font-size:.77rem;font-weight:900;letter-spacing:.15em;text-transform:uppercase;color:var(--sky-dark)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;padding:13px 18px;font-weight:850;text-decoration:none;cursor:pointer;transition:.2s ease;font-size:.94rem}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--sky);color:#fff;box-shadow:0 10px 24px rgba(57,169,245,.24)}
.btn-primary:hover{background:var(--sky-dark)}
.btn-light{background:#fff;color:var(--navy);border:1px solid var(--line)}
.btn-danger{background:#fff1f0;color:var(--danger);border:1px solid #fecdca}
.btn:disabled{opacity:.55;cursor:not-allowed;transform:none}

/* Header */
.site-header{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border-bottom:1px solid rgba(223,232,239,.95);transition:.2s}
.site-header.scrolled{box-shadow:0 8px 24px rgba(18,52,77,.08)}
.nav{height:78px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{font-size:1.35rem;font-weight:950;letter-spacing:.02em;text-decoration:none;color:var(--navy)}
.brand span{color:var(--sky)}
.nav-menu{display:flex;align-items:center;gap:20px}
.nav-menu a{text-decoration:none;font-size:.93rem;font-weight:800}
.mobile-menu-btn{display:none;width:44px;height:44px;border:1px solid var(--line);background:#fff;border-radius:11px;position:relative;cursor:pointer}
.mobile-menu-btn span{position:absolute;left:11px;right:11px;height:2px;background:var(--navy);transition:.2s}
.mobile-menu-btn span:nth-child(1){top:13px}.mobile-menu-btn span:nth-child(2){top:20px}.mobile-menu-btn span:nth-child(3){top:27px}
.mobile-menu-btn.active span:nth-child(1){transform:rotate(45deg);top:20px}.mobile-menu-btn.active span:nth-child(2){opacity:0}.mobile-menu-btn.active span:nth-child(3){transform:rotate(-45deg);top:20px}

/* Hero */
.hero{min-height:640px;display:grid;place-items:center;color:#fff;background:
linear-gradient(90deg,rgba(8,35,55,.92) 0%,rgba(8,35,55,.76) 46%,rgba(8,35,55,.35) 100%),
url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1900&q=86") center/cover no-repeat}
.hero-inner{padding:86px 0}
.hero .eyebrow{color:#8bd7ff}
.hero h1{font-size:clamp(2.8rem,6.5vw,5.5rem);line-height:.98;max-width:900px;margin:14px 0 22px;letter-spacing:-.035em}
.hero p{font-size:1.16rem;line-height:1.72;max-width:760px;color:#e8f2f8}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}
.hero .btn-light{background:rgba(255,255,255,.96)}

/* Services */
.services-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.service-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:26px;box-shadow:0 8px 28px rgba(18,52,77,.05)}
.service-icon{width:52px;height:52px;border-radius:14px;background:var(--sky-soft);display:grid;place-items:center;font-size:1.45rem}
.service-card h3{margin:17px 0 10px;font-size:1.16rem}
.service-card p{margin:0;color:var(--muted);line-height:1.63}

/* Product Catalog */
.catalog-wrap{position:relative}
.filters{display:flex;gap:9px;flex-wrap:wrap;margin:8px 0 28px}
.filter-btn{padding:10px 16px;border-radius:999px;background:#fff;border:1px solid var(--line);font-weight:850;color:var(--navy);cursor:pointer}
.filter-btn.active{background:var(--sky);border-color:var(--sky);color:#fff}
.products-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.product-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:0 10px 30px rgba(18,52,77,.06);transition:.22s}
.product-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.product-image{aspect-ratio:4/3;background:#edf3f7;position:relative;overflow:hidden}
.product-image img{width:100%;height:100%;object-fit:cover;transition:.3s}
.product-card:hover .product-image img{transform:scale(1.025)}
.product-badge{position:absolute;left:14px;top:14px;background:rgba(255,255,255,.96);border-radius:999px;padding:7px 10px;font-size:.73rem;font-weight:950;z-index:2;color:var(--navy);box-shadow:0 4px 14px rgba(18,52,77,.1)}
.product-content{padding:21px}
.product-category{font-size:.77rem;font-weight:950;text-transform:uppercase;letter-spacing:.1em;color:var(--sky-dark)}
.product-content h3{font-size:1.25rem;margin:8px 0}
.product-desc{color:var(--muted);line-height:1.58;min-height:50px}
.specs{list-style:none;padding:0;margin:17px 0 0;display:grid;gap:8px}
.specs li{display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid #eef3f6;padding-bottom:8px;font-size:.91rem}
.specs span{color:var(--muted)}.specs strong{text-align:right}
.product-footer{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-top:20px}
.price small{display:block;color:var(--muted);font-size:.74rem;margin-bottom:3px}.price strong{font-size:1.17rem;color:var(--navy)}
.empty-catalog{grid-column:1/-1;padding:34px;background:#fff;border:1px dashed var(--line);border-radius:var(--radius);text-align:center;color:var(--muted)}

/* About */
.about-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:46px;align-items:center}
.about-grid h2{font-size:clamp(2rem,4vw,3rem);margin:10px 0 15px}
.about-grid p{color:var(--muted);line-height:1.75}
.adv-card{background:linear-gradient(180deg,#f7fcff,#eef8fd);border:1px solid #d8edf8;border-radius:var(--radius);padding:30px}
.advantages{display:grid;gap:16px}
.adv{display:flex;gap:12px;align-items:flex-start}
.adv-mark{width:28px;height:28px;flex:0 0 28px;border-radius:50%;display:grid;place-items:center;background:#dff3ff;color:var(--sky-dark);font-weight:950}
.adv strong{display:block;margin-bottom:3px}.adv span{color:var(--muted);font-size:.93rem}

/* Contact */
.contact-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:28px}
.contact-card,.form-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px}
.contact-card h3,.form-card h3{margin-top:0;font-size:1.35rem}
.contact-card p{color:var(--muted);line-height:1.75}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.field{display:flex;flex-direction:column;gap:6px}.field.full{grid-column:1/-1}
.field label{font-size:.86rem;font-weight:850}
.field input,.field textarea,.field select{width:100%;border:1px solid var(--line);border-radius:10px;padding:12px 13px;font:inherit;color:var(--text);background:#fff}
.field textarea{min-height:126px;resize:vertical}
.notice{padding:12px 14px;border-radius:10px;margin-top:12px;font-size:.91rem}
.notice.success{background:#ecfdf3;border:1px solid #abefc6;color:var(--success)}
.notice.error{background:#fff1f0;border:1px solid #fecdca;color:var(--danger)}
.notice.info{background:#eef8fd;border:1px solid #cbe9f8;color:#24546c}

/* Footer */
footer{background:var(--navy-2);color:#dbe8ef;padding:38px 0}
.footer-grid{display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:26px}
footer h4{margin:0 0 12px;color:#fff}footer p,footer a{color:#c4d3dc;font-size:.92rem;line-height:1.7;text-decoration:none}
.footer-bottom{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;border-top:1px solid rgba(255,255,255,.12);margin-top:28px;padding-top:20px;color:#9fb4c0;font-size:.88rem}

/* Admin */
.admin-page{min-height:100vh}.admin-top{background:#fff;border-bottom:1px solid var(--line)}
.admin-bar{height:74px;display:flex;align-items:center;justify-content:space-between;gap:15px}
.login-shell{min-height:calc(100vh - 74px);display:grid;place-items:center;padding:30px}
.login-card{width:min(440px,100%);background:#fff;border:1px solid var(--line);border-radius:22px;padding:30px;box-shadow:var(--shadow)}
.admin-main{padding:34px 0 70px}.admin-grid{display:grid;grid-template-columns:420px 1fr;gap:22px;align-items:start}
.panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px}
.stack{display:grid;gap:12px}.feature-editor{display:grid;gap:8px}
.feature-row{display:grid;grid-template-columns:1fr 1fr auto;gap:8px}
.preview{aspect-ratio:4/3;border:1px dashed var(--line);border-radius:13px;overflow:hidden;background:#f2f6f8;display:grid;place-items:center;color:var(--muted)}
.preview img{width:100%;height:100%;object-fit:cover}
.admin-products{display:grid;gap:12px}.admin-product{display:grid;grid-template-columns:110px 1fr auto;gap:14px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:12px}
.admin-product img{width:110px;height:84px;object-fit:cover;border-radius:10px;background:#edf3f6}
.small{font-size:.85rem;color:var(--muted)}.hidden{display:none!important}

/* Responsive */
@media(max-width:1050px){.services-grid{grid-template-columns:repeat(2,1fr)}.products-grid{grid-template-columns:repeat(2,1fr)}.admin-grid{grid-template-columns:1fr}}
@media(max-width:900px){
  .mobile-menu-btn{display:block}
  .nav-menu{position:fixed;inset:78px 0 auto 0;background:#fff;border-top:1px solid var(--line);box-shadow:0 14px 30px rgba(18,52,77,.12);display:none;flex-direction:column;align-items:stretch;padding:18px 4%;gap:5px}
  .nav-menu.active{display:flex}.nav-menu a{padding:12px 8px}.nav-menu .btn{margin-top:5px}
  .about-grid,.contact-grid{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .section{padding:62px 0}.hero{min-height:550px}.hero-inner{padding:70px 0}.hero h1{font-size:2.75rem}
  .section-head{align-items:flex-start;flex-direction:column}.services-grid,.products-grid,.form-grid,.footer-grid{grid-template-columns:1fr}
  .field.full{grid-column:auto}.product-footer{align-items:stretch;flex-direction:column}.product-footer .btn{width:100%}
  .feature-row{grid-template-columns:1fr}.admin-product{grid-template-columns:1fr}.admin-product img{width:100%;height:190px}
}

/* Identidade JRG */
.brand-logo{display:flex;align-items:center;flex:0 0 auto}
.brand-logo img{height:60px;width:auto;max-width:210px;object-fit:contain}
.footer-logo img{height:86px;max-width:260px;background:#fff;border-radius:14px;padding:4px}
@media(max-width:900px){
  .brand-logo img{height:54px;max-width:180px}
}
@media(max-width:520px){
  .brand-logo img{height:48px;max-width:155px}
  .nav{height:70px}
  .nav-menu{inset:70px 0 auto 0}
}


/* ===== Animações e microinterações ===== */
@keyframes heroFadeUp{
  from{opacity:0;transform:translateY(24px)}
  to{opacity:1;transform:translateY(0)}
}
@keyframes floatOrb{
  0%,100%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(0,-18px,0) scale(1.04)}
}
@keyframes pulseGlow{
  0%,100%{box-shadow:0 10px 24px rgba(57,169,245,.24)}
  50%{box-shadow:0 14px 34px rgba(57,169,245,.42)}
}
@keyframes shimmerLine{
  from{transform:translateX(-120%)}
  to{transform:translateX(120%)}
}

.hero{position:relative;overflow:hidden}
.hero:after{
  content:"";position:absolute;inset:auto 0 0 0;height:90px;
  background:linear-gradient(to top,rgba(246,249,252,.9),transparent);
  pointer-events:none;
}
.hero-inner{position:relative;z-index:2}
.hero-reveal.in-view .eyebrow{animation:heroFadeUp .55s ease both}
.hero-reveal.in-view h1{animation:heroFadeUp .7s .08s ease both}
.hero-reveal.in-view p{animation:heroFadeUp .7s .16s ease both}
.hero-reveal.in-view .hero-actions{animation:heroFadeUp .7s .24s ease both}

.hero-orb{
  position:absolute;border-radius:999px;filter:blur(2px);pointer-events:none;z-index:1;
  background:radial-gradient(circle at 35% 35%,rgba(126,216,255,.32),rgba(57,169,245,.06) 70%);
  animation:floatOrb 7s ease-in-out infinite;
}
.hero-orb-1{width:280px;height:280px;right:7%;top:12%}
.hero-orb-2{width:150px;height:150px;right:28%;bottom:10%;animation-delay:-2.5s}

.reveal,.service-card,.stat-card,.reveal-card{
  opacity:0;transform:translateY(24px);
  transition:opacity .65s ease,transform .65s cubic-bezier(.2,.7,.2,1);
}
.reveal.in-view,.service-card.in-view,.stat-card.in-view,.reveal-card.in-view{
  opacity:1;transform:translateY(0);
}
.reveal-stagger > *:nth-child(2){transition-delay:.08s}
.reveal-stagger > *:nth-child(3){transition-delay:.16s}
.reveal-stagger > *:nth-child(4){transition-delay:.24s}
.reveal-stagger > *:nth-child(5){transition-delay:.32s}
.reveal-stagger > *:nth-child(6){transition-delay:.40s}

.service-card,.product-card,.adv-card,.contact-card,.form-card{
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}
.service-card:hover,.adv-card:hover,.contact-card:hover,.form-card:hover{
  transform:translateY(-5px);box-shadow:var(--shadow);border-color:#cfe7f5;
}
.service-icon{transition:transform .25s ease,background .25s ease}
.service-card:hover .service-icon{transform:rotate(-4deg) scale(1.08);background:#d9f1ff}

.btn-primary{position:relative;overflow:hidden}
.btn-primary:before{
  content:"";position:absolute;top:0;bottom:0;width:45%;left:-60%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent);
  transform:skewX(-20deg);
}
.btn-primary:hover:before{animation:shimmerLine .75s ease}
.hero .btn-primary{animation:pulseGlow 3.5s ease-in-out infinite}

.product-image:after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,transparent 62%,rgba(8,35,55,.13));
  pointer-events:none;
}
.product-card:hover .product-badge{transform:translateY(-2px)}
.product-badge{transition:transform .2s ease}

.stats-strip{padding:0 0 20px;background:#fff}
.stats-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:16px;
  transform:translateY(-28px);position:relative;z-index:4;
}
.stat-card{
  background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;text-align:center;
  box-shadow:0 14px 34px rgba(18,52,77,.08);
}
.stat-card strong{display:block;font-size:2.15rem;color:var(--sky-dark);letter-spacing:-.04em}
.stat-card span{display:block;margin-top:4px;color:var(--muted);font-weight:750;font-size:.91rem}

.nav-menu a:not(.btn){position:relative}
.nav-menu a:not(.btn):after{
  content:"";position:absolute;left:8px;right:8px;bottom:6px;height:2px;background:var(--sky);
  transform:scaleX(0);transform-origin:center;transition:transform .2s ease;
}
.nav-menu a:not(.btn):hover:after{transform:scaleX(1)}

@media(max-width:900px){
  .stats-grid{grid-template-columns:1fr 1fr}
  .nav-menu.active{animation:heroFadeUp .22s ease both}
}
@media(max-width:640px){
  .stats-grid{grid-template-columns:1fr;transform:translateY(-16px)}
  .hero-orb-1{width:190px;height:190px;right:-45px}
  .hero-orb-2{width:110px;height:110px;right:15%;bottom:8%}
}

@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}
  .reveal,.service-card,.stat-card,.reveal-card{opacity:1!important;transform:none!important}
}


/* Administração + redes sociais */
.admin-access{
  display:inline-flex!important;align-items:center;gap:6px;
}
.admin-lock{font-size:.86rem;transition:transform .2s ease}
.admin-access:hover .admin-lock{transform:translateY(-1px) rotate(-5deg)}

.social-area{
  display:flex;align-items:center;justify-content:center;gap:14px;
  padding:22px 0 8px;
}
.social-label{font-weight:700;color:rgba(255,255,255,.8)}
.social-links{display:flex;gap:10px}
.social-icon{
  width:42px;height:42px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);
  transition:transform .22s ease,background .22s ease,box-shadow .22s ease;
}
.social-icon svg{width:21px;height:21px;fill:#fff}
.social-icon:hover{
  transform:translateY(-4px) scale(1.05);
  background:var(--sky);box-shadow:0 10px 22px rgba(57,169,245,.25);
}
@media(max-width:900px){
  .admin-access{justify-content:center}
  .social-area{justify-content:flex-start}
}


/* ===== Hero slideshow ===== */
.hero-slider{
  position:relative;
  min-height:660px;
  overflow:hidden;
  background:#0a2538;
}
.hero-slides,.hero-slide,.hero-overlay{
  position:absolute;
  inset:0;
}
.hero-slide{
  background-position:center;
  background-size:cover;
  opacity:0;
  transform:scale(1.05);
  transition:opacity 1.1s ease,transform 6s ease;
}
.hero-slide.active{
  opacity:1;
  transform:scale(1);
}
.hero-overlay{
  z-index:1;
  background:
    linear-gradient(90deg,rgba(7,31,49,.94) 0%,rgba(7,31,49,.78) 46%,rgba(7,31,49,.38) 100%),
    linear-gradient(0deg,rgba(7,31,49,.2),transparent 45%);
}
.hero-slider .hero-inner{
  position:relative;
  z-index:3;
}
.hero-slider-controls{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:34px;
}
.hero-dot{
  width:34px;
  height:5px;
  padding:0;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.32);
  cursor:pointer;
  transition:width .25s ease,background .25s ease;
}
.hero-dot.active{
  width:56px;
  background:#fff;
}
.hero-dot:hover{background:rgba(255,255,255,.75)}

/* ===== Acesso profissional à administração ===== */
.admin-access-pro{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border:1px solid #d9e5ed;
  border-radius:12px;
  background:#f8fbfd;
  text-decoration:none;
  color:var(--navy);
  transition:background .2s ease,border-color .2s ease,transform .2s ease,box-shadow .2s ease;
}
.admin-access-pro:hover{
  background:#fff;
  border-color:#bcddec;
  box-shadow:0 8px 20px rgba(18,52,77,.09);
  transform:translateY(-1px);
}
.admin-icon-pro{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:var(--sky-soft);
}
.admin-icon-pro svg{
  width:17px;
  height:17px;
  fill:var(--sky-dark);
}
.admin-text-wrap{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}
.admin-text-wrap small{
  font-size:.63rem;
  color:var(--muted);
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.admin-text-wrap strong{
  font-size:.82rem;
  margin-top:3px;
}

/* ===== Login administrativo premium ===== */
.admin-page{
  min-height:100vh;
  background:
    radial-gradient(circle at 10% 15%,rgba(57,169,245,.14),transparent 34%),
    radial-gradient(circle at 90% 85%,rgba(23,138,210,.12),transparent 30%),
    linear-gradient(135deg,#eef7fc 0%,#f9fbfd 50%,#eef4f8 100%);
}
.admin-top{
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(12px);
}
.login-shell{
  position:relative;
  padding:48px 24px 70px;
}
.login-shell:before{
  content:"";
  position:absolute;
  inset:40px auto auto 6%;
  width:270px;
  height:270px;
  border-radius:50%;
  border:1px solid rgba(57,169,245,.16);
  box-shadow:
    0 0 0 42px rgba(57,169,245,.04),
    0 0 0 84px rgba(57,169,245,.025);
  pointer-events:none;
}
.login-card{
  position:relative;
  width:min(470px,100%);
  padding:34px;
  border-radius:24px;
  border:1px solid rgba(205,222,233,.9);
  background:rgba(255,255,255,.94);
  box-shadow:0 24px 70px rgba(18,52,77,.16);
  overflow:hidden;
}
.login-card:before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;
  height:5px;
  background:linear-gradient(90deg,var(--sky),#83d4ff,var(--sky-dark));
}
.login-brand{
  display:flex;
  justify-content:center;
  margin-bottom:20px;
}
.login-brand img{
  height:94px;
  width:auto;
  max-width:250px;
  object-fit:contain;
}
.login-title{
  text-align:center;
  margin:4px 0 8px;
  font-size:2rem;
  letter-spacing:-.025em;
}
.login-subtitle{
  text-align:center;
  max-width:340px;
  margin:0 auto 22px;
  color:var(--muted);
  line-height:1.55;
}
.login-card .field{
  margin-top:12px;
}
.login-card .field input{
  min-height:48px;
  background:#fbfdfe;
}
.login-card .field input:focus{
  outline:none;
  border-color:var(--sky);
  box-shadow:0 0 0 4px rgba(57,169,245,.11);
}
.login-card #loginBtn{
  min-height:49px;
  font-size:1rem;
  margin-top:18px!important;
}
.login-security{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:7px;
  margin-top:17px;
  color:var(--muted);
  font-size:.78rem;
}
.login-security svg{
  width:14px;height:14px;fill:var(--sky-dark);
}

@media(max-width:900px){
  .admin-access-pro{
    width:100%;
    justify-content:flex-start;
    margin-top:6px;
  }
}
@media(max-width:640px){
  .hero-slider{min-height:570px}
  .hero-dot{width:26px}
  .hero-dot.active{width:42px}
  .login-card{padding:28px 22px}
  .login-brand img{height:82px}
}
@media(prefers-reduced-motion:reduce){
  .hero-slide{transition:none!important;transform:none!important}
}


/* Correções de estabilidade do slideshow */
.hero-slider .hero-slides{
  z-index:0;
  pointer-events:none;
}
.hero-slider .hero-slide{
  will-change:opacity,transform;
}
.hero-slider .hero-overlay{
  pointer-events:none;
}
.hero-slider .hero-orb{
  z-index:2;
}
.hero-slider .hero-inner{
  min-height:660px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
@media(max-width:640px){
  .hero-slider .hero-inner{min-height:570px}
}

.local-seo-section{background:#f7fafc}.local-seo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:28px}.local-seo-card{background:#fff;border:1px solid #e2ebf0;border-radius:18px;padding:24px;box-shadow:0 12px 30px rgba(18,52,77,.06)}.local-seo-card h3{margin:0 0 9px;color:var(--navy)}.local-seo-card p{margin:0;color:var(--muted);line-height:1.65}@media(max-width:950px){.local-seo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.local-seo-grid{grid-template-columns:1fr}}

.cleaning-section{background:linear-gradient(135deg,#f4f9fc 0%,#fff 60%,#eef8fd 100%)}
.cleaning-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:54px;align-items:center}
.cleaning-copy p{color:var(--muted);line-height:1.75;margin:0 0 13px}.cleaning-copy .btn{margin-top:10px}
.cleaning-features{display:grid;gap:14px}.cleaning-feature{padding:21px 22px;border-radius:18px;background:#fff;border:1px solid #dfeaf0;box-shadow:0 12px 32px rgba(18,52,77,.07);transition:.22s ease}.cleaning-feature:hover{transform:translateY(-3px)}.cleaning-feature strong{display:block;color:var(--navy);margin-bottom:7px}.cleaning-feature span{display:block;color:var(--muted);line-height:1.55}
.division-banner{margin-bottom:28px;padding:20px 24px;border-radius:18px;border:1px solid #dbe9f1;background:linear-gradient(110deg,#fff,#f1f9fd);box-shadow:0 12px 32px rgba(18,52,77,.06)}.division-kicker{display:block;margin-bottom:5px;color:var(--sky-dark);text-transform:uppercase;letter-spacing:.11em;font-size:.68rem;font-weight:800}.division-banner strong{display:block;color:var(--navy);font-size:1.35rem;margin-bottom:4px}.division-banner p{margin:0;color:var(--muted)}
@media(max-width:850px){.cleaning-grid{grid-template-columns:1fr;gap:28px}}


/* Contactos, rodapé Flowbits e informação legal */
.contact-direct{margin-bottom:24px}
.contact-direct-card{padding:22px 24px;border:1px solid #dce8ef;border-radius:18px;background:#fff}
.contact-direct-card h3{margin:5px 0 12px;color:var(--navy)}
.contact-direct-card p{margin:5px 0}.contact-direct-card a{color:inherit;font-weight:700}

.footer-legal-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:24px;padding-top:18px;border-top:1px solid rgba(255,255,255,.16)}
.footer-legal-links{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.footer-legal-links a,.footer-cookie-settings,.flowbits-credit{font-size:.84rem}
.footer-legal-links a{color:inherit;text-decoration:none}
.footer-cookie-settings{border:0;background:transparent;color:inherit;padding:0;cursor:pointer;font:inherit}
.flowbits-credit{margin-left:auto;text-align:right;white-space:nowrap}

.cookie-consent[hidden]{display:none!important}
.cookie-consent{position:fixed;left:18px;right:18px;bottom:18px;z-index:9999}
.cookie-consent-inner{max-width:1120px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 22px;border-radius:18px;background:#fff;color:#18364a;border:1px solid #dce8ef;box-shadow:0 20px 60px rgba(9,34,52,.22)}
.cookie-copy{max-width:760px}.cookie-copy strong{display:block;font-size:1.05rem;margin-bottom:5px}.cookie-copy p{margin:0;line-height:1.55;font-size:.9rem}.cookie-copy a{color:#126e9c}
.cookie-actions{display:flex;gap:10px;flex-shrink:0}.cookie-btn{border-radius:999px;padding:11px 16px;font-weight:750;cursor:pointer}.cookie-primary{border:1px solid #147fae;background:#147fae;color:#fff}.cookie-secondary{border:1px solid #c8d9e2;background:#fff;color:#18364a}

.legal-page{background:#f6f9fb;color:#18364a}
.legal-header{background:#fff;border-bottom:1px solid #e2ebf0}.legal-header-inner{min-height:86px;display:flex;align-items:center;justify-content:space-between;gap:20px}.legal-brand img{max-height:58px;width:auto}
.legal-main{padding:58px 0 70px}.legal-content{max-width:900px}.legal-content h1{font-size:clamp(2rem,5vw,3.2rem);margin:8px 0 8px}.legal-content h2{margin:32px 0 10px;font-size:1.3rem}.legal-content p{line-height:1.75;color:#506a79}.legal-content a{color:#126e9c}.legal-updated{font-size:.9rem}.legal-content code{background:#eaf1f5;padding:2px 6px;border-radius:5px}
.legal-footer{background:#102d40;color:#dce8ef;padding:28px 0}

@media(max-width:720px){
 .footer-legal-row{align-items:flex-start;flex-direction:column}
 .flowbits-credit{margin-left:0;text-align:left;white-space:normal}
 .cookie-consent-inner{align-items:stretch;flex-direction:column}
 .cookie-actions{width:100%;flex-direction:column}.cookie-btn{width:100%}
}

/* ajustes finais */
.nav-link,.nav a{position:relative;text-decoration:none!important}.nav-link::before,.nav a::before{display:none!important}.nav-link::after,.nav a::after{content:"";position:absolute;left:0;top:auto!important;bottom:-7px!important;width:0;height:2px;transform:none!important;background:currentColor;transition:width .2s ease}.nav-link:hover::after,.nav-link.active::after,.nav a:hover::after,.nav a.active::after{width:100%}
.contact-direct{display:none!important}.contact-details-inline{display:flex;gap:34px;margin:16px 0 24px;padding:18px 0;border-top:1px solid #dce8ef;border-bottom:1px solid #dce8ef}.contact-details-inline p{margin:0}.contact-details-inline a{color:inherit;text-decoration:none;font-weight:700}
.footer-legal-row{display:none!important}.footer-final-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:24px;padding-top:18px;border-top:1px solid rgba(255,255,255,.16);font-size:.76rem}.footer-copyright,.footer-final-row .flowbits-credit{white-space:nowrap}.footer-final-links{display:flex;align-items:center;justify-content:center;gap:13px;flex:1;white-space:nowrap}.footer-final-links a,.footer-final-links button{color:inherit;text-decoration:none;font:inherit;padding:0;border:0;background:transparent;cursor:pointer}.footer-final-links a:hover,.footer-final-links button:hover{text-decoration:underline}.footer-final-row .flowbits-credit{margin-left:0;text-align:right}
@media(max-width:1200px){.footer-final-row{flex-wrap:wrap}.footer-final-links{order:3;flex-basis:100%;justify-content:flex-start;flex-wrap:wrap;white-space:normal}}@media(max-width:720px){.contact-details-inline{flex-direction:column;gap:12px}.footer-final-row{align-items:flex-start;flex-direction:column}.footer-copyright,.footer-final-row .flowbits-credit{white-space:normal}.footer-final-links{order:initial;justify-content:flex-start}}


/* FormSubmit / formulário de contacto */
.form-honeypot{
  position:absolute!important;
  left:-10000px!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
}
#contactForm button[type="submit"]:disabled{opacity:.65;cursor:wait}
.form-msg{margin-top:12px;font-size:.9rem;line-height:1.45}
.form-msg.is-sending{font-weight:600}
.form-msg.is-success{font-weight:700}
.form-msg.is-error{font-weight:700}

/* menu underline centered */
.nav-link::after,.nav a::after{left:50%!important;right:auto!important;transform:translateX(-50%)!important;transform-origin:center!important}.nav-link:hover::after,.nav-link.active::after,.nav a:hover::after,.nav a.active::after{width:100%!important}.contact-details-inline{display:none!important}


/* ===== Layout definitivo: Contactos / Footer / Cookies ===== */
#contactos .contact-layout{display:grid!important;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr)!important;gap:28px!important;align-items:stretch!important}
#contactos .contact-card,#contactos .form-card{margin:0!important;width:auto!important;min-width:0!important;height:100%!important;box-sizing:border-box!important}
#contactos .contact-info-card{display:flex!important;flex-direction:column!important}
#contactos .contact-info-list{display:grid!important;grid-template-columns:1fr!important;margin-top:8px!important}
#contactos .contact-info-item{display:flex!important;flex-direction:column!important;gap:4px!important;padding:14px 0!important;border-bottom:1px solid var(--line)!important}
#contactos .contact-info-item:last-child{border-bottom:0!important}
#contactos .contact-info-item span{font-size:.78rem!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.06em!important;color:var(--muted)!important}
#contactos .contact-info-item a,#contactos .contact-info-item strong{color:var(--navy)!important;text-decoration:none!important;font-size:1rem!important;overflow-wrap:anywhere!important}
#contactos .contact-note{margin-top:auto!important;padding-top:18px!important;color:var(--muted)!important}
#contactos textarea{min-height:150px!important}
#contactos .contact-details-inline{display:none!important}

.site-footer{background:#102f43!important;color:#dce8ef!important;padding:48px 0 0!important;overflow:visible!important}
.site-footer .footer-container{position:relative!important;max-width:1200px!important;margin:0 auto!important;padding-left:24px!important;padding-right:24px!important}
.site-footer .footer-main{display:grid!important;grid-template-columns:1.25fr .8fr .85fr .95fr!important;gap:42px!important;align-items:start!important}
.site-footer .footer-brand-col p{max-width:330px!important;margin:14px 0 0!important;color:#b7cbd6!important;line-height:1.65!important}
.site-footer .footer-logo img{width:auto!important;max-height:66px!important}
.site-footer .footer-col{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:8px!important}
.site-footer .footer-col h4{margin:0 0 7px!important;color:#fff!important}
.site-footer .footer-col a,.site-footer .footer-col span,.site-footer .footer-cookie-button{color:#c7d8e1!important;text-decoration:none!important;font:inherit!important;font-size:.9rem!important;line-height:1.45!important}
.site-footer .footer-col a:hover{color:#fff!important;text-decoration:underline!important}
.site-footer .footer-cookie-button{border:0!important;background:transparent!important;padding:0!important;cursor:pointer!important}
.site-footer .footer-cookie-button:hover{color:#fff!important;text-decoration:underline!important}

.site-footer .footer-bottom-clean{display:grid!important;grid-template-columns:auto 1fr auto!important;align-items:center!important;gap:24px!important;width:100%!important;margin-top:36px!important;padding:20px 0 22px!important;border-top:1px solid rgba(255,255,255,.15)!important;color:#a9bfcb!important;font-size:.78rem!important;box-sizing:border-box!important}
.site-footer .footer-bottom-links{display:flex!important;align-items:center!important;justify-content:center!important;gap:16px!important;flex-wrap:wrap!important}
.site-footer .footer-bottom-links a,.site-footer .footer-bottom-links button{color:#c7d8e1!important;text-decoration:none!important;border:0!important;background:transparent!important;padding:0!important;font:inherit!important;cursor:pointer!important}
.site-footer .footer-bottom-links a:hover,.site-footer .footer-bottom-links button:hover{color:#fff!important;text-decoration:underline!important}
.site-footer .flowbits-credit-clean{text-align:right!important;white-space:nowrap!important;padding-right:30px!important}
.site-footer .flowbits-credit-clean a{color:#fff!important;font-weight:800!important;text-decoration:none!important;position:relative!important;z-index:3!important}
.site-footer .flowbits-credit-clean a:hover{text-decoration:underline!important}
.site-footer .footer-grid,.site-footer .footer-bottom,.site-footer .footer-final-row,.site-footer .footer-legal-row{display:none!important}

.cookie-consent{left:24px!important;right:24px!important;bottom:24px!important;z-index:2147483000!important}
.cookie-consent-inner{max-width:1160px!important;box-sizing:border-box!important}
.cookie-consent a{position:relative!important;z-index:2!important}

.nav-link::after,.nav a::after{left:50%!important;right:auto!important;bottom:-7px!important;transform:translateX(-50%)!important;transform-origin:center!important}

@media(max-width:980px){
  #contactos .contact-layout{grid-template-columns:1fr!important}
  .site-footer .footer-main{grid-template-columns:1.15fr 1fr!important}
  .site-footer .footer-bottom-clean{grid-template-columns:1fr!important;justify-items:start!important;gap:12px!important}
  .site-footer .footer-bottom-links{justify-content:flex-start!important}
  .site-footer .flowbits-credit-clean{text-align:left!important;white-space:normal!important;padding-right:0!important}
}
@media(max-width:620px){
  .site-footer .footer-main{grid-template-columns:1fr!important;gap:28px!important}
  .site-footer .footer-container{padding-left:20px!important;padding-right:20px!important}
  .cookie-consent{left:12px!important;right:12px!important;bottom:12px!important}
}

.legal-footer-clean{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:24px!important;flex-wrap:wrap!important}
.legal-footer-links{display:flex!important;gap:16px!important;flex-wrap:wrap!important}
.legal-footer-clean a{color:#fff!important;text-decoration:none!important}
.legal-footer-clean a:hover{text-decoration:underline!important}

/* Morada / Google Maps */
#contactos .contact-address a{display:inline-block!important;line-height:1.55!important}
#contactos .contact-address a:hover{text-decoration:underline!important}
.site-footer .footer-address{display:inline-block!important;line-height:1.5!important;margin-top:2px!important}


/* Botão flutuante — voltar ao topo */
.back-to-top{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:2147482500;
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:50%;
  background:#147fae;
  color:#fff;
  box-shadow:0 10px 28px rgba(9,34,52,.24);
  cursor:pointer;
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:opacity .2s ease,transform .2s ease,visibility .2s ease;
}
.back-to-top.is-visible{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.back-to-top:hover{transform:translateY(-2px)}
.back-to-top:focus-visible{outline:3px solid rgba(20,127,174,.35);outline-offset:3px}
.back-to-top svg{width:24px;height:24px;fill:currentColor}
@media(max-width:620px){
  .back-to-top{
    right:14px;
    bottom:14px;
    width:46px;
    height:46px;
  }
}


/* Administração — alteração de password */
.admin-security-panel{
  margin-top:28px;
}
.admin-security-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  margin-bottom:22px;
}
.admin-security-head h3{
  margin:4px 0 5px;
}
.admin-security-head p{
  margin:0;
}
.admin-account-badge{
  min-width:210px;
  padding:12px 16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#f7fafc;
  text-align:right;
}
.admin-account-badge span{
  display:block;
  color:var(--navy);
  font-weight:800;
}
.admin-account-badge small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  overflow-wrap:anywhere;
}
.password-form{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  align-items:end;
}
.password-actions{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}
.password-actions #passwordMsg{
  flex:1;
  min-width:240px;
}
.password-actions .notice{
  margin:0;
}
@media(max-width:850px){
  .admin-security-head{
    flex-direction:column;
  }
  .admin-account-badge{
    width:100%;
    text-align:left;
  }
  .password-form{
    grid-template-columns:1fr;
  }
}

.alvara-badge{display:inline-flex;align-items:center;gap:10px;margin-bottom:20px;padding:10px 14px;border:1px solid #d7e6ee;border-radius:999px;background:#fff;box-shadow:0 8px 22px rgba(18,52,77,.06)}
.alvara-badge span{color:var(--muted);font-size:.75rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.alvara-badge strong{color:var(--navy);font-size:.92rem}
.site-footer .footer-legal-license{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-start;margin-bottom:-12px;padding-bottom:14px;border-bottom:1px solid rgba(255,255,255,.10);color:#fff;font-size:.88rem;letter-spacing:.03em}


/* Produtos: Família > Produto > Subfamílias */
.product-hierarchy-label{
  margin-bottom:4px;
  color:var(--muted);
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.product-hierarchy-label.product-label{margin-top:14px}
.product-subfamilies{margin-top:16px}
.subfamily-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:7px;
}
.subfamily-tag{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:6px 10px;
  border:1px solid #dbe8ef;
  border-radius:999px;
  background:#f5fafc;
  color:var(--navy);
  font-size:.78rem;
  font-weight:700;
}

/* Admin: editor de subfamílias sem alterar a estrutura da tabela Supabase */
.admin-subfamily-help{margin:4px 0 10px}
.subfamily-editor{display:grid;gap:9px}
.subfamily-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:8px!important;
  align-items:center!important;
}
.subfamily-row .feature-name{width:100%!important}
.admin-product-info{min-width:0}
.admin-product-name{
  display:block;
  margin:5px 0;
  font-size:1rem;
}


/* =========================================================
   CORREÇÃO FINAL — SOBRE NÓS E CONTACTOS
   ========================================================= */
#sobre .about-layout{
  display:grid!important;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)!important;
  gap:46px!important;
  align-items:center!important;
}
#sobre .about-copy{
  min-width:0!important;
}
#sobre .about-copy h2{
  font-size:clamp(2rem,4vw,3rem)!important;
  margin:10px 0 15px!important;
  line-height:1.1!important;
}
#sobre .about-copy p{
  margin:0!important;
  color:var(--muted)!important;
  line-height:1.75!important;
}
#sobre .alvara-badge{
  display:inline-flex!important;
  margin:0 0 20px!important;
}
#sobre .about-advantages{
  margin:0!important;
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}

#contactos .contact-section-head{
  display:block!important;
  margin-bottom:30px!important;
}
#contactos .contact-section-head > div{
  max-width:760px!important;
}
#contactos .contact-layout-fixed{
  display:grid!important;
  grid-template-columns:minmax(300px,.82fr) minmax(0,1.18fr)!important;
  gap:28px!important;
  align-items:start!important;
}
#contactos .contact-info-panel,
#contactos .contact-form-panel{
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:28px!important;
  border:1px solid var(--line)!important;
  border-radius:var(--radius)!important;
  background:#fff!important;
  box-shadow:0 10px 30px rgba(18,52,77,.05)!important;
  box-sizing:border-box!important;
}
#contactos .contact-info-panel h3,
#contactos .contact-form-panel h3{
  margin:0 0 18px!important;
  color:var(--navy)!important;
  font-size:1.35rem!important;
}
#contactos .contact-data{
  display:grid!important;
  gap:0!important;
}
#contactos .contact-data-row{
  display:grid!important;
  grid-template-columns:112px minmax(0,1fr)!important;
  gap:16px!important;
  align-items:start!important;
  padding:13px 0!important;
  border-bottom:1px solid var(--line)!important;
}
#contactos .contact-data-row:last-child{
  border-bottom:0!important;
}
#contactos .contact-data-row > span{
  color:var(--muted)!important;
  font-size:.78rem!important;
  font-weight:850!important;
  letter-spacing:.05em!important;
  text-transform:uppercase!important;
}
#contactos .contact-data-row a,
#contactos .contact-data-row strong{
  color:var(--navy)!important;
  text-decoration:none!important;
  line-height:1.55!important;
  overflow-wrap:anywhere!important;
}
#contactos .contact-data-row a:hover{
  text-decoration:underline!important;
}
#contactos .contact-cities{
  margin:18px 0 0!important;
  padding-top:17px!important;
  border-top:1px solid var(--line)!important;
  color:var(--muted)!important;
  line-height:1.65!important;
}
#contactos .contact-form-panel .form-grid{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:14px!important;
}
#contactos .contact-form-panel .field.full{
  grid-column:1/-1!important;
}
#contactos .contact-form-panel textarea{
  min-height:150px!important;
}

@media(max-width:900px){
  #sobre .about-layout,
  #contactos .contact-layout-fixed{
    grid-template-columns:1fr!important;
  }
}
@media(max-width:640px){
  #contactos .contact-info-panel,
  #contactos .contact-form-panel{
    padding:22px!important;
  }
  #contactos .contact-data-row{
    grid-template-columns:1fr!important;
    gap:5px!important;
  }
  #contactos .contact-form-panel .form-grid{
    grid-template-columns:1fr!important;
  }
  #contactos .contact-form-panel .field.full{
    grid-column:auto!important;
  }
}


/* =========================================================
   PRODUTOS — cards alinhados e preparados para subfamílias
   ========================================================= */
.products-grid{
  align-items:stretch!important;
}
.product-card{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
}
.product-content-aligned{
  display:flex!important;
  flex:1 1 auto!important;
  flex-direction:column!important;
  min-height:0!important;
}
.product-family-name{
  display:-webkit-box!important;
  min-height:1.2em!important;
  overflow:hidden!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:1!important;
}
.product-name-aligned{
  display:-webkit-box!important;
  min-height:3em!important;
  max-height:3em!important;
  overflow:hidden!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
}
.product-desc-aligned{
  display:-webkit-box!important;
  min-height:4.75em!important;
  max-height:4.75em!important;
  overflow:hidden!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:3!important;
}
.product-subfamilies-fixed{
  min-height:112px!important;
  max-height:112px!important;
  margin-top:16px!important;
  overflow:hidden!important;
}
.subfamily-tags-scroll{
  align-content:flex-start!important;
  max-height:82px!important;
  overflow-y:auto!important;
  padding:1px 5px 3px 0!important;
  scrollbar-width:thin;
  scrollbar-color:#bdd8e8 transparent;
}
.subfamily-tags-scroll::-webkit-scrollbar{width:5px}
.subfamily-tags-scroll::-webkit-scrollbar-thumb{background:#bdd8e8;border-radius:999px}
.subfamily-empty{
  display:flex;
  align-items:center;
  min-height:34px;
  color:var(--muted);
  font-size:.83rem;
  font-style:italic;
}
.product-footer-aligned{
  margin-top:auto!important;
  padding-top:18px!important;
  min-height:84px!important;
  align-items:flex-end!important;
}
.product-footer-aligned .proposal{
  flex:0 0 auto!important;
}

/* =========================================================
   LOGIN — mostrar/esconder password
   ========================================================= */
.password-input-wrap{
  position:relative;
}
.password-input-wrap input{
  padding-right:50px!important;
}
.password-toggle{
  position:absolute;
  top:50%;
  right:7px;
  width:38px;
  height:38px;
  transform:translateY(-50%);
  display:grid;
  place-items:center;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#607789;
  cursor:pointer;
}
.password-toggle:hover{
  background:#edf6fb;
  color:var(--navy);
}
.password-toggle:focus-visible{
  outline:3px solid rgba(57,169,245,.22);
}
.password-toggle svg{
  width:21px;
  height:21px;
  fill:currentColor;
}
.password-toggle .eye-closed{display:none}
.password-toggle.is-visible .eye-open{display:none}
.password-toggle.is-visible .eye-closed{display:block}

/* =========================================================
   ADMIN — exportação de catálogo PDF premium
   ========================================================= */
.admin-head-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.btn-premium{
  background:linear-gradient(135deg,#102f43,#1e5f82);
  color:#fff;
  box-shadow:0 10px 26px rgba(16,47,67,.18);
}
.btn-premium:hover{
  background:linear-gradient(135deg,#0b2637,#174f70);
}
.btn-premium svg{
  width:18px;
  height:18px;
  fill:currentColor;
}
.admin-account-badge{
  min-width:160px!important;
}
@media(max-width:700px){
  .admin-head-actions{
    width:100%;
    justify-content:stretch;
  }
  .admin-head-actions .btn{
    flex:1 1 100%;
  }
}


/* Slideshow premium: fade suave + zoom cinematográfico */
.hero-slider .hero-slide{
  opacity:0!important;
  transform:scale(1.025)!important;
  transition:opacity 1.15s ease-in-out, transform 5.2s ease-out!important;
  background-repeat:no-repeat!important;
  background-size:cover!important;
}
.hero-slider .hero-slide.active{
  opacity:1!important;
  transform:scale(1.075)!important;
}
.hero-slider .hero-overlay{
  background:
    linear-gradient(90deg,rgba(7,31,49,.91) 0%,rgba(7,31,49,.70) 44%,rgba(7,31,49,.28) 100%),
    linear-gradient(0deg,rgba(7,31,49,.24),transparent 48%)!important;
}
@media(max-width:640px){
  .hero-slider .hero-slide{background-position:center center!important}
}
@media(prefers-reduced-motion:reduce){
  .hero-slider .hero-slide{transition:none!important;transform:none!important}
}


/* =========================================================
   CONTACTOS — vários números WhatsApp
   ========================================================= */
.contact-phone-list{
  display:grid;
  gap:8px;
  align-items:start;
}
.contact-phone-list a{
  display:inline-flex;
  width:max-content;
  max-width:100%;
  align-items:center;
  gap:7px;
  font-weight:800;
}
.contact-phone-list a::before{
  content:"";
  width:8px;
  height:8px;
  flex:0 0 8px;
  border-radius:50%;
  background:#25d366;
  box-shadow:0 0 0 3px rgba(37,211,102,.12);
}
.footer-phone-list{
  display:grid;
  gap:2px;
}
.footer-phone-list a{
  width:max-content;
  max-width:100%;
}

/* =========================================================
   ADMIN — catálogo agrupado por família e ordenação manual
   ========================================================= */
.admin-products{
  display:grid!important;
  gap:22px!important;
}
.admin-family-group{
  display:grid;
  gap:10px;
}
.admin-family-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  padding:0 4px 8px;
  border-bottom:1px solid var(--line);
}
.admin-family-heading h4{
  margin:3px 0 0;
  color:var(--navy);
  font-size:1.2rem;
}
.family-product-count{
  flex:0 0 auto;
  padding:6px 10px;
  border-radius:999px;
  background:var(--sky-soft);
  color:var(--sky-dark);
  font-size:.78rem;
  font-weight:850;
}
.admin-family-products{
  display:grid;
  gap:10px;
}
.admin-product-placeholder{
  width:110px;
  height:84px;
  background:#edf3f6;
  border-radius:10px;
}
.admin-product-actions{
  display:grid;
  justify-items:end;
  gap:8px;
  min-width:162px;
}
.product-order-controls{
  display:grid;
  grid-template-columns:38px 34px 38px;
  align-items:center;
  gap:5px;
}
.order-btn{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:1px solid #cfdee7;
  border-radius:10px;
  background:#fff;
  color:var(--navy);
  font:900 1.05rem/1 Inter,Segoe UI,Arial,sans-serif;
  cursor:pointer;
  transition:.16s ease;
}
.order-btn:hover:not(:disabled){
  transform:translateY(-1px);
  border-color:var(--sky);
  color:var(--sky-dark);
  background:var(--sky-soft);
}
.order-btn:disabled{
  opacity:.3;
  cursor:not-allowed;
}
.order-position{
  display:grid;
  place-items:center;
  height:34px;
  border-radius:9px;
  background:#f3f7f9;
  color:var(--muted);
  font-size:.76rem;
  font-weight:900;
}
.admin-edit-actions{
  display:flex;
  justify-content:flex-end;
  gap:7px;
  flex-wrap:wrap;
}

@media(max-width:640px){
  .admin-product-actions{
    width:100%;
    min-width:0;
    justify-items:stretch;
  }
  .product-order-controls{
    justify-content:start;
  }
  .admin-edit-actions{
    justify-content:stretch;
  }
  .admin-edit-actions .btn{
    flex:1 1 calc(50% - 4px);
  }
  .admin-product-placeholder{
    width:100%;
    height:190px;
  }
}


/* =========================================================
   PAGINAÇÃO — catálogo público e administração
   ========================================================= */
.catalog-pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:30px;
  padding-top:20px;
  border-top:1px solid var(--line);
}
.catalog-pagination.hidden{display:none!important}
.pagination-pages{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap}
.pagination-nav,.pagination-page{
  min-width:40px;height:40px;display:inline-grid;place-items:center;
  border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--navy);
  font:800 .9rem/1 Inter,Segoe UI,Arial,sans-serif;cursor:pointer;transition:.18s ease;
}
.pagination-nav{font-size:1.3rem}
.pagination-nav:hover:not(:disabled),.pagination-page:hover:not(.active){
  border-color:var(--sky);background:var(--sky-soft);color:var(--sky-dark);transform:translateY(-1px)
}
.pagination-page.active{
  background:var(--sky);border-color:var(--sky);color:#fff;
  box-shadow:0 8px 18px rgba(57,169,245,.2);cursor:default
}
.pagination-nav:disabled{opacity:.35;cursor:not-allowed}
.pagination-ellipsis{min-width:24px;text-align:center;color:var(--muted);font-weight:800}
.pagination-summary{
  flex-basis:100%;margin-top:3px;text-align:center;color:var(--muted);font-size:.8rem;font-weight:700
}
.admin-pagination{margin-top:20px}
.family-continuation{color:var(--muted);font-size:.72rem;font-weight:700}
@media(max-width:520px){
  .catalog-pagination{gap:6px}
  .pagination-nav,.pagination-page{min-width:36px;height:36px;border-radius:9px}
  .pagination-pages{gap:4px}
}


/* FICHAS TÉCNICAS PDF */
.product-documents{margin-top:14px;padding-top:13px;border-top:1px solid var(--line)}
.product-document-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:7px}
.product-document-btn{min-height:38px;display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border:1px solid #cfe0e9;border-radius:10px;background:#f5fafc;color:var(--navy);font:800 .79rem/1.15 Inter,Segoe UI,Arial,sans-serif;text-decoration:none;cursor:pointer;transition:.18s ease}
.product-document-btn:hover:not(:disabled){border-color:var(--sky);color:var(--sky-dark);background:var(--sky-soft);transform:translateY(-1px)}
.product-document-btn:disabled{opacity:.6;cursor:wait}
.product-pdf-field{padding:16px;border:1px solid var(--line);border-radius:12px;background:#f8fbfc}
.pdf-file-preview{margin-top:10px;padding:11px 12px;border:1px dashed #c8d9e3;border-radius:10px;color:var(--muted);background:#fff;overflow-wrap:anywhere}
.pdf-current-file{display:flex;align-items:flex-start;gap:10px;color:var(--navy)}
.pdf-current-file a,.admin-product-pdf a{color:var(--sky-dark);font-weight:800}
.file-badge{display:inline-grid;place-items:center;min-width:38px;height:25px;padding:0 7px;border-radius:7px;background:#e9f4fa;color:#1f648b;font-size:.68rem;font-weight:950;letter-spacing:.05em}
.pdf-remove-note{color:#9a4e43;font-weight:700}.btn-small{margin-top:9px;padding:8px 11px!important;min-height:36px!important;font-size:.78rem!important}
.admin-product-pdf{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:7px;color:var(--muted);font-size:.77rem}
@media(max-width:520px){.product-document-actions{display:grid;grid-template-columns:1fr}.product-document-btn{width:100%}}
