/* ============================================================
   Juliana Monteiro · Fonoaudiologia Oncológica
   Paleta: Verde-petróleo & creme
   ============================================================ */

:root {
  /* Cores */
  --petrol:        #114B45;
  --petrol-deep:   #0C3833;
  --petrol-soft:   #2C6660;
  --cream:         #F7F2EA;
  --cream-deep:    #EFE7D9;
  --gold:          #C8A15A;
  --gold-soft:     #E0C892;
  --charcoal:      #2B2B2B;
  --ink-soft:      #55524C;
  --white:         #FFFFFF;

  /* Tipografia */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1180px;
  --radius:    18px;
  --radius-lg: 30px;
  --shadow-sm: 0 6px 20px rgba(17, 75, 69, 0.08);
  --shadow-md: 0 18px 45px rgba(12, 56, 51, 0.14);
  --shadow-lg: 0 30px 70px rgba(12, 56, 51, 0.22);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 2.5rem);
}

/* ---------- Reusable pieces ---------- */
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 1rem;
}
.eyebrow-light { color: var(--gold-soft); }

.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }

.section-title {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  color: var(--petrol);
  margin-bottom: 1.2rem;
}

.section-head { max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-intro { color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  will-change: transform;
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-ico { font-size: 1.05em; line-height: 1; }

.btn-primary {
  background: var(--gold);
  color: var(--petrol-deep);
  box-shadow: 0 12px 26px rgba(200, 161, 90, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(200, 161, 90, 0.45); }

.btn-ghost {
  background: transparent;
  color: var(--petrol);
  border-color: rgba(17, 75, 69, 0.3);
}
.btn-ghost:hover { border-color: var(--petrol); background: rgba(17, 75, 69, 0.05); transform: translateY(-3px); }

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(247, 242, 234, 0.45);
}
.btn-outline:hover { background: rgba(247, 242, 234, 0.12); border-color: var(--cream); transform: translateY(-3px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 234, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(17, 75, 69, 0.08);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); background: rgba(247, 242, 234, 0.95); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--petrol);
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--serif); font-weight: 600; color: var(--petrol); font-size: 1.06rem; }
.brand-tag { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }

/* Nav */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-menu a {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--petrol);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-menu a:hover { background: rgba(17, 75, 69, 0.07); }
.nav-menu .nav-cta {
  background: var(--petrol);
  color: var(--cream);
  margin-left: 0.4rem;
}
.nav-menu .nav-cta:hover { background: var(--petrol-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 0 11px;
  background: transparent;
  border: 1px solid rgba(17, 75, 69, 0.2);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--petrol);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(200, 161, 90, 0.14), transparent 60%),
    radial-gradient(900px 620px at 8% 108%, rgba(44, 102, 96, 0.14), transparent 55%),
    var(--cream);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-title {
  font-size: clamp(2.6rem, 1.6rem + 4.4vw, 4.7rem);
  color: var(--petrol);
  margin: 0.4rem 0 1.4rem;
}
.hero-lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  color: var(--ink-soft);
  max-width: 30ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.4rem; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 0; padding: 0;
}
.hero-badges li {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--petrol);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(17, 75, 69, 0.14);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}

/* Hero media */
.hero-media { position: relative; justify-self: center; }
.hero-photo-frame {
  position: relative;
  z-index: 2;
  border-radius: 260px 260px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
  max-width: 420px;
}
.hero-photo-frame img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top center; }
.hero-photo-glow {
  position: absolute;
  inset: -14% -10% -8% -12%;
  z-index: 1;
  background: conic-gradient(from 140deg, var(--gold-soft), var(--petrol-soft), var(--gold-soft));
  filter: blur(46px);
  opacity: 0.35;
  border-radius: 50%;
}

.hero-scroll {
  position: absolute;
  left: 50%; bottom: 18px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(17, 75, 69, 0.35);
  border-radius: 20px;
}
.hero-scroll span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--petrol);
  border-radius: 2px;
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ============================================================
   SOBRE
   ============================================================ */
.sobre { background: var(--cream); }
.sobre-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.sobre-media { position: relative; }
.sobre-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.sobre-media-badge {
  position: absolute;
  right: -14px; bottom: 26px;
  background: var(--petrol);
  color: var(--cream);
  padding: 0.85rem 1.3rem;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.sobre-media-badge strong { font-family: var(--serif); font-size: 1.05rem; color: var(--gold-soft); }
.sobre-media-badge span { font-size: 0.78rem; opacity: 0.9; }

.cred-list { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.cred-list li {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.cred-ico { color: var(--gold); font-size: 0.7rem; flex: none; }

/* ============================================================
   ATUAÇÃO
   ============================================================ */
.atuacao { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%); }
.atuacao-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(1.6rem, 3.5vw, 3rem);
  align-items: stretch;
}
.area-cards {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.area-card {
  background: var(--white);
  border: 1px solid rgba(17, 75, 69, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.area-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(200, 161, 90, 0.5); }
.area-ico {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(17, 75, 69, 0.08);
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
}
.area-card h3 { color: var(--petrol); font-size: 1.2rem; margin-bottom: 0.4rem; }
.area-card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

.atuacao-photo {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 340px;
}
.atuacao-photo img { width: 100%; height: 100%; object-fit: cover; }
.atuacao-photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1.4rem 1.2rem;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  background: linear-gradient(to top, rgba(12, 56, 51, 0.92), transparent);
}

/* ============================================================
   ENSINO & PESQUISA
   ============================================================ */
.ensino { background: var(--cream-deep); }
.ensino-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.ensino-copy p { color: var(--ink-soft); }
.ensino-copy .section-title { margin-bottom: 1.4rem; }

.ensino-highlights {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.ensino-highlights li {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.ensino-highlights li:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.hl-ico { font-size: 1.7rem; display: block; margin-bottom: 0.7rem; }
.ensino-highlights h3 { color: var(--petrol); font-size: 1.08rem; margin-bottom: 0.35rem; }
.ensino-highlights p { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }

/* ============================================================
   PILARES
   ============================================================ */
.pilares {
  background:
    radial-gradient(800px 500px at 90% 10%, rgba(200, 161, 90, 0.12), transparent 60%),
    var(--petrol);
  color: var(--cream);
}
.pilares .section-title { color: var(--cream); }
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 0.9fr;
  gap: 1.4rem;
  align-items: stretch;
}
.pilar {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(247, 242, 234, 0.14);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.pilar:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.08); border-color: rgba(200, 161, 90, 0.5); }
.pilar-num {
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.6rem;
}
.pilar h3 { color: var(--cream); font-size: 1.5rem; margin-bottom: 0.7rem; }
.pilar p { color: rgba(247, 242, 234, 0.82); font-size: 0.96rem; margin: 0; }

.pilares-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 260px;
}
.pilares-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* ============================================================
   CONTATO
   ============================================================ */
.contato {
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(44, 102, 96, 0.16), transparent 60%),
    var(--petrol-deep);
  color: var(--cream);
  text-align: center;
}
.contato-inner { max-width: 780px; margin: 0 auto; }
.contato-title { color: var(--cream); }
.contato-lead { color: rgba(247, 242, 234, 0.85); font-size: 1.1rem; max-width: 60ch; margin: 0 auto 2.4rem; }
.contato-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--petrol-deep); color: rgba(247, 242, 234, 0.75); padding: 3rem 0 2rem; border-top: 1px solid rgba(247, 242, 234, 0.1); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(247, 242, 234, 0.12);
}
.footer-brand { display: flex; align-items: center; gap: 0.9rem; }
.footer-name { font-family: var(--serif); color: var(--cream); font-size: 1.1rem; margin: 0; }
.footer-role { font-size: 0.82rem; margin: 0.1rem 0 0; }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.92rem; font-weight: 500; color: var(--cream); position: relative; transition: color 0.25s var(--ease); }
.footer-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1.5px; background: var(--gold);
  transition: width 0.3s var(--ease);
}
.footer-links a:hover { color: var(--gold-soft); }
.footer-links a:hover::after { width: 100%; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.6rem;
  font-size: 0.82rem;
}
.footer-bottom p { margin: 0; }
.footer-note { color: var(--gold-soft); letter-spacing: 0.06em; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-media { order: 1; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-scroll { display: none; }

  .sobre-grid { grid-template-columns: 1fr; }
  .sobre-media { max-width: 460px; margin: 0 auto; }

  .atuacao-grid { grid-template-columns: 1fr; }
  .atuacao-photo { min-height: 300px; }

  .ensino-inner { grid-template-columns: 1fr; }

  .pilares-grid { grid-template-columns: repeat(2, 1fr); }
  .pilares-photo { grid-column: 1 / -1; min-height: 320px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: var(--cream);
    padding: 1rem clamp(1.2rem, 4vw, 2.5rem) 1.5rem;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(17, 75, 69, 0.1);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .nav-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: 0.85rem 1rem; }
  .nav-menu .nav-cta { margin-left: 0; text-align: center; }

  .brand-tag { display: none; }

  .area-cards { grid-template-columns: 1fr; }
  .ensino-highlights { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
  .pilares-grid { grid-template-columns: 1fr; }
  .sobre-media-badge { right: 10px; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll span { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
