/* Cores index1:
   fundo #FBF9F5  texto #454543/#3A3A38
   acento #E7BD4C (#D6A91E,#F8DE84)  azul-escuro #16213D
   cinza #8B8984  castanho #8a6a1a */

@font-face{
  font-family:'Roboto';
  src:url('fonts/roboto.woff2') format('woff2');
  font-weight:100 900;font-style:normal;font-display:swap;
}
@font-face{
  font-family:'Roboto';
  src:url('fonts/roboto-italic.woff2') format('woff2');
  font-weight:100 900;font-style:italic;font-display:swap;
}

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;font-size:19px;min-height:100%}
body{
  font-family:'Roboto',-apple-system,'Segoe UI',Arial,sans-serif;
  background:#FDFDFD;
  color:#454543;
  line-height:1.65;
  min-height:100vh;min-height:100dvh;
  display:flex;flex-direction:column;
}
main{flex:1;width:100%}
.container{max-width:1060px;margin:0 auto;padding:0 16px}
a{text-decoration:none;color:inherit}
ul{list-style:none}

/* ===== NAV ===== */
header{
  position:fixed;top:0;left:0;width:100%;z-index:1000;
  padding:20px 0;transition:all 0.3s;
}
header.scrolled{
  background:#FDFDFD;border-bottom:1px solid rgba(58,58,56,0.07);
  padding:12px 0;
}
.nav-container{display:flex;align-items:center;justify-content:space-between}
.logo-img{height:60px;display:block;width:auto}
.hamburger{
  display:none;flex-direction:column;gap:4px;cursor:pointer;
  background:none;border:none;padding:6px;
}
.hamburger span{
  display:block;width:22px;height:1.5px;background:#3A3A38;transition:all 0.3s;
}
.hamburger.active span:nth-child(1){transform:rotate(45deg)translate(4px,4px)}
.hamburger.active span:nth-child(2){opacity:0}
.hamburger.active span:nth-child(3){transform:rotate(-45deg)translate(4px,-4px)}
.nav-menu{display:flex;gap:24px}
.nav-menu a{
  font-size:1.35rem;color:rgba(58,58,56,0.78);
  transition:color 0.2s;padding:4px 0;
  border-bottom:1px solid transparent;
}
.nav-menu a:hover,.nav-menu a.active{color:#16213D;border-bottom-color:#16213D}

/* ===== HERO ===== */
.hero{
  min-height:50vh;min-height:50dvh;display:flex;align-items:flex-end;
  padding:160px 0 60px;position:relative;overflow:hidden;
  scroll-margin-top:65px;
}
.hero-bg{
  position:absolute;top:0;left:0;width:100%;height:100%;
  object-fit:cover;transform:scale(1.15);z-index:0;opacity:0.6;
}
.hero::after{
  content:'';position:absolute;top:0;left:0;width:100%;height:100%;
  background:rgba(253,253,253,0.55);z-index:0;
}
.hero .container{
  width:100%;max-width:80vw;display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:end;
  position:relative;z-index:1;
}
.hero-badge{
  display:inline-block;font-size:1rem;font-weight:700;
  color:#686866;text-transform:uppercase;letter-spacing:2px;
  margin-bottom:20px;padding:4px 0;border-bottom:2px solid #686866;
}
.hero h1{
  font-size:3.1rem;font-weight:700;color:#000;
  line-height:1.15;margin-bottom:20px;letter-spacing:-1px;
}
.hero h1 strong{font-weight:800;display:block;color:#000}
.hero p{
  font-size:1.15rem;color:rgb(26, 26, 26);
  max-width:420px;line-height:1.7;margin-bottom:36px;
}
.btn{
  display:inline-block;background:#E7BD4C;color:#3A3A38;
  padding:14px 40px;font-size:0.95rem;font-weight:600;
  letter-spacing:1.5px;text-transform:uppercase;
  transition:all 0.25s;border:none;cursor:pointer;
}
.btn:hover{background:#cfa637;transform:translateY(-2px)}
.hero-right{display:flex;justify-content:center;padding-bottom:12px}
.hero-motto{
  font-size:1.5rem;font-style:italic;color:rgba(58,58,56,0.85);
  line-height:1.5;max-width:400px;text-align:right;
  border-right:3px solid #E7BD4C;padding-right:24px;
  background:rgba(255,255,255,0.6);padding:16px 24px 16px 16px;
  box-shadow:0 4px 16px rgba(58,58,56,0.08);
}

/* ===== SECTIONS ===== */
.section{
  padding:75px 0;
  position:relative;
  transition:background 0.6s;
  scroll-margin-top:65px;
}
.section::before{
  content:'';
  position:absolute;
  top:0;left:50%;transform:translateX(-50%);
  width:80%;max-width:500px;height:1px;
  background:linear-gradient(90deg,transparent,rgba(231,189,76,0.3),transparent);
}
.section-alt{
  background: #D3DEEC;
  background:linear-gradient(180deg,#D3DEEC 0%,#F7F7F7 100%);
  /*background:linear-gradient(180deg,#FDFDFD 0%,#F7F7F7 100%);*/
}
.section-alt::after{
  content:'';
  position:absolute;
  bottom:0;left:0;right:0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(231,189,76,0.18),transparent);
}
.section-accent{
  /*background:#F7F7F7;*/
  background: #D3DEEC;
  border-top:1px solid rgba(231,189,76,0.18);
  border-bottom:1px solid rgba(231,189,76,0.18);
}
.section-title{
  font-size:0.95rem;font-weight:600;color:#16213D;
  text-transform:uppercase;letter-spacing:4px;
  margin-bottom:8px;text-align:center;
}
.section-title::after{content:'';display:block;width:36px;height:2.5px;background:#E7BD4C;margin:10px auto 0;border-radius:2px}
.section-head{font-size:2.2rem;font-weight:500;color:#3A3A38;margin-bottom:8px;line-height:1.25;letter-spacing:-0.5px;text-align:center}
.section-desc{color:rgb(0, 0, 0);font-size:1.05rem;margin-bottom:64px;max-width:500px;text-align:center;margin-left:auto;margin-right:auto}
.fade-in{opacity:0;transform:translateY(40px);transition:all 0.8s cubic-bezier(0.16,1,0.3,1)}
.fade-in.show{opacity:1;transform:translateY(0)}

/* ===== SOBRE TABS ===== */
#sobre .container{max-width:80vw}
.sobre-menu{
  display:flex;gap:6px;flex-wrap:wrap;justify-content:center;
  border-bottom:1px solid rgba(58,58,56,0.08);
}
.tab-btn{
  background:none;border:none;cursor:pointer;
  font-family:inherit;font-size:0.95rem;font-weight:600;
  color:rgba(58,58,56,0.72);text-transform:uppercase;letter-spacing:1px;
  padding:12px 18px;border-bottom:2px solid transparent;
  transition:all 0.25s;flex:1 1 0;text-align:center;
}
.tab-btn:hover{color:#16213D}
.tab-btn.active{color:#16213D;border-bottom-color:#16213D}
.sobre-content{padding:36px 50px;border:2px solid rgba(58,58,56,0.08);min-height:480px;box-shadow:0 4px 16px rgba(58,58,56,0.08)}
.tab-panel{display:none}
.tab-panel.active{display:block;height:100%;animation:panelIn 0.35s ease}
@keyframes panelIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.tab-panel p{color:rgb(26, 26, 26);margin-bottom:14px;font-size:1.15rem;line-height:1.7}
.tab-panel p strong{color:#8a6a1a;font-weight:600}
.tab-panel ul{list-style:none}
.tab-panel ul li{
  position:relative;padding-left:22px;margin-bottom:10px;
  color:rgb(26, 26, 26);font-size:1.15rem;line-height:1.6;
}
.tab-panel ul li::before{
  content:'';position:absolute;left:0;top:10px;
  width:7px;height:7px;background:#D6A91E;border-radius:1px;
}
.sobre-cards{
  display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch;gap:28px;
  min-height:100%;
}
.sobre-card{
  border:1px solid rgba(58,58,56,0.05);padding:24px 20px;text-align:center;
  flex:1 1 0;max-width:340px;display:flex;flex-direction:column;justify-content:flex-start;
}
.sobre-card-icon{
  width:44px;height:44px;background:#fff;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  font-size:1.15rem;margin:0 auto 14px;border:1px solid rgba(58,58,56,0.04);
}
.sobre-card h3{font-size:1.1rem;font-weight:600;color:#3A3A38;margin-bottom:8px}
.sobre-card p{font-size:1rem;color:rgb(26, 26, 26);line-height:1.7;margin:0}

/* ===== PRODUCTS ===== */
#produtos .container{max-width:80vw}
.prod-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:22px;
}
.prod-card{
  background:#fff;padding:30px 26px;
  border-radius:14px;
  border:1px solid rgba(58,58,56,0.06);
  box-shadow:0 2px 12px rgba(58,58,56,0.05);
  transition:all 0.3s;
  position:relative;overflow:hidden;
  text-align:center;
}
.prod-card::before{
  content:'';position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,#E7BD4C,#F8DE84);
  transform:scaleX(0);transition:transform 0.35s;
}
.prod-card:nth-child(odd)::before{transform:scaleX(1)}
.prod-card:hover{
  border-color:rgba(231,189,76,0.4);
  box-shadow:0 14px 40px rgba(58,58,56,0.09);
  transform:translateY(-5px);
}
.prod-card:hover::before{transform:scaleX(1)}
.prod-card-icon{
  width:56px;height:56px;min-width:56px;
  background:linear-gradient(135deg,#E7BD4C,#D6A91E);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:1.3rem;margin:0 auto 16px;
  box-shadow:0 4px 14px rgba(214,169,30,0.3);
}
.prod-card-text h3{font-size:0.95rem;font-weight:700;color:#3A3A38;margin-bottom:6px;line-height:1.3}
.prod-card-text p{font-size:0.85rem;color:rgba(58,58,56,0.72);line-height:1.6}

/* ===== SERVICES ===== */
#servicos .container{max-width:80vw}
.servicos-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:16px;
}
.servico-card{
  display:flex;align-items:flex-start;gap:16px;
  background:#fff;border-radius:12px;padding:20px 22px;
  box-shadow:0 3px 12px rgba(231,189,76,0.12);
  transition:all 0.3s;
  border:1.5px solid rgba(231,189,76,0.25);
}
.servico-card:hover{
  box-shadow:0 6px 24px rgba(231,189,76,0.2);
  border-color:#E7BD4C;transform:translateY(-3px);
}
.servico-icon{
  width:48px;height:48px;border-radius:50%;
  background:linear-gradient(135deg,#E7BD4C,#D6A91E);
  display:flex;align-items:center;justify-content:center;
  font-size:1.15rem;flex-shrink:0;
}
.servico-body h3{font-size:1rem;font-weight:600;color:#3A3A38;margin-bottom:6px;line-height:1.3}
.servico-body p{font-size:0.95rem;color:rgb(26, 26, 26);line-height:1.6}

/* ===== PORTFOLIO ===== */
#portfolio .container{max-width:80vw}
.portfolio-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:20px;
}
.cliente-card{
  background:#fff;border-radius:14px;padding:24px 16px;text-align:center;
  cursor:pointer;box-shadow:0 3px 12px rgba(0,0,0,0.06);
  transition:all 0.4s cubic-bezier(0.4,0,0.2,1);
  border:2px solid transparent;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:10px;min-height:140px;position:relative;overflow:hidden;
}
.cliente-card:hover{
  transform:translateY(-6px);box-shadow:0 16px 40px rgba(0,0,0,0.12);
  border-color:#E7BD4C;
}
.cliente-card-logo{
  width:90px;height:60px;display:flex;align-items:center;justify-content:center;
  transition:all 0.3s;
}
.cliente-card img{
  max-height:50px;max-width:110px;object-fit:contain;transition:transform 0.4s;
}
.cliente-card:hover img{transform:scale(1.08)}
.cliente-card .cliente-placeholder{
  width:70px;height:46px;background:#F7F7F7;
  border:2px dashed #E7BD4C;border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  font-size:1.2rem;font-weight:700;color:#8a6a1a;
}
.cliente-card .cliente-nome{font-size:0.88rem;font-weight:600;color:#3A3A38;line-height:1.3}
.cliente-card .cliente-count{
  font-size:0.75rem;color:#888;font-weight:500;
  background:#F7F7F7;padding:3px 12px;border-radius:50px;
}
.cliente-card-overlay{
  position:absolute;top:0;left:0;width:100%;height:100%;
  background:rgba(0,19,55,0.88);
  display:flex;align-items:center;justify-content:center;
  opacity:0;pointer-events:none;transition:all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.cliente-card:hover .cliente-card-overlay{opacity:1}
.cliente-card-overlay span{
  color:#fff;font-size:0.85rem;font-weight:600;letter-spacing:0.5px;
  border:2px solid rgba(255,255,255,0.3);padding:8px 20px;border-radius:50px;
  transform:translateY(10px);transition:all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.cliente-card:hover .cliente-card-overlay span{transform:translateY(0)}

.portfolio-modal{
  display:none;position:fixed;top:0;left:0;width:100%;height:100%;
  z-index:2000;align-items:center;justify-content:center;padding:20px;
}
.portfolio-modal.active{display:flex}
.modal-backdrop{
  position:absolute;top:0;left:0;width:100%;height:100%;
  background:rgba(58,58,56,0.6);backdrop-filter:blur(6px);
}
.modal-content{
  position:relative;background:#fff;border-radius:20px;padding:40px 36px;
  max-width:680px;width:100%;max-height:80vh;overflow-y:auto;
  box-shadow:0 25px 80px rgba(0,0,0,0.3);animation:modalIn 0.3s ease;
}
@keyframes modalIn{from{opacity:0;transform:scale(0.92) translateY(20px)}to{opacity:1;transform:scale(1) translateY(0)}}
.modal-close{
  position:absolute;top:16px;right:20px;background:#F7F7F7;border:none;
  width:36px;height:36px;border-radius:50%;font-size:1.3rem;color:#555;
  cursor:pointer;transition:all 0.2s;line-height:1;
  display:flex;align-items:center;justify-content:center;
}
.modal-close:hover{background:#e0e0e0;color:#1a1a1a}
#modalTitle{
  font-size:1.25rem;font-weight:700;color:#3A3A38;margin-bottom:24px;
  padding-right:40px;display:flex;align-items:center;gap:14px;
}
#modalTitle img{height:32px;width:auto;object-fit:contain}
.modal-formacao{
  padding:20px 22px;border-radius:14px;background:#F7F7F7;margin-bottom:14px;
  transition:all 0.2s;border-left:3px solid #E7BD4C;
}
.modal-formacao:last-child{margin-bottom:0}
.modal-formacao:hover{background:#F3F3F3}
.modal-formacao .f-ano{
  font-size:0.78rem;font-weight:600;color:#8a6a1a;text-transform:uppercase;
  letter-spacing:0.5px;margin-bottom:4px;
}
.modal-formacao .f-titulo{font-size:0.95rem;font-weight:600;color:#3A3A38;line-height:1.4;margin-bottom:8px}
.modal-formacao .f-normas{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.modal-formacao .f-norma{
  background:#16213D;color:#F8DE84;padding:3px 11px;border-radius:50px;
  font-size:0.68rem;font-weight:500;letter-spacing:0.3px;
}

/* ===== CONTACT ===== */
#contactos .container{max-width:80vw}
.contact-line{
  display:grid;grid-template-columns:repeat(3,1fr);gap:20px;
}
.contact-line > div{
  background:#FDFDFD;border:1px solid rgba(58,58,56,0.08);
  padding:28px 20px;text-align:center;
  box-shadow:0 4px 16px rgba(58,58,56,0.06);
  transition:all 0.25s;
}
.contact-line > div:hover{border-color:rgba(231,189,76,0.55);transform:translateY(-3px)}
.contact-line a,.contact-line span{
  font-size:0.95rem;color:rgb(26, 26, 26);
  transition:color 0.2s;
}
.contact-line a:hover{color:#8a6a1a}
.contact-line .cl-icon{font-size:1.4rem;display:block;margin-bottom:10px}
.contact-line .cl-label{font-size:0.62rem;text-transform:uppercase;letter-spacing:2.5px;color:#b8912e;display:block;margin-bottom:6px;font-weight:600}

/* ===== FOOTER ===== */
footer{
  background:#3A3A38;padding:20px 0;
}
footer p{font-size:1rem;font-weight:300;color:rgba(255,255,255,0.8);text-align:center}
footer span{color:#F8DE84;font-weight:500}

@media(max-width:768px){
  body{overflow-x:hidden}
  .nav-menu{
    position:fixed;top:0;right:-100%;width:280px;height:100vh;height:100dvh;
    flex-direction:column;background:#FDFDFD;padding:80px 24px;gap:8px;
    transition:right 0.35s;border-left:1px solid rgba(58,58,56,0.06);
  }
  .nav-menu.active{right:0}
  .nav-menu a{display:block;padding:14px 0;font-size:1.35rem;border-bottom:1px solid rgba(58,58,56,0.06)}
  .hamburger{display:flex}
  .hero{padding:120px 0 40px}
  .hero .container{grid-template-columns:1fr;gap:24px}
  .hero-badge{font-size:0.8rem}
  .hero h1{font-size:2.2rem}
  .hero p{font-size:1rem;max-width:100%}
  .hero-motto{font-size:1.1rem;text-align:left;border-right:none;border-left:3px solid #E7BD4C;padding:16px 16px 16px 20px}
  .section{padding:60px 0}
  .section-head{font-size:1.6rem}
  .section-desc{margin-bottom:40px}
  #sobre .container{max-width:100%}
  .sobre-menu{flex-wrap:wrap;gap:4px}
  .tab-btn{white-space:normal;flex:1 1 auto;font-size:0.75rem;padding:10px 10px}
  .sobre-content{height:auto;padding:24px 18px}
  .sobre-card{flex:1 1 100%;padding:20px 16px}
  .sobre-card p,.tab-panel p,.tab-panel ul li{font-size:1rem}
  .prod-grid{grid-template-columns:1fr}
  .servicos-grid{grid-template-columns:1fr}
  .portfolio-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:14px}
  .cliente-card{padding:14px 8px;min-height:100px}
  .modal-content{padding:25px 18px}
  #modalTitle{font-size:1.1rem}
  .contact-line{grid-template-columns:1fr;gap:16px}
  .contact-line > div{min-width:0;max-width:none}
}
@media(max-width:400px){
  header{padding:14px 0}
  .logo-img{height:44px}
  .hero{padding:100px 0 30px;min-height:auto}
  .hero h1{font-size:1.8rem}
  .btn{padding:12px 28px;font-size:0.85rem}
  .section{padding:44px 0}
  .section-head{font-size:1.4rem}
  .section-title{font-size:0.85rem}
  .sobre-content{padding:20px 14px}
  .sobre-card{padding:18px 12px}
}
