/* SCROLLBAR */
* {
  scrollbar-width: thin;
  scrollbar-color: #dda36dff #24384A;
}

/* CORES GERAIS */
:root {
  --azul: #24384A;
  --bege-claro: #CAA17D;
  --bege-medio: #dda36dff;
  --offwhite: #F6EEE5;
  --texto: #1A2A35;
  --topbar-height: 38px; /* altura padrão da topbar */
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--texto);
  background-color: var(--offwhite);
  scroll-behavior: smooth;
}

/* ========================= NAVBAR / TOPBAR ========================= */

.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1040;
  backdrop-filter: blur(6px);
}

.navbar {
  position: fixed;
  width: 100%;
  top: var(--topbar-height);
  z-index: 1030;
  background: transparent;
  backdrop-filter: blur(0px);
  transition: background 0.4s, backdrop-filter 0.4s, top 0.4s;
}

.navbar.scrolled {
  background: rgba(36,56,74,0.95);
  backdrop-filter: blur(8px);
}

/* Ícones sociais */
.social-icons a:hover {
  color: var(--bege-claro);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Marca */
.navbar-brand img {
  width: 140px;
  filter: brightness(10);
}

/* Links */
.nav-link {
  color: #fff !important;
  margin: 0 12px;
  font-weight: 500;
  transition: 0.3s;
}

.nav-link:hover {
  color: var(--bege-claro) !important;
}

/* Botão Agendar */
.btn-agendar {
  background: var(--bege-claro) !important;
  color: var(--azul) !important;
  font-weight: 500 !important;
  border-radius: 30px !important;
  padding: 10px 25px !important;
  border: none !important;
  transition: 0.3s !important;
}

.btn-agendar:hover {
  background: var(--bege-medio) !important;
}

/* BOTÃO HAMBÚRGUER */
.navbar-toggler {
  border: none;
  outline: none !important;
  color: var(--offwhite);
  z-index: 1100;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler i {
  font-size: 1.8rem;
}

/* HERO */
header.hero {
  position: relative;
  height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: left;
  overflow: hidden;
}

header.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../img/banner1.jpg') center/cover no-repeat;
  z-index: 1;
}

header.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36, 56, 74, 0.55);
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
  width: 100%;
  padding: 0 5%;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero-content h2 {
  font-size: 5rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--bege-claro);
  margin-bottom: 20px;
}

.hero-content p {
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  margin-bottom: 30px;
}

.hero-buttons .btn {
  border-radius: 40px;
  padding: 12px 35px;
  margin-right: 10px;
  font-weight: 500;
}

.hero-buttons .btn-outline {
  border: 2px solid var(--bege-claro);
  color: var(--bege-claro);
  background: transparent;
}

.hero-buttons .btn-outline:hover {
  background: var(--bege-claro);
  color: var(--azul);
}

/* SEÇÕES */
section h2 {
  font-family:'Playfair Display', serif;
  font-size: 2.4rem;
  color: var(--azul);
  margin-bottom: 1.5rem;
}

section p {
  line-height: 1.8;
}

/* WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bege-claro);
  color: var(--azul);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: 0.3s;
  z-index: 1000;
}

.whatsapp-float:hover {
  background: var(--bege-medio);
  transform: scale(1.1);
}

/* FOOTER */
footer {
  background-color: var(--azul);
  color: white;
  padding: 40px 0;
  text-align: center;
  font-size: 0.95rem;
}

footer a {
  color: var(--bege-claro);
  text-decoration: none;
}

footer a:hover {
  color: var(--bege-claro);
  text-decoration: underline;
}

footer .btn-agendar:hover {
  transform: translateY(-2px);
}

/* OUTROS EFEITOS */
.challenge-box:hover {
  background: rgba(202,161,125,0.18);
  transform: translateY(-3px);
}

#servicos .d-flex:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-3px);
}

#atendimento .icon-circle:hover {
  background: rgba(202,161,125,0.25);
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.accordion-button::after {
  content: '+';
  font-weight: 600;
  color: var(--bege-claro);
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
  content: '–';
  transform: rotate(180deg);
}

.accordion-button:hover {
  background: rgba(202,161,125,0.15) !important;
  border-left: 4px solid var(--bege-claro) !important;
}

.accordion-body {
  animation: fadeIn 0.4s ease;
}

#sobre img {
  transition: all 0.5s ease;
}

#sobre img:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

.card:hover img, #sobre img:hover {
  transform: scale(1.03);
  transition: transform 0.4s ease;
}

.padding_top_redes {
  padding-left: 16%;
  padding-right: 17%;
}

.so_mostra_celular {
  display: none !important;
}

.gallery-img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}


/* ANIMAÇÃO */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(5px);}
  to {opacity: 1; transform: translateY(0);}
}

/* ========================= RESPONSIVIDADE ========================= */

/* Ajuste dinâmico da altura da topbar */
@media (max-width: 991px) {
  :root { --topbar-height: 60px; }
}
@media (min-width: 992px) {
  :root { --topbar-height: 38px; }
}

/* TOPBAR */
@media (max-width: 991px) {
  .topbar .container {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .topbar a {
    font-size: 0.85rem;
    word-break: break-word;
  }

  .topbar .social-icons {
    justify-content: center;
  }

  #navbarNav {
    background: #caa17d;
    border-radius: 17px;
    padding: 30px;
  }

  .padding_top_redes {
    padding-left: 0;
    padding-right: 0;
  } 

  .nao_mostra_celular {
    display: none !important;
  }

  .so_mostra_celular {
    display: grid !important;
  }
}

/* HERO SECTION */
@media (max-width: 991px) {
  header.hero {
    height: auto;
    padding: 200px 0 80px;
    text-align: center;
  }

  header.hero .container .row {
    flex-direction: column-reverse;
  }

  header.hero .col-lg-7 {
    width: 100%;
    text-align: center;
  }

  header.hero h1 {
    font-size: 1.1rem !important;
  }

  header.hero h2 {
    font-size: 2.4rem !important;
    line-height: 1.2;
  }

  header.hero p {
    font-size: 0.95rem;
    margin-top: 10px;
  }

  header.hero .hero-photo {
    max-width: 280px !important;
    margin-bottom: 40px;
  }

  header.hero .d-flex.flex-wrap {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn-agendar,
  .btn-outline-light {
    width: 80%;
    text-align: center;
    justify-content: center;
  }
}

/* NAVBAR MOBILE */
@media (max-width: 767px) {
  .navbar-collapse {
    background: rgba(36,56,74,0.95);
    backdrop-filter: blur(8px);
    border-radius: 0 0 10px 10px;
    padding: 15px;
  }

  .navbar-collapse.show {
    margin-top: 10px;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .nav-link {
    text-align: center;
    margin: 10px 0;
    font-size: 1rem;
    padding: 10px 0;
    width: 100%;
  }

  .navbar-brand img {
    height: 42px !important;
  }

  .navbar-toggler {
    background-color: rgba(0,0,0,0.2);
    border-radius: 5px;
  }
}

/* CELULARES MENORES */
@media (max-width: 480px) {
  .navbar {
    top: 55px;
  }

  header.hero {
    padding: 100px 0 60px;
  }

  header.hero h2 {
    font-size: 2rem !important;
  }

  .hero-photo {
    max-width: 240px !important;
  }
}
