/* ==========================================================================
   Algodão Doce Retrô - Folha de Estilos Oficial
   Substituição completa do Tailwind Play CDN para Produção
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variáveis e Reset
   -------------------------------------------------------------------------- */
:root {
  --primary: #FF1493;
  --primary-rgb: 255, 20, 147;
  --accent: #FFD166;
  --accent-rgb: 255, 209, 102;
  --background: #F4F4F9;
  --dark: #1F2937;
  --dark-rgb: 31, 41, 55;
  --whatsapp: #25D366;
  --whatsapp-dark: #075E54;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: 'Inter', sans-serif;
}

html.scroll-smooth {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  line-height: inherit;
  background-color: var(--background);
  color: var(--dark);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

img, svg {
  display: block;
  vertical-align: middle;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: inherit;
}

button, input, select {
  font-family: inherit;
  font-size: 100%;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   2. Container e Grid / Flex
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container { max-width: 640px; }
}
@media (min-width: 768px) {
  .container { max-width: 768px; }
}
@media (min-width: 1024px) {
  .container { max-width: 1024px; }
}
@media (min-width: 1280px) {
  .container { max-width: 1280px; }
}

.flex { display: flex; }
.inline-block { display: inline-block; }
.block { display: block; }
.hidden { display: none !important; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

.flex-col { flex-direction: column; }
.flex-grow { flex-grow: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

/* --------------------------------------------------------------------------
   3. Posicionamento e Camadas (Z-index)
   -------------------------------------------------------------------------- */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.bottom-6 { bottom: 1.5rem; }
.right-6 { right: 1.5rem; }
.right-full { right: 100%; }
.-top-10 { top: -2.5rem; }
.-right-10 { right: -2.5rem; }
.-bottom-10 { bottom: -2.5rem; }
.-left-10 { left: -2.5rem; }

.z-50 { z-index: 50; }
.z-\[100\] { z-index: 100; }
.-z-10 { z-index: -10; }

/* --------------------------------------------------------------------------
   4. Espaçamentos (Padding / Margin / Gap / Space)
   -------------------------------------------------------------------------- */
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }
.pt-16 { padding-top: 4rem; }
.pt-32 { padding-top: 8rem; }

.pb-6 { padding-bottom: 1.5rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-16 { padding-bottom: 4rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-12 { margin-top: 3rem; }
.mr-3 { margin-right: 0.75rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
.space-x-8 > :not([hidden]) ~ :not([hidden]) { margin-left: 2rem; }

/* --------------------------------------------------------------------------
   5. Dimensões
   -------------------------------------------------------------------------- */
.w-full { width: 100%; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-20 { width: 5rem; }
.w-64 { width: 16rem; }

.h-1\.5 { height: 0.375rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-36 { height: 9rem; }
.h-64 { height: 16rem; }

.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }

.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
.aspect-\[4\/5\] { aspect-ratio: 4 / 5; }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.object-top { object-position: top center; }
.overflow-hidden { overflow: hidden; }
.h-auto { height: auto; }
.max-w-lg { max-width: 32rem; }

/* --------------------------------------------------------------------------
   6. Tipografia e Cores
   -------------------------------------------------------------------------- */
.font-body { font-family: 'Inter', sans-serif; }
.font-heading { font-family: 'Poppins', sans-serif; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.underline { text-decoration: underline; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.whitespace-nowrap { white-space: nowrap; }

.decoration-accent { text-decoration-color: var(--accent); }
.decoration-wavy { text-decoration-style: wavy; }

/* Cores de Texto */
.text-primary { color: var(--primary); }
.text-dark { color: var(--dark); }
.text-white { color: #ffffff; }
.text-white\/60 { color: rgba(255, 255, 255, 0.6); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }
.text-gray-400 { color: #9CA3AF; }
.text-gray-500 { color: #6B7280; }
.text-gray-600 { color: #4B5563; }
.text-\[\#F59E0B\] { color: #F59E0B; }
.text-accent { color: var(--accent); }

/* Cores de Fundo */
.bg-primary { background-color: var(--primary); }
.bg-primary\/10 { background-color: rgba(var(--primary-rgb), 0.1); }
.bg-primary\/20 { background-color: rgba(var(--primary-rgb), 0.2); }
.bg-accent { background-color: var(--accent); }
.bg-accent\/20 { background-color: rgba(var(--accent-rgb), 0.2); }
.bg-background { background-color: var(--background); }
.bg-dark { background-color: var(--dark); }
.bg-dark\/60 { background-color: rgba(var(--dark-rgb), 0.6); }
.bg-white { background-color: #ffffff; }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }
.bg-gray-50 { background-color: #F9FAFB; }
.bg-whatsapp,
.bg-\[\#25D366\],
.bg-\[\#25d366\] { background-color: #25D366 !important; }
.bg-\[\#075E54\],
.bg-\[\#075e54\] { background-color: #075E54 !important; }

/* --------------------------------------------------------------------------
   7. Bordas e Arredondamento
   -------------------------------------------------------------------------- */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-bottom-style: solid; }

.border-primary { border-color: var(--primary); }
.border-gray-50 { border-color: #F9FAFB; }
.border-gray-100 { border-color: #F3F4F6; }
.border-gray-200 { border-color: #E5E7EB; }
.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }

.rounded-xl { border-radius: 1rem; }
.rounded-2xl { border-radius: 1.5rem; }
.rounded-3xl { border-radius: 2rem; }
.rounded-full { border-radius: 9999px; }
.rounded-\[2rem\] { border-radius: 2rem; }

/* --------------------------------------------------------------------------
   8. Efeitos, Sombras e Transições
   -------------------------------------------------------------------------- */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

.opacity-0 { opacity: 0; }
.blur-3xl { filter: blur(64px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

.outline-none { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--primary); }
.focus\:ring-primary:focus { --tw-ring-color: var(--primary); }

.transform { transform: translateZ(0); }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }

.pointer-events-none { pointer-events: none; }
.select-none { user-select: none; }

/* --------------------------------------------------------------------------
   9. Interações (Hover / Active / Group)
   -------------------------------------------------------------------------- */
.hover\:bg-primary:hover { background-color: var(--primary); }
.hover\:bg-gray-50:hover { background-color: #F9FAFB; }
.hover\:bg-opacity-90:hover { opacity: 0.9; }
.hover\:border-primary:hover { border-color: var(--primary); }
.hover\:text-primary:hover { color: var(--primary); }
.hover\:text-white:hover { color: #ffffff; }

.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }
.hover\:scale-\[1\.02\]:hover { transform: scale(1.02); }
.active\:scale-95:active { transform: scale(0.95); }

.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:text-white { color: #ffffff; }

/* --------------------------------------------------------------------------
   10. Componentes Customizados (Glass, Reveal, Masonry)
   -------------------------------------------------------------------------- */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.bg-soft-gradient {
  background-color: var(--primary);
}

.masonry {
  column-count: 1;
  column-gap: 1.5rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   11. Responsividade (Media Queries sm, md, lg)
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .sm\:block { display: block !important; }
  .sm\:flex-row { flex-direction: row; }
  .masonry { column-count: 2; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
  .md\:hidden { display: none !important; }
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:border-x { border-left-width: 1px; border-right-width: 1px; border-left-style: solid; border-right-style: solid; }
  .md\:border-y-0 { border-top-width: 0px; border-bottom-width: 0px; }
}

@media (min-width: 1024px) {
  .lg\:block { display: block !important; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:w-1\/2 { width: 50%; }
  .lg\:pt-48 { padding-top: 12rem; }
  .lg\:pb-32 { padding-bottom: 8rem; }
  .lg\:p-20 { padding: 5rem; }
  .lg\:rounded-\[3rem\] { border-radius: 3rem; }
  .lg\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .lg\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .lg\:text-5xl { font-size: 3rem; line-height: 1.15; }
  .lg\:text-6xl { font-size: 3.75rem; line-height: 1.1; }
  .masonry { column-count: 3; }
}

/* --------------------------------------------------------------------------
   12. Responsividade adicional
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
}

/* lg:hidden — oculta em desktop */
@media (min-width: 1024px) {
  .lg\:hidden { display: none !important; }
}

/* --------------------------------------------------------------------------
   13. Acessibilidade & Preferências do Usuário
   -------------------------------------------------------------------------- */

/* Foco visível para navegação por teclado */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Respeitar prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .transition-all,
  .transition-colors,
  .transition-opacity,
  .transition-transform {
    transition: none !important;
  }
}

/* hover:bg-opacity-90 — escurece levemente o botão ao passar o mouse */
.hover\:bg-opacity-90:hover {
  filter: brightness(0.9);
}
