:root {
  --bg: #fefcf9;
  --fg: #1a2238;
  --primary: #1a2238;
  --primary-fg: #fefcf9;
  --muted: #f2f3f6;
  --muted-fg: #5a6480;
  --graphite: #3a4258;
  --accent: #c7a76b;
  --border: #e2e4ea;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased
}

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

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

ul {
  list-style: none
}

.display,
.display h1,
.display h2,
.display h3,
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1
}

.italic {
  font-style: italic
}

.accent {
  color: var(--accent)
}

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

.block {
  display: block
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px
}

.eyebrow {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-fg);
  font-weight: 500;
  margin-bottom: 1rem
}

.eyebrow-accent {
  color: var(--accent)
}

.h2 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  color: var(--primary)
}

.h3 {
  font-size: 1.5rem;
  color: var(--primary)
}

.on-dark {
  color: var(--primary-fg)
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 14px 28px;
  font-size: .85rem;
  letter-spacing: .03em;
  transition: all .3s ease;
  border: 1px solid transparent;
  cursor: pointer
}

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

.btn-primary:hover {
  background: var(--accent);
  color: var(--primary)
}

.btn-mobile-menu {
  background: var(--primary);
  color: var(--primary-fg)
}

.btn-light {
  background: var(--bg);
  color: var(--primary)
}

.btn-light:hover {
  background: var(--accent);
  color: var(--primary)
}

.btn-ghost-light {
  border-color: rgba(255, 255, 255, .4);
  color: #fff
}

.btn-ghost-light:hover {
  background: #fff;
  color: var(--primary)
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .4s ease, border-color .4s ease, height .3s ease;
  border-bottom: 1px solid transparent;
  height: auto;
}

.site-header.transparent {
  background: transparent
}

.site-header.scrolled {
  background: rgba(254, 252, 249, .9);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(226, 228, 234, .6)
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  height: auto;
  transition: .3s ease !important;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: .5rem
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -.02em;
  transition: color .3s
}

.brand-tag {
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  transition: color .3s
}

.primary-nav {
  display: none;
  gap: 2.25rem
}

@media (min-width:1024px) {
  .primary-nav {
    display: flex
  }
}

.primary-nav a {
  font-size: .9rem;
  position: relative;
  transition: color .3s
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width .3s
}

.primary-nav a:hover::after {
  width: 100%
}

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

.btn-outline-header {
  display: none;
  padding: 10px 20px;
  font-size: .85rem;
  border: 1px solid;
  transition: all .3s ease
}

@media (min-width:768px) {
  .btn-outline-header {
    display: inline-flex;
    align-items: center;
    gap: .5rem
  }
}

@media (max-width:767px) {
    #mobile-nav > div > a.btn-mobile-menu {
      color: var(--primary-fg);
    }
}
.menu-toggle {
  display: inline-flex;
  padding: 8px;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer
}

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

/* transparent (top) */
.site-header.transparent .brand-name {
  width: 180px;
  height: 96px;
  background-image: url(https://drflaviodeandreis.com.br/assets/Dr-Flavio-logo-negativo.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: background-image 0.3s ease;
  color: #fff;
}

.site-header.transparent .brand-tag {
  color: rgba(255, 255, 255, .7)
}

.site-header.transparent .primary-nav a {
  color: #fff
}

.site-header.transparent .primary-nav a:hover {
  color: var(--accent)
}

.site-header.transparent .btn-outline-header {
  color: #fff;
  border-color: rgba(255, 255, 255, .6)
}

.site-header.transparent .btn-outline-header:hover {
  background: #fff;
  color: var(--primary)
}

.site-header.transparent .menu-toggle {
  color: #fff
}

/* scrolled */
.site-header.scrolled .brand-name {
  width: 120px;
  height: 64px;
  background-image: url(https://drflaviodeandreis.com.br/assets/Dr-Flavio-logo.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: background-image 0.3s ease;
  color: var(--primary)
}

.site-header.scrolled .brand-tag {
  color: var(--muted-fg)
}

.site-header.scrolled .primary-nav a {
  color: rgba(26, 34, 56, .8)
}

.site-header.scrolled .primary-nav a:hover {
  color: var(--primary)
}

.site-header.scrolled .btn-outline-header {
  color: var(--primary);
  border-color: rgba(26, 34, 56, .2)
}

.site-header.scrolled .btn-outline-header:hover {
  background: var(--primary);
  color: var(--primary-fg)
}

.site-header.scrolled .menu-toggle {
  color: var(--primary)
}

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

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 24px
}

.mobile-nav a {
  color: var(--fg);
  font-size: 1rem
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: url('https://drflaviodeandreis.com.br/assets/hero-runner.webp') no-repeat center / cover fixed;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 34, 56, .88) 0%, rgba(26, 34, 56, .4) 60%, rgba(26, 34, 56, .1) 100%), linear-gradient(to right, rgba(26, 34, 56, .55), transparent 60%)
}

.hero-inner {
  position: relative;
  padding: 160px 24px 96px;
  color: var(--primary-fg);
  max-width: 1240px
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  max-width: 900px
}

.hero-title .italic {
  display: block
}

.hero-lede {
  max-width: 600px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(254, 252, 249, .85);
  margin-bottom: 2.5rem
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem
}

/* ---- Credentials ---- */
.credentials {
  background: rgba(242, 243, 246, .5);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border)
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 40px 24px
}

@media (min-width:768px) {
  .credentials-grid {
    grid-template-columns: repeat(4, 1fr)
  }
}

.cred {
  display: flex;
  align-items: center;
  gap: .75rem;
  justify-content: center;
  font-size: .85rem;
  color: var(--graphite);
  letter-spacing: .02em
}

@media (min-width:768px) {
  .cred {
    justify-content: flex-start
  }
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0
}

/* ---- Section ---- */
.section {
  padding: 96px 0
}

@media (min-width:1024px) {
  .section {
    padding: 144px 0
  }
}

.section-alt {
  background: rgba(242, 243, 246, .4)
}

.section-head {
  max-width: 680px;
  margin-bottom: 64px
}

.section-head.split {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: space-between;
  max-width: none;
  align-items: flex-start
}

@media (min-width:1024px) {
  .section-head.split {
    flex-direction: row;
    align-items: flex-end
  }
}

.section-side {
  max-width: 340px;
  font-size: .9rem;
  color: var(--muted-fg)
}

.prose {
  max-width: 600px;
  color: var(--graphite);
  line-height: 1.7;
  font-size: .95rem
}

.prose p {
  margin-top: 1.25rem
}

/* about */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: start
}

@media (min-width:1024px) {
  .about-grid {
    grid-template-columns: 5fr 7fr;
    gap: 80px
  }
}

.about-image {
  aspect-ratio: 4/5;
  background: var(--muted);
  overflow: hidden
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.formation {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 40px;
  margin-top: 48px
}

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

.formation-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: .9rem;
  color: var(--graphite)
}

.tick {
  margin-top: 10px;
  height: 1px;
  width: 16px;
  background: var(--accent);
  flex-shrink: 0
}

/* tiles */
.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border)
}

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

@media (min-width:1024px) {
  .tiles {
    grid-template-columns: repeat(3, 1fr)
  }
}

.tiles.cols-4 {
  grid-template-columns: 1fr
}

@media (min-width:768px) {
  .tiles.cols-4 {
    grid-template-columns: 1fr 1fr
  }
}

@media (min-width:1024px) {
  .tiles.cols-4 {
    grid-template-columns: repeat(4, 1fr)
  }
}

.tiles.bordered {
  border: 1px solid var(--border)
}

.tile {
  background: var(--bg);
  padding: 40px;
  transition: background .3s, color .3s
}

.tile h3 {
  margin-bottom: .75rem;
  color: var(--primary)
}

.tile p {
  font-size: .9rem;
  color: var(--muted-fg);
  line-height: 1.65
}

.tile .step-n {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--accent);
  margin-bottom: 1.25rem
}

/* when to seek */
.when-to-seek {
  position: relative;
  padding: 112px 0;
  overflow: hidden;
  color: var(--primary-fg);
  background: url('https://drflaviodeandreis.com.br/assets/hiking.webp') no-repeat center / cover fixed;

}

@media (min-width:1024px) {
  .when-to-seek {
    padding: 160px 0
  }
}

.wts-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.wts-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 34, 56, .88)
}

.wts-inner {
  position: relative
}

.wts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 4rem;
  max-width: 900px;
  margin-bottom: 3rem
}

@media (min-width:768px) {
  .wts-list {
    grid-template-columns: 1fr 1fr
  }
}

.wts-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 20px 0;
  border-top: 1px solid rgba(254, 252, 249, .15);
  font-size: 1.05rem;
  color: rgba(254, 252, 249, .9)
}

.num {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.1rem
}

/* treatments */
.treatments-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center
}

@media (min-width:1024px) {
  .treatments-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px
  }
}

.treatments-image {
  aspect-ratio: 4/3;
  overflow: hidden
}

.treatments-image img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.treatments-list {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 2.5rem
}

.treatments-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--graphite);
  font-size: .95rem
}

.treatments-list li:last-child {
  border-bottom: none
}

.treatments-list li span {
  color: var(--accent);
  transition: transform .3s
}

.treatments-list li:hover span {
  transform: translateX(4px)
}

/* philosophy */
.philosophy {
  background: var(--primary);
  color: var(--primary-fg);
  padding: 112px 0
}

@media (min-width:1024px) {
  .philosophy {
    padding: 160px 0
  }
}

.philosophy-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center
}

.quote {
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  line-height: 1.2;
  font-style: italic
}

.philosophy-author {
  margin-top: 2.5rem;
  font-size: .85rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(254, 252, 249, .7)
}

/* testimonials */
.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px
}

@media (min-width:768px) {
  .testimonials {
    grid-template-columns: repeat(3, 1fr)
  }
}

.testimonials figure {
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px
}

.testimonials blockquote {
  font-size: 1.25rem;
  color: var(--primary);
  line-height: 1.35
}

.testimonials figcaption {
  margin-top: 2rem;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-fg)
}

/* faq */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px
}

@media (min-width:1024px) {
  .faq-grid {
    grid-template-columns: 4fr 8fr;
    gap: 80px
  }
}

.faq-list {
  border-top: 1px solid var(--border)
}

.faq-list details {
  border-bottom: 1px solid var(--border)
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 24px 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center
}

.faq-list summary::-webkit-details-marker {
  display: none
}

.faq-list summary::after {
  content: "+";
  color: var(--accent);
  font-family: var(--font-sans);
  transition: transform .3s
}

.faq-list details[open] summary::after {
  transform: rotate(45deg)
}

.faq-list p {
  padding-bottom: 24px;
  color: var(--graphite);
  font-size: .95rem;
  line-height: 1.7
}

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px
}

@media (min-width:1024px) {
  .contact-grid {
    grid-template-columns: 4fr 4fr 4fr;
    gap: 20px;
  }
}

.contact-rows {
  margin: 40px 0
}

.contact-row {
  display: flex;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  color: var(--graphite);
  gap: 1rem
}

.contact-label {
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 4px
}

.contact-map {
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--muted)
}

@media (min-width:1024px) {
  .contact-map {
    aspect-ratio: auto;
    min-height: 520px
  }
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.05)
}

/* footer */
.site-footer {
  background: var(--primary);
  color: var(--primary-fg);
  border-top: 1px solid var(--border)
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 56px 24px
}

@media (min-width:768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

.footer-brand {
  font-size: 1.25rem;
  margin-bottom: .5rem
}

.site-footer p,
.site-footer ul li {
  font-size: .9rem;
  color: rgba(254, 252, 249, .75);
  line-height: 1.6
}

.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: .5rem
}

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

.eyebrow-footer {
  color: rgba(254, 252, 249, .6);
  margin-bottom: 1rem
}

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

.footer-bottom .container {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding-top: 24px;
  padding-bottom: 24px;
  justify-content: space-between;
  font-size: .72rem;
  color: rgba(254, 252, 249, .5)
}

@media (min-width:640px) {
  .footer-bottom .container {
    flex-direction: row
  }
}

/* whatsapp float */
.whats-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  z-index: 40;
  transition: transform .3s
}

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

@media (prefers-reduced-motion:reduce) {
  * {
    transition: none !important;
    animation: none !important
  }
}