/* ===== Geriatria Santana — Landing Page ===== */

:root{
  --terracota: #b55e40;
  --terracota-dark: #9c4d33;
  --terracota-light: #f3e3da;
  --azul: #3d454c;
  --azul-dark: #2c3238;
  --branco: #ffffff;
  --creme: #fbf6f2;
  --texto: #3d454c;
  --texto-suave: #6b7278;
  --radius: 16px;
  --shadow: 0 20px 40px -20px rgba(61,69,76,.25);
  --container: 1160px;
  font-size: 16px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: 'Inter', sans-serif;
  color: var(--texto);
  background: var(--branco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4{
  font-family: 'Poppins', sans-serif;
  color: var(--azul);
  margin: 0 0 .5em;
  line-height: 1.2;
}
p{ margin: 0 0 1em; color: var(--texto-suave); }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
ul{ list-style: none; margin: 0; padding: 0; }
.container{ max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.eyebrow{
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terracota);
  margin-bottom: .8em;
}
.eyebrow-light{ color: var(--terracota-light); }

.section-head{ max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head h2{ font-size: clamp(1.6rem, 2.5vw, 2.2rem); }
.section-lead{ font-size: 1.05rem; }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .7em 1.5em;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .92rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--terracota);
  color: var(--branco);
  box-shadow: 0 12px 24px -10px rgba(181,94,64,.55);
}
.btn-primary:hover{ background: var(--terracota-dark); transform: translateY(-2px); }
.btn-outline{
  border-color: var(--azul);
  color: var(--azul);
  background: transparent;
}
.btn-outline:hover{ background: var(--azul); color: var(--branco); transform: translateY(-2px); }
.btn-lg{ padding: .9em 1.9em; font-size: 1rem; }

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(61,69,76,.08);
}
.header-inner{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 14px 24px;
}
.logo img{ height: 64px; width: auto; }
.nav{ display: flex; gap: 2rem; }
.nav a{
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: .92rem;
  color: var(--azul);
  position: relative;
  padding: 4px 0;
}
.nav a::after{
  content:"";
  position:absolute;
  left:0; bottom:-2px;
  width:0; height:2px;
  background: var(--terracota);
  transition: width .25s ease;
}
.nav a:hover::after{ width: 100%; }
.header-actions{ display: flex; align-items: center; gap: 1.4rem; }
.phone-link{
  display: flex;
  align-items: center;
  gap: .4em;
  font-weight: 600;
  font-size: .9rem;
  color: var(--azul);
}
.phone-link svg{ color: var(--terracota); }

.menu-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer;
}
.menu-toggle span{ display:block; height: 2px; width: 100%; background: var(--azul); border-radius: 2px; }

/* Hero */
.hero{
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 5rem;
  background: url("../images/hero.jpg") center / cover no-repeat;
}
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(44,50,56,.94) 0%, rgba(44,50,56,.86) 32%, rgba(44,50,56,.55) 58%, rgba(44,50,56,.35) 100%),
    linear-gradient(0deg, rgba(44,50,56,.35), rgba(44,50,56,.35));
  z-index: 0;
}
.hero-shape{
  position: absolute;
  top: -180px; right: -180px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(181,94,64,.35), transparent 70%);
  z-index: 0;
}
.hero-inner{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3rem;
  align-items: center;
}
.hero-text h1{
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 700;
  margin-bottom: .5em;
  color: var(--branco);
}
.hero-lead{ font-size: 1.1rem; max-width: 520px; color: #e4e6e8; }
.hero-actions{ display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.6rem 0 2.4rem; }
.hero-stats{ display: flex; gap: 2.2rem; flex-wrap: wrap; }
.stat{ display: flex; flex-direction: column; }
.stat strong{ font-family: 'Poppins',sans-serif; font-size: 1.6rem; color: var(--terracota-light); }
.stat span{ font-size: .85rem; color: #c9cdd1; }

.hero .btn-outline{
  border-color: rgba(255,255,255,.6);
  color: var(--branco);
}
.hero .btn-outline:hover{ background: var(--branco); color: var(--azul-dark); }

.hero-media{ display: flex; justify-content: center; }
.hero-card{
  background: var(--azul);
  color: var(--branco);
  border-radius: var(--radius);
  padding: 2.4rem;
  max-width: 340px;
  box-shadow: var(--shadow);
  text-align: center;
}
.hero-card-icon{
  width: 84px; height: 84px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--terracota);
  display: flex; align-items: center; justify-content: center;
}
.hero-card p{
  color: #f0e6df;
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-style: italic;
  margin: 0;
}

/* About */
.about{ padding: 5.5rem 0; background: var(--branco); }
.about-inner{
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 3.5rem;
  align-items: center;
}
.about-media{
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.about-photo{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-text h2{ font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.about-highlights{ margin-top: 1.6rem; display: flex; flex-direction: column; gap: .8rem; }
.highlight-item{ display: flex; align-items: center; gap: .7em; font-weight: 500; color: var(--azul); }
.dot{ width: 9px; height: 9px; border-radius: 50%; background: var(--terracota); flex-shrink: 0; }

/* Services */
.services{ padding: 5.5rem 0; background: var(--creme); }
.services-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}
.service-card{
  background: var(--branco);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  box-shadow: 0 12px 30px -22px rgba(61,69,76,.3);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow); }
.service-icon{
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--terracota-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.service-card h3{ font-size: 1.05rem; margin-bottom: .4em; }
.service-card p{ font-size: .92rem; margin: 0; }

/* Diferenciais */
.diferenciais{ padding: 5.5rem 0; background: var(--azul); color: var(--branco); }
.diferenciais-inner{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 3rem;
  align-items: center;
}
.diferenciais-text h2{ color: var(--branco); font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.diferenciais-text > p{ color: #cfd4d8; max-width: 520px; }
.diferenciais-list{ display: flex; flex-direction: column; gap: 1.4rem; margin-top: 1.8rem; }
.diferenciais-list li{ display: flex; gap: 1rem; align-items: flex-start; }
.diferenciais-icon{
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--terracota);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.diferenciais-list h4{ color: var(--branco); margin-bottom: .2em; font-size: 1rem; }
.diferenciais-list p{ color: #b9bfc4; margin: 0; font-size: .92rem; }

.diferenciais-media{ display: flex; justify-content: center; }
.quote-card{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  max-width: 360px;
  width: 100%;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
}
.quote-photo{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.quote-overlay{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1.8rem 1.8rem;
  text-align: center;
  background: linear-gradient(0deg, rgba(20,23,26,.92) 10%, rgba(20,23,26,.55) 60%, transparent 100%);
}
.quote-overlay p{
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  color: var(--branco);
  margin-bottom: .3em;
}
.quote-overlay span{ color: var(--terracota-light); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }

/* Team */
.team{ padding: 5.5rem 0; background: var(--branco); }
.team-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.team-item{
  background: var(--creme);
  border-radius: 12px;
  padding: 1.2rem .8rem;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: .9rem;
  color: var(--azul);
  border: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.team-item:hover{ border-color: var(--terracota); background: var(--terracota-light); }

/* Gallery */
.gallery{ padding: 5.5rem 0; background: var(--creme); }
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}
.gallery-item{
  position: relative;
  padding: 0;
  border: none;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: var(--azul);
}
.gallery-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease, filter .3s ease;
}
.gallery-item::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(44,50,56,.55), transparent 50%);
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery-item:hover img{ transform: scale(1.06); }
.gallery-item:hover::after{ opacity: 1; }
.gallery-item:nth-child(5n+1){ grid-column: span 2; grid-row: span 2; }

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(20,23,26,.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 40px;
}
.lightbox.open{ display: flex; }
.lightbox img{
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-close{
  position: absolute;
  top: 20px; right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.lightbox-nav:hover{ background: var(--terracota); }
.lightbox-prev{ left: 20px; }
.lightbox-next{ right: 20px; }

@media (max-width: 900px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-item:nth-child(5n+1){ grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 520px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .lightbox-nav{ width: 40px; height: 40px; }
}

/* CTA */
.cta{
  background: linear-gradient(120deg, var(--terracota), var(--terracota-dark));
  padding: 4rem 0;
  text-align: center;
}
.cta-inner h2{ color: var(--branco); font-size: clamp(1.5rem, 2.4vw, 2rem); }
.cta-inner p{ color: #fbe9e1; max-width: 500px; margin: 0 auto 1.6rem; }
.cta .btn-primary{ background: var(--branco); color: var(--terracota-dark); }
.cta .btn-primary:hover{ background: #fff2ec; }

/* Contact */
.contact{ padding: 5.5rem 0; background: var(--creme); }
.contact-inner{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}
.contact-list{ display: flex; flex-direction: column; gap: 1rem; margin: 1.8rem 0; }
.contact-item{
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--branco);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-item:hover{ transform: translateX(4px); box-shadow: 0 10px 24px -16px rgba(61,69,76,.3); }
.contact-icon{
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--terracota);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item strong{ display: block; font-family: 'Poppins', sans-serif; font-size: .88rem; color: var(--azul); }
.contact-item span{ font-size: .88rem; color: var(--texto-suave); }
.social-links{ display: flex; gap: .8rem; }
.social-links a{
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--azul);
  color: var(--branco);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.social-links a:hover{ background: var(--terracota); transform: translateY(-3px); }

.contact-map{
  min-height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.contact-map iframe{ width: 100%; height: 100%; min-height: 340px; }

/* Footer */
.site-footer{ background: var(--azul-dark); color: #c9cdd1; padding: 3rem 0 2rem; }
.footer-inner{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 1.4rem;
}
.footer-brand{ display: flex; align-items: center; gap: 1rem; }
.footer-brand img{ height: 44px; width: auto; }
.footer-brand p{ margin: 0; font-size: .85rem; color: #9aa0a5; }
.footer-nav{ display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-nav a{ font-size: .88rem; color: #c9cdd1; }
.footer-nav a:hover{ color: var(--terracota); }
.footer-copy{ margin: 0; text-align: center; font-size: .8rem; color: #7d8489; }
.footer-credit{ margin: .4rem 0 0; text-align: center; font-size: .78rem; color: #7d8489; }
.footer-credit a{ color: #a7abaf; font-weight: 600; }
.footer-credit a:hover{ color: var(--terracota); }

/* WhatsApp floating button */
.whatsapp-float{
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,.6);
  z-index: 200;
  animation: pulse 2.4s infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70%{ box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* Responsive */
@media (max-width: 980px){
  .hero-inner, .about-inner, .diferenciais-inner, .contact-inner{
    grid-template-columns: 1fr;
  }
  .about-media{ order: -1; }
  .diferenciais-media{ order: -1; }
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .team-grid{ grid-template-columns: repeat(3, 1fr); }
  .nav{
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--branco);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 12px 24px -18px rgba(61,69,76,.4);
    transition: max-height .3s ease, padding .3s ease;
  }
  .nav.open{ max-height: 400px; padding: 12px 24px 20px; }
  .nav a{ padding: 10px 0; width: 100%; border-bottom: 1px solid rgba(61,69,76,.08); }
  .header-actions .phone-link{ display: none; }
  .menu-toggle{ display: flex; }
  .menu-toggle.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2){ opacity: 0; }
  .menu-toggle.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
}

@media (min-width: 981px){
  .menu-toggle{ display: none; }
}

@media (max-width: 640px){
  .header-actions .btn{ padding: .6em 1.1em; font-size: .82rem; }
  .services-grid{ grid-template-columns: 1fr; }
  .team-grid{ grid-template-columns: repeat(2, 1fr); }
  .hero-stats{ gap: 1.4rem; }
  .contact-map{ min-height: 260px; }
  .contact-map iframe{ min-height: 260px; }
}
