@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --custom-primary: #f3ac16;
  --custom-secundary: #223146;
  --black: #222;
  --font-family: 'Poppins', var(--bs-font-sans-serif);
}

.btn-custom-primary {
  background-color: var(--custom-primary);
  border-color: var(--custom-primary);
  color: #fff;
}

.btn-custom-primary:hover,
.btn-custom-primary:focus,
.btn-custom-primary:active {
  background-color: var(--custom-secundary) !important;
  border-color: var(--custom-secundary) !important;
  color: #fff !important;
  filter: brightness(0.9) !important;
}

body {
  font-family: var(--font-family);
}

h1 {
  color: var(--custom-secundary);
  font-size: 55px;
  font-weight: 700;
}

h2 {
  color: var(--custom-secundary);
  font-size: 39px;
  font-weight: 600;
}

p {
  color: var(--black);
}

section {
  padding: 80px 0px;
}

.bt a {
  text-decoration: none;
  color: white;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  border: none;
  border-radius: 12px;
  background-color: var(--custom-secundary);
  padding: 15px 30px;
}

/* navbar */
.navbar {
  background-color:white;
}

.logo {
  width: 120px;
}

.nav-link {
  color: var(--black);
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease-in-out;
}

.nav-link:hover {
  border-bottom: 2px solid var(--custom-secundary);
}

.hero-section {
  background-image: url('../images/banner-polestar-pilates-cor.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.home {
  padding: 110px 0px;
}

.formulario {
  display: grid;
  place-items: center;
}

.formulario form {
  width: 80%;
}

.formulario h2 {
  color: var(--custom-secundary);
}

/* seção sobre */
.img-about {
  display: grid;
  place-items: center;
}

@media (max-width: 768px) {
  .about .row {
    display: flex;
    flex-direction: column-reverse; /* inverte a ordem no mobile */
  }
  
}



.formacao {
  background-color: var(--custom-secundary);
}

.formacao .content h2, .formacao .content p {
  color: white;
}

.porque {
  background-image: url('../images/banner-polestar-pilates-cor.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.porque .box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.porque .box img {
  width: 120px;
}

.porque .bt {
  display: grid;
  place-items: center;
}

/* seção carreiras */
.img-carreiras {
  display: grid;
  place-items: center;
  }

  /* seção dúvidas */
  .duvidas {
    background-image: url("../images/banner-polestar-pilates-cta.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .duvidas .content h2 {
    color: #fff;
  }

  .duvidas .bt a {
    background-color: transparent;
    border: 2px solid white;
  }

  footer {
  background-color: white;
}

footer .footer-logo {
  display: flex;
  align-items: center;
}

footer h5 {
  color: var(--custom-secundary);
}

footer a {
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--custom-secundary);
}

footer .fab {
  transition: all 0.3s ease;
}

footer .fab:hover {
  color: var(--custom-secundary);
  transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
======================================== */

/* Tablets e dispositivos médios (até 991px) */
@media (max-width: 991.98px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  section {
    padding: 60px 0;
  }

  .home {
    padding: 80px 0;
  }

  .hero-headline .content {
    text-align: center;
    margin-bottom: 40px;
  }

  .formulario form {
    width: 95%;
  }

  .img-about,
  .img-formacao,
  .img-carreiras {
    margin-top: 40px;
  }

  .porque .col {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 30px;
  }

  .bt a {
    font-size: 16px;
    padding: 12px 25px;
  }
}

/* Smartphones e tablets pequenos (até 767px) */
@media (max-width: 767.98px) {
  h1 {
    font-size: 32px;
    line-height: 1.2;
  }

  h2 {
    font-size: 26px;
    line-height: 1.3;
  }

  p {
    font-size: 15px;
  }

  section {
    padding: 40px 0;
  }

  .home {
    padding: 60px 0;
  }

  .logo {
    width: 100px;
  }

  .formulario form {
    width: 100%;
  }

  .formulario h2 {
    font-size: 22px;
  }

  .content {
    text-align: center;
  }

  .about .content,
  .formacao .content,
  .carreiras .content {
    text-align: left;
  }

  .about .bt,
  .carreiras .bt {
    text-align: center;
  }

  .porque .col {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 25px;
  }

  .porque .box {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .porque .box img {
    width: 120px;
    flex-shrink: 0;
  }

  .porque .box p {
    margin: 0;
  }

  .bt a {
    font-size: 15px;
    padding: 12px 20px;
    display: inline-block;
  }

  footer .row > div {
    text-align: left;
    margin-bottom: 30px;
  }

  footer .d-flex {
    justify-content: left;
  }

  footer .footer-logo img {
    max-width: 180px !important;
  }
}

/* Smartphones pequenos (até 575px) */
@media (max-width: 575.98px) {
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  p {
    font-size: 14px;
  }

  .home {
    padding: 50px 0;
  }

  .hero-section {
    background-position: 65% center;
  }

  .formulario h2 {
    font-size: 20px;
  }

  .img-formacao {
    margin-bottom: 32px;
  }

  .porque .box img {
    width: 100px;
  }

  .bt a {
    width: 100%;
    max-width: 280px;
  }
}

/* =========================
   Correções MOBILE específicas
   ========================= */
@media (max-width: 767.98px) {

  /* 1) Inverter imagem/texto (força com !important para evitar override) */
  .about .row {
    display: flex !important;
    flex-direction: column-reverse !important;
  }

  /* Remover padding superior da section ABOUT e reduzir padding geral */
  section.about {
    padding-top: 12px !important;    /* ajuste entre 0 e 20px conforme quiser */
    padding-bottom: 12px !important; /* mantém algum espaçamento, se preferir zerar coloque 0 */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /*  Zerar margin extra adicionado em .img-about para breakpoints maiores */
  .img-about {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Garantir que o formulário não deixe margin-bottom extra */
  .formulario,
  .formulario form,
  .form-section,
  .form-wrapper {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  /*  Se houver um elemento spacer entre form e about (builders costumam usar) */
  .spacer,
  .space,
  .gap {
    display: none !important;
  }

  /* Certificar que a imagem esteja colada sem gaps internos */
  .about .img-about img {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 767px) {
  .home {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }
}

/* Espaçamento entre imagem e título mobile */
@media (max-width: 767.98px) {
  .about .img-about img {
    margin-bottom: 14px !important; 
    display: block;
    max-width: 100%;
    height: auto;
  }

  .about .content h2,
  .about .content h1,
  .about h2,
  .about h1 {
    margin-top: 12px !important;   
    margin-bottom: 12px !important;
  }

  .about .content,
  .about .img-about {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}

@media (max-width: 767.98px) {
  html, body {
    overflow-x: hidden !important;
  }

  * {
    max-width: 100% !important;
    box-sizing: border-box;
  }
}
