/* ============================================================================
   ESTALI DECORAÇÕES — CSS v2
   Otimizado para mobile, conexões lentas e desktop
   ============================================================================ */

/* ---- Variáveis ---- */
:root {
  --pink:      #ff4fa3;
  --pink-lite: #ff7bc0;
  --pink-dark: #e03987;
  --yellow:    #ffd93d;
  --blue:      #6bcfff;
  --green-ok:  #4ade80;
  --amber:     #fbbf24;
  --red:       #f87171;

  --grad-pink: linear-gradient(135deg, #ff4fa3 0%, #ff7bc0 100%);
  --grad-hero: linear-gradient(160deg, #fff5f8 0%, #ffe8f0 60%, #ffd1e3 100%);

  --white:   #fff;
  --g50:     #fafafa;
  --g100:    #f5f5f5;
  --g200:    #e5e5e5;
  --g400:    #a3a3a3;
  --g600:    #525252;
  --g700:    #404040;
  --g800:    #262626;
  --g900:    #171717;

  --sh-sm:  0 1px 3px rgba(0,0,0,.08);
  --sh-md:  0 4px 12px rgba(0,0,0,.1);
  --sh-lg:  0 10px 30px rgba(0,0,0,.12);
  --sh-pk:  0 12px 32px rgba(255,79,163,.25);

  --r-sm: .5rem;
  --r-md: 1rem;
  --r-lg: 1.5rem;
  --r-xl: 2rem;
  --r-full: 9999px;

  --tr: 220ms ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background: var(--grad-hero);
  color: var(--g800);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
a { color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================================================
   HEADER
   ============================================================================ */
.header {
  padding: 1.75rem 0;
  position: relative;
  z-index: 10;
}

.logo {
  max-width: 260px;
  margin: 0 auto;
  filter: drop-shadow(0 4px 10px rgba(255,79,163,.2));
}

/* ============================================================================
   HERO
   ============================================================================ */
.hero {
  padding: 3rem 0 2.5rem;
  position: relative;
  z-index: 10;
  text-align: center;
}

.hero-title {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--g900);
}

.gradient-text {
  background: var(--grad-pink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--g600);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

.badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--white);
  padding: .625rem 1.25rem;
  border-radius: var(--r-full);
  box-shadow: var(--sh-md);
  font-weight: 500;
  font-size: .9rem;
  color: var(--g700);
}

.badge-icon { font-size: 1.3rem; }

/* ============================================================================
   SERVIÇOS
   ============================================================================ */
.services {
  padding: 3rem 0;
  position: relative;
  z-index: 10;
}

.section-title {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--g900);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: var(--grad-pink);
  border-radius: var(--r-full);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--sh-md);
  transition: transform var(--tr), box-shadow var(--tr);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-pink);
  transform: scaleX(0);
  transition: transform var(--tr);
}

.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-pk);
}

.service-card.featured {
  background: linear-gradient(135deg,#fff 0%,#fff5f8 100%);
  border: 2px solid var(--pink-lite);
}

.popular-badge {
  position: absolute;
  top: 20px;
  right: -34px;
  background: var(--grad-pink);
  color: var(--white);
  padding: 4px 42px;
  font-size: .72rem;
  font-weight: 700;
  transform: rotate(45deg);
  box-shadow: var(--sh-sm);
  letter-spacing: .03em;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.service-card h3 {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: .75rem;
  color: var(--g900);
}

.service-card p {
  color: var(--g600);
  margin-bottom: .75rem;
  line-height: 1.7;
}

.service-features li {
  padding: .3rem 0 .3rem 1.5rem;
  color: var(--g700);
  position: relative;
  font-size: .9rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-ok);
  font-weight: 700;
}

.service-img {
  width: 100%;
  border-radius: var(--r-md);
  margin-top: 1.25rem;
  cursor: pointer;
  transition: transform var(--tr);
}

.service-img:hover { transform: scale(1.02); }

/* ============================================================================
   CALENDÁRIO
   ============================================================================ */
.calendar-section {
  padding: 3rem 0;
  position: relative;
  z-index: 10;
}

.calendar-header-text {
  text-align: center;
  margin-bottom: 2rem;
}

.calendar-intro {
  font-size: 1.05rem;
  color: var(--g600);
  margin-top: .5rem;
}

.highlight {
  color: var(--pink);
  font-weight: 600;
}

.calendar-wrapper {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 2rem;
  box-shadow: var(--sh-lg);
  max-width: 580px;
  margin: 0 auto;
}

/* Controls */
.calendar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.month-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  background: var(--g100);
  color: var(--g700);
  transition: background var(--tr), color var(--tr), transform var(--tr);
  flex-shrink: 0;
}

.month-btn:hover {
  background: var(--pink);
  color: var(--white);
  transform: scale(1.1);
}

.month-year {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--g900);
  text-transform: capitalize;
}

/* Weekdays */
.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: .5rem;
}

.weekdays span {
  font-size: .75rem;
  font-weight: 600;
  color: var(--g400);
  text-transform: uppercase;
  padding: .4rem 0;
  letter-spacing: .05em;
}

/* Grid de dias */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 600;
  font-family: inherit;
  transition: transform var(--tr), box-shadow var(--tr);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.day.empty { background: transparent; }

.day.available {
  background: #d4fc79;
  color: #1a4d00;
}

.day.available:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 12px rgba(84,200,60,.35);
  z-index: 2;
}

.day.limited {
  background: #ffeaa7;
  color: #7a5400;
}

.day.limited:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 12px rgba(255,180,0,.35);
  z-index: 2;
}

.day.unavailable {
  background: #ffb3b3;
  color: #7a0000;
}

.day.unavailable:hover {
  transform: scale(1.08);
}

.day.past {
  background: var(--g100);
  color: var(--g400);
  cursor: default;
  opacity: .7;
}

.day.selected {
  outline: 3px solid var(--pink);
  outline-offset: 1px;
  transform: scale(1.1);
  z-index: 3;
}

/* Loading state */
.cal-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem;
  color: var(--g400);
  font-size: .95rem;
}

/* Legenda */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--g600);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.legend-dot.available   { background: #d4fc79; }
.legend-dot.limited     { background: #ffeaa7; }
.legend-dot.unavailable { background: #ffb3b3; }
.legend-dot.past        { background: var(--g200); }

/* ============================================================================
   PAINEL DE DETALHES DO DIA
   ============================================================================ */
.day-details {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 2rem;
  box-shadow: var(--sh-lg);
  max-width: 580px;
  margin: 1.5rem auto 0;
  min-height: 160px;
  transition: opacity .2s ease;
}

/* Empty */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 120px;
  color: var(--g400);
  text-align: center;
}

.empty-icon { font-size: 2.5rem; }

/* Fechado */
.detail-closed {
  text-align: center;
}

.detail-icon { font-size: 2.5rem; margin-bottom: .75rem; }

.detail-closed h4,
.detail-available h4 {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--g900);
  margin-bottom: .75rem;
}

.detail-closed p {
  margin-top: .75rem;
  color: var(--g600);
  font-size: .9rem;
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  padding: .45rem 1.25rem;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: .9rem;
  margin: .25rem 0 1rem;
}

.pill-closed    { background: #ffe0e0; color: #aa0000; }
.pill-available { background: #d4fc79; color: #1a4d00; }
.pill-limited   { background: #ffeaa7; color: #7a5400; }

.detail-sub {
  color: var(--g600);
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .75rem;
}

/* Lista de serviços */
.service-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.service-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--g50);
  border-radius: var(--r-md);
  padding: .875rem 1rem;
  flex-wrap: wrap;
}

.service-item-icon { font-size: 1.5rem; flex-shrink: 0; }

.service-item-label {
  flex: 1;
  font-weight: 600;
  font-size: 1rem;
  color: var(--g800);
  min-width: 140px;
}

.btn-request {
  display: inline-flex;
  align-items: center;
  padding: .5rem 1.1rem;
  border-radius: var(--r-full);
  background: var(--grad-pink);
  color: var(--white);
  font-weight: 600;
  font-size: .875rem;
  transition: transform var(--tr), box-shadow var(--tr);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-request:hover,
.btn-request:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255,79,163,.4);
}

.btn-request:active { transform: translateY(0); }

/* ============================================================================
   CTA
   ============================================================================ */
.cta-section {
  padding: 3rem 0;
  position: relative;
  z-index: 10;
}

.cta-content {
  background: var(--grad-pink);
  border-radius: var(--r-xl);
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: var(--sh-lg);
}

.cta-title {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: .75rem;
}

.cta-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.9);
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  background: var(--white);
  color: var(--pink);
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: var(--r-full);
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  transition: transform var(--tr), box-shadow var(--tr);
  -webkit-tap-highlight-color: transparent;
}

.cta-button:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 32px rgba(0,0,0,.2);
}

.cta-subtext {
  margin-top: 1rem;
  color: rgba(255,255,255,.85);
  font-size: .85rem;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer {
  background: var(--g900);
  color: var(--white);
  padding: 3rem 0 1.5rem;
  position: relative;
  z-index: 10;
}

.footer-info {
  font-style: normal;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--g800);
  border-radius: var(--r-lg);
  text-align: center;
}

.footer-info-name {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pink-lite);
  margin-bottom: 1rem;
}

.footer-info-list {
  display: grid;
  gap: .75rem;
  margin: 0;
}

.footer-info-list dt {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--g400);
}

.footer-info-list dd {
  margin: .15rem 0 0;
  font-size: .95rem;
  color: var(--white);
  line-height: 1.5;
}

.footer-info-list a {
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-info-list a:hover { color: var(--pink-lite); }

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  max-width: 180px;
  margin: 0 auto 1rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: var(--g400);
  font-size: .9rem;
}

.social-link-instagram {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1.4rem;
  background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);
  border-radius: var(--r-full);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  box-shadow: 0 4px 14px rgba(188,24,136,.3);
  transition: transform var(--tr), box-shadow var(--tr);
}

.social-link-instagram:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 22px rgba(188,24,136,.45);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--g800);
  color: var(--g400);
  font-size: .8rem;
}

/* ============================================================================
   LIGHTBOX
   ============================================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.9);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox-content {
  max-width: 92%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--tr), transform var(--tr);
}

.lightbox-close:hover {
  background: rgba(255,255,255,.25);
  transform: rotate(90deg);
}

/* ============================================================================
   FUNDO DECORATIVO (leve, não impacta performance)
   ============================================================================ */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  opacity: .07;
  pointer-events: none;
  z-index: 0;
}

.bg-blob-1 {
  width: 300px;
  height: 300px;
  background: var(--pink);
  top: 5%;
  left: -5%;
}

.bg-blob-2 {
  width: 250px;
  height: 250px;
  background: var(--yellow);
  top: 55%;
  right: -5%;
}

/* ============================================================================
   RESPONSIVO
   ============================================================================ */
@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }

  .calendar-wrapper,
  .day-details {
    padding: 1.25rem;
    border-radius: var(--r-lg);
  }

  .month-year { font-size: 1.1rem; }

  .day { font-size: .8rem; }

  .cta-content { padding: 2.5rem 1.25rem; }

  .service-item { gap: .5rem; }
  .service-item-label { font-size: .9rem; }
}

@media (max-width: 420px) {
  .hero-badges { flex-direction: column; align-items: center; }
  .badge { width: 100%; justify-content: center; }
  .calendar-grid { gap: 3px; }
  .day { font-size: .72rem; }
  .legend { gap: .5rem; }
}

/* ============================================================================
   FOCO / ACESSIBILIDADE
   ============================================================================ */
:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
}

::selection {
  background: var(--pink-lite);
  color: var(--white);
}

/* Respeitar preferência de animação reduzida */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
