/* ============================================
   HODIE — Landing Avaliacao Inicial
   CSS puro, mobile-first, sem framework
   ============================================ */

/* --- Design Tokens (Brandbook) --- */
:root {
  --gold: #C6A75E;
  --creme: #F5EFE8;
  --off-white: #FCFAF5;
  --grafite: #2C2C2C;
  --terracota: #B76E79;
  --gray-65: rgba(44, 44, 44, 0.65);
  --gray-60: rgba(44, 44, 44, 0.60);
  --gray-50: rgba(44, 44, 44, 0.50);
  --gray-75: rgba(44, 44, 44, 0.75);
  --gray-text: #666666;
  --font-cinzel: 'Cinzel', serif;
  --font-cormorant: 'Cormorant Garamond', serif;
  --font-montserrat: 'Montserrat', sans-serif;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-montserrat);
  background-color: var(--creme);
  color: var(--grafite);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Entrance animations --- */
.hero-enter {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 700ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.hero-enter.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Scroll reveal --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 800ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Photo reveal (clip-path) --- */
.photo-reveal {
  clip-path: inset(8% 8% 8% 8%);
  transition: clip-path 1200ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.photo-reveal.is-visible {
  clip-path: inset(0% 0% 0% 0%);
}

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

::selection {
  background-color: var(--gold);
  color: var(--creme);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Header fixo --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--creme);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 300ms ease;
}

.site-header--scrolled {
  box-shadow: 0 1px 8px rgba(44, 44, 44, 0.06);
}

.site-header__logo {
  font-family: var(--font-cinzel);
  font-size: 24px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 4px;
  text-decoration: none;
  line-height: 1;
}

/* --- Main content --- */
.main-content {
  padding-top: 80px; /* header height offset */
}

/* --- Hero section --- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 0;
  text-align: center;
}

/* --- Headline --- */
.headline {
  max-width: 720px;
  width: 100%;
}

.headline__text {
  font-family: var(--font-cinzel);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: 0.5px;
  color: var(--grafite);
}

.headline__separator {
  display: block;
  width: 60px;
  height: 1px;
  background-color: var(--gold);
  margin: 32px auto;
  border: none;
  transform: scaleX(0);
  transition: transform 800ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.headline__separator.is-visible {
  transform: scaleX(1);
}

.headline__thesis {
  font-family: var(--font-cormorant);
  font-weight: 400;
  font-style: italic;
  font-size: 24px;
  color: var(--gold);
  line-height: 1.3;
}

/* --- Sub-headline --- */
.sub-headline {
  max-width: 640px;
  width: 100%;
  margin-top: 32px;
  font-family: var(--font-cormorant);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-75);
  text-align: center;
}

/* --- CTA Button --- */
.cta-wrapper {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-button {
  width: 280px;
  height: 56px;
  background-color: var(--grafite);
  color: var(--creme);
  font-family: var(--font-montserrat);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.5px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(44, 44, 44, 0.15);
  transition: background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-button:hover {
  background-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(44, 44, 44, 0.2);
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(44, 44, 44, 0.15);
}

.cta-button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.cta-microcopy {
  margin-top: 16px;
  font-family: var(--font-montserrat);
  font-weight: 400;
  font-size: 14px;
  color: var(--gray-text);
}

/* --- Foto Dra. Lailla --- */
.doctor-photo {
  margin-top: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}

.doctor-photo__frame {
  position: relative;
  max-width: 360px;
  width: 100%;
}

.doctor-photo__img {
  width: 100%;
  max-width: 360px;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.doctor-photo__caption {
  margin-top: 16px;
  font-family: var(--font-cormorant);
  font-weight: 400;
  font-style: italic;
  font-size: 16px;
  color: var(--gray-60);
  text-align: center;
}

/* --- Bloco de autoridade --- */
.authority {
  margin-top: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 24px;
}

.authority__line {
  font-family: var(--font-montserrat);
  font-weight: 400;
  font-size: 14px;
  color: var(--gray-65);
  line-height: 1.4;
}

/* --- Bloco de tres provas --- */
.proof-section {
  margin-top: 80px;
  padding: 0 24px 48px;
}

.proof-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.proof-block {
  text-align: center;
}

.proof-block__number {
  font-family: var(--font-cinzel);
  font-weight: 400;
  font-size: 48px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.proof-block__text {
  font-family: var(--font-montserrat);
  font-weight: 400;
  font-size: 14px;
  color: var(--grafite);
  font-style: italic;
  line-height: 1.5;
}

/* --- Rodape --- */
.site-footer {
  border-top: 1px solid var(--gold);
  background-color: var(--creme);
  padding: 32px 24px;
  text-align: center;
}

.site-footer__text {
  font-family: var(--font-montserrat);
  font-weight: 400;
  font-size: 12px;
  color: var(--gray-50);
  line-height: 1.8;
}

/* ============================================
   RESPONSIVE — Tablet (768px+)
   ============================================ */
@media (min-width: 768px) {
  .hero {
    padding: 64px 40px 0;
  }

  .headline__thesis {
    font-size: 32px;
  }

  .sub-headline {
    font-size: 18px;
  }

  .cta-button {
    width: 320px;
  }

  .doctor-photo__frame {
    max-width: 420px;
  }

  .doctor-photo__img {
    max-width: 420px;
  }

  .headline__text {
    font-size: 44px;
    line-height: 1.2;
  }

  .proof-section {
    margin-top: 120px;
    padding: 0 24px 80px;
  }

  .proof-grid {
    flex-direction: row;
    justify-content: center;
    gap: 64px;
  }

  .proof-block {
    flex: 0 1 200px;
  }

  .proof-block__number {
    font-size: 64px;
    margin-bottom: 12px;
  }
}

/* ============================================
   RESPONSIVE — Desktop (1440px+)
   ============================================ */
@media (min-width: 1024px) {
  .hero {
    padding: 80px 64px 0;
  }

  .headline__text {
    font-size: 56px;
  }

  .headline__thesis {
    font-size: 40px;
  }

  .sub-headline {
    font-size: 20px;
  }

  .cta-button {
    width: 320px;
  }

  .doctor-photo {
    margin-top: 96px;
  }

  .doctor-photo__frame {
    max-width: 480px;
  }

  .doctor-photo__img {
    max-width: 480px;
  }

  .proof-grid {
    gap: 80px;
  }

  .proof-block {
    flex: 0 1 240px;
  }
}

/* ============================================
   Accessibility: prefers-reduced-motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .hero-enter,
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .photo-reveal {
    clip-path: none;
    transition: none;
  }

  .headline__separator {
    transform: none;
    transition: none;
  }

  .cta-button {
    transition: none;
  }

  .site-header {
    transition: none;
  }
}
