/* =============================================
   PACIENTE MODELO — Instituto Sanauá Peixoto
   Landing Page — Mobile First, Premium Design
   ============================================= */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Color Palette — Warm Neutrals + Gold */
  --color-bg-deep: #1A1410;
  --color-bg-main: #2A2118;
  --color-bg-card: #342A20;
  --color-surface: rgba(245, 237, 227, 0.04);
  --color-surface-hover: rgba(245, 237, 227, 0.08);

  --color-cream: #F5EDE3;
  --color-cream-soft: #E8DDD0;
  --color-warm-gray: #A89A8B;
  --color-text-body: #C8B9A8;
  --color-text-muted: #8A7D6F;

  --color-gold: #C9A96E;
  --color-gold-bright: #DDBF7E;
  --color-gold-glow: rgba(201, 169, 110, 0.25);

  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1DA851;
  --color-whatsapp-glow: rgba(37, 211, 102, 0.30);

  /* Typography */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 50px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 200ms var(--ease-out-expo);
  --transition-normal: 400ms var(--ease-out-expo);
  --transition-slow: 700ms var(--ease-out-expo);
}


/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-deep);
  color: var(--color-text-body);
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
}


/* --- Page Wrapper --- */
.page-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: var(--space-lg);
  overflow: hidden;
}


/* --- Background Decorative Glows --- */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow--top {
  width: 350px;
  height: 350px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, var(--color-gold-glow) 0%, transparent 70%);
  animation: glowPulse 6s ease-in-out infinite alternate;
}

.bg-glow--bottom {
  width: 300px;
  height: 300px;
  bottom: -100px;
  left: -100px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.12) 0%, transparent 70%);
  animation: glowPulse 8s ease-in-out infinite alternate-reverse;
}


/* --- Gold Decorative Lines --- */
.gold-line {
  position: absolute;
  width: 1px;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--color-gold), transparent);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.gold-line--left {
  top: 10%;
  left: 8%;
  animation: lineShimmer 4s ease-in-out infinite alternate;
}

.gold-line--right {
  bottom: 10%;
  right: 8%;
  animation: lineShimmer 5s ease-in-out infinite alternate-reverse;
}


/* --- Main Container --- */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
}


/* --- Brand Logo --- */
.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInDown 0.8s var(--ease-out-expo) both;
}

.brand-logo__img {
  width: 160px;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
  filter: brightness(1.1);
  transition: opacity var(--transition-fast);
}

.brand-logo__img:hover {
  opacity: 1;
}


/* --- Hero Section --- */
.hero {
  animation: fadeInUp 0.9s var(--ease-out-expo) 0.15s both;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  color: var(--color-cream-soft);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.02em;
}

.hero__title {
  display: flex;
  flex-direction: column;
  line-height: 0.9;
}

.hero__title-line {
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 700;
  color: var(--color-cream);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.hero__title-line--accent {
  color: var(--color-gold-bright);
  text-shadow: 0 0 40px var(--color-gold-glow);
}


/* --- Value Proposition --- */
.value {
  animation: fadeInUp 0.9s var(--ease-out-expo) 0.3s both;
}

.value__text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-body);
  max-width: 360px;
}

.value__text strong {
  font-weight: 500;
  color: var(--color-cream-soft);
}


/* --- Callout --- */
.callout {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid rgba(201, 169, 110, 0.10);
  animation: fadeInUp 0.9s var(--ease-out-expo) 0.45s both;
}

.callout__icon {
  flex-shrink: 0;
  color: var(--color-gold);
  display: flex;
  align-items: center;
}

.callout__text {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-warm-gray);
  text-align: left;
}

.callout__text strong {
  color: var(--color-gold-bright);
  font-weight: 600;
}


/* --- CTA Button --- */
.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  max-width: 360px;
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-whatsapp) 0%, var(--color-whatsapp-dark) 100%);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 20px var(--color-whatsapp-glow),
    0 0 60px rgba(37, 211, 102, 0.10);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  animation: fadeInUp 0.9s var(--ease-out-expo) 0.6s both,
    ctaPulse 3s ease-in-out 1.5s infinite;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.15),
      transparent);
  transition: left 0.6s ease;
}

.cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 8px 32px var(--color-whatsapp-glow),
    0 0 80px rgba(37, 211, 102, 0.15);
}

.cta-btn:hover::before {
  left: 100%;
}

.cta-btn:active {
  transform: translateY(0) scale(0.98);
}

.cta-btn__icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.cta-btn__text {
  white-space: nowrap;
}

.cta-btn__arrow {
  font-size: 1.2rem;
  transition: transform var(--transition-fast);
}

.cta-btn:hover .cta-btn__arrow {
  transform: translateX(4px);
}


/* --- Trust Footer --- */
.trust-footer {
  animation: fadeInUp 0.9s var(--ease-out-expo) 0.75s both;
}

.trust-footer__text {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}


/* =============================================
   ANIMATIONS
   ============================================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  from {
    opacity: 0.4;
    transform: scale(0.9);
  }

  to {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

@keyframes lineShimmer {
  from {
    opacity: 0.1;
  }

  to {
    opacity: 0.3;
  }
}

@keyframes ctaPulse {

  0%,
  100% {
    box-shadow:
      0 4px 20px var(--color-whatsapp-glow),
      0 0 60px rgba(37, 211, 102, 0.10);
  }

  50% {
    box-shadow:
      0 6px 28px rgba(37, 211, 102, 0.40),
      0 0 80px rgba(37, 211, 102, 0.18);
  }
}


/* =============================================
   RESPONSIVE — Tablet & Desktop
   ============================================= */

/* Small phones (< 360px) */
@media (max-width: 359px) {
  .brand-logo__img {
    width: 120px;
  }

  .hero__title-line {
    font-size: 2.8rem;
  }

  .hero__eyebrow {
    font-size: 0.9rem;
  }

  .value__text {
    font-size: 0.85rem;
  }

  .cta-btn {
    font-size: 0.95rem;
    padding: var(--space-md) var(--space-lg);
  }
}

/* Tablets */
@media (min-width: 600px) {
  .brand-logo__img {
    width: 180px;
  }

  .container {
    gap: var(--space-xl);
  }

  .hero__title-line {
    font-size: 4.5rem;
  }

  .hero__eyebrow {
    font-size: 1.15rem;
  }

  .value__text {
    font-size: 1.05rem;
    max-width: 400px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .brand-logo__img {
    width: 200px;
  }

  .page-wrapper {
    padding: var(--space-3xl);
  }

  .container {
    max-width: 520px;
    gap: var(--space-2xl);
  }

  .hero__title-line {
    font-size: 5.2rem;
  }

  .hero__eyebrow {
    font-size: 1.25rem;
  }

  .value__text {
    font-size: 1.1rem;
    max-width: 440px;
  }

  .cta-btn {
    max-width: 400px;
    font-size: 1.1rem;
    padding: var(--space-lg) var(--space-2xl);
  }

  .bg-glow--top {
    width: 500px;
    height: 500px;
  }

  .bg-glow--bottom {
    width: 450px;
    height: 450px;
  }
}

/* Large Desktop */
@media (min-width: 1440px) {
  .container {
    max-width: 580px;
  }

  .hero__title-line {
    font-size: 5.8rem;
  }
}


/* =============================================
   ACCESSIBILITY
   ============================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus Styles */
.cta-btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 4px;
}