* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

/* Scroll suave para navegação */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #fff;
    color: #0f172a;
    min-height: 100vh;
}

/* HEADER */
header {
    background-color: #fff;
    padding: 20px 60px;
}

.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    margin-top: 2%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 100px;
    width: 300px;
    margin-bottom: -50px;
}

.logo-text h1 {
    font-size: 20px;
    color: #0f172a;
}

.logo-text span {
    color: #1e3a8a;
}

.logo-text p {
    font-size: 12px;
    color: #6b7280;
}

/* NAV */
nav ul {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: #111827;
    font-weight: 500;
}

nav a.btn {
    background-color: #101B37;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
}

/* PRIMEIRA SESSAO */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 80px;
    background-image: url('resources/balao.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 85%;
    height: 80vh;
    max-width: 1450px;
    margin: 0 auto;
    margin-top: -3%;
}

.hero-content {
    display: contents; /* No desktop mantém layout original */
}

.hero-text {
    margin-left: 100px;
}

.hero-text h2 {
    font-size: 28px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.hero-text strong {
    color: #0f172a;
}

.hero-image img {
    width: 110%;
}

/* SESSÃO SERVIÇOS ENVOLVIDOS ABAIXO */

.servicos {
  background-color: #e8f1f7;
  padding: 60px 40px;
}

/* Título da seção */
.servicos-titulo {
  text-align: center;
  margin-bottom: 40px;
}

.servicos-titulo h1 {
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
}

.servicos-titulo p {
  font-size: 18px;
  color: #334155;
  margin-top: 8px;
}

/* Container dos cards */
.cardsContainer {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap; /* responsivo */
}

/* Cada card */
.card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  width: 260px;
  height: 425px;
  transition: all 0.15s ease;
  text-align: left;
  margin-bottom: 25px;
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

/* Imagem e ícone do topo */
.card-img {
  position: relative;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  overflow: visible;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: none;
  display: block;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* Ajuste para que as imagens de todos os cards tenham o mesmo tamanho */
.card:nth-child(1) .card-img,
.card:nth-child(2) .card-img,
.card:nth-child(3) .card-img,
.card:nth-child(4) .card-img {
  height: 163px; /* Define altura específica do container da imagem */
}

.card:nth-child(1) .card-img img,
.card:nth-child(2) .card-img img,
.card:nth-child(3) .card-img img,
.card:nth-child(4) .card-img img {
  object-fit: none; /* Para manter a proporção e preencher todo o espaço */
}

.icon {
  position: absolute;
  top: 135px;
  left: 10px;
  background-color: #339BE2;
  color: white;
  border-radius: 70%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  zoom: 75%;
}

.icon img.computer-icon {
  width: 100px;
  height: 100px;
  zoom: 80%;
}

.icon .fa-gear {
  font-size: 32px;
}

/* Conteúdo do card */
.card h2 {
  font-size: 18px;
  color: #0f172a;
  font-weight: 700;
  margin: 32px 16px 10px 16px;
}

.card p {
  font-size: 14px;
  color: #475569;
  margin: 0 16px 20px 16px;
  line-height: 1.5;
}

/* ======== SEÇÃO CASES DESENVOLVIDOS ======== */
.cases {
  background-color: #f8fafc;
  padding: 60px 40px;
  text-align: center;
}

/* Título da seção */
.cases-titulo h1 {
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.cases-titulo p {
  font-size: 18px;
  color: #334155;
  margin-bottom: 40px;
}

/* Container dos cards */
.cases-container {
  display: grid;
  grid-template-columns: 450px 450px;
  row-gap: 15px;
  column-gap: 10px;
  justify-content: center;
  margin: 0 auto;
  margin-bottom: 100px;
}

/* Cada card individual */
.case-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.15s ease;
  width: 450px;
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4) !important;
}

/* Garantir que todos os case-cards tenham sombra */
.case-card:nth-child(1),
.case-card:nth-child(2),
.case-card:nth-child(3),
.case-card:nth-child(4) {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

.case-card:nth-child(1):hover,
.case-card:nth-child(2):hover,
.case-card:nth-child(3):hover,
.case-card:nth-child(4):hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4) !important;
}

/* Imagem do case */
.case-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* Área inferior com o título */
.case-info {
  background-color: white;
  padding: 12px 16px;
  text-align: center;
  font-weight: 500;
  font-size: 16px;
  color: #0f172a;
  border-top: 1px solid #f1f5f9;
  border-radius: 10px;
  margin-top: -20px;
  position: relative;
  z-index: 1;
}

/* Fundo colorido para imagem do primeiro case */
.case-goodbye-hospital-bg {
  background-color: #6EADAD;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
}

/* Logo do primeiro case (GoodBye Hospital) - CONTROLE TOTAL */
.case-logo {
  width: 60px;
  height: 40px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  position: relative !important;
  top: auto !important;
  left: auto !important;
}

/* Área de imagem padrão para todos os cards */
.case-image-area {
  height: 180px;
  background-color: black;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-image-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

/* Exceção específica para a logo do Goodbye Hospital */
.case-image-area img.case-logo {
  width: 350px !important;
  height: 350px !important;
  object-fit: contain !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  margin: 0 auto !important;
}

/* FOOTER */
footer {
    background-color: #08112E;
    color: #fff;
    padding: 25px 0 25px 0;
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: left;
    text-align: left;
    gap: 30px;
    margin-left: 50px;
}

.contact-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 15px;
}

.contact-item i {
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}

.contact-item p {
    font-size: 16px;
    color: #ccc;
    margin: 0;
}

/* ===== FORMULÁRIO ===== */
.contato-form {
    padding: 80px 0;
    background: #E6F0F4;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 40px;
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form h2 {
    text-align: center;
    color: #0f172a;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: -1px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form input,
.form textarea {
    width: 100%;
    padding: 16px 20px;
    background: #FFFFFF;
    border: 1px solid #0f172a;
    border-radius: 12px;
    color: #0f172a;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form input::placeholder,
.form textarea::placeholder {
    color: rgba(15, 23, 42, 0.6);
    font-weight: 400;
}

.form input:focus,
.form textarea:focus {
    outline: none;
    border-color: #1e293b;
    background: #FFFFFF;
    box-shadow: 0 0 20px rgba(15, 23, 42, 0.3);
}

.form textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.btn-submit {
    width: 100%;
    padding: 16px 20px;
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.4);
    background: #1e293b;
}

.btn-submit:active {
    transform: translateY(0);
}

/* Botão do whatsapp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
  line-height: 1;
  margin: 0;
  padding: 0;
}

/* Animação de pulso para chamar atenção */
@keyframes pulse {
  0% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.8);
  }
  100% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  }
}

/* Responsividade do botão WhatsApp */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
    font-size: 26px;
  }
}