/* ============================================================
   RINOTENK — CSS FIEL AO ORIGINAL
   Cores: #0a1924 (navy-dark), #d24223 (laranja-vermelho)
   Fontes: Roboto, Roboto Condensed
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-nav:       #0a1924;   /* Header / footer background */
  --color-theme:     #d24223;   /* Cor principal laranja */
  --color-gradient:  linear-gradient(90deg, #ba1f23 0%, #e95e22 100%);
  --color-body:      #626262;
  --color-dark-txt:  #161922;
  --color-white:     #ffffff;
  --color-bg:        #fcfcfc;
  --color-servicos:  #d24223;   /* Fundo seção serviços */
  --font-body:       'Roboto', -apple-system, sans-serif;
  --font-condensed:  'Roboto Condensed', -apple-system, sans-serif;
  --header-h:        90px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 28px;
  color: var(--color-body);
  background: var(--color-bg);
  overflow-x: hidden;
}

a { text-decoration: none; color: var(--color-theme); }
a:hover { color: var(--color-theme); }
img { max-width: 100%; display: block; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  line-height: 1.2;
}
h1 { font-size: 60px; font-weight: 700; color: var(--color-theme); line-height: 50px; }
h2 { font-size: 40px; font-weight: 500; color: var(--color-dark-txt); }
h3 { font-size: 28px; font-weight: 700; color: var(--color-dark-txt); line-height: 40px; }
h4 { font-size: 22px; font-weight: 700; color: #071129; letter-spacing: 8px; }
h5 { font-size: 18px; font-weight: 300; color: #5f6271; }

/* White text in dark sections */
.dark h1, .dark h2, .dark h3 { color: var(--color-white); }
.dark h4 { color: rgba(255,255,255,0.85); }
.dark h5 { color: rgba(255,255,255,0.9); }
.dark h5 a { color: rgba(255,255,255,0.9); }
.dark h5 a:hover { color: var(--color-white); }
.dark p, .dark { color: var(--color-white); }

/* ---- HR Dividers ---- */
.hr_narrow {
  width: 50px;
  height: 4px;
  float: left;
  border: none;
  margin: 16px 0 0 0;  /* espaço acima do traço, abaixo fica no empresa-body */
}

.hr_wide {
  text-align: center;
  margin: 0 auto 30px;
}
.hr_wide hr {
  width: 50px;
  height: 4px;
  border: none;
  display: inline-block;
  position: initial;
}

/* ============================================================
   HEADER
   ============================================================ */
#Top_bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--color-nav);
  height: var(--header-h);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: box-shadow 0.3s;
}

.top_bar_left {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

/* Logo */
.logo a { display: flex; align-items: center; }
.logo img {
  height: 50px;
  width: auto;
  padding: 5px 0;
}

/* Desktop nav */
#menu {
  display: flex;
  align-items: center;
  height: 100%;
}
#menu ul {
  display: flex;
  list-style: none;
  gap: 0;
  height: 100%;
}
#menu ul li {
  height: 100%;
  display: flex;
  align-items: center;
}
#menu ul li a {
  font-family: var(--font-condensed);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-white);
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
#menu ul li a:hover { color: var(--color-theme); }

/* Hamburger */
.responsive-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;   /* altura total do ícone */
  pointer-events: none;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: 0.3s;
  flex-shrink: 0;
}

/* Mobile menu overlay */
#menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,25,36,0.97);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#menu-overlay.open {
  opacity: 1;
  pointer-events: all;
}
#menu-overlay nav ul {
  list-style: none;
  text-align: center;
}
#menu-overlay nav ul li {
  margin: 12px 0;
}
#menu-overlay nav ul li a {
  font-family: var(--font-condensed);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--color-white);
  text-transform: uppercase;
  transition: color 0.2s;
}
#menu-overlay nav ul li a:hover { color: var(--color-theme); }
#closeMenu {
  position: absolute;
  top: 24px; right: 24px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

/* ============================================================
   SLIDER / HERO
   ============================================================ */
#mfn-main-slider {
  margin-top: var(--header-h);
  position: relative;
  overflow: hidden;
  background: var(--color-nav);
  /* Altura baseada nas imagens originais (1080x720) */
  height: 720px;
}

.slides-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.rs-slide {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.rs-slide.active {
  opacity: 1;
  pointer-events: all;
}

.slide-bg { display: none; }

.slide-content {
  display: grid;
  grid-template-columns: 45% 55%;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

/* ---- Coluna esquerda: fundo texturizado igual ao original ---- */
.slide-text-col {
  background-image: url('assets/imagens/rinotenk-banner2-e1625791734595.jpg');
  background-size: cover;
  background-position: left center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* padding-left: alinha com a logo — mesma margem do .container */
  padding: 60px 50px 80px max(20px, calc((100vw - 1080px) / 2 + 20px));
}

/* overlay escuro sobre o fundo para manter legibilidade */
/* overlay removido a pedido */

.slide-tag {
  font-family: var(--font-condensed);
  font-size: 44px;
  font-weight: 700;
  line-height: 44px;
  color: var(--color-white);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.slide-desc {
  font-family: var(--font-condensed);
  font-size: 20px;
  line-height: 25px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 36px;
}

.rev-btn {
  display: inline-block;
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-white);
  background: var(--color-gradient);
  padding: 12px 32px;
  border-radius: 5px;
  align-self: flex-start;
  transition: filter 0.2s, transform 0.15s;
}
.rev-btn:hover {
  filter: brightness(1.1);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ---- Coluna direita: imagem proporcional sem esticar ---- */
.slide-img-col {
  position: relative;
  overflow: hidden;
}
.slide-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Arrows */
.tp-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.5);
  color: var(--color-white);
  border: none;
  width: 40px;
  height: 40px;
  font-size: 28px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
}
.tp-arrow:hover { background: rgba(0,0,0,0.8); }
.tp-leftarrow { left: 30px; }
.tp-rightarrow { right: 30px; }

/* Bullets */
.tp-bullets {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}
.tp-bullet {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #7f7f7f;
  border: 5px solid var(--color-white);
  box-shadow: 0 0 3px 1px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background 0.2s;
}
.tp-bullet.selected {
  background: #565656;
  border-color: var(--color-white);
}

/* ============================================================
   EMPRESA SECTION
   ============================================================ */
.mcb-section-empresa {
  background: var(--color-bg);
  padding: 120px 0 80px;
  position: relative;
}

/* Decorations */
.deco-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 51px;
  background-size: cover;
  background-position: center top;
}
.deco-empresa {
  background-image: url('assets/imagens/rinotenk-topo1.jpg');
}
.deco-servicos {
  background-image: url('assets/imagens/rinotenk-topo2.jpg');
}
.deco-contato {
  background-image: url('assets/imagens/rinotenk-topo3.png');
}

.deco-bot {
  position: absolute;
  bottom: 0; left: 0; right: 0;
}
.deco-mapa-bot {
  height: 49px;
  background-image: url('assets/imagens/rinotenk-topo4.png');
  background-size: cover;
  background-position: center bottom;
}

.section-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.wrap-empresa { align-items: center; }

.wrap.half { flex: 1 1 50%; }

.empresa-body {
  clear: both;
  padding-top: 30px;  /* espaço entre traço laranja e texto "Desde 2019" */
}
.empresa-body p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 28px;
  color: var(--color-body);
}

.empresa-img-wrap img {
  width: 100%;
  max-width: 498px;
  height: auto;
}

/* Marcas slider */
.marcas-outer {
  margin-top: 50px;
  position: relative;
  padding: 0 50px;
}
.marcas-track-wrap {
  overflow: hidden;
  position: relative;
}
.marcas-track {
  display: flex;
  gap: 0;
  will-change: transform;
  transition: transform 0.5s ease;
}
.marca {
  flex: 0 0 calc(100% / 3);
  max-width: calc(100% / 3);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;   /* sem borda */
  box-sizing: border-box;
  background: transparent;
}
.marca img {
  max-height: 90px;
  width: 100%;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter 0.3s;
}
.marca:hover img { filter: grayscale(0%); }

/* Setas do carrossel de marcas */
.marcas-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  background: #7e7e7e;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 26px;        /* ícone maior */
  font-weight: 300;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.2s;
  line-height: 1;
}
.marcas-arrow:hover { background: #555; }
.marcas-prev { left: 0; }
.marcas-next { right: 0; }

/* ============================================================
   SERVIÇOS SECTION
   ============================================================ */
.mcb-section-servicos {
  background: var(--color-servicos);
  padding: 120px 0 80px;
  position: relative;
}

.section-header {
  margin-bottom: 50px;
}
.section-header.align_center { text-align: center; }
.section-header.align_center .hr_narrow {
  float: none;
  display: inline-block;
  background-color: var(--color-white);
}

.servico-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 60px;
}
.servico-row:last-child { margin-bottom: 0; }

.servico-row.reverse { flex-direction: row-reverse; }

.half {
  flex: 1 1 50%;
  max-width: 50%;
}

.servico-img-col img {
  width: 100%;
  display: block;
}

.servico-txt-col h3 {
  color: var(--color-white);
  font-size: 28px;
  margin-bottom: 16px;
}
.servico-txt-col p {
  color: var(--color-white);
  font-size: 16px;
  line-height: 28px;
  margin-bottom: 10px;
}
/* quando imagem está à esq, texto recebe padding-left extra */
.servico-row .servico-img-col + .servico-txt-col div {
  padding-left: 40px !important;
}
.servico-txt-col.align_right div { text-align: right; }

/* ============================================================
   CONTATO SECTION
   ============================================================ */
.mcb-section-contato {
  background-image: url('assets/imagens/rinotenk-bg.jpg');
  background-color: var(--color-nav);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding: 120px 0 80px;
  position: relative;
}

.contato-body { text-align: center; }
.contato-body > p {
  color: var(--color-white);
  margin-bottom: 30px;
  font-size: 16px;
}

.contato-form-wrap {
  max-width: 750px;
  margin: 0 auto;
}

.contato-form { width: 100%; }

.form-cols-row {
  display: flex;
  gap: 20px;
  margin-bottom: 0;
}
.form-col-half {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contato-form input[type="text"],
.contato-form input[type="email"],
.contato-form input[type="tel"],
.contato-form textarea {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-white);
  background: transparent;
  border: 1px solid var(--color-white);
  padding: 15px;
  width: 100%;
  margin-bottom: 10px;
  outline: none;
  border-radius: 0;
  transition: border-color 0.2s, color 0.2s;
}
.contato-form input::placeholder,
.contato-form textarea::placeholder { color: var(--color-white); opacity: 0.8; }

.contato-form input:focus,
.contato-form textarea:focus {
  border-color: var(--color-white);
  color: var(--color-theme);
}

.form-col-full textarea {
  resize: vertical;
  width: 100%;
}

.form-acceptance {
  text-align: left;
  margin: 10px 0;
}
.form-acceptance label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  line-height: 1.6;
}
.form-acceptance input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--color-theme);
}

.form-submit { text-align: right; margin-top: 8px; }

.btn-submit {
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-white);
  background: var(--color-gradient);
  border: none;
  padding: 12px 32px;
  border-radius: 5px;
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
}
.btn-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* ============================================================
   MAPA
   ============================================================ */
.section-mapa {
  position: relative;
  background: var(--color-bg);
  padding: 0;
  margin: 0;
  overflow: visible;
}
.section-mapa iframe { display: block; margin: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
#Footer {
  background: var(--color-nav);
}

.widgets_wrapper {
  padding: 70px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-widgets {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.footer-col {
  flex: 1;
  font-family: var(--font-condensed);
  font-size: 20px;
  font-weight: 300;
}

.footer-col h5 {
  font-family: var(--font-condensed);
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  margin-bottom: 10px;
  line-height: 1.4;
  text-transform: none;
}
.footer-col h5 a {
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.footer-col h5 a:hover { color: var(--color-white); }

.tel-num { font-size: 24px; }

.instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 35px;
  margin-top: 12px;
  background: var(--color-gradient);
  transition: opacity 0.2s;
}
.instagram-link:hover { opacity: 0.85; }

/* Footer copy */
.footer_copy {
  padding: 20px 0;
}
.footer-copy-row {
  display: flex;
  justify-content: center;
  align-items: center;
}
.copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.copyright span {
  font-size: 12px;
  color: #65666c;
}
.novo-ideia {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.novo-ideia img {
  display: inline-block;
  vertical-align: middle;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.4s;
}
.novo-ideia:hover img {
  opacity: 1;
  transform: rotate(360deg);
}

/* ============================================================
   JOINCHAT / WHATSAPP
   ============================================================ */
.joinchat {
  position: fixed;
  bottom: 60px;
  right: 30px;
  z-index: 999;
}
.joinchat__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-gradient);
  box-shadow: 0 4px 16px rgba(186,31,35,0.4);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.joinchat__button:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(186,31,35,0.5);
}
.joinchat__tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-nav);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 13px;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.joinchat__button:hover .joinchat__tooltip { opacity: 1; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  #mfn-main-slider { height: 560px; }
  .slide-text-col { padding: 40px 30px 40px 30px; }  /* override do calc em telas médias */
  .slide-tag { font-size: 32px; line-height: 36px; }
  .slide-desc { font-size: 17px; }
  .marca { flex: 0 0 calc(100% / 3); max-width: calc(100% / 3); }
}

@media (max-width: 900px) and (min-width: 768px) {
  #mfn-main-slider { height: 460px; }
  .slide-tag { font-size: 26px; line-height: 30px; }
  .slide-desc { font-size: 15px; }
}

@media (max-width: 900px) {
  .section-row { flex-direction: column; gap: 30px; }
  .wrap.half { flex: none; width: 100%; max-width: 100%; }
  .empresa-img-wrap img { max-width: 100%; }

  /* Serviços: imagem sempre acima, texto abaixo */
  .servico-row,
  .servico-row.reverse { flex-direction: column; }
  .servico-img-col  { order: 1; }   /* imagem: 1º */
  .servico-txt-col  { order: 2; }   /* texto:  2º */

  /* Zera padding-left extra (que era para afastar do desktop) */
  .servico-txt-col div,
  .servico-txt-col .align_left div {
    padding: 20px !important;
  }
  .servico-txt-col.align_right div { text-align: left; }

  .half { flex: none; max-width: 100%; width: 100%; }
  .footer-widgets { flex-direction: column; gap: 30px; }
  .form-cols-row { flex-direction: column; gap: 0; }
}

@media (max-width: 767px) {
  :root { --header-h: 68px; }

  h1 { font-size: 36px; line-height: 36px; }
  h3 { font-size: 22px; }
  h4 { font-size: 16px; letter-spacing: 5px; }

  /* Show hamburger, hide desktop nav */
  .responsive-menu-toggle { display: flex; }
  #menu { display: none; }

  /* Slider mobile */
  #mfn-main-slider {
    height: auto;
    min-height: auto;
  }
  .slides-container {
    height: auto;
    position: relative;
  }
  .rs-slide {
    position: relative;
    opacity: 1;
    display: none;
    flex-direction: column;
  }
  .rs-slide.active { display: flex; }
  .slide-content {
    grid-template-columns: 1fr;
  }
  .slide-img-col {
    height: 250px;
    order: -1;
  }
  .slide-text-col {
    padding: 36px 24px 40px;
    order: 1;
  }
  .slide-tag { font-size: 26px; }
  .slide-desc { font-size: 16px; line-height: 22px; }
  .tp-arrow { display: none; }

  /* Sections */
  .mcb-section-empresa,
  .mcb-section-servicos,
  .mcb-section-contato { padding: 70px 0 50px; }

  /* Marcas — 1 por vez no mobile */
  .marcas-outer { padding: 0 44px; }
  .marca {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Footer */
  .footer-copy-row { text-align: center; }
  .copyright { justify-content: center; }
}

@media (max-width: 480px) {
  /* marcas: mantém 1 por vez, sem wrap */
  .marcas-outer { padding: 0 44px; }
  .marca { flex: 0 0 100%; max-width: 100%; }
  h1 { font-size: 30px; line-height: 30px; }
  .slide-tag { font-size: 22px; }
}

@media (min-width: 768px) {
  #menu { display: flex !important; }
  .responsive-menu-toggle { display: none !important; }
}

/* ---- Mensagem de retorno do formulário ---- */
.form-msg {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--font-body);
  text-align: center;
}
.form-msg--sucesso {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: #ffffff;
}
.form-msg--erro {
  background: rgba(186,31,35,0.3);
  border: 1px solid rgba(186,31,35,0.6);
  color: #ffcccc;
}
