/* ============================================
   Panambi Uñas — Premium Landing Page
   Aesthetic: Warm Luxury Editorial
   ============================================ */

/* --- Design Tokens --- */
:root {
  --cream: #FFF8F5;
  --pink-light: #FADBD8;
  --pink: #F5B7B1;
  --pink-medium: #E8A0A0;
  --rose-gold: #B76E79;
  --rose-gold-dark: #9A5B64;
  --dark: #2C1810;
  --dark-muted: #5D4037;
  --warm-white: #FFFBF8;

  --glass-bg: rgba(255, 255, 255, 0.22);
  --glass-border: rgba(255, 255, 255, 0.45);
  --glass-shadow: 0 8px 32px rgba(183, 110, 121, 0.12);
  --glass-shadow-hover: 0 16px 48px rgba(183, 110, 121, 0.22);

  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Poppins', system-ui, sans-serif;

  --max-w: 440px;
  --radius-card: 20px;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--cream);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(250, 219, 216, 0.5) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(245, 183, 177, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 60%, rgba(183, 110, 121, 0.08) 0%, transparent 50%),
    linear-gradient(175deg, var(--cream) 0%, #FFF0EC 40%, var(--pink-light) 100%);
  background-attachment: fixed;
}

/* Subtle noise texture overlay for depth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
}

/* --- Main Container --- */
.container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
  min-height: 100vh;
  min-height: 100dvh;
}

/* --- Logo --- */
.logo-wrapper {
  margin-bottom: 1.25rem;
  animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.logo {
  width: 130px;
  height: 130px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  padding: 8px;
  box-shadow:
    0 4px 24px rgba(183, 110, 121, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.5);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.logo:hover {
  transform: scale(1.04) rotate(-2deg);
  box-shadow:
    0 8px 36px rgba(183, 110, 121, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* --- Brand Name --- */
.brand-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.6rem);
  font-weight: 600;
  color: var(--rose-gold);
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 2rem;
  animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

/* Subtle rose gold shimmer on the heading */
.brand-name span {
  background: linear-gradient(
    135deg,
    var(--rose-gold) 0%,
    #D4949C 40%,
    var(--rose-gold) 60%,
    #C4828B 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --- Decorative Divider --- */
.divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-gold), transparent);
  margin-bottom: 2rem;
  animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

/* --- Social Links --- */
.links {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  width: 100%;
}

/* --- Link Card (Glassmorphism) --- */
.link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.5rem;
  min-height: 56px;
  border-radius: var(--radius-card);
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  color: var(--dark);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.015em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth),
    background var(--transition-smooth),
    border-color var(--transition-smooth);
}

/* Gradient border shimmer on hover */
.link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(183, 110, 121, 0) 0%,
    rgba(183, 110, 121, 0.3) 50%,
    rgba(183, 110, 121, 0) 100%
  );
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-smooth), background-position 0.6s ease;
}

.link-card:hover::before {
  opacity: 1;
  background-position: 100% 100%;
}

.link-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--glass-shadow-hover);
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(183, 110, 121, 0.2);
}

.link-card:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: var(--glass-shadow);
}

.link-card:focus-visible {
  outline: 2px solid var(--rose-gold);
  outline-offset: 3px;
}

/* Icon inside card */
.link-card svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform var(--transition-smooth);
}

.link-card:hover svg {
  transform: scale(1.1);
}

/* Card-specific accent colors on hover */
.link-card--whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.3);
}
.link-card--whatsapp:hover svg {
  color: #25D366;
}

.link-card--instagram:hover {
  border-color: rgba(225, 48, 108, 0.3);
}
.link-card--instagram:hover svg {
  color: #E1306C;
}

.link-card--facebook:hover {
  border-color: rgba(24, 119, 242, 0.3);
}
.link-card--facebook:hover svg {
  color: #1877F2;
}

/* Staggered entrance */
.link-card:nth-child(1) { animation: revealUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both; }
.link-card:nth-child(2) { animation: revealUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.58s both; }
.link-card:nth-child(3) { animation: revealUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.71s both; }

/* --- Footer --- */
.footer {
  margin-top: auto;
  padding-top: 3rem;
  text-align: center;
  animation: revealUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

.footer p {
  font-size: 0.75rem;
  color: var(--dark-muted);
  opacity: 0.5;
  letter-spacing: 0.04em;
  font-weight: 300;
}

/* --- Entrance Keyframes --- */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive --- */
@media (min-width: 768px) {
  .container {
    padding-top: 5rem;
  }

  .logo {
    width: 150px;
    height: 150px;
  }
}

/* --- Screen Reader Only (SEO heading) --- */
.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;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    animation-delay: 0ms !important;
  }

  .brand-name span {
    background-size: 100% 100%;
  }
}
