/* ==========================================================================
   ClimaTur Viagens - novo layout (ambiente de teste)
   Paleta extraida do logo oficial e das fotos reais da frota.
   ========================================================================== */

:root {
  --ct-verde: #6fc61f;
  --ct-verde-claro: #8bd935;
  --ct-verde-escuro: #4d9013;
  --ct-azul-escuro: #04283c;
  --ct-azul-escuro-2: #0a3a54;
  --ct-branco: #ffffff;
  --ct-cinza-claro: #f4f7f6;
  --ct-cinza-medio: #6b7b81;
  --ct-cinza-texto: #33424a;
  --ct-sombra: 0 10px 30px rgba(4, 40, 60, 0.12);
}

body {
  color: var(--ct-cinza-texto);
}

a {
  color: var(--ct-azul-escuro);
}

a:hover {
  color: var(--ct-verde-escuro);
}

/* ---------- Barra superior (topo) ---------- */
.ct-topbar {
  background: var(--ct-verde-escuro);
  color: #ffffff;
  font-size: 14px;
  padding: 8px 0;
}
.ct-topbar .container-fluid {
  max-width: 1300px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-left: 20px;
  padding-right: 20px;
}
.ct-topbar a { color: #ffffff; text-decoration: none; }
.ct-topbar a:hover { color: var(--ct-azul-escuro); }
.ct-topbar .ct-topbar-links { display: flex; flex-wrap: wrap; gap: 20px; }
.ct-topbar .ct-topbar-links span { white-space: nowrap; }
.ct-topbar i { color: #ffffff; margin-right: 6px; }

@media (max-width: 768px) {
  .ct-topbar .ct-topbar-links { gap: 12px; font-size: 12.5px; }
}

/* ---------- Cabecalho / menu ---------- */
#header {
  background: rgba(139, 217, 53, 0.85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 14px rgba(4, 40, 60, 0.12);
  top: 34px;
}
#header.header-scrolled { top: 0; }
/* height:auto + max-height:none sobrescreve o "max-height:40px" antigo do
   style.css - sem isso, a logo fica ACHATADA sempre que o arquivo nao tiver
   uma proporcao bem proxima de 130x40 (aconteceu com a logo quadrada). Com
   isso a proporcao original do arquivo e sempre respeitada. */
#header .logo img { width: 130px; height: auto; max-height: none; }
/* Cliente nao gostou da placa/caixa que estava aqui atras da logo -
   removida. A logo tem o "Tur" em branco solido, que fica com pouco
   contraste no fundo claro do cabecalho, mas sem caixa por pedido
   explicito do cliente. */

.nav-menu > ul > li > a {
  color: var(--ct-azul-escuro);
  font-weight: 600;
}
.nav-menu a:hover,
.nav-menu .active > a,
.nav-menu li:hover > a {
  color: #ffffff !important;
}

/* ---------- Botao whatsapp flutuante ---------- */
/* Fica no canto INFERIOR ESQUERDO de proposito (pedido do cliente) - a
   setinha "voltar ao topo" (.back-to-top, em style.css) e os icones do
   rodape ficam no canto inferior DIREITO, entao os dois nao se sobrepoem
   mais. Nao mudar pra "right" sem checar esse conflito. */
.whatsapp-button {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 58px;
  height: 58px;
  background-color: #25D366 !important;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  z-index: 1000;
  transition: transform 0.2s;
}
.whatsapp-button:hover { transform: scale(1.08); }
.whatsapp-button img { width: 30px; height: 30px; }
@media (max-width: 768px) {
  .whatsapp-button { bottom: 16px; left: 16px; width: 52px; height: 52px; }
}

/* ---------- Hero / banner principal ---------- */
/*
  POSICAO DA CAIXA BRANCA DE INTRODUCAO (.ct-hero-card) SOBRE A FOTO DO ONIBUS
  ------------------------------------------------------------------------
  Pedido do cliente: a caixa branca nao pode tampar o onibus da foto.
  A posicao abaixo foi ajustada pra FOTO ATUAL. Se um dia TROCAR A FOTO
  do banner (desktop ou mobile), reveja estes 2 pontos:

  1) DESKTOP (telas > 768px): a regra ".ct-hero-row" joga a caixa pra
     DIREITA (justify-content: flex-end) porque na foto atual o onibus
     fica mais pro lado esquerdo/centro. Se na foto nova o onibus ficar
     do lado DIREITO, troque "flex-end" por "flex-start" (caixa na
     esquerda) logo abaixo.
     Verticalmente, a caixa fica ENCOSTADA NO TOPO (dentro da parte azul
     do ceu da foto) - controlado por "--ct-hero-desktop-top" logo abaixo
     ("align-items: flex-start" + esse padding-top). Se trocar a foto e o
     ceu/area livre ficar maior ou menor, ajuste esse valor.

  2) CELULAR (telas <= 768px): a foto vira uma FAIXA FIXA no topo da
     secao (pseudo-elemento ::before) e a caixa branca fica INTEIRA
     ABAIXO da foto (nao mais em cima, sobreposta). A altura dessa
     faixa e' controlada pela variavel "--ct-hero-mobile-img-h" logo no
     inicio do bloco "@media (max-width: 768px)" abaixo - aumente ou
     diminua esse valor se a foto nova tiver outra proporcao (mais
     larga/mais alta).
*/
.ct-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: #c9cdd0;
  background-image: var(--hero-desktop, url('../img/climatur/banner-desktop.jpg?v=2'));
  background-size: cover;
  background-position: center center;
  margin-top: 34px;
}
/* Desktop: caixa branca joga pra DIREITA pra nao tampar o onibus (ver nota acima) */
.ct-hero-row { justify-content: flex-end; }
@media (min-width: 769px) {
  /* Sobe a caixa branca pra ficar dentro da parte azul do ceu da foto,
     em vez de centralizada verticalmente. Ajuste este valor se trocar a
     foto (ver nota no topo do bloco Hero). */
  .ct-hero { --ct-hero-desktop-top: 70px; align-items: flex-start; padding-top: var(--ct-hero-desktop-top); }
}

.ct-hero .container-fluid { position: relative; z-index: 2; }
.ct-hero-card {
  /* branco transparente (pedido do cliente) - ajuste o ultimo valor
     (0.85) entre 0 (invisivel) e 1 (branco solido) se quiser mudar */
  background: rgba(255,255,255,0.85);
  border-radius: 16px;
  padding: 34px 38px;
  box-shadow: 0 20px 45px rgba(4,40,60,0.25);
  display: inline-block;
  /* caixa mais estreita (pedido do cliente) pra sair de cima do onibus e
     pegar mais a parte azul de tras - ajuste se trocar a foto */
  max-width: 480px;
}
.ct-hero-tag {
  display: inline-block;
  background: var(--ct-verde);
  color: #04283c;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 18px;
}
.ct-hero h1 {
  color: var(--ct-azul-escuro);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
}
.ct-hero p.ct-hero-sub {
  color: var(--ct-cinza-texto);
  font-size: 18px;
  max-width: 520px;
  margin-bottom: 28px;
}
.ct-hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.ct-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.25s;
  font-size: 15px;
}
.ct-btn-primary { background: var(--ct-verde); color: #04283c; }
.ct-btn-primary:hover { background: var(--ct-verde-claro); color: #04283c; }
.ct-btn-whats { background: #25D366; color: #fff; }
.ct-btn-whats:hover { background: #1ebe57; color: #fff; }
.ct-btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.ct-btn-outline:hover { background: #fff; color: var(--ct-azul-escuro); }

@media (max-width: 768px) {
  /* Altura da faixa de foto no celular - ajustar se trocar a foto (ver nota no topo do bloco Hero) */
  /* --ct-hero-mobile-overlap: quanto a caixa branca "sobe" por cima da
     borda de baixo da foto (efeito de pegar so uma beiradinha da foto).
     0px = caixa totalmente abaixo da foto, sem tocar nela. */
  .ct-hero { --ct-hero-mobile-img-h: 260px; --ct-hero-mobile-overlap: 37px; }

  /* A foto deixa de ser "background" da secao inteira e vira uma faixa fixa
     no topo (::before). A caixa branca sai da area da foto e fica em fluxo
     normal, abaixo dela - por isso "display:block" e "padding-top" do
     tamanho da faixa. */
  .ct-hero {
    display: block;
    min-height: 0;
    background-image: none;
    background-color: #ffffff;
    padding-top: var(--ct-hero-mobile-img-h);
  }
  .ct-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: var(--ct-hero-mobile-img-h);
    background-image: var(--hero-mobile, url('../img/climatur/banner-mobile.jpg?v=2'));
    background-size: cover;
    background-position: center top;
  }
  /* No celular a caixa ocupa a largura toda (sobe um pouco por cima da
     borda de baixo da foto - ver --ct-hero-mobile-overlap acima) */
  .ct-hero-row { justify-content: flex-start; }
  .ct-hero-card {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 22px 24px;
    border-radius: 0;
    /* branco transparente (pedido do cliente) - ajuste o ultimo valor
       (0.85) entre 0 (invisivel) e 1 (branco solido) se quiser mudar */
    background: rgba(255,255,255,0.85);
    box-shadow: none;
    margin-top: calc(-1 * var(--ct-hero-mobile-overlap));
  }
  .ct-hero h1 { font-size: 26px; }
  .ct-hero p.ct-hero-sub { font-size: 15px; }
}

/* ---------- Titulo de secao ---------- */
.ct-section { padding: 70px 0; }
.ct-section-alt { background: var(--ct-cinza-claro); }
.ct-section-dark { background: var(--ct-azul-escuro); color: #eaf3ee; }
.ct-section-title { text-align: center; margin-bottom: 46px; }
.ct-section-title .ct-eyebrow {
  color: var(--ct-verde-escuro);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 13px;
  text-transform: uppercase;
}
.ct-section-dark .ct-section-title .ct-eyebrow { color: var(--ct-verde-claro); }
.ct-section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--ct-azul-escuro);
  margin: 8px 0 12px;
}
.ct-section-dark .ct-section-title h2 { color: #fff; }
.ct-section-title p { color: var(--ct-cinza-medio); max-width: 620px; margin: 0 auto; }
.ct-section-dark .ct-section-title p { color: #cfe3ea; }

/* ---------- Empresa / historia ---------- */
.ct-empresa-img { position: relative; }
.ct-empresa-img img {
  border-radius: 16px;
  box-shadow: var(--ct-sombra);
  width: 100%;
}
.ct-empresa-badge {
  position: absolute;
  bottom: -22px;
  right: -18px;
  background: var(--ct-verde);
  color: #04283c;
  padding: 16px 22px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  text-align: center;
  line-height: 1.15;
}
.ct-empresa-badge span { display: block; font-size: 26px; }
@media (max-width: 768px) {
  .ct-empresa-badge { right: 8px; bottom: -16px; padding: 12px 16px; }
  .ct-empresa-badge span { font-size: 20px; }
}
.ct-empresa-texto h2 { font-size: 30px; font-weight: 700; color: var(--ct-azul-escuro); margin-bottom: 18px; }
.ct-empresa-texto p { color: var(--ct-cinza-texto); font-size: 16.5px; margin-bottom: 16px; }

/* ---------- Estatisticas ---------- */
.ct-count-box { text-align: center; padding: 10px; }
.ct-count-box i { font-size: 40px; color: var(--ct-verde-claro); margin-bottom: 12px; display: block; }
.ct-count-box .ct-count-num { font-size: 40px; font-weight: 800; color: #fff; display: block; }
.ct-count-box p { color: #cfe3ea; margin-top: 6px; }

/* ---------- Servicos ---------- */
.ct-service-card {
  background: #fff;
  border-radius: 14px;
  padding: 32px 26px;
  height: 100%;
  box-shadow: var(--ct-sombra);
  border-top: 4px solid var(--ct-verde);
  transition: transform 0.25s;
}
.ct-service-card:hover { transform: translateY(-6px); }
.ct-service-card i { font-size: 36px; color: var(--ct-verde-escuro); margin-bottom: 16px; display: block; }
.ct-service-card p { margin: 0; color: var(--ct-cinza-texto); font-size: 15.5px; }

/* ---------- Frota ---------- */
.ct-frota-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--ct-sombra);
  margin-bottom: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ct-frota-card .ct-frota-img { position: relative; height: 220px; overflow: hidden; }
.ct-frota-card .ct-frota-img img { width: 100%; height: 100%; object-fit: cover; }
.ct-frota-card .ct-frota-body { padding: 18px 20px; display: flex; flex-direction: column; flex: 1; }
.ct-frota-card h4 { font-size: 18px; font-weight: 700; color: var(--ct-azul-escuro); margin-bottom: 12px; }
.ct-frota-card .ct-frota-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* Placeholder usado quando o veiculo ainda nao tem nenhuma foto cadastrada
   no admin (card da frota em index.php e foto principal em abrefoto.php) */
.ct-sem-foto {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ct-cinza-claro);
  color: var(--ct-cinza-medio);
  text-align: center;
  padding: 16px;
}
.ct-sem-foto i { font-size: 34px; }
.ct-sem-foto span { font-size: 13.5px; font-weight: 600; }
.ct-frota-btn {
  flex: 1;
  text-align: center;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.ct-frota-btn-outline { border: 2px solid var(--ct-azul-escuro); color: var(--ct-azul-escuro); }
.ct-frota-btn-outline:hover { background: var(--ct-azul-escuro); color: #fff; }
.ct-frota-btn-solid { background: var(--ct-verde); color: #04283c; }
.ct-frota-btn-solid:hover { background: var(--ct-verde-claro); color: #04283c; }

/* ---------- Diferenciais ---------- */
.ct-dif-item { text-align: center; padding: 20px; }
.ct-dif-item .ct-dif-icon {
  width: 78px; height: 78px; border-radius: 50%;
  background: var(--ct-cinza-claro);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.ct-dif-item .ct-dif-icon i { font-size: 34px; color: var(--ct-verde-escuro); }
.ct-dif-item h4 { font-size: 17px; font-weight: 700; color: var(--ct-azul-escuro); margin-bottom: 8px; }
.ct-dif-item p { color: var(--ct-cinza-medio); font-size: 14.5px; }

/* ---------- Galeria ---------- */
.ct-galeria-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--ct-sombra);
  height: 230px;
  display: block;
}
.ct-galeria-item img, .ct-galeria-item video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s;
}
.ct-galeria-item:hover img { transform: scale(1.08); }
.ct-galeria-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4,40,60,0.25);
}
.ct-galeria-play i {
  font-size: 46px; color: #fff;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}

/* ---------- CTA orcamento ---------- */
.ct-cta {
  background: linear-gradient(120deg, var(--ct-azul-escuro), var(--ct-azul-escuro-2));
  color: #fff;
  border-radius: 18px;
  padding: 50px 40px;
  text-align: center;
}
.ct-cta h2 { font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.ct-cta p { color: #cfe3ea; margin-bottom: 26px; font-size: 16px; }

/* ---------- Contato ---------- */
.ct-info-box {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--ct-sombra);
  padding: 26px;
  height: 100%;
}
.ct-info-box i { font-size: 30px; color: var(--ct-verde-escuro); margin-bottom: 12px; display: block; }
.ct-info-box h3 { font-size: 17px; font-weight: 700; color: var(--ct-azul-escuro); margin-bottom: 10px; }
.ct-info-box p, .ct-info-box a { color: var(--ct-cinza-texto); font-size: 14.5px; text-decoration: none; }
.ct-info-box a:hover { color: var(--ct-verde-escuro); }

.ct-form .form-control {
  height: auto;
  border-radius: 8px;
  border: 1px solid #dbe6e2;
  padding: 12px 14px;
  font-size: 14.5px;
}
.ct-form select.form-control { padding-top: 11px; padding-bottom: 11px; }
.ct-form textarea.form-control { height: auto; }
.ct-form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ct-azul-escuro);
  margin-bottom: 6px;
}
.ct-form .form-control:focus { border-color: var(--ct-verde); box-shadow: 0 0 0 3px rgba(111,198,31,0.15); }
.ct-form button {
  background: var(--ct-verde);
  color: #04283c;
  border: 0;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 8px;
  transition: 0.2s;
}
.ct-form button:hover { background: var(--ct-verde-claro); }

.ct-modo-teste {
  background: #fff3cd;
  color: #7a5b00;
  border: 1px solid #ffe08a;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14px;
  text-align: center;
  margin-bottom: 20px;
}

/* ---------- Rodape ---------- */
#footer { background: var(--ct-azul-escuro); }
#footer .footer-top { background: var(--ct-azul-escuro); }
#footer .credits, #footer .copyright { color: #cfe3ea !important; }
#footer .credits a, #footer .copyright a { color: #ffffff !important; text-decoration: underline; }
#footer .credits a:hover, #footer .copyright a:hover { color: var(--ct-verde-claro) !important; }
#footer .footer-top h4 { color: #fff; }
#footer .footer-top .footer-links a { color: #cfe3ea; }
#footer .footer-top .footer-links a:hover { color: var(--ct-verde-claro); }
#footer .social-links a { background: rgba(255,255,255,0.08); }
#footer .social-links a:hover { background: var(--ct-verde); color: #04283c !important; }
