/* Personal presentation for the Sorri Sousas homepage. */
.juliana-home .hero { background: #eef1e9; }
.juliana-home .hero-grid { gap: 64px; min-height: 0; padding: 52px 0; align-items: center; }
.juliana-home .hero h1 { font-size: clamp(44px, 4.9vw, 68px); margin-top: 22px; }
.juliana-home .hero h1 em { color: #526548; }
.hero-credentials { margin: 22px 0 0; font-size: 16px; line-height: 1.7; color: #384e40; }
.hero-promise { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid #c9d2c0; font-family: Georgia, serif; font-size: 25px; line-height: 1.35; }
.juliana-home .hero-copy { margin-top: 16px; line-height: 1.7; }
.juliana-home .hero-actions { margin-top: 24px; }
.juliana-home .button { font-size: 14px; min-height: 44px; }
.juliana-home .button-ghost { background: transparent; border-color: #9ea990; }
.juliana-home .portrait > img { aspect-ratio: 4 / 5; object-position: 50% 30%; }
.juliana-home .portrait-card small, .juliana-home .portrait-card span { font-size: 12px; }
.doctor-profile { padding: 88px 0; background: #fafbf8; }
.doctor-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.doctor-profile h2 { font-family: Georgia, serif; font-size: clamp(32px, 3.4vw, 46px); font-weight: 400; line-height: 1.18; letter-spacing: -.035em; margin: 14px 0 26px; }
.doctor-profile h2 em { color: #637457; }
.doctor-name { font-size: 20px; color: var(--green); font-weight: 500; }
.doctor-profile p:not(.eyebrow) { margin-bottom: 18px; }
.doctor-profile .doctor-registration { font-size: 14px; color: var(--muted); margin-bottom: 0; }
.doctor-qualifications { margin: 0; border-top: 1px solid #cdd6c7; }
.doctor-qualifications > div { padding: 25px 0; border-bottom: 1px solid #cdd6c7; }
.doctor-qualifications dt { font: 24px/1.35 Georgia, serif; color: var(--green); }
.doctor-qualifications dt span { display: block; font: 14px/1.5 Arial, sans-serif; color: #82673b; margin-bottom: 8px; }
.doctor-qualifications dd { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.juliana-home .services { background: #f0f3eb; }
.juliana-home .card small { font-size: 14px; }
.juliana-home .eyebrow { font-size: 14px; }
.juliana-home .nav { gap: 22px; font-size: 14px; }
.menu-toggle { display: none; }
/* Refined first viewport: framed portrait, restrained motion and clear hierarchy. */
.juliana-home .hero { background: linear-gradient(110deg, #fafbf7 0%, #f1f3ed 55%, #e4eadd 100%); border-bottom: 1px solid #d6decf; }
.juliana-home .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 76px; padding: 42px 0 48px; }
.juliana-home .hero h1 { font-size: clamp(44px, 4.6vw, 64px); line-height: 1.07; margin-top: 20px; }
.juliana-home .hero .pill { display: flex; align-items: center; gap: 12px; letter-spacing: .13em; }
.juliana-home .hero .pill::before { content: ''; width: 30px; height: 1px; background: #a58a55; flex: 0 0 auto; }
.juliana-home .hero-credentials { margin-top: 20px; line-height: 1.65; }
.juliana-home .hero-promise { border-top: 0; border-left: 2px solid #b99b61; padding: 0 0 0 18px; margin-top: 25px; font-size: 24px; }
.juliana-home .hero-copy { max-width: 440px; }
.juliana-home .portrait-shell { width: 100%; max-width: 450px; justify-self: end; }
.juliana-home .portrait { position: relative; border-radius: 100px 8px 8px 8px; overflow: hidden; box-shadow: 0 24px 50px -30px #173d3470; background: #d8dfd0; }
.portrait-photo { overflow: hidden; aspect-ratio: 4 / 5; }
.portrait-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform-origin: 52% 35%; animation: portrait-breathe 12s ease-in-out infinite alternate; }
.juliana-home .portrait-card { position: absolute; inset: auto 0 0; padding: 56px 26px 24px; background: linear-gradient(transparent, #12392ff0); color: #fff; z-index: 1; }
.juliana-home .portrait-card small { color: #e0cfa7; letter-spacing: .14em; }
.juliana-home .portrait-card strong { color: #fff; font-size: 22px; }
.juliana-home .portrait-card span { color: #e6ede3; }
.motion-paused .portrait-photo img, .motion-offscreen .portrait-photo img { animation-play-state: paused; }
.juliana-home .hero-content > * { animation: hero-arrive .8s ease-out both; }
.juliana-home .hero-content > :nth-child(2) { animation-delay: .08s; }
.juliana-home .hero-content > :nth-child(3) { animation-delay: .16s; }
.juliana-home .hero-content > :nth-child(4) { animation-delay: .24s; }
.juliana-home .hero-content > :nth-child(5) { animation-delay: .32s; }
.juliana-home .hero-content > :nth-child(6) { animation-delay: .4s; }
@keyframes portrait-breathe { from { transform: scale(1); } to { transform: scale(1.055) translateY(-.5%); } }
@keyframes hero-arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
/* Reveal only after the observer is ready; content stays readable without JS. */
.js .juliana-home [data-reveal] { opacity: 1; transform: none; transition: opacity .65s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .juliana-home [data-reveal].reveal-pending { opacity: 0; transform: translateY(24px); }
.js .juliana-home [data-reveal="left"].reveal-pending { transform: translate(-18px, 12px); }
.js .juliana-home [data-reveal="right"].reveal-pending { transform: translate(18px, 12px); }
.js .juliana-home [data-reveal="scale"].reveal-pending { transform: scale(.97); }
.js .juliana-home .hero [data-reveal] { opacity: 1; transform: none; transition: none; }
@media (max-width: 1050px) {
  .juliana-home .hero-grid, .doctor-grid { gap: 36px; }
  .juliana-home .topbar-inner { gap: 16px; }
  .juliana-home .nav { gap: 14px; }
  .juliana-home .brand-mark { display: none; }
}
@media (max-width: 900px) {
  .juliana-home .topbar-inner { flex-wrap: wrap; min-height: 76px; padding: 14px 0; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 10px; border: 1px solid #c9d2c0; border-radius: 4px; padding: 10px 12px; min-height: 44px; color: var(--green); background: transparent; font: inherit; margin-left: auto; cursor: pointer; }
  .juliana-home .topbar-inner > .button { display: none; }
  .juliana-home .nav { display: none; order: 3; width: 100%; border-top: 1px solid #dce3d8; padding-top: 12px; }
  .juliana-home .nav.is-open { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
  .juliana-home .nav a { padding: 10px 0; }
}
@media (max-width: 760px) {
  .juliana-home .hero-grid { grid-template-columns: 1fr; padding: 34px 0; gap: 28px; }
  .juliana-home .portrait-shell { justify-self: center; }
  .juliana-home .portrait { border-top-left-radius: 70px; }
  .portrait-photo { aspect-ratio: 1 / 1.12; }
  .juliana-home .portrait-card { padding: 48px 20px 20px; }
  .juliana-home .portrait-card strong { font-size: 20px; }
  .juliana-home .hero h1 { font-size: clamp(40px, 10.4vw, 58px); }
  .hero-credentials { font-size: 15px; margin-top: 18px; }
  .hero-promise { margin-top: 22px; padding-top: 18px; font-size: 23px; }
  .juliana-home .hero-actions { flex-wrap: wrap; }
  .juliana-home .portrait > img { aspect-ratio: 1 / 1.08; }
  .doctor-profile { padding: 58px 0; }
  .doctor-grid { grid-template-columns: 1fr; gap: 30px; }
  .juliana-home { padding-bottom: 72px; }
  .juliana-home .sorri-chat { bottom: 0; left: 0; right: 0; width: 100%; padding: 10px 50% calc(10px + env(safe-area-inset-bottom)) 14px; background: #fafbf8; border-top: 1px solid #dce3d8; }
  .juliana-home .chat-launcher { min-height: 44px; padding: 10px 14px; font-size: 14px; }
  .juliana-home .floating-wa { z-index: 81; bottom: calc(10px + env(safe-area-inset-bottom)); right: 14px; min-height: 44px; font-size: 14px; padding: 10px 16px; }
  .juliana-home .chat-window { position: fixed; left: 10px; right: 10px; bottom: calc(75px + env(safe-area-inset-bottom)); width: auto; max-height: calc(100dvh - 100px); }
  .juliana-home main section[id], .juliana-home footer[id] { scroll-margin-top: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  .portrait-photo img, .juliana-home .hero-content > * { animation: none; }
  .js .juliana-home [data-reveal], .js .juliana-home [data-reveal].reveal-pending { opacity: 1; transform: none; transition: none; }
}
