/* ==========================================================================
   COTEL - camada visual moderna
   Carregada depois do style.css: mantém o layout original e só refina
   cores, profundidade, transições e animações.
   ========================================================================== */

:root {
  --cotel-amarelo: #F9B303;
  --cotel-amarelo-escuro: #E09E00;
  --cotel-grafite: #1f2329;
  --cotel-grafite-2: #2b3038;
  --cotel-texto: #4a5260;
  --cotel-sombra: 0 10px 30px -12px rgba(31, 35, 41, .25);
  --cotel-sombra-forte: 0 24px 48px -18px rgba(31, 35, 41, .35);
  --cotel-raio: 16px;
  --cotel-ease: cubic-bezier(.22, .61, .36, 1);
}

html { scroll-behavior: smooth; }

body {
  color: var(--cotel-texto);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--cotel-amarelo); color: #fff; }

/* Barra de progresso de leitura ------------------------------------------ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--cotel-amarelo), #ffd45c);
  z-index: 3000;
  pointer-events: none;
}

/* Menu -------------------------------------------------------------------- */
.site-navbar .site-navigation .site-menu > li > a {
  position: relative;
}
.site-navbar .site-navigation .site-menu > li > a::after {
  content: "";
  position: absolute;
  left: 20px; right: 20px; bottom: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--cotel-amarelo);
  transform: scaleX(0);
  transition: transform .35s var(--cotel-ease);
}
.site-navbar .site-navigation .site-menu > li > a:hover::after,
.site-navbar .site-navigation .site-menu > li > a.active::after {
  transform: scaleX(1);
}

/* Menu fixo com efeito de vidro ao rolar */
.site-navbar.scrolled {
  background-color: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, .18);
}
.site-navbar.scrolled .logo-home { max-height: 56px; transition: max-height .3s var(--cotel-ease); }

/* Capa (hero) ------------------------------------------------------------- */
.site-blocks-cover {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.site-blocks-cover .hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transform: scale(1.12);
  animation: cotel-kenburns 22s ease-out forwards;
  will-change: transform;
}
.site-blocks-cover.overlay:before {
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .55) 75%),
    linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, .2) 40%, rgba(17, 19, 23, .75) 100%);
}
.site-blocks-cover h1 {
  letter-spacing: .02em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .35);
}
.site-blocks-cover h1 .destaque {
  background: linear-gradient(90deg, var(--cotel-amarelo), #ffd76a, var(--cotel-amarelo));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: cotel-brilho 6s linear infinite;
}
.site-blocks-cover p { color: rgba(255, 255, 255, .88); font-size: 1.15rem; }

.hero-acoes { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn-cotel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .85rem;
  transition: transform .3s var(--cotel-ease), box-shadow .3s var(--cotel-ease), background-color .3s, color .3s;
}
.btn-cotel i { font-size: 1.25rem; line-height: 0; }
.btn-cotel-primario {
  background: var(--cotel-amarelo);
  color: #1f2329 !important;
  box-shadow: 0 12px 30px -10px rgba(249, 179, 3, .7);
}
.btn-cotel-primario:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -12px rgba(249, 179, 3, .85); }
.btn-cotel-vidro {
  color: #fff !important;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-cotel-vidro:hover { background: rgba(255, 255, 255, .22); transform: translateY(-3px); }

.hero-rolar {
  position: absolute;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .85) !important;
  font-size: 2rem;
  line-height: 0;
  animation: cotel-quicar 2.2s ease-in-out infinite;
}

/* Títulos de seção -------------------------------------------------------- */
.border-primary:after {
  transition: width .8s var(--cotel-ease) .2s;
}
.js-revelar .border-primary:after { width: 0 !important; }
.js-revelar .border-primary.visivel:after { width: 80px !important; }
.border-primary h2 { letter-spacing: .03em; }

/* Sobre nós --------------------------------------------------------------- */
.sobre-imagem {
  position: relative;
  border-radius: var(--cotel-raio);
}
.sobre-imagem::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border-radius: var(--cotel-raio);
  background: repeating-linear-gradient(45deg, rgba(249, 179, 3, .9) 0 2px, transparent 2px 12px);
  z-index: 0;
  opacity: .55;
}
.sobre-imagem img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--cotel-raio) !important;
  box-shadow: var(--cotel-sombra-forte);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.sobre-selo {
  position: absolute;
  z-index: 2;
  left: -24px; bottom: 32px;
  background: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--cotel-sombra-forte);
  display: flex; align-items: center; gap: 12px;
  animation: cotel-flutuar 5s ease-in-out infinite;
}
.sobre-selo strong { display: block; font-size: 1.6rem; line-height: 1; color: var(--cotel-grafite); }
.sobre-selo span { font-size: .8rem; color: var(--cotel-texto); }
.sobre-selo i {
  font-size: 1.6rem; line-height: 0;
  width: 46px; height: 46px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(249, 179, 3, .15); color: var(--cotel-amarelo-escuro);
}
@media (max-width: 767.98px) {
  .sobre-imagem::before { inset: 14px -10px -14px 10px; }
  .sobre-selo { left: 12px; bottom: 16px; }
}

/* Tipos de serviços (seção escura) ---------------------------------------- */
#section-how-it-works.bg-image.overlay:after {
  background: linear-gradient(160deg, rgba(20, 22, 27, .86) 0%, rgba(31, 35, 41, .7) 55%, rgba(60, 45, 5, .62) 100%);
}
.how-it-work-item {
  height: 100%;
  padding: 36px 28px 8px;
  border-radius: var(--cotel-raio);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform .45s var(--cotel-ease), background-color .45s, border-color .45s, box-shadow .45s;
}
#section-how-it-works .row.text-center > [class*="col-"] { margin-bottom: 30px !important; }
.how-it-work-item:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, .09);
  border-color: rgba(249, 179, 3, .55);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .6);
}
.how-it-work-item .number {
  width: 68px; height: 68px;
  line-height: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0;
  border-radius: 20px;
  font-size: 30px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffcc3d, var(--cotel-amarelo-escuro));
  box-shadow: 0 14px 30px -10px rgba(249, 179, 3, .7);
  transition: transform .5s var(--cotel-ease);
}
.how-it-work-item:hover .number { transform: rotate(-8deg) scale(1.08); }
.how-it-work-item h2 { font-size: 20px; font-weight: 600; margin-bottom: 14px; }
.how-it-work-item p { color: rgba(255, 255, 255, .78); }

/* Atividades -------------------------------------------------------------- */
#section-services .unit-4 {
  height: 100%;
  padding: 28px;
  border-radius: var(--cotel-raio);
  background: #fff;
  box-shadow: var(--cotel-sombra);
  position: relative;
  overflow: hidden;
  transition: transform .45s var(--cotel-ease), box-shadow .45s var(--cotel-ease);
}
#section-services .unit-4::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--cotel-amarelo), #ffd76a);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .45s var(--cotel-ease);
}
#section-services .unit-4:hover { transform: translateY(-6px); box-shadow: var(--cotel-sombra-forte); }
#section-services .unit-4:hover::before { transform: scaleY(1); }
#section-services .unit-4-icon span {
  width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 18px;
  background: rgba(249, 179, 3, .12);
  font-size: 2rem !important;
  transition: background-color .4s, color .4s, transform .4s var(--cotel-ease);
}
#section-services .unit-4:hover .unit-4-icon span {
  background: var(--cotel-amarelo);
  color: #fff !important;
  transform: scale(1.06);
}
#section-services .unit-4 h3 { font-weight: 600; color: var(--cotel-grafite); }

/* Segmentos (carrossel) --------------------------------------------------- */
.nonloop-block-13 .owl-stage-outer { padding: 10px 0 30px; }
.nonloop-block-13 .unit-1 {
  border-radius: var(--cotel-raio);
  margin: 0 8px;
  width: auto;
  box-shadow: var(--cotel-sombra);
  transform: translateZ(0);
}
.nonloop-block-13 .unit-1 img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .9s var(--cotel-ease), filter .6s;
  filter: saturate(.95);
}
.nonloop-block-13 .unit-1:hover img { transform: scale(1.1); filter: saturate(1.15); }
.nonloop-block-13 .unit-1:after {
  background: linear-gradient(to bottom, transparent 35%, rgba(17, 19, 23, .85) 100%);
  transition: background .5s;
}
.nonloop-block-13 .unit-1:hover:after {
  background: linear-gradient(to bottom, rgba(249, 179, 3, .08) 20%, rgba(17, 19, 23, .9) 100%);
}
.nonloop-block-13 .unit-1 .unit-1-heading {
  font-weight: 600;
  padding-bottom: 6px;
}
.nonloop-block-13 .unit-1 .unit-1-heading::after {
  content: "";
  display: block;
  width: 0; height: 3px;
  margin: 8px auto 0;
  border-radius: 3px;
  background: var(--cotel-amarelo);
  transition: width .45s var(--cotel-ease);
}
.nonloop-block-13 .unit-1:hover .unit-1-heading::after { width: 46px; }

.nonloop-block-13 .owl-nav button,
.nonloop-block-13 .owl-nav [class*="owl-"] {
  transition: transform .3s var(--cotel-ease), color .3s;
}
.nonloop-block-13 .owl-nav button:hover { transform: scale(1.15); color: var(--cotel-amarelo) !important; }

/* Contato ----------------------------------------------------------------- */
#section-contact iframe {
  border-radius: var(--cotel-raio);
  box-shadow: var(--cotel-sombra);
  filter: grayscale(.25);
}
#section-contact .php-email-form,
#section-contact .col-md-5 > .bg-white {
  border-radius: var(--cotel-raio);
  box-shadow: var(--cotel-sombra);
}
#section-contact .form-control {
  border-radius: 10px;
  border-color: #e3e6ec;
  background: #fafbfc;
  height: auto;
  padding: 12px 14px;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
#section-contact .form-control:focus {
  background: #fff;
  border-color: var(--cotel-amarelo);
  box-shadow: 0 0 0 4px rgba(249, 179, 3, .18);
}
#section-contact .btn-primary {
  border-radius: 999px;
  padding-left: 32px !important; padding-right: 32px !important;
  box-shadow: 0 12px 26px -12px rgba(249, 179, 3, .85);
  transition: transform .3s var(--cotel-ease), box-shadow .3s;
}
#section-contact .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(249, 179, 3, 1); }
.contato-info p.font-weight-bold { display: flex; align-items: center; gap: 8px; color: var(--cotel-grafite); }
.contato-info p.font-weight-bold i {
  font-size: 1.1rem; line-height: 0;
  width: 30px; height: 30px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(249, 179, 3, .15); color: var(--cotel-amarelo-escuro);
}

/* Rodapé ------------------------------------------------------------------ */
.site-footer { background: linear-gradient(180deg, var(--cotel-grafite-2), var(--cotel-grafite)); }
.site-footer a { transition: color .3s, padding-left .3s var(--cotel-ease); }
.site-footer ul li a:hover { padding-left: 6px; color: var(--cotel-amarelo) !important; }
.site-footer [class^="icon-"] {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  transition: background-color .3s, border-color .3s, transform .3s var(--cotel-ease);
}
.site-footer a[class*="pl-"] { padding-left: 0 !important; padding-right: 10px !important; }
.site-footer a:hover [class^="icon-"] { background: var(--cotel-amarelo); border-color: var(--cotel-amarelo); color: #fff; transform: translateY(-3px); }

/* Botões flutuantes ------------------------------------------------------- */
.back-to-top { border-radius: 50%; width: 46px; height: 46px; box-shadow: var(--cotel-sombra); }
.back-to-top:hover { background: var(--cotel-grafite); transform: translateY(-3px); }

.whatsapp-flutuante {
  position: fixed;
  left: 18px; bottom: 18px;
  z-index: 997;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #25D366;
  color: #fff !important;
  font-size: 30px;
  line-height: 0;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7);
  transition: transform .3s var(--cotel-ease);
}
.whatsapp-flutuante::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: cotel-pulso 2.4s ease-out infinite;
}
.whatsapp-flutuante:hover { transform: scale(1.08); }

/* Revelação ao rolar (complementa o AOS) ---------------------------------- */
.js-revelar .revelar {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--cotel-ease), transform .9s var(--cotel-ease);
}
.js-revelar .revelar.visivel { opacity: 1; transform: none; }

/* Animações --------------------------------------------------------------- */
@keyframes cotel-kenburns { to { transform: scale(1); } }
@keyframes cotel-brilho { to { background-position: 200% center; } }
@keyframes cotel-quicar { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }
@keyframes cotel-flutuar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes cotel-pulso { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* Respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .site-blocks-cover .hero-media { transform: none; }
  .js-revelar .revelar { opacity: 1; transform: none; }
}
