:root {
  --primary: #31aea1;
  --text: #1f2a2a;
  --light-gray: #efefef;
  --white: #fff;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

::marker {
    color: #31AEA1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  background: transparent;
}

.site-header.scrolled {
  background: #FFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding-bottom: 5px;
  gap: 1rem;
}

.brand img {
  width: 320px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding-top: 8px;
}

.site-nav a {
  position: relative;
  color: #000;
  font-weight: 500;
  font-size: 0.95rem;
  padding-bottom: 0.2rem;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  opacity: 0.2;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  transform: translateY(-2px);
  opacity: 0.95;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.btn {
  border-radius: 2px;
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  /* border: 1px solid rgba(255, 255, 255, 0.6); */
  color: #219589;
  background: rgba(255, 255, 255, 0.66);
  transition: background-color 0.3s, transform 0.3s;
  display: inline-block;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.btn-icon-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #31AEA1;
  /* border: 1px solid rgba(255, 255, 255, 0.6); */
  color: var(--white);
  transition: background-color 0.3s, transform 0.3s;
}

.btn-icon-whatsapp:hover {
  background: #0b887b;
  transform: translateY(-2px);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-weight: 600;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 40px;
  height: 40px;
  padding: 0;
  position: relative;
  z-index: 60;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: #000;
  transition: all 0.3s ease-in-out;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  min-height: 100vh;
  background: linear-gradient(rgba(31, 42, 42, 0), rgba(31, 42, 42, 0)),
    url("../../topo5.jpg") center/cover no-repeat;
  display: grid;
  place-items: normal; 
  position: relative;
  text-align: left;
  color: #000;
  padding-left: 19vw;
  padding-top: 30dvh;
}

.hero-overlay {
  width: min(90%, 550px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 2.4rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.3s forwards;
  letter-spacing: -0.1rem;
}

.hero h1.nometopo {
  font-size: 1.4rem;
  font-weight: 200;
  margin-top: 10px;
  letter-spacing: normal;
}

.btn-hero {
  margin-top: 2rem;
  border: 1px solid #d5e2e1;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.6s forwards;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-hero:hover {
  border: 1px solid #219589;
}

.btn-hero svg {
  margin: 0 !important;
}

.mouse-scroll {
  position: absolute;
  bottom: 10rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.9;
}

.mouse {
  width: 34px;
  height: 55px;
  border: 2px solid var(--white);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}

.wheel {
  width: 4px;
  height: 10px;
  border-radius: 10px;
  background: var(--white);
  animation: pulse-wheel 1.4s infinite;
}

@keyframes pulse-wheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  60% {
    transform: translateY(14px);
    opacity: 0.4;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.content-section.proc {
  padding: 3rem 0 5rem;
}

.content-section {
  padding: 5rem 0;
  scroll-margin-top: 70px;
}

#area-de-atuacao {
  position: relative;
  z-index: 1;
}

#area-de-atuacao::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../../espiral.png");
  background-repeat: no-repeat;
  background-position: right 15vw top 50px;
  background-size: contain;
  opacity: 0.03;
  z-index: -1;
  pointer-events: none;
}

.section-gray {
  background: var(--light-gray);
}

.procedimentos-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border-radius: 4px;
  padding: 2.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.card-icon {
  background: rgba(49, 174, 161, 0.1);
  color: var(--primary);
  width: 94px;
  height: 94px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
}

.card-icon img {
 width: 62px;
    height: 62px;
    object-fit: contain;
    opacity: 0.8;
}

.card h2 {
  margin-top: 0;
  color: #31AEA1;
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  color: #31AEA1;
  font-weight: 400;
  letter-spacing: -1px;
  text-align: center;
}

.card ul {
  margin: 0;
  padding-left: 1.2rem;
  flex-grow: 1;
}

.card li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  align-items: center;
  gap: 4rem;
}

.split.dois {
  grid-template-columns: 2fr 3fr;
}

.split.reverse .media {
  order: 2;
}

.media img {
  border-radius: 4px;
  min-height: 380px;
  object-fit: cover;
  width: 100%;
}

.text h2, .convenios h2, .contact h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  color: #31AEA1;
  font-weight: 400;
  letter-spacing: -1px;
}

.text h3 {
  margin: 1.2rem 0 0.6rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.text ul {
  margin: 0;
  padding-left: 1.1rem;
}

.text li + li {
  margin-top: 0.35rem;
}

.curriculum li + li {
  margin-top: 0.6rem;
}

#dra-luciana .container:last-of-type ul.curriculum {
  padding-bottom: 0;
}

.convenios {
  text-align: center;
}

.convenios p {
  font-size: 1.04rem;
}

.convenios-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.convenio-logo {
  /* background: var(--white); */
  border-radius: 2px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  /* box-shadow: 0 6px 16px rgba(0, 0, 0, 0.02); */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.convenio-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.convenio-logo img {
  width: auto;
  object-fit: contain;
}

.convenio-logo .logo-amil {
  max-height: 44px;
}

.convenio-logo .logo-bc-saude {
  max-height: 35px;
}

.convenio-logo .logo-bradesco-saude {
  max-height: 45px;
}

.convenio-logo .logo-saude-caixa {
  max-height: 45px;
}

.convenio-logo .logo-sulamerica-saude {
  max-height: 39px;
}

.contact {
  text-align: center;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 500;
  margin: 0.8rem 0;
  font-size: 1.2rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-link:hover {
  opacity: 0.75;
  transform: translateY(-1px);
}

.contact-link svg {
  width: 20px;
  height: 20px;
}

.map-canvas {
  width: 100%;
  height: 400px;
}

.map-error {
  width: 100%;
  height: 500px;
  display: grid;
  place-items: center;
  background: #f3f3f3;
  color: #5d6666;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}
  
.site-footer {
  background: #e7f7f5;
  color: #000;
  text-align: center;
  padding: 2.5rem 0;
}

.footer-content img {
  width: 380px;
  margin: 2rem auto 3rem;
}

.footer-content p {
  margin: 0.4rem 0;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  background: rgba(31, 42, 42, 0.92);
  color: var(--white);
  border-radius: 4px;
  padding: 1vh 15vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  font-size: 0.9rem;
}

.cookie-banner button {
  border: 0;
  border-radius: 2px;
  background: var(--primary);
  color: var(--white);
  padding: 0.65rem 1.2rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cookie-banner button:hover {
  background: #219589;
  transform: translateY(-2px);
}

.cookie-banner.hidden {
  display: none;
}

/* ======================================================================= */

@media (max-width: 1480px) {

.hero-overlay {
    width: min(90%, 480px);
}

.mouse-scroll {
    bottom: 2rem;
}

.hero {
    padding-left: 17vw;
}

}

/* ======================================================================= */

@media (max-width: 1180px) {

.header-actions {
    order: 2;
}

.menu-toggle {
    order: 3;
}

  .site-nav {
    display: none;
    position: absolute;
    top: 92px;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 2rem 1rem;
    flex-direction: column;
  }

  .site-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .header-actions .btn {
    display: none;
  }
}

/* ======================================================================= */

@media (max-width: 900px) {
  #area-de-atuacao {
    background-image: none; /* Remove o espiral no tablet/mobile para não poluir o texto */
  }

  ul.curriculum {
    padding-bottom: 3rem;
}

  .mouse-scroll {
    display: none;
  }

  .split, .split.dois {
    grid-template-columns: 1fr;
  }

  .split.reverse .media {
    order: 0;
  }

  .media img {
    min-height: 280px;
  }

  .convenios-grid {
    grid-template-columns: repeat(2, 1fr);
    gap:0;
  }
}

/* ======================================================================= */

@media (max-width: 620px) {

#area-de-atuacao::before {
  background-position: center top 30px;
  background-size: cover;
}

.procedimentos-cards {
    gap: 2rem;
}

.content-section.proc {
    padding: 2rem 0 4rem;
}

.site-header {
    position: fixed;
    top: env(safe-area-inset-top);
}

.centro {
    text-align: center;
}

.centro.dral {
    margin-bottom: 2rem;
}

  .brand img {
    width: 70vw;
  }

  .cookie-banner button {
    font-size: 1rem;
}

  .split {
    gap: 2rem;
}

.site-footer {
    font-size: 0.9rem;
}

.footer-content img {
    width: 70vw;
}

.site-nav a {
    font-size: 1.5rem;
    color: var(--white);
}

.hero {
    min-height: auto;
    background: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.hero::before {
    content: "";
    display: block;
    width: 100%;
    min-height: 550px;
    height: 50vh;
    background: url(../../topo-cel.jpg) top center / cover no-repeat;
}

.hero-overlay {
    width: 100%;
    padding: 2.5rem 10vw 1rem;
}

  .hero h1 {
    display: block;
    line-height: 1.2;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

  .hero h1.nometopo {
    display: block;
    line-height: 1.4;
    font-size: 1.1rem;
    margin-top: 0;
}

  .btn-hero {
    background: #219589;
    color: #fff;
    border: 0;
  }

  .header-inner {
    min-height: 48px;
  }

  .site-nav {
    top: 65px;
  }

  .social-links a {
    width: 32px;
    height: 32px;
  }

  .content-section {
    padding: 3.4rem 0;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: center;
    padding: 1vh 5vw 3vh 5vw;
    gap: 0.4rem;
    text-align: center;
  }

  .convenios-grid {
    grid-template-columns: 1fr;
  }
}
