/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #2d2d2d;
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header sticky */
.floating-header {
  position: sticky;
  top: 0;
  background: white;
  z-index: 9999;  /* high but below modal */
}

.floating-header h1 a {
  color: #176b7a;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.8rem;
}

.floating-header h1 a:hover {
  text-decoration: underline;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.menu {
  list-style: none;
  display: flex;
  gap: 1.8rem;
}

.menu li a {
  text-decoration: none;
  color: #176b7a;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.3rem 0.5rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 6px;
}

.menu li a:hover {
  background-color: #176b7a;
  color: white;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  background: white;
  box-shadow: 0 6px 15px rgb(20 50 30 / 0.2);
  list-style: none;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
  border-radius: 8px;
  display: none;
  min-width: 220px;
  z-index: 999;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  padding: 0.6rem 1.2rem;
  display: block;
  color: #176b7a;
}

.dropdown-menu li a:hover {
  background-color: #176b7a;
  color: white;
}
.footer-center-content {
  display: flex;
  flex-direction: column; /* Stack vertically */
  align-items: center;    /* Center horizontally */
  text-align: center;
}

.footer-signature {
  max-width: 350px;
  margin-bottom: 40px;
}
.footer-center-content p {
  margin: 0 0 0 500px;
  font-size: 14px;
  font-weight: 500;
}
/* Hamburger (mobile) */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #176b7a;
  user-select: none;
}

/* Show menu when hamburger toggled */
.menu.show {
  display: flex !important;
  flex-direction: column;
  gap: 1rem;
}

.parallax {
  background-image: url('medium.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size:contain;
  height: 40vh;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Content sections */
.content-section {
  background: white;
  margin: 3rem 0;
  padding: 2.5rem 3rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgb(20 50 30 / 0.05);
  color: #2d2d2d;
}

h2 {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  color: #d88856;
}
h2.hero-title {
  color: white; /* white only for this one */
}
h3 {
  font-weight: 700;
  margin-top: 1.2rem;
  color: rgb(78, 186, 183);
}

p, label {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: 1rem;
}
p.hero-title{
  color:rgb(78, 186, 183); 
}

a {
  color: rgb(78, 186, 183);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Consultas dinâmicas */
.consulta-opcoes {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.consulta-btn {
  background-color: #4ebab7;
  color: white;
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.consulta-btn:hover {
  background-color: #144a51;
}

.consulta-detalhes {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 1rem 1.2rem;
  border-left: 5px solid rgb(78, 186, 183);
  background-color: #ffffff;
  border-radius: 8px;
}

.consulta-detalhes.active {
  display: block;
  opacity: 1;
}

/* Formulário */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form label {
  color:rgb(78, 186, 183); /* blue */
}

input[type="text"],
input[type="email"],
select,
textarea {
  padding: 0.8rem;
  border-radius: 10px;
  border: 1.5px solid #ddd;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}

textarea {
  min-height: 100px;
}

.logo {
  height: 90px;
  vertical-align: middle;
  margin-right: 10px;
  margin-top: 20px;
}
form select {
  color: #176b7a;       /* text color of selected value */
}
form select option {
  color: #176b7a; /* same blue as your links */
}
button[type="submit"] {
  background-color:  #5fbab7;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

button[type="submit"]:hover {
  background-color: #4ebab7;
}

.modal-overlay {
  display: none;  /* must be hidden by default */
  position: fixed;
  z-index: 10000;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.3);
  justify-content: center;
  align-items: center;
}

.modal {
  background: white;
  padding: 2rem 2.5rem;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(104, 169, 164, 0.2);
  position: relative;
  max-width: 350px;
  text-align: center;
}

.close-modal {
  position: absolute;
  top: 0.2rem;
  right: 0.6rem;
  font-size: 2rem;
  border: none;
  background: none;
  color: #4ebab7;
  cursor: pointer;
  font-weight: 700;
}

/* Footer */
footer {
  background: #68a3ef;
  color: white;
  padding: 1.8rem 1rem;
  text-align: center;
  font-size: 1rem;
}

@media (max-width: 768px) {
  /* Dropdown menu styling for mobile */
  .dropdown-menu {
    position: static;      
    box-shadow: none;
    background: white;     
    padding: 0.5rem 0;
    border-radius: 8px;
    display: none;         /* Hidden by default */
    width: 100%;           /* Full width of container */
  }

  /* Remove hover effect on mobile */
  .dropdown:hover .dropdown-menu {
    display: none;
  }

  /* Show dropdown when parent has 'active' class */
  .dropdown.active .dropdown-menu {
    display: block;
  }

  /* Add a dropdown arrow on mobile */
  .dropdown > a::after {
    content: " ▼";
    font-size: 0.6rem;
    float: right;
    margin-left: 5px;
  }
}
.consulta-box {
  background-color: #ffffff;
  border-left: 5px solid #176b7a;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  color: #176b7a;
  position: relative;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.consulta-box:hover {
  background-color: #ffffff;
}

.consulta-box h3 {
  margin-bottom: 0.5rem;
}

.consulta-box p {
  margin-bottom: 0.8rem;
  color: #4ebab7;
  font-size: 1rem;
}

.ver-mais {
  color: #176b7a;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.ver-mais:hover {
  text-decoration: underline;
}

html {
  scroll-padding-top: 70px; /* Adjust to your header height */
}

.menu li.dropdown {
  position: relative; /* needed for submenu absolute positioning */
}

.dropdown-menu {
  position: absolute;
  top: 100%; /* directly below parent */
  left: 0;
  background: white;
  box-shadow: 0 6px 15px rgb(20 50 30 / 0.2);
  list-style: none;
  margin: 0; /* remove margin-top */
  padding: 0.5rem 0;
  border-radius: 8px;
  display: none;
  min-width: 220px;
  z-index: 1000; /* ensure it's above other elements */
}

.dropdown:hover > .dropdown-menu {
  display: block;
}

/* make sure links inside submenu have proper padding */
.dropdown-menu li a {
  padding: 0.6rem 1.2rem;
  display: block;
  color: #176b7a;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background-color: #176b7a;
  color: white;
}

footer {
  background: #95c6d5;
  color: white;
  padding: 1.8rem 1rem;
  text-align: center;
  font-size: 1rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.social-icons {
  display: flex;
  gap: 1.2rem;
}

.social-icons a {
  color: white;
  font-size: 1.6rem; 
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #144a51; /* cor de destaque no hover */
}

/* Responsivo - para telas maiores deixa tudo numa linha */
@media (min-width: 480px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

p, label {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ffffff; /* white */
  margin-bottom: 1rem;
}

/* Override for form labels only to blue */
form label {
  color: #176b7a; /* blue */
}

/* Optional: placeholder color for inputs and textarea */
input::placeholder,
textarea::placeholder {
  color: #4ebab7;
  opacity: 0.6;
}

.consulta-detalhes {
  position: relative;
  background-color: #ffffff;
  padding: 2rem;
  margin-top: 1.5rem;
  border-radius: 8px;
  box-shadow: none; /* remove relevo */
  display: none;
}

.consulta-detalhes.active {
  display: block;
}

.close-consulta {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #444;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: none;
  outline: none;
  padding: 0;
}

.close-consulta:hover {
  color: #000;
}

footer {
  background-color: #95c6d5;
  color: white;
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  width: 100%;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-center {
  justify-content: center;
  text-align: center;
}

.footer-center p {
  margin: 0;
  font-size: 0.9rem;
  color: white;
}

.footer-left {
  justify-content: flex-start;
}

.footer-right {
  justify-content: flex-end;
  text-align: right;
  font-size: 0.9rem;
}
.footer-right p {
  margin: 0.2rem 0;
  color: white;
}

.social-icons {
  display: flex;
  gap: 1rem;
  font-size: 1.5rem;
  color: white;
}

.footer-content a {
  color: white;
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-section {
    justify-content: center;
  }

  .footer-right {
    text-align: center;
  }
}

.floating-header h1 a {
  color: #4ebab7;
}

.menu li a {
  text-decoration: none;
  color: #4ebab7;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.3rem 0.5rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 6px;
}

.menu li a:hover {
  background-color: #4ebab7;
  color: white;
}

/* Dropdown menu links */
.dropdown-menu li a {
  padding: 0.6rem 1.2rem;
  display: block;
  color: #4ebab7;
}

.dropdown-menu li a:hover {
  background-color: #4ebab7;
  color: white;
}

/* Hamburger icon (mobile) */
.hamburger {
  color: #4ebab7;
}

/* Wrapper: full width, 3 columns, vertically centered */
.sobre-wrapper {
  display: flex;
  align-items: center;       /* vertical alignment */
  justify-content: space-between;
  width: 100vw;              /* full viewport width */
  max-width: 100%;           /* ensure it uses all space */
  padding: 2rem 4rem;        /* spacing on sides */
  gap: 1rem;
  box-sizing: border-box;
}

/* Left image */
.sobre-img {
  flex: 1 1 100px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.sobre-img img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Center text */
.sobre-text {
  flex: 2 1 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* vertical centering */
  gap: 0.3rem;
  text-align: justify;
}

/* Right signature */
.sobre-sign {
  flex: 1 1 100px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.sobre-sign img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive: stack on smaller screens */
@media (max-width: 1024px) {
  .sobre-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
  }

  .sobre-img, .sobre-sign {
    justify-content: center;
    margin-bottom: 1.5rem;
  }
}

/* Reduce gap between header and section */
.content-section {
  padding-top: 1.5rem;  /* smaller gap at top */
  padding-bottom: 2.5rem;
}

/* Move rafd image slightly up */
.sobre-img {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* keep top alignment */
  margin-top: -30px;
  margin-right: 20px;       /* shift image upwards */
}

.sobre-img img {
  max-height: 400px; /* keep original height */
  width: auto;       /* maintain aspect ratio */
  border-radius: 12px;
}

/* Reduce gap between header and section */
.content-section {
  padding-top: 0.8rem;  /* closer to header */
  padding-bottom: 2.5rem;
}
.container {
  max-width: 1200px;   /* wider container */
  margin: 0 auto;
  padding: 0 2rem;     /* balanced spacing on sides */
  width: 100%;         /* allow full width on small screens */
}

/* Wrapper: 2 columns (image + text) */
.sobre-wrapper {
  display: flex;
  align-items: center;       /* vertical alignment */
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  flex-wrap: wrap;
}

/* Left image */
.sobre-img {
  flex: 1 1 350px;
  display: flex;
  justify-content: center;
  margin-top: -20px;  /* lift image slightly upward */
}

.sobre-img img {
  max-width: 100%;
  height: auto;
  max-height: 400px;  /* control size */
  border-radius: 12px;
}

/* Right text */
.sobre-text {
  flex: 2 1 600px;
  text-align: justify;   /* justified text */
}

/* Responsive stacking */
@media (max-width: 1024px) {
  .sobre-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .sobre-text {
    text-align: justify; /* still justified, but stacked */
  }
}

#marcar form label {
  color: rgb(78, 186, 183); 
  font-weight: bold;
}

#hero {
  margin-top: 10px;           /* empurra a seção para baixo do header */
}
.page-decorator {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;              /* faixa estreita */
  height: 100vh;            /* altura total da tela */
  z-index: 1000;            /* na frente do conteúdo */
  pointer-events: none;     /* não interfere em cliques */
  display: flex;
  flex-direction: column;
  align-items: center;

}

.page-decorator img {
  width: 100%;              /* largura da faixa */
  height: auto;             /* mantém proporção */
  object-fit: cover;        /* garante que a imagem não distorça */
}

/* Evita sobreposição do footer */
footer {
  position: relative;
  z-index: 2000; /* maior que o decorator */
}

nav .menu li a {
  font-size: 18px; /* Increase the size as needed */
  font-weight: bold; /* Optional: make letters bold */
  text-transform: uppercase; /* Optional: all caps */
}


.footer-center-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-center-content img.footer-signature {
  max-width: 350px;
  width: 100%;
  height: auto;
}

.footer-center-content p.footer-overlay-text {
  position: absolute;
  top: 160px; /* adjust vertical position */
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  white-space: nowrap; /* prevents line breaks */
}

footer i {
  filter: drop-shadow(1px 1px 3px rgba(0,0,0,0.3));
}

footer * {
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.footer-contacts i {
  margin-right: 8px;
  color: white; /* or any color you prefer */
}

section {
  scroll-margin-top: 100px; /* adjust to match header height */
}

.floating-header {
  top: -20px;  /* move header 2cm higher, approx. 20px–30px depending on screen */
}
ul.hero-title {
  list-style-type: disc; /* bolinha padrão */
  padding-left: 1.5rem;  /* espaço da margem esquerda */
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

ul.hero-title {
  list-style-type: disc;     /* bolinhas */
  padding-left: 1.5rem;      /* espaço antes da lista */
  margin-bottom: 1.5rem;
  color:rgb(78, 186, 183);               /* cor do texto, ajusta se precisares */
  line-height: 1.6;
}

ul.hero-title li {
  margin-bottom: 0.5rem;     /* espaçamento entre itens */
}

/* Mobile Header */
@media (max-width: 768px) {
  .floating-header .container {
    padding: 0 1rem; /* prevent overflow */
  }

  .menu {
    display: none; /* hide menu by default */
    flex-direction: column;
    gap: 0.5rem;
    background-color: white;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 10;
  }

  .menu li {
    margin: 0;
  }

  .menu a {
    display: block;
    padding: 0.75rem 1rem;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
  }

  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    background-color: #fff;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* Mobile Footer */
@media (max-width: 768px) {
  .footer-layout {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-left, .footer-center, .footer-right {
    width: 100%;
  }

  .footer-center img.footer-signature {
    max-width: 80%;
    height: auto;
  }

  .social-icons a {
    margin: 0 0.5rem;
  }
}

/* iOS Safari Footer Fix */
@supports (-webkit-touch-callout: none) {
  footer {
    padding: 2.5rem 1rem;       /* more breathing room */
  }

  .footer-layout {
    flex-direction: column !important; /* stack sections vertically */
    align-items: center !important;
    text-align: center !important;
    gap: 1.2rem;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    width: 100% !important;        /* full width on small screens */
    justify-content: center !important;
    text-align: center !important;
  }

  .footer-center-content img.footer-signature {
    max-width: 80%;
    height: auto;
    margin-bottom: 0.5rem;
  }

  .footer-center-content p.footer-overlay-text {
    position: static !important;
    transform: none !important;
    white-space: normal !important;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .social-icons {
    justify-content: center !important;
    gap: 1rem;
  }
}