/* =========================
   Variables & Reset
   ========================= */
:root{
  --max-width: 1200px;
  --gap: 1.25rem;
  --brand: #007bff;
  --bg-muted: #084d6e;
  --text: #222;
  --muted: #6b6f76;
  --radius: 8px;
  --container-padding: 1rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-family: Inter, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial; color: var(--text); }
body { min-height: 100vh; background: #fff; line-height: 1.5; }

/* small helper */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--container-padding); }

/* utility for screen-reader-only text */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* =========================
   NAVBAR
   ======================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 1000;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  padding: 0;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 6px 16px rgba(16,24,40,0.08);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 1rem;
}


/* menu - desktop */
.navbar-menu {
  display: flex;
  gap: 1rem;
  list-style: none;
  align-items: center;
}

.navbar-menu a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: background 0.18s, color 0.18s, transform 0.08s;
  white-space: nowrap;
}
.navbar-menu.scrolled a{
  color: var(--text);
}

.navbar-menu a:hover,
.navbar-menu a:focus {
  color: var(--brand);
  background: rgba(0,123,255,0.06);
  outline: none;
}

/* hamburger */
.navbar-toggle {
    display: none;
    background: transparent;
    padding: 10px;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: black;
    transition: all 0.3s ease-in-out;
}

/* add top padding to content so fixed navbar doesn't overlap 
main { padding-top: 88px; }*/

/* =========================
   HERO
   ========================= */
.hero {
  height: clamp(56vh, 72vh, 90vh);
  display: flex;
  align-items: center;
  position: relative;
  background-image: url('../assets/img/hero_background2.webp');
  background-position: center;
  background-size: cover;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,77,110,0.45) 0%, rgba(8,77,110,0.25) 40%, rgba(8,77,110,0.45) 100%);
  z-index: 0;
}

.hero-content {
  z-index: 1;
  display: flex;
  align-items: center;      /* Alinha verticalmente logo e título */
  gap: 1rem;                /* Espaço entre logo e título */
  flex-wrap: wrap;
}

.logo-icon-title{
  width: clamp(50px, 10vw, 120px);              /* Ajuste o tamanho da logo */
  height: clamp(50px, 10vw, 120px);
  flex-shrink: 0; 
}

.hero-texts {
  display: flex;
  flex-direction: column;   /* Mantém título, subtítulo e botão em coluna */
}

.hero h1 {
  white-space: nowrap;
  font-size: 4vw; /* escala 100% pela tela */
  max-width: 100%;
}

.hero-sub {
  font-size: clamp(1rem, 2.3vw, 1.125rem);
  color: rgba(255,255,255,0.92);
  margin-bottom: 1rem;
}

.cta {
  display: inline-block;
  padding: 0.6rem 1rem;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.18s;
}

.cta:hover { background: #0062d6; }

.hero-content h1,
.hero-content p,
.hero-content .cta {
  margin: 0;                /* Remove margens padrão */
}

/* =========================
   ABOUT
   ========================= */
.about-us {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 4vw, 3.5rem) var(--container-padding);
}

.about-us-text { flex: 1 1 500px; }
.about-us-text h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.about-us-text p { color: var(--muted); margin-bottom: 0.75rem; }

.about-us-img { flex: 1 1 360px; display: flex; justify-content: center; }
.about-us-img img { width: 100%; max-width: 520px; border-radius: var(--radius); object-fit: cover;}

/* =========================
   VALUES
   ========================= */
.values-section { background: var(--bg-muted); padding: clamp(1rem, 3vw, 2.5rem) 0; }
.values { display: flex; gap: 1.25rem; justify-content: space-between; align-items: stretch; margin-top: 1rem; }
.values-card {
  flex: 1 1 220px;
  background: #fff;
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(16,24,40,0.04);
  text-align: center;
}
.values-card img { width: 72px; height: 72px; object-fit: cover; margin-bottom: 0.5rem; }
.values-card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.values-card p { color: var(--muted); font-size: 0.95rem; }

/* =========================
   SERVICES (SWIPER)
   ========================= */
.services { padding: clamp(1.5rem, 3.5vw, 3rem) 0; background: #fff; }
.center-title { text-align: center; margin-bottom: 1rem; }
.center-title.white-title{color: white;}

/* Swiper container adjustments */
.services-swiper { padding: 1rem 0; }
.services-card {
  background: linear-gradient(180deg, #fff, #fbfdff);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
}
.services-card img { width: 100%; max-width: 260px; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px;}
.services-card h3 { font-size: 1.05rem; margin-top: 0.25rem; }
.services-card p { color: var(--muted); font-size: 0.95rem; }

/* fine-tune pagination/buttons */
.swiper-pagination { margin-top: 1rem; }
.swiper-button-prev, .swiper-button-next {
  color: var(--text);
  background: rgba(255,255,255,0.9);
  border-radius: 999px;
  width: 40px; height: 40px;
  box-shadow: 0 6px 16px rgba(16,24,40,0.06);
}

/* =========================
   CONTACT FORM
   ========================= */
.contact-section { background: var(--bg-muted); padding: clamp(1.25rem, 3.5vw, 3rem) 0; }
.contact-form { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(0.75rem, 1.4vw, 1.1rem); padding: 0 0.25rem; }

.form-row { display: flex; gap: 1rem; flex-direction: column; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-weight: 600; margin-bottom: 0.35rem; color: white;}
.form-group input, .form-group textarea {
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  border: 1px solid #d7dbe0;
  font-size: 1rem;
  background: #fff;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0,123,255,0.07);
}

.form-group textarea { min-height: 140px; resize: none;}

.form-actions { display: flex; justify-content: flex-end; }
.btn-primary {
  background: var(--brand);
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}
.btn-primary:hover { background: #0062d6; }

.btn-primary:disabled{background-color: grey;}

.btn-primary.sucess{background-color: #25D366;}

.btn-primary.error{background-color: red;}

/* =========================
   FOOTER
   ========================= */
.footer { background: #111; color: #ddd; padding: 2rem 0 1.5rem;}
.footer-container { display: flex; gap: 2rem; justify-content: space-between; flex-wrap: wrap; }
.footer-section { flex: 1 1 240px; }
.footer-section h3, .footer-section h4 { color: #fff; margin-bottom: 0.6rem; }
.footer-section a { color: #cfcfcf; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.04); margin-top: 1.5rem; padding-top: 1rem; text-align: center; font-size: 0.9rem; color: #aaa; }

/* =========================
   Responsiveness
   ========================= */
@media (min-width: 768px) {
  .navbar-toggle { display: none; }
  .navbar-menu { display: flex; }

  .form-row { flex-direction: row; }
  .form-row .form-group { flex: 1; }
  
}

@media (max-width: 767px) {
  .navbar-toggle { display: block; }
  .navbar-menu {
    display: none;
    position: fixed;
    right: 0;
    top: 72px;
    width: 260px;
    height: calc(100vh - 72px);
    background: #fff;
    box-shadow: -6px 12px 36px rgba(16,24,40,0.12);
    padding: 1.75rem;
    flex-direction: column;
    gap: 1rem;
    z-index: 1500;
  }
  .navbar-toggle.active .bar:nth-child(2){
        opacity: 0;
  }
  .navbar-toggle.active .bar:nth-child(1){
        transform: translateY(8px) rotate(45deg);
  }
    .navbar-toggle.active .bar:nth-child(3){
        transform: translateY(-8px) rotate(-45deg);
  }

  .navbar-menu.active { display: flex; }
  .navbar-menu a { color: var(--text); }

  .values { flex-direction: column; }
  .about-us { flex-direction: column; text-align: center; }
  .about-us-img { order: -1; }
}

/* ensure swiper slides keep good min width on small screens */
.services-swiper .swiper-slide {
  min-height: 320px;
  display: block; /* REMOVER o flex aqui */
}

.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1500;
  background-color: #25D366;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

.whatsapp-button:hover {
  transform: scale(1.1);
}

.whatsapp-button img {
  width: 32px;
  height: 32px;
  margin-right: 10px; /* espaçamento entre o ícone e o texto */
}

.whatsapp-text {
  color: white;
  font-size: 14px;
  font-weight: bold;
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
}
