/* =========================================================
   Dra. Marina Schneider — Cirurgia Plástica
   Stylesheet
   ========================================================= */

:root{
  --color-bg: #FBF7F2;
  --color-bg-alt: #F1E8DF;
  --color-surface: #FFFFFF;
  --color-text: #2E241E;
  --color-text-soft: #6E6259;
  --color-accent: #C17B6E;
  --color-accent-dark: #A35F53;
  --color-gold: #B08A5C;
  --color-line: #E3D6C8;

  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --header-h: 68px;
  --container-w: 1200px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

@media (min-width: 900px){
  :root{ --header-h: 84px; }
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3{ font-family: var(--font-serif); font-weight: 500; line-height: 1.15; margin: 0; color: var(--color-text); }
p{ margin: 0; line-height: 1.7; color: var(--color-text-soft); }
button{ font-family: inherit; cursor: pointer; }

.skip-link{
  position: absolute; left: -999px; top: 0; background: var(--color-accent); color: #fff;
  padding: .75rem 1.25rem; z-index: 999; border-radius: 0 0 6px 0;
}
.skip-link:focus{ left: 0; }

.container{
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 900px){
  .container{ padding: 0 2.5rem; }
}

.section{ padding: 4.5rem 0; }
.section-alt{ background: var(--color-bg-alt); }
@media (min-width: 900px){
  .section{ padding: 7rem 0; }
}

.eyebrow{
  font-family: var(--font-sans);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin: 0 0 .75rem;
}
.eyebrow.center{ text-align: center; }
.center{ text-align: center; margin-left: auto; margin-right: auto; }

h2{ font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2.center{ max-width: 42rem; }
.section-intro{ max-width: 34rem; margin-top: .9rem; }
.section-intro.center{ margin-left: auto; margin-right: auto; }

.hr-accent{
  width: 56px; height: 2px; background: var(--color-gold); margin: 1.1rem 0 1.4rem; border: 0;
}

/* Buttons */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .03em;
  border: 1px solid var(--color-accent);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn:hover{ background: var(--color-accent-dark); border-color: var(--color-accent-dark); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(163,95,83,.55); }
.btn-sm{ padding: .6rem 1.25rem; font-size: .78rem; }
.btn-lg{ padding: 1.1rem 2.6rem; font-size: .92rem; }

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible{ opacity: 1; transform: none; }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header{
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(251,247,242,.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled{
  border-color: var(--color-line);
  box-shadow: 0 8px 24px -18px rgba(0,0,0,.25);
}
.header-inner{
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.brand{ display: flex; align-items: center; flex-shrink: 0; }
.brand-logo{ height: 40px; width: auto; }
@media (min-width: 900px){ .brand-logo{ height: 50px; } }

.main-nav ul{ display: flex; gap: 2.1rem; }
.main-nav a{
  font-size: .85rem; letter-spacing: .04em; font-weight: 500; color: var(--color-text);
  position: relative; padding: .3rem 0;
}
.main-nav a::after{
  content:''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px; background: var(--color-accent);
  transition: right .3s var(--ease);
}
.main-nav a:hover::after{ right: 0; }

.header-actions{ display: flex; align-items: center; gap: 1rem; }
.header-actions .btn-sm{ display: none; }
@media (min-width: 640px){ .header-actions .btn-sm{ display: inline-flex; } }

.nav-toggle{
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; padding: 0;
}
.nav-toggle span{ width: 24px; height: 1.5px; background: var(--color-text); transition: transform .3s var(--ease), opacity .3s var(--ease); margin: 0 auto; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

@media (min-width: 900px){
  .nav-toggle{ display: none; }
}
@media (max-width: 899.98px){
  .main-nav{
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-line);
    max-height: 0; overflow: hidden;
    transition: max-height .4s var(--ease);
  }
  .main-nav.is-open{ max-height: 400px; }
  .main-nav ul{ flex-direction: column; gap: 0; padding: .5rem 1.25rem 1.5rem; }
  .main-nav a{ display: block; padding: .85rem 0; border-bottom: 1px solid var(--color-line); }
}

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position: relative;
  margin-top: var(--header-h);
  overflow: hidden;
}
.hero-inner{
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}
.hero-text{ flex-shrink: 0; }
.hero-media{
  flex: 1 1 auto;
  min-height: 220px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.hero-media img{ width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.hero-text h1{ font-size: clamp(2rem, 6.4vw, 3.4rem); margin: .3rem 0 1.1rem; }
.hero-text h1 em{ font-style: italic; color: var(--color-accent); }
.hero-tagline{
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--color-text-soft);
  margin-bottom: 1.9rem;
}
.hero-cta{ margin-bottom: 1.4rem; }
.hero-credentials{ font-size: .72rem; letter-spacing: .04em; color: var(--color-text-soft); }

@media (min-width: 900px){
  .hero-inner{
    flex-direction: row;
    align-items: stretch;
    gap: 4rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .hero-text{
    flex: 0 0 auto;
    width: 46%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero-media{ flex: 1 1 auto; min-height: 0; }
  .hero-media img{ object-position: top center; }
}

.scroll-cue{
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid var(--color-text-soft); border-radius: 20px;
  z-index: 1;
}
.scroll-cue span{
  position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; border-radius: 2px;
  background: var(--color-accent); transform: translateX(-50%);
  animation: scrollcue 1.8s infinite;
}
@keyframes scrollcue{ 0%{ opacity: 1; top: 7px; } 70%{ opacity: 0; top: 20px; } 100%{ opacity: 0; top: 7px; } }
@media (max-width: 640px){ .scroll-cue{ display: none; } }

/* =========================================================
   About / Momento (shared split layout)
   ========================================================= */
.about-grid{
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px){
  .about-grid{ grid-template-columns: .85fr 1.15fr; gap: 4.5rem; }
  .about-grid.reverse{ grid-template-columns: 1.15fr .85fr; }
  .about-grid.reverse .about-media{ order: 2; }
  .about-grid.reverse .about-text{ order: 1; }
}
.about-media img{
  width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top center;
  border-radius: 6px;
}
.about-text .eyebrow{ margin-bottom: .4rem; }
.about-text p{ margin-bottom: 1rem; max-width: 42rem; }
.link-more{
  background: none; border: none; padding: 0; color: var(--color-accent); font-weight: 500;
  font-size: .88rem; display: inline-flex; align-items: center; gap: .35rem; margin-bottom: 1.4rem;
}
.link-more span{ transition: transform .25s var(--ease); }
.link-more:hover span{ transform: translateX(4px); }
.collapse{
  max-height: 0; overflow: hidden; transition: max-height .5s var(--ease);
}
.collapse.is-open{ max-height: 320px; }
.credentials-line{ font-size: .78rem; letter-spacing: .03em; color: var(--color-text-soft); margin-bottom: 1.5rem; }

.pillars-head{ margin-top: 4.5rem; }
.pillars-grid{
  margin-top: 2rem;
  display: grid; gap: 2.2rem;
}
@media (min-width: 700px){
  .pillars-grid{ grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}
.pillar{ text-align: center; padding: 0 1rem; }
.pillar-icon{
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--color-line);
  color: var(--color-gold); margin-bottom: 1.2rem;
}
.pillar-icon svg{ width: 28px; height: 28px; }
.pillar h3{ font-size: 1.3rem; margin-bottom: .55rem; }
.pillar p{ font-size: .9rem; max-width: 22rem; margin: 0 auto; }

/* =========================================================
   Procedures
   ========================================================= */
.filters{
  margin-top: 2.2rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem;
}
.filter-btn{
  background: transparent; border: 1px solid var(--color-line); color: var(--color-text-soft);
  padding: .55rem 1.2rem; border-radius: 999px; font-size: .8rem; letter-spacing: .02em;
  transition: all .25s var(--ease);
}
.filter-btn:hover{ border-color: var(--color-accent); color: var(--color-accent); }
.filter-btn.is-active{ background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

.procedures-grid{
  margin-top: 2.6rem;
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px){
  .procedures-grid{ grid-template-columns: repeat(3, 1fr); gap: 1.7rem; }
}
@media (min-width: 1100px){
  .procedures-grid{ grid-template-columns: repeat(4, 1fr); }
}

.proc-card{
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
  background: var(--color-bg-alt);
  border: none;
  padding: 0;
  display: block;
  width: 100%;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.proc-card:hover{ transform: translateY(-4px); box-shadow: 0 20px 34px -18px rgba(46,36,30,.35); }
.proc-card img{
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.proc-card:hover img{ transform: scale(1.06); }
.proc-card.hide{ display: none; }

.proc-card .proc-scrim{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(46,36,30,0) 45%, rgba(37,28,23,.82) 100%);
}
.proc-card.no-photo{
  background: linear-gradient(155deg, #e9d9c8 0%, #d9b9a1 55%, #c99a80 100%);
}
.proc-card.no-photo .no-photo-icon{
  position: absolute; top: 32%; left: 50%; transform: translate(-50%,-50%);
  width: 56px; height: 56px; color: rgba(90,58,42,.55);
}
.proc-card .proc-label{
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem 1rem;
  color: #fff; z-index: 1;
}
.proc-card .proc-cat{
  display: block; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  opacity: .85; margin-bottom: .25rem;
}
.proc-card .proc-title{
  font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.2;
}
.proc-card.no-photo .proc-cat, .proc-card.no-photo .proc-title{ color: #4A3324; }
.proc-card.no-photo .proc-scrim{ display: none; }

/* =========================================================
   Journey / Experiência
   ========================================================= */
.experience-head{ max-width: 40rem; margin-bottom: 3rem; }
.experience-head p{ margin-top: .8rem; }

.journey{
  display: grid; gap: 2.6rem;
  counter-reset: step;
  position: relative;
}
@media (min-width: 800px){
  .journey{ grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .journey::before{
    content:''; position: absolute; top: 22px; left: 8%; right: 8%; height: 1px; background: var(--color-line);
  }
}
.journey li{ position: relative; }
.journey-number{
  display: inline-block; font-family: var(--font-serif); font-size: 1.6rem; color: var(--color-gold);
  margin-bottom: .8rem; background: var(--color-bg); padding-right: .6rem; position: relative; z-index: 1;
}
.journey h3{ font-size: 1.2rem; margin-bottom: .5rem; }
.journey p{ font-size: .92rem; max-width: 20rem; }

/* =========================================================
   Philosophy / Quotes
   ========================================================= */
.philosophy{ background: var(--color-bg); }
.quotes-grid{
  margin-top: 2.6rem;
  display: grid; gap: 1.3rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 800px){
  .quotes-grid{ grid-template-columns: repeat(4, 1fr); }
}
.quote-card{
  margin: 0;
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 10px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex; align-items: flex-end;
}
.quote-card::before{
  content:''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(46,36,30,.15) 0%, rgba(37,28,23,.86) 100%);
}
.quote-card blockquote{
  position: relative; z-index: 1; margin: 0; padding: 1.2rem;
  color: #fff; font-family: var(--font-serif); font-size: 1.02rem; font-style: italic; line-height: 1.4;
}
.instagram-cta{ text-align: center; margin-top: 2.8rem; }
.instagram-cta a{
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 500; font-size: .92rem; color: var(--color-accent);
  border-bottom: 1px solid currentColor; padding-bottom: .2rem;
  transition: color .25s var(--ease);
}
.instagram-cta a:hover{ color: var(--color-accent-dark); }

/* =========================================================
   Contact
   ========================================================= */
.contact-inner h2{ margin-bottom: .5rem; }
.contact-grid{
  margin-top: 3rem;
  display: grid; gap: 1.8rem;
  text-align: center;
}
@media (min-width: 700px){
  .contact-grid{ grid-template-columns: repeat(3, 1fr); }
}
.contact-card h3{
  font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; font-family: var(--font-sans);
  color: var(--color-gold); font-weight: 600; margin-bottom: .8rem;
}
.contact-card p{ font-size: 1.02rem; color: var(--color-text); }
.contact-card a:hover{ color: var(--color-accent); }
.contact-cta{ text-align: center; margin-top: 3rem; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{ background: #2E241E; color: #E7DCD1; padding: 3rem 0 2rem; }
.footer-inner{ text-align: center; }
.footer-logo{ height: 46px; width: auto; margin: 0 auto 1.2rem; filter: brightness(0) invert(1) opacity(.9); }
.footer-credentials{ font-size: .78rem; letter-spacing: .04em; color: #C9BBAE; margin-bottom: .6rem; }
.footer-copy{ font-size: .78rem; color: #93877C; }

/* =========================================================
   Back to top
   ========================================================= */
.back-to-top{
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 150;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: var(--color-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  box-shadow: 0 10px 24px -10px rgba(46,36,30,.5);
}
.back-to-top.is-visible{ opacity: 1; pointer-events: auto; transform: none; }

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox{
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 1.2rem;
  visibility: hidden; opacity: 0;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.lightbox.is-open{ visibility: visible; opacity: 1; }
.lightbox-backdrop{ position: absolute; inset: 0; background: rgba(37,28,23,.72); backdrop-filter: blur(3px); }
.lightbox-panel{
  position: relative; z-index: 1;
  background: var(--color-surface);
  max-width: 900px; width: 100%; max-height: 88vh;
  overflow-y: auto;
  border-radius: 14px;
  display: grid;
  transform: translateY(16px) scale(.98);
  transition: transform .35s var(--ease);
}
.lightbox.is-open .lightbox-panel{ transform: none; }
@media (min-width: 760px){
  .lightbox-panel{ grid-template-columns: 1fr 1fr; max-height: 82vh; }
}
.lightbox-media{ background: var(--color-bg-alt); min-height: 220px; }
.lightbox-media img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox-content{ padding: 2rem 1.8rem 2.2rem; }
.lightbox-content h3{ font-size: 1.8rem; margin: .3rem 0 1rem; }
.lightbox-content p{ margin-bottom: 1rem; }
.lightbox-close{
  position: absolute; top: .8rem; right: .8rem; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.9); color: var(--color-text);
  font-size: 1.4rem; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.chip-row{ display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.chip{
  font-size: .74rem; letter-spacing: .02em; padding: .4rem .9rem; border-radius: 999px;
  background: var(--color-bg-alt); color: var(--color-text-soft);
}
