/* MedLife — estilos */
:root {
  --bg: #f7fbf8;
  --fg: #1c2a23;
  --muted: #f1f5f2;
  --muted-fg: #6b7d72;
  --card: #ffffff;
  --border: #e3ece6;
  --primary: #1f7a4a;
  --primary-soft: #daefe2;
  --primary-fg: #ffffff;
  --accent: #3aa56b;
  --whatsapp: #25d366;
  --shadow-soft: 0 10px 30px -12px rgba(31, 122, 74, .25);
  --shadow-card: 0 8px 24px -10px rgba(31, 122, 74, .15);
  --radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55
}

h1,
h2,
h3,
h4 {
  font-family: 'Sora', system-ui, sans-serif;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--fg)
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem
}

main {
  padding-top: 80px
}

/* Navbar */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  background: rgba(247, 251, 248, .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent
}

.nav.scrolled {
  background: rgba(247, 251, 248, .96);
  border-color: rgba(227, 236, 230, .9);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03)
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px
}

.nav-logo img {
  height: 48px;
  width: auto
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem
}

.nav-links a {
  padding: .5rem 1rem;
  font-size: .9rem;
  font-weight: 500;
  color: rgba(28, 42, 35, .8);
  border-radius: 8px;
  transition: color .2s
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary)
}

.nav-cta.active,
a.nav-cta.active {
  color: var(--primary-fg);
}

.nav-cta {
  margin-left: .5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary);
  padding: .7rem 1.3rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--primary-fg);
  box-shadow: var(--shadow-soft);
  transition: opacity .2s
}

.nav-cta:hover {
  opacity: .9
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
  color: var(--fg)
}

.nav-mobile {
  display: none;
  background: var(--bg);
  border-top: 1px solid var(--border)
}

.nav-mobile.open {
  display: block
}

.nav-mobile a {
  display: block;
  padding: .85rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
  color: rgba(28, 42, 35, .8)
}

.nav-mobile a:hover {
  background: var(--muted)
}

.nav-mobile .nav-cta {
  display: flex;
  margin: .5rem 1.25rem
}

@media(max-width:900px) {
  .nav-links {
    display: none
  }

  .nav-toggle {
    display: block
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 999px;
  padding: .9rem 1.5rem;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  transition: all .2s;
  font-family: inherit
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: var(--shadow-soft)
}

.btn-primary:hover {
  opacity: .9
}

.btn-outline {
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--border)
}

.btn-outline:hover {
  background: var(--muted)
}

.btn-white {
  background: #fff;
  color: var(--primary)
}

.btn-white:hover {
  background: rgba(255, 255, 255, .9)
}

/* Sections */
section {
  padding: 5rem 0
}

.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .75rem
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700
}

.muted {
  color: var(--muted-fg)
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(218, 239, 226, .6), var(--bg) 60%)
}

.hero-glow {
  position: absolute;
  top: -8rem;
  right: -8rem;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: rgba(31, 122, 74, .12);
  filter: blur(80px);
  z-index: 0
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0 6rem
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--primary-soft);
  color: var(--primary);
  padding: .4rem .85rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  margin-bottom: 1.25rem
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -.025em
}

.hero h1 span {
  color: var(--primary)
}

.hero p {
  margin-top: 1.25rem;
  font-size: 1.075rem;
  color: var(--muted-fg);
  max-width: 36rem
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem
}

.hero-stats {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 28rem
}

.hero-stats dt {
  font-family: 'Sora', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary)
}

.hero-stats dd {
  font-size: .75rem;
  color: var(--muted-fg);
  margin-top: .2rem
}

.hero-img {
  position: relative
}

.hero-img::before {
  content: "";
  position: absolute;
  inset: -1rem;
  background: rgba(31, 122, 74, .1);
  border-radius: 28px;
  transform: rotate(3deg)
}

.hero-img img {
  position: relative;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  width: 100%;
  aspect-ratio: 5/4
}

@media(max-width:900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 2rem 0 4rem
  }

  .hero-img img {
    aspect-ratio: 4/5
  }
}

/* Cards / features */
.center {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3.5rem
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem
}

@media(max-width:900px) {
  .cards {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:640px) {
  .cards {
    grid-template-columns: 1fr
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem;
  transition: all .25s
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(31, 122, 74, .4)
}

.card-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 1.1rem;
  transition: all .2s
}

.card:hover .card-icon {
  background: var(--primary);
  color: #fff
}

.card h3 {
  font-size: 1.075rem;
  font-weight: 600;
  margin-bottom: .5rem
}

.card p {
  font-size: .875rem;
  color: var(--muted-fg)
}

.bg-muted {
  background: rgba(241, 245, 242, .5)
}

.bg-soft {
  background: rgba(218, 239, 226, .4)
}

/* Services preview head */
.row-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 3rem
}

.link-arrow {
  color: var(--primary);
  font-weight: 600;
  font-size: .9rem;
  display: inline-flex;
  gap: .4rem;
  align-items: center
}

.link-arrow:hover {
  gap: .7rem;
  transition: gap .2s
}

/* CTA strip */
.cta-strip {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 28px;
  padding: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  box-shadow: var(--shadow-soft)
}

.cta-strip h2 {
  color: #fff;
  font-size: clamp(1.4rem, 2.5vw, 2rem)
}

.cta-strip ul {
  margin-top: .85rem;
  list-style: none;
  font-size: .9rem;
  color: rgba(255, 255, 255, .92)
}

.cta-strip li {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .18rem 0
}

.cta-strip li::before {
  content: "✓";
  font-weight: 700
}

/* About page */
.about-hero {
  background: rgba(218, 239, 226, .4);
  padding: 5rem 0
}

.about-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  max-width: 48rem;
  margin-top: .75rem
}

.about-hero p {
  margin-top: 1.25rem;
  font-size: 1.075rem;
  color: var(--muted-fg);
  max-width: 38rem
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center
}

.about-grid img {
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/3;
  object-fit: cover
}

.about-grid h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem)
}

.about-grid p {
  margin-top: 1rem;
  color: var(--muted-fg)
}

@media(max-width:900px) {
  .about-grid {
    grid-template-columns: 1fr
  }
}

.values .card-icon {
  background: var(--primary);
  color: #fff
}

/* Services page */
.svc-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem
}

@media(max-width:900px) {
  .svc-list {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:640px) {
  .svc-list {
    grid-template-columns: 1fr
  }
}

/* Contact */
.contact {
  background: linear-gradient(to bottom, var(--bg), rgba(218, 239, 226, .3))
}

.contact-head {
  max-width: 42rem;
  margin-bottom: 3rem
}

.contact-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-top: .75rem
}

.contact-head p {
  margin-top: 1rem;
  color: var(--muted-fg);
  font-size: 1.075rem
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem
}

@media(max-width:900px) {
  .contact-grid {
    grid-template-columns: 1fr
  }
}

.form-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-card)
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem
}

@media(max-width:560px) {
  .form-row {
    grid-template-columns: 1fr
  }
}

.field {
  display: block;
  margin-bottom: 1rem
}

.field label {
  display: block;
  font-size: .75rem;
  font-weight: 500;
  color: rgba(28, 42, 35, .8);
  margin-bottom: .4rem
}

.field label .req {
  color: var(--primary)
}

.input,
.textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  padding: .7rem .9rem;
  font-size: .9rem;
  color: var(--fg);
  font-family: inherit;
  outline: none;
  transition: all .15s
}

.input:focus,
.textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 122, 74, .18)
}

.textarea {
  resize: none;
  min-height: 128px
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: .5rem
}

.contact-info {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  font-size: .85rem;
  color: var(--muted-fg)
}

.contact-info span {
  display: flex;
  align-items: center;
  gap: .4rem
}

.contact-info svg {
  color: var(--primary);
  flex-shrink: 0
}

@media(max-width:560px) {
  .contact-info {
    grid-template-columns: 1fr
  }
}

.map-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  min-height: 420px;
  background: var(--muted)
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0
}

/* WhatsApp floating */
.wa-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 999px;
  padding: .75rem 1.1rem;
  box-shadow: var(--shadow-soft);
  transition: transform .2s;
  font-weight: 600;
  font-size: .9rem
}

.wa-float:hover {
  transform: scale(1.05)
}

.wa-icon {
  position: relative;
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center
}

.wa-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  animation: ping 1.5s cubic-bezier(0, 0, .2, 1) infinite
}

@keyframes ping {

  75%,
  100% {
    transform: scale(2);
    opacity: 0
  }
}

.wa-icon svg {
  position: relative;
  width: 24px;
  height: 24px;
  fill: #fff
}

@media(max-width:560px) {
  .wa-float span:last-child {
    display: none
  }
}

/* Footer */
footer {
  background: #1c2a23;
  color: rgba(255, 255, 255, .85);
  margin-top: 4rem
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0
}

@media(max-width:900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:560px) {
  .footer-grid {
    grid-template-columns: 1fr
  }
}

.footer-grid h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem
}

.footer-grid ul {
  list-style: none
}

.footer-grid li {
  margin-bottom: .55rem;
  font-size: .875rem;
  color: rgba(255, 255, 255, .7);
  display: flex;
  gap: .5rem;
  align-items: flex-start
}

.footer-grid li svg {
  color: var(--accent);
  margin-top: .15rem;
  flex-shrink: 0
}

.footer-grid a {
  color: rgba(255, 255, 255, .75);
  font-size: .875rem;
  transition: color .15s
}

.footer-grid a:hover {
  color: var(--accent)
}

.footer-brand img {
  height: 56px;
  background: var(--primary-soft);
  padding: .5rem;
  border-radius: 10px;
  margin-bottom: 1rem
}

.footer-brand p {
  font-size: .875rem;
  color: rgba(255, 255, 255, .7);
  line-height: 1.6
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1)
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  padding: 1.25rem;
  font-size: .75rem;
  color: rgba(255, 255, 255, .55)
}

/* Page hero (sobre/servicos/contato) */
.page-hero {
  padding: 5rem 0;
  background: rgba(218, 239, 226, .4)
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-top: .75rem;
  max-width: 48rem
}

.page-hero p {
  margin-top: 1.25rem;
  font-size: 1.075rem;
  color: var(--muted-fg);
  max-width: 38rem
}

.page-hero.center-aligned {
  text-align: center
}

.page-hero.center-aligned p {
  margin-left: auto;
  margin-right: auto
}