/* ==========================================================================
   GABI ALVES - BIO INSTAGRAM
   Design System & Styling
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-sand-light: #F4EFEB;
  --bg-sand: #EAE3D8;
  --bg-sand-dark: #DDD4C6;
  
  --bg-card: #FAF8F5;
  --bg-card-hover: #FFFFFF;
  --card-border: rgba(195, 185, 172, 0.45);
  --card-shadow: 0 8px 24px -4px rgba(60, 50, 40, 0.06), 0 2px 6px -1px rgba(60, 50, 40, 0.04);
  --card-shadow-hover: 0 16px 32px -6px rgba(60, 50, 40, 0.12), 0 4px 10px -2px rgba(60, 50, 40, 0.06);

  --color-olive-dark: #37422C;
  --color-olive-deep: #2F3924;
  --color-olive-text: #454E3A;
  --color-body-text: #5F6755;
  --color-body-light: #ECE5DC;
  --color-cream: #FAF7F2;

  /* Fonts */
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-smooth: 0.35s;
}

/* 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: #262B20;
}

body {
  font-family: var(--font-sans);
  color: var(--color-olive-text);
  line-height: 1.5;
  background-color: var(--bg-sand);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Desktop Centering Wrapper */
.bio-wrapper {
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  background-color: var(--bg-sand);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.25);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bio-card-container {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   1. HERO SECTION (COMPACT & BALANCED)
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #F4EFEB 0%, var(--bg-sand) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 1.25rem;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: clamp(230px, 58vw, 270px);
  overflow: hidden;
  background-color: var(--bg-sand);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  filter: contrast(1.04) brightness(1.02) saturate(1.04);
  transform: scale(1.01);
  transition: transform 0.8s ease-out;
  image-rendering: -webkit-optimize-contrast;
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.03);
}

/* Seamless gradient mask that blends photo with sandy background */
.hero-gradient-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(
    to bottom,
    rgba(234, 227, 216, 0) 0%,
    rgba(234, 227, 216, 0.4) 35%,
    rgba(234, 227, 216, 0.85) 75%,
    var(--bg-sand) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  margin-top: -2.2rem;
  padding: 0 1.5rem;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 7.5vw, 2.75rem);
  font-weight: 500;
  font-style: italic;
  color: var(--color-olive-dark);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--color-body-text);
  line-height: 1.4;
  max-width: 340px;
}

/* ==========================================================================
   TOP SOCIAL MEDIA BAR (YOUTUBE, TIKTOK, INSTAGRAM, FACEBOOK)
   ========================================================================== */
.top-social-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.1rem;
  padding: 0.25rem 0;
}

.top-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: transparent;
  color: #3A4232;
  transition: transform var(--duration-smooth) var(--ease-spring),
              color var(--duration-smooth) ease,
              background var(--duration-smooth) ease;
  text-decoration: none;
}

.top-social-btn svg {
  width: 26px;
  height: 26px;
}

.top-social-btn:hover {
  transform: translateY(-2px) scale(1.12);
  color: #1A2114;
  background: rgba(58, 66, 50, 0.08);
}

.top-social-btn:active {
  transform: scale(0.95);
}

/* ==========================================================================
   2. SERVICES / LINK CARDS (DYNAMIC INTERCALATED ENTRANCES)
   ========================================================================== */
.services-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 0.25rem 1.5rem 2rem 1.5rem;
  background-color: var(--bg-sand);
  overflow: hidden;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  
  /* Initial transition and state for dynamic scroll entrance */
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow var(--duration-smooth) var(--ease-spring),
              background var(--duration-smooth) ease,
              border-color var(--duration-smooth) ease;
}

/* Intercalating Slide Directions */
.service-card.slide-left {
  transform: translateX(-55px);
}

.service-card.slide-right {
  transform: translateX(55px);
}

/* Activated Visible State */
.service-card.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Interactive Hover States */
.service-card.is-visible:hover {
  transform: translateY(-3px) scale(1.015);
  background: var(--bg-card-hover);
  border-color: rgba(180, 168, 150, 0.75);
  box-shadow: var(--card-shadow-hover);
}

.service-card:active {
  transform: scale(0.985);
}

/* ==========================================================================
   BANNER CARDS (IMAGE BUTTONS - COMPACT & ELEGANT)
   ========================================================================== */
.service-card.banner-card {
  width: 100%;
  max-width: 360px;
  padding: 0;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(195, 185, 172, 0.55);
  background: var(--bg-card);
  box-shadow: 0 6px 18px -3px rgba(60, 50, 40, 0.08), 0 2px 5px -1px rgba(60, 50, 40, 0.04);
  line-height: 0;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
}

.banner-image-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.service-card.banner-card.is-visible:hover {
  transform: translateY(-4px) scale(1.018);
  box-shadow: 0 14px 28px -5px rgba(47, 57, 36, 0.18), 0 4px 10px -2px rgba(47, 57, 36, 0.08);
  border-color: rgba(70, 85, 56, 0.45);
}

.service-card.banner-card.is-visible:hover .banner-image {
  transform: scale(1.025);
  filter: brightness(1.025) contrast(1.02);
}

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

/* Media styling inside legacy cards */
.card-media {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Circular Images (Cards 1 & 2) */
.media-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 2px solid #FFFFFF;
}

.media-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.service-card:hover .media-circle img {
  transform: scale(1.08);
}

/* Rounded / Stacked container (Card 3) */
.media-rounded {
  width: 100px;
  height: 100px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 2px solid #FFFFFF;
}

.media-rounded img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.service-card:hover .media-rounded img {
  transform: scale(1.08);
}

/* Text inside cards */
.card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  font-style: italic;
  color: var(--color-olive-dark);
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.card-desc {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.42;
  color: var(--color-body-text);
}

.card-desc strong {
  color: var(--color-olive-dark);
  font-weight: 600;
}

.card-right-image {
  text-align: left;
}

/* ==========================================================================
   3. ABOUT ME SECTION (DARK BOTANICAL GREEN)
   ========================================================================== */
.about-section {
  background-color: var(--color-olive-dark);
  background-image: radial-gradient(circle at 50% 0%, #465538 0%, var(--color-olive-dark) 80%);
  color: var(--color-body-light);
  padding: 3.25rem 1.75rem 3.25rem 1.75rem;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  margin-top: -0.5rem;
  position: relative;
  z-index: 3;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
}

.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-title {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 7vw, 2.75rem);
  font-weight: 400;
  font-style: italic;
  color: #F6F1EA;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #E2DBD0;
  font-weight: 300;
}

.about-body strong {
  font-weight: 600;
  color: #FFFFFF;
}

.about-highlight {
  margin-top: 0.8rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.45;
}

/* ==========================================================================
   4. FOOTER SECTION (COPYRIGHT & SUPORTE)
   ========================================================================== */
.bio-footer {
  background-color: var(--bg-sand-light);
  padding: 2.25rem 1.5rem 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-top: 1px solid rgba(215, 205, 192, 0.5);
}

.footer-rights {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-width: 380px;
}

.rights-text {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.45;
  color: #4A533E;
  opacity: 0.9;
}

.support-text {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: #37422C;
}

.support-text a {
  color: #2F3924;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.support-text a:hover {
  color: #1A2114;
}

/* ==========================================================================
   5. FLOATING E-MAIL BUTTON & TOAST
   ========================================================================== */
.floating-email-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  background-color: var(--color-olive-dark);
  background-image: linear-gradient(135deg, #465538 0%, #2F3924 100%);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(47, 57, 36, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.6);
  z-index: 100;
  text-decoration: none;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease, background 0.3s ease;
  animation: pulse-email 3s infinite ease-in-out;
}

.floating-email-btn svg {
  width: 24px;
  height: 24px;
}

.floating-email-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 12px 30px rgba(47, 57, 36, 0.65);
  background-color: #262E1D;
}

.floating-email-btn:active {
  transform: scale(0.95);
}

.floating-email-tooltip {
  position: absolute;
  right: 64px;
  background: rgba(30, 36, 24, 0.92);
  backdrop-filter: blur(8px);
  color: #FAF8F5;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.floating-email-btn:hover .floating-email-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes pulse-email {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(70, 85, 56, 0.5);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(70, 85, 56, 0);
  }
}

/* Toast alert */
.toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(30, 36, 24, 0.95);
  backdrop-filter: blur(8px);
  color: #FAF8F5;
  padding: 0.75rem 1.4rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease-spring), opacity 0.3s ease;
  z-index: 1000;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   FLOATING COUPON BANNER (NATUSVITA) - CROSS-BROWSER ROBUST
   ========================================================================== */
.floating-coupon-banner {
  display: none; /* Previne flash desformatado antes de carregar o script */
  position: fixed;
  top: 14px;
  left: 50%;
  -webkit-transform: translate(-50%, -160%);
  transform: translate(-50%, -160%);
  width: calc(100% - 20px);
  max-width: 380px;
  background-color: #262E1D;
  background: rgba(38, 46, 29, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(234, 227, 216, 0.32);
  border-radius: 14px;
  box-shadow: 0 14px 32px -4px rgba(0, 0, 0, 0.38), 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  box-sizing: border-box;
  -webkit-transition: -webkit-transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.floating-coupon-banner.is-active {
  display: block; /* Ativado via JavaScript */
}

.floating-coupon-banner.show {
  -webkit-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.coupon-close-btn {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  color: rgba(234, 227, 216, 0.85);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  z-index: 5;
  padding: 0;
}

.coupon-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  transform: scale(1.1);
}

.coupon-content-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.8rem;
  padding-right: 1.85rem;
  text-decoration: none;
  color: #FAF8F5;
  box-sizing: border-box;
  width: 100%;
  transition: background 0.2s ease;
}

.coupon-content-link:hover {
  background: rgba(255, 255, 255, 0.04);
}

.coupon-icon-box {
  width: 32px;
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(234, 227, 216, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #EAE3D8;
  flex-shrink: 0;
  box-sizing: border-box;
}

.coupon-icon-box svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  display: block;
  stroke: #EAE3D8;
  color: #EAE3D8;
}

.coupon-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.coupon-title {
  display: flex;
  align-items: center;
  gap: 5px;
}

.coupon-discount-badge {
  background: #EAE3D8;
  color: #2F3924;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  display: inline-block;
  flex-shrink: 0;
}

.coupon-brand {
  font-size: 0.68rem;
  font-weight: 600;
  color: #D5CCC0;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.coupon-subtext {
  font-size: 0.74rem;
  color: #FAF8F5;
  margin: 0;
  white-space: nowrap;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 3px;
}

.coupon-pill {
  background: rgba(255, 255, 255, 0.16);
  border: 1px dashed #EAE3D8;
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.03em;
  font-size: 0.73rem;
  display: inline-block;
}

.coupon-action-btn {
  background: #EAE3D8;
  color: #2F3924;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.38rem 0.6rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s var(--ease-spring), background 0.2s ease;
}

.coupon-action-btn svg {
  width: 12px !important;
  height: 12px !important;
  max-width: 12px !important;
  max-height: 12px !important;
  display: block;
  stroke: #2F3924;
}

.coupon-content-link:hover .coupon-action-btn {
  background: #FFFFFF;
  transform: scale(1.04);
}

.coupon-timer-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #C5BAA8, #FAF8F5);
  border-radius: 0 0 14px 14px;
  width: 100%;
}

.floating-coupon-banner.show .coupon-timer-bar {
  -webkit-animation: couponCountdown 10s linear forwards;
  animation: couponCountdown 10s linear forwards;
}

@-webkit-keyframes couponCountdown {
  from { width: 100%; }
  to { width: 0%; }
}

@keyframes couponCountdown {
  from { width: 100%; }
  to { width: 0%; }
}

/* ==========================================================================
   6. RESPONSIVE ADAPTATIONS
   ========================================================================== */
@media (max-width: 360px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .card-title {
    font-size: 1.25rem;
  }
  .media-circle, .media-rounded {
    width: 85px;
    height: 85px;
  }
  .service-card {
    padding: 1rem;
    gap: 0.75rem;
  }
  .top-social-bar {
    gap: 0.85rem;
  }
  .floating-email-btn {
    width: 48px;
    height: 48px;
    bottom: 18px;
    right: 18px;
  }
  .floating-coupon-banner {
    top: 8px;
    width: calc(100% - 12px);
  }
  .coupon-content-link {
    padding: 0.55rem 0.65rem;
    padding-right: 1.6rem;
    gap: 0.4rem;
  }
  .coupon-icon-box {
    width: 28px;
    min-width: 28px;
    height: 28px;
  }
  .coupon-icon-box svg {
    width: 15px !important;
    height: 15px !important;
  }
  .coupon-discount-badge {
    font-size: 0.58rem;
    padding: 1px 4px;
  }
  .coupon-brand {
    font-size: 0.64rem;
  }
  .coupon-subtext {
    font-size: 0.68rem;
  }
  .coupon-pill {
    font-size: 0.68rem;
  }
  .coupon-action-btn {
    padding: 0.32rem 0.5rem;
    font-size: 0.66rem;
  }
}
