/* ========================================
   Café Lá de Casa — Thank-You Page
   Static CSS (no Tailwind CDN dependency)
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -moz-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #17120f;
  color: #ece0da;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
button:focus-visible { outline: 2px solid #ffb68e; outline-offset: 2px; }
a:focus-visible { outline: 2px solid #ffb68e; outline-offset: 2px; }
textarea:focus-visible { outline: 2px solid #ffb68e; outline-offset: 2px; }
textarea { font: inherit; }

/* --- Typography --- */
.font-serif { font-family: 'Noto Serif', Georgia, 'Times New Roman', serif; }
.font-sans  { font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.font-bold  { font-weight: 700; }
.font-normal { font-weight: 400; }

.text-5xl { font-size: 3rem; }
.text-4xl { font-size: 2.25rem; }
.text-3xl { font-size: 2rem; }
.text-2xl { font-size: 1.5rem; }
.text-lg  { font-size: 1.125rem; }
.text-base { font-size: 1rem; }
.text-sm  { font-size: 0.875rem; }
.text-xs  { font-size: 0.75rem; }

.leading-snug   { line-height: 1.3; }
.leading-relaxed { line-height: 1.6; }
.leading-tight  { line-height: 1.1; }

.tracking-wide   { letter-spacing: 0.025em; }
.tracking-wider  { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.15em; }

@media (min-width: 768px) {
  .text-5xl { font-size: 3.75rem; }
  .text-lg  { font-size: 1.25rem; }
}

/* --- Colors --- */
.text-white      { color: #fff; }
.text-primary    { color: #ffb68e; }
.text-on-surface { color: #ece0da; }
.text-muted      { color: #dbc1b5; }
.text-outline    { color: #a38c80; }
.text-dim        { color: #554339; }
.bg-surface      { background: #17120f; }
.bg-spotify      { background: #1DB954; }
.bg-primary-container { background: #d9773a; }

/* --- Layout Comuns --- */
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.flex-grow    { flex-grow: 1; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.text-right { text-align: right; }
.text-center  { text-align: center; }
.shrink-0     { flex-shrink: 0; }
.fill-current { fill: currentColor; }

.w-full   { width: 100%; }
.h-full   { height: 100%; }
.w-32     { width: 8rem; }
.h-32     { height: 8rem; }
.w-9      { width: 2.25rem; }
.h-9      { height: 2.25rem; }
@media (min-width: 768px) {
  .w-32 { width: 10rem; }
  .h-32 { height: 10rem; }
}
.max-w-2xl { max-width: 42rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-container { max-width: 1200px; }
.min-h-screen { min-height: 100vh; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mb-4    { margin-bottom: 1rem; }
.mb-8    { margin-bottom: 2rem; }
.mb-16   { margin-bottom: 4rem; }
.mb-6    { margin-bottom: 1.5rem; }
.mb-2    { margin-bottom: 0.5rem; }

.mt-2    { margin-top: 0.5rem; }

.p-6    { padding: 1.5rem; }
.p-8    { padding: 2rem; }
.p-4    { padding: 1rem; }
.px-6   { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-16  { padding-top: 4rem; padding-bottom: 4rem; }
.py-4   { padding-top: 1rem; padding-bottom: 1rem; }
.py-section { padding-top: 80px; padding-bottom: 80px; }
.pt-2   { padding-top: 0.5rem; }

.gap-5  { gap: 1.25rem; }
.gap-6  { gap: 1.5rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-2  { gap: 0.5rem; }
.gap-x-10 { column-gap: 2.5rem; }
.gap-y-4 { row-gap: 1rem; }

/* --- Grid --- */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid-cols-1 { grid-template-columns: 1fr 1fr; }
}

.transition-all { transition: all 0.3s ease; }
.duration-300 { transition-duration: 0.3s; }

/* --- Borders --- */
.rounded-full { border-radius: 9999px; }
.rounded-xl   { border-radius: 1rem; }
.rounded-lg   { border-radius: 0.75rem; }
.rounded-md   { border-radius: 0.5rem; }

.border       { border: 1px solid; }
.border-t     { border-top: 1px solid; }
.border-dim   { border-color: rgba(85, 67, 57, 0.2); }
.border-dim30 { border-color: rgba(85, 67, 57, 0.3); }

/* --- Shadows --- */
.shadow-lg   { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3), 0 4px 6px -2px rgba(0,0,0,0.15); }
.shadow-2xl  { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); }

/* --- Overflow & Misc --- */
.overflow-hidden { overflow: hidden; }
.object-cover    { object-fit: cover; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.resize-none { resize: none; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ===== Instagram Gradient ===== */
.instagram-gradient {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* ===== Glow Button Base ===== */
.glow-btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              opacity 0.3s ease;
  transform: translateY(0);
}
.glow-btn::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(12px);
}
.glow-btn:hover {
  transform: translateY(-3px) scale(1.01);
}
.glow-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Spotify glow */
.glow-spotify:hover {
  box-shadow: 0 8px 32px rgba(29, 185, 84, 0.4);
}
.glow-spotify::after {
  background: rgba(29, 185, 84, 0.35);
}
.glow-spotify:hover::after {
  opacity: 1;
}

/* Instagram glow */
.glow-instagram:hover {
  box-shadow: 0 8px 32px rgba(188, 24, 136, 0.35);
}
.glow-instagram::after {
  background: linear-gradient(135deg, #f09433 0%, #bc1888 100%);
}
.glow-instagram:hover::after {
  opacity: 1;
}

/* Feedback button glow */
.glow-feedback.bg-primary-container:hover,
.glow-feedback.bg-primary-container:focus-visible {
  box-shadow: 0 8px 32px rgba(217, 119, 58, 0.4);
  background: #ffb68e;
  color: #542200;
}

/* ===== Glassmorphism ===== */
.glass-card {
  background: rgba(58, 51, 47, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 40px -8px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.glass-card-feedback {
  background: rgba(58, 51, 47, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 48px -12px rgba(0, 0, 0, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ===== Logo glow pulse ===== */
.logo-link {
  display: block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
}
.logo-link:hover {
  transform: scale(1.04);
  box-shadow: 0 0 30px rgba(255, 182, 142, 0.2),
              0 0 60px rgba(255, 182, 142, 0.08);
  border-color: rgba(255, 182, 142, 0.25);
}
.logo-ring {
  border: 2px solid rgba(85, 67, 57, 0.3);
  box-shadow: 0 0 0 0 rgba(255, 182, 142, 0);
  transition: box-shadow 0.5s ease, border-color 0.5s ease;
}

/* ===== Star rating ===== */
.star-btn {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.star-btn:hover {
  transform: scale(1.25);
}
.star-btn:active {
  transform: scale(0.9);
}
.star-btn:focus-visible {
  outline: 2px solid #ffb68e;
  outline-offset: 3px;
  border-radius: 4px;
}
.star-btn .star-icon {
  transition: color 0.2s ease,
              text-shadow 0.2s ease,
              opacity 0.2s ease;
}
.star-btn:hover .star-icon {
  color: #ffd700;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.6),
               0 0 24px rgba(255, 215, 0, 0.2);
}
.star-btn[data-filled="false"] .star-icon {
  color: #a38c80;
  opacity: 0.6;
  text-shadow: none;
}
.star-btn[data-filled="true"] .star-icon {
  color: #ffb68e;
  opacity: 1;
}
.star-btn:active .star-icon {
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.8),
               0 0 20px rgba(255, 215, 0, 0.4);
}

/* ===== Textarea glass ===== */
.glass-textarea {
  background: rgba(32, 26, 23, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #ece0da;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.glass-textarea::placeholder {
  color: rgba(219, 193, 181, 0.5);
}
.glass-textarea:focus {
  border-color: #ffb68e;
  box-shadow: 0 0 20px rgba(255, 182, 142, 0.12), 0 0 0 1px rgba(255, 182, 142, 0.2);
  outline: none;
}

/* ===== Footer link hover ===== */
.footer-link {
  position: relative;
  transition: color 0.3s ease;
  color: #a38c80;
}
.footer-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #ffb68e;
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.footer-link:hover::after {
  width: 100%;
}
.footer-link:hover {
  color: #ffb68e;
}

/* ===== Animação de entrada ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}
.animate-scale-in {
  animation: scaleIn 0.5s ease-out forwards;
  opacity: 0;
}
.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}

.delay-1  { animation-delay: 0.1s; }
.delay-2  { animation-delay: 0.2s; }
.delay-3  { animation-delay: 0.3s; }
.delay-4  { animation-delay: 0.4s; }
.delay-5  { animation-delay: 0.5s; }

/* ===== Submit success toast ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(58, 51, 47, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ece0da;
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  box-shadow: 0 12px 48px -12px rgba(0,0,0,0.6);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 100;
  white-space: nowrap;
  max-width: 90vw;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.toast:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast-success { border-color: rgba(29, 185, 84, 0.3); }
.toast-error   { border-color: rgba(255, 107, 107, 0.3); }
.toast-sending { border-color: rgba(255, 182, 142, 0.3); pointer-events: none; }

@media (max-width: 480px) {
  .toast {
    white-space: normal;
    word-break: break-word;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    bottom: 1rem;
    max-width: 92vw;
  }
}

/* ===== Mobile Responsiveness ===== */
@media (max-width: 480px) {
  .px-6 { padding-left: 1rem; padding-right: 1rem; }
  .py-section { padding-top: 48px; padding-bottom: 48px; }
  .gap-12 { gap: 2rem; }
  .mb-16 { margin-bottom: 2.5rem; }
  .p-8 { padding: 1.25rem; }
  .p-6 { padding: 1rem; }
  .glow-btn { width: 100%; }
  .glow-btn span { font-size: 0.875rem; }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-fade-in-up,
  .animate-scale-in,
  .animate-fade-in {
    opacity: 1;
  }
  .glow-btn:hover {
    transform: none;
  }
  .logo-link:hover {
    transform: none;
  }
}
