/* =====================
   BASE & VARIABLES
   ===================== */
:root {
  --green-700: #015227;
  --green-600: #01823e;
  --green-500: #25d366;
  --green-400: #1da851;
  --gray-900: #1e1e1e;
  --gray-700: #333;
  --gray-200: #f4f4f4;
  --white: #ffffff;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-full: 100vmax;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 3px 8px rgba(0,0,0,.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
  scroll-padding-top: 50px; /* ou ajuste conforme altura da navbar */
}
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--gray-200);
  color: var(--gray-700);
  line-height: 1.6;
  scroll-padding-top: 80px;
  width: 100%;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* =====================
   NAVBAR E HERO (NOVA)
   ===================== */
.navbar {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 48px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.09);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}
.navbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.main-logo-img {
  height: 64px;
  width: 64px;
  object-fit: contain;
}
.main-logo-text {
  font-size: 1.42rem;
  font-weight: 700;
  color: #232323;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-top: 3px;
}
.menu {
  display: flex;
  gap: 2.4rem;
}
.menu a {
  font-size: 1.04rem;
  font-weight: 500;
  color: #232323;
  text-decoration: none;
  transition: color .18s;
}
.menu a:hover {
  color: #25d366;
}
.whatsapp-button {
  background: #25d366;
  color: #fff;
  padding: 0.74rem 1.9rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1.01rem;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 1px 4px rgba(37,211,102,0.13);
  border: none;
  outline: none;
  text-decoration: none !important;
}



.whatsapp-icon {
  background: url('https://upload.wikimedia.org/wikipedia/commons/6/6b/WhatsApp.svg') no-repeat center/1.1em auto;
  width: 1.1em;
  height: 1.1em;
  display: inline-block;
  vertical-align: middle;
}
.hamburger { display:none; cursor:pointer; font-size:1.6rem; }

@media (max-width: 900px) {
  .navbar { padding: 15px 14px; }
  .main-logo-img { height: 40px; width: 40px; }
}
@media (max-width: 768px) {
  .menu { gap: 1.3rem; }
  .whatsapp-button { padding: 0.74rem 1.3rem; font-size: 0.97rem; }
}

/* HERO/BANNER (SOMENTE NOVA) */
.hero-especializado {
  position: relative;
  background: url('../assets/img/12.jpg') center/cover no-repeat;
  min-height: 720px;
  display: flex;
  align-items: center;
  color: #fff;
  /* REMOVE qualquer padding-left aqui */
}

.hero-especializado::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,36,19,0.87) 48%, rgba(10,36,19,0.26) 100%);
  z-index: 0;
}
.hero-especializado .container {
  position: relative;
  z-index: 1;
  width: 100%;
  /* Faz o conteúdo ocupar altura toda do banner, se quiser centralizar verticalmente */
  display: flex;
  align-items: center;
}

.hero-especializado .hero-content {
  text-align: left;
  max-width: 600px;
  width: 100%;
  margin: 0;
}
.hero-especializado h1 {
  font-size: 3rem;
  font-weight: 700;
  margin: 0.9rem 0 1.1rem 0;
  text-shadow: 1px 1px 8px rgba(0,0,0,0.22);
  line-height: 1.12;
}
.tag-especializado {
  font-weight: 700;
  font-size: 1.07rem;
  color: #fff;
  background: rgba(10,36,19,0.19);
  padding: 6px 20px;
  border-radius: 25px;
  letter-spacing: 0.01em;
  display: inline-block;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.hero-especializado .subline {
  margin-bottom: 28px;
  font-size: 1.11rem;
  color: #e0e0e0;
  line-height: 1.5;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.15);
}
.hero-buttons {
  display: flex;
  gap: 18px;
  margin-top: 8px;
}
.btn-call, .btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  background: #01b074;
  color: #fff;
  border: none;
  outline: none;
  border-radius: 100px;
  padding: 0.8rem 2rem;
  text-decoration: none;
  transition: background .23s;
  box-shadow: 0 1px 6px rgba(1,176,116,0.12);
}
.btn-whatsapp { background: #25d366; }
.btn-call:hover, .btn-whatsapp:hover {
  filter: brightness(1.09);
  box-shadow: 0 2px 9px rgba(1,176,116,0.18);
}
.icon-phone {
  display: inline-block;
  background: url('https://cdn-icons-png.flaticon.com/512/724/724664.png') no-repeat center/contain;
  width: 1.1em;
  height: 1.1em;
}
.icon-whatsapp {
  display: inline-block;
  background: url('https://upload.wikimedia.org/wikipedia/commons/6/6b/WhatsApp.svg') no-repeat center/contain;
  width: 1.1em;
  height: 1.1em;
}
@media (max-width: 900px) {
  .hero-especializado {
    min-height: 400px;
    padding-left: 4vw;
  }
  .hero-especializado h1 { font-size: 2.1rem; }
  .hero-especializado .hero-content {
    max-width: 99vw;
    padding-right: 16px;
  }
}
@media (max-width: 700px) {
  .hero-especializado {
    min-height: 320px;
    padding: 0 10px;
  }
  .hero-especializado .hero-content {
    text-align: left;
    padding-right: 0;
    max-width: 100vw;
  }
  .hero-especializado h1 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
  }
}

/* =====================
   BANNER STRIP
   ===================== */
.banner-strip {
  background: var(--green-600);
  color: var(--white);
  text-align: center;
  padding: .75rem .5rem;
  font-weight: 600;
  letter-spacing: .4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =====================
   SECTIONS GENERIC
   ===================== */
section {
  padding: 3.5rem 1.25rem;
  max-width: 1200px;
  margin-inline: auto;
}
section h2 {
  font-size: 2rem;
  text-align: center;
  color: var(--green-600);
  margin-bottom: 2rem;
}

/* =====================
   CARDS (3 col)
   ===================== */
.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
}
.card {
  background: var(--white);
  padding: 1.8rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.card h3 { color: var(--green-600); margin-bottom: .6rem; font-size: 1.25rem; }
.card p { font-size: .95rem; line-height: 1.5; }

/* =====================
   FEATURE ROW (image + text)
   ===================== */
.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
  justify-content: center;
}
.feature-row img {
  flex: 1 1 480px;
  max-width: 520px;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.feature-content {
  flex: 1 1 380px;
  max-width: 500px;
}
.feature-content h3 {
  font-size: 2rem;
  color: var(--green-600);
  margin-bottom: 1rem;
}
.feature-content p { margin-bottom: 1.5rem; }
.btn-dark {
  display: inline-block;
  background: var(--green-600);
  color: var(--white);
  padding: .75rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: background .25s;
}
.btn-dark:hover { background: var(--green-700); }

/* =====================
   GALLERY GRID
   ===================== */
.gallery-grid {
  background: #0f5038;
  padding-block: 4rem 3.5rem;
}
.gallery-grid p { color: #d5d5d5; margin-bottom: 2.5rem; text-align:center; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px,1fr));
  gap: 1rem;
}
.grid img {
  height: 220px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* =====================
   SLIM CARDS (serviços)
   ===================== */
.slim-cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
}
.slim-card {
  background: var(--white);
  border:1px solid #e5e5e5;
  border-radius: var(--radius-md);
  padding: 2rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
}
.slim-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.slim-card img {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  margin-inline: auto;
  margin-bottom: 1rem;
  display: block;
}
.slim-card h4 { color: var(--green-600); margin-bottom:.75rem; font-size:1.1rem; }
.slim-card p { font-size:.95rem; line-height:1.55; }

/* =====================
   CONTACT SECTION
   ===================== */
.contact {
  background: var(--green-600);
  color: var(--white);
  text-align: center;
  padding: 4rem 1.5rem;
}
.contact h2 { color: var(--white); margin-bottom:1.2rem; }
.contact a {
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  background: var(--green-500);
  color:var(--white);
  padding:.8rem 2rem;
  border-radius: var(--radius-full);
  font-weight:600;
  text-decoration:none;
  transition: background .25s;
}
.contact a:hover { background: var(--green-400); }

/* =====================
   WHATSAPP FLOAT
   ===================== */
#whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 64px;
  height: 64px;
  background: var(--green-500);
  border-radius: var(--radius-full);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: var(--shadow-md);
  transition: box-shadow .25s, transform .25s;
  z-index: 10000;
  padding: 8px;
  box-sizing: border-box;
}
#whatsapp-float:hover { box-shadow: 0 0 15px rgba(37,211,102,.7); transform: scale(1.05); }
#whatsapp-float img { width:34px; height:34px; }

/* =====================
   FOOTER
   ===================== */
footer {
  background: var(--green-700);
  color: var(--white);
  text-align: center;
  padding: 2rem 1rem;
  font-size: .9rem;
}

/* =====================
   UTILITIES
   ===================== */
.container { max-width: 1200px; margin-inline:auto; padding-inline:1.25rem; }
.hide { display:none !important; }
.convenios-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding: 0 5%;
}
.logo {
  width: 22%;              /* 4 por linha com espaçamento */
  height: 90px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  display: block;
  margin: 0;
  padding: 0;
}
/* Ajustes individuais */
.logo.unimed {
  height: 130px;
}
.logo.bradesco {
  height: 130px;
}
.logo.sulamerica {
  height: 150px;
}
.logo.porto {
  height: 65px;
}
/* Mobile: 1 por linha */
@media (max-width: 768px) {
  .logo {
    width: 100%;
    margin: 8px 0;
    height: 80px;
  }
}
@media(max-width: 480px){
  #whatsapp-float {
    bottom: 2rem;
    right: 2rem;
  }
}
/* RESPONSIVO navbar/menu/hamburger */
@media (max-width: 900px) {
  .navbar { padding: 14px 7px; }
  .main-logo-img { height: 40px; width: 40px; }
}

@media (max-width: 1024px) {
  .navbar {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem 0 1rem 2rem;
    display: none;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    z-index: 1000;
  }
  .menu.active {
    display: flex;
  }
  .menu a {
    padding: 12px 0;
    font-size: 1.1rem;
    width: 100%;
    color: #232323;
    border-bottom: 1px solid #eee;
  }
  .whatsapp-button {
    display: none;
  }
  .hamburger {
    display: block;
    color: #25d366;
    background: none;
    border: none;
    margin-left: auto;
    font-size: 2rem;
    margin-top: 3px;
    cursor: pointer;
    z-index: 1100;
  }
}