/* ==========================================================================
   DRA. ANDREZA RODRIGUES - DESIGN SYSTEM & STYLESHEET
   100% Mobile-First Luxury Cosmetic Dentistry Bio Hub
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-main: #E8DDD7;
  --rose-dark: #8C5C5C;
  --rose-light: #DCC9C2;
  --brown-elegant: #6A4545;
  --text-main: #3A2C2C;
  --text-muted: #6E5B5B;
  --white: #FFFFFF;
  --gray-light: #F7F5F3;
  --border-light: rgba(220, 201, 194, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 12px 32px rgba(106, 69, 69, 0.08);
  --glass-glow: 0 0 20px rgba(220, 201, 194, 0.3);

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Transitions */
  --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-in-out-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.25s var(--ease-out-cubic);
  --transition-normal: 0.4s var(--ease-out-cubic);
  --transition-slow: 0.7s var(--ease-out-cubic);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body {
  min-height: 100vh;
  position: relative;
  touch-action: pan-y;
  overflow-x: hidden;
  background-color: var(--bg-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  margin: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(220, 201, 194, 0.35) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(140, 92, 92, 0.12) 0%, transparent 45%),
    url('../img/bg-noise.svg');
  background-repeat: repeat;
  pointer-events: none;
  z-index: 0;
}

/* Container Frame for Mobile First (centered desktop preview) */
.app-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 1.5rem 1.25rem 3rem 1.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

/* Ambient Lighting & Organic Glow Shapes */
.ambient-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 201, 194, 0.45) 0%, rgba(232, 221, 215, 0) 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  animation: floatAmbient 12s infinite alternate ease-in-out;
}

/* Header & Brand Logo */
.brand-header {
  text-align: center;
  padding-top: 0.5rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-logo {
  max-width: 60px;
  height: auto;
  transition: transform var(--transition-normal);
  filter: drop-shadow(0 4px 10px rgba(106, 69, 69, 0.1));
}

.brand-logo:hover {
  transform: scale(1.03);
}

.brand-tagline {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown-elegant);
  margin-top: 0.4rem;
  opacity: 0.85;
  position: relative;
  display: inline-block;
}

.brand-tagline::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--rose-dark);
  margin: 0.4rem auto 0 auto;
  opacity: 0.6;
}

.brand-credentials {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--rose-dark);
  margin-top: 0.2rem;
  opacity: 0.9;
  text-transform: uppercase;
}


.brand-name {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--brown-elegant);
  letter-spacing: 0.04em;
  margin-top: 0.6rem;
  line-height: 1.2;
}

/* ==========================================================================
   HERO SECTION - COMPOSIÇÃO DE FOTOS & CARD PREMIUMP
   ========================================================================== */

.hero-section {
  width: 100%;
  position: relative;
  margin-bottom: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Composition Container */
.photo-composition {
  position: relative;
  width: 100%;
  max-width: 350px; 
  height: 360px;
  margin: 0 auto 1.25rem auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* Side Color Photo Cards */
.photo-side {
  position: absolute;
  width: 150px;
  height: 210px;
  border-radius: 20px;
  overflow: hidden;
  border: 2.5px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 16px 40px rgba(30, 20, 20, 0.35),
    0 4px 12px rgba(140, 92, 92, 0.2),
    inset 0 0 0 1px rgba(220, 201, 194, 0.25);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  background-color: #111;
  z-index: 2;
}

.photo-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}

.photo-side:hover img {
  transform: scale(1.05);
}

/* Left Side Photo */
.photo-left {
  left: 0;
  top: 30px;
  transform: rotate(-8deg) translateX(12px);
}

/* Right Side Photo */
.photo-right {
  right: 0;
  top: 30px;
  transform: rotate(8deg) translateX(-12px);
}

/* Central Main Photo — Premium Frame */
.photo-center-main {
  position: absolute;
  z-index: 5;
  width: 240px;
  height: 300px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 24px;
  overflow: hidden;
  border: 3.5px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 28px 60px rgba(58, 44, 44, 0.38),
    0 10px 25px rgba(140, 92, 92, 0.22),
    0 0 0 1px rgba(220, 201, 194, 0.5),
    inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  background-color: #111;
}

.photo-center-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
  display: block;
}

/* Hover Physics for Composition */
.photo-composition:hover .photo-left {
  transform: rotate(-11deg) translateX(6px) translateY(-8px);
  box-shadow:
    0 22px 50px rgba(30, 20, 20, 0.4),
    0 6px 16px rgba(140, 92, 92, 0.25);
}

.photo-composition:hover .photo-right {
  transform: rotate(11deg) translateX(-6px) translateY(-8px);
  box-shadow:
    0 22px 50px rgba(30, 20, 20, 0.4),
    0 6px 16px rgba(140, 92, 92, 0.25);
}

.photo-composition:hover .photo-center-main {
  transform: translateX(-50%) scale(1.03) translateY(-6px);
  box-shadow:
    0 36px 70px rgba(58, 44, 44, 0.42),
    0 14px 32px rgba(140, 92, 92, 0.28),
    0 0 0 1px rgba(220, 201, 194, 0.6);
}

/* Card Branco Premium */
.welcome-card {
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--glass-shadow);
  position: relative;
  z-index: 6;
  margin-top: -15px;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.welcome-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rose-light), var(--rose-dark), var(--rose-light), transparent);
}

.welcome-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(106, 69, 69, 0.12);
}

.welcome-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--brown-elegant);
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.welcome-subtitle {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-main);
  opacity: 0.88;
  line-height: 1.45;
}

/* ==========================================================================
   HUB BUTTONS / CARDS (LINKS NA BIO)
   ========================================================================== */

.hub-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

/* Card Button Link Base */
.hub-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.35rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  text-decoration: none;
  color: var(--text-main);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(106, 69, 69, 0.05);
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}

/* Highlight Primary Button (Agendar Consulta) */
.hub-card-primary {
  background: linear-gradient(135deg, rgba(140, 92, 92, 0.92) 0%, rgba(106, 69, 69, 0.96) 100%);
  border: 1px solid rgba(220, 201, 194, 0.4);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(140, 92, 92, 0.3);
}

.hub-card-primary .hub-card-title {
  color: var(--white);
}

.hub-card-primary .hub-card-sub {
  color: rgba(255, 255, 255, 0.85);
}

.hub-card-primary .hub-icon-wrapper {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.hub-card-primary .hub-arrow {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

/* Icon & Text Inner Layout */
.hub-card-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hub-icon-wrapper {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(247, 245, 243, 0.8);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--rose-dark);
  transition: transform var(--transition-fast), background var(--transition-fast);
  flex-shrink: 0;
}

.hub-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
}

.hub-card-title {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--brown-elegant);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0;
  padding: 0;
}

.hub-card-sub {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

.hub-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(232, 221, 215, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown-elegant);
  font-size: 0.85rem;
  transition: transform var(--transition-fast), background var(--transition-fast);
  flex-shrink: 0;
}

/* Glass Reflection & Shimmer Effects */
.hub-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  transition: left 0.75s ease-in-out;
  pointer-events: none;
}

.hub-card:hover::after {
  left: 140%;
}

.hub-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 14px 32px rgba(106, 69, 69, 0.12);
  border-color: rgba(255, 255, 255, 1);
}

.hub-card:hover .hub-arrow {
  transform: translateX(4px);
  background: var(--rose-dark);
  color: var(--white);
}

.hub-card:hover .hub-icon-wrapper {
  transform: scale(1.08);
}

.hub-card:active {
  transform: scale(0.98);
}

/* ==========================================================================
   SESSÃO FINAL & CTA
   ========================================================================== */

.final-section {
  width: 100%;
  text-align: center;
  padding: 1.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
  box-shadow: 0 10px 30px rgba(106, 69, 69, 0.04);
}

.final-phrase {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--brown-elegant);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.final-subphrase {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--rose-dark);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.btn-cta-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 1.1rem 1.5rem;
  background: linear-gradient(135deg, #8C5C5C 0%, #6A4545 100%);
  color: var(--white);
  border-radius: 18px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(140, 92, 92, 0.35);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-cta-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(140, 92, 92, 0.45);
}

.btn-cta-large:active {
  transform: scale(0.98);
}

/* ==========================================================================
   RODAPÉ MINIMALISTA
   ========================================================================== */

.footer-minimal {
  text-align: center;
  padding: 1rem 0;
  margin-top: auto;
  border-top: 1px solid rgba(140, 92, 92, 0.15);
  width: 100%;
}

.footer-credit {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.footer-agency {
  font-weight: 700;
  color: var(--brown-elegant);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-agency:hover {
  color: var(--rose-dark);
  text-decoration: underline;
}

/* ==========================================================================
   MODAIS INTERATIVOS (TRATAMENTOS, LOCALIZAÇÃO, AVALIAÇÕES, DIFERENCIAIS)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(58, 44, 44, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  max-height: 88dvh;
  background: var(--gray-light);
  border-radius: 32px 32px 0 0;
  padding: 1.5rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 20px)) 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -15px 40px rgba(58, 44, 44, 0.2);
  overflow: hidden;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--rose-light);
  border-radius: 2px;
  margin: 0 auto 1rem auto;
  opacity: 0.8;
  flex-shrink: 0;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--brown-elegant);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(220, 201, 194, 0.4);
  border: none;
  color: var(--brown-elegant);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--rose-dark);
  color: var(--white);
}

/* Scrollable Modal Body */
.modal-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-bottom: 1rem;
  padding-right: 4px;
}

/* Sticky Modal Footer for Action Buttons */
.modal-footer {
  flex-shrink: 0;
  padding-top: 0.85rem;
  margin-top: 0.25rem;
  background: var(--gray-light);
  box-shadow: 0 -10px 20px rgba(247, 245, 243, 0.9);
  position: relative;
  z-index: 10;
}

/* Treatment List inside Modal */
.treatment-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.treatment-item {
  background: var(--white);
  border-radius: 18px;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 4px 12px rgba(106, 69, 69, 0.03);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.treatment-item:hover {
  transform: translateX(4px);
  border-color: var(--rose-dark);
}

.treatment-info h4 {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--brown-elegant);
}

.treatment-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.treatment-book-btn {
  padding: 0.5rem 0.9rem;
  background: var(--rose-dark);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition-fast);
}

.treatment-book-btn:hover {
  background: var(--brown-elegant);
}
