/* ==========================================================================
   AGÊNCIA EB · LINK PAGE (QUIET LUXURY BIO & CONCIERGE)
   Paleta: Obsidian (#111010), Espresso (#352019), Champagne (#D4B996), Silk (#F7F5F2)
   ========================================================================== */

:root {
  --eb-obsidian: #111010;
  --eb-espresso: #352019;
  --eb-espresso-deep: #1E130F;
  --eb-champagne: #D4B996;
  --eb-champagne-light: #F6EBDA;
  --eb-offwhite: #F7F5F2;
  --eb-white: #FFFFFF;
  --eb-line: rgba(212, 185, 150, 0.18);
  --eb-line-strong: rgba(212, 185, 150, 0.42);
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Poppins', sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  background-color: var(--eb-obsidian);
  color: var(--eb-offwhite);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Custom Brand Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--eb-obsidian);
}
::-webkit-scrollbar-thumb {
  background: var(--eb-espresso);
  border: 1px solid rgba(212, 185, 150, 0.25);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--eb-champagne);
}

/* Architectural Background Canvas */
.links-stage {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(28px, 5vh, 56px) 20px 32px;
  isolation: isolate;
}

.links-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 0%, rgba(53, 32, 25, 0.72) 0%, rgba(17, 16, 16, 0) 62%),
    radial-gradient(circle at 85% 90%, rgba(212, 185, 150, 0.07) 0%, rgba(17, 16, 16, 0) 50%),
    var(--eb-obsidian);
}

.links-bg-photo {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: url('/img/brand-notebooks.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  filter: grayscale(35%) contrast(115%);
}

/* Subtle Architectural Frame Lines */
.links-frame-lines {
  position: fixed;
  inset: 18px;
  border: 1px solid rgba(212, 185, 150, 0.1);
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 640px) {
  .links-frame-lines {
    inset: 10px;
  }
}

/* Main Column Container */
.links-container {
  width: 100%;
  max-width: 520px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ==========================================================================
   HEADER / BRAND PROFILE
   ========================================================================== */
.links-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 34px;
  width: 100%;
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.profile-logo-wrap {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}

.profile-main-logo {
  height: 76px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: brightness(0) invert(1);
}

.profile-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--eb-champagne);
  margin-bottom: 8px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #D4B996;
  box-shadow: 0 0 8px rgba(212, 185, 150, 0.8);
}

.profile-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 5vw, 32px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--eb-white);
  margin: 0 0 8px;
}

.profile-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--eb-champagne);
}

.profile-bio {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(247, 245, 242, 0.72);
  max-width: 420px;
  margin: 0 auto;
  font-weight: 400;
}

/* ==========================================================================
   THREE CORE LINKS STACK
   ========================================================================== */
.links-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 22px 24px;
  text-decoration: none;
  background-color: rgba(24, 21, 20, 0.82);
  border: 1px solid var(--eb-line);
  color: var(--eb-offwhite);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    background-color 0.35s ease,
    box-shadow 0.35s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  animation: fadeUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.2s; }
.link-card:nth-child(3) { animation-delay: 0.3s; }

/* Radial mouse spotlight effect */
.link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    380px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(212, 185, 150, 0.11),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.link-card:hover::before {
  opacity: 1;
}

/* Left Accent Bar */
.link-card::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background-color: var(--eb-champagne);
  transform: scaleY(0.35);
  opacity: 0.55;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: var(--eb-line-strong);
  background-color: rgba(38, 25, 21, 0.92);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
}

.link-card:hover::after {
  transform: scaleY(1);
  opacity: 1;
}

/* Featured Primary Card (WhatsApp) */
.link-card.link-card-featured {
  background: linear-gradient(135deg, rgba(53, 32, 25, 0.92) 0%, rgba(25, 17, 14, 0.95) 100%);
  border-color: rgba(212, 185, 150, 0.38);
}

.link-card.link-card-featured::after {
  transform: scaleY(1);
  opacity: 1;
}

.link-card-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.link-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.link-card-index {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--eb-champagne);
}

.link-card-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--eb-white);
  margin: 0;
  letter-spacing: -0.01em;
}

.link-card-desc {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(247, 245, 242, 0.68);
  margin: 0;
}

.link-card-action {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(212, 185, 150, 0.28);
  background-color: rgba(17, 16, 16, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--eb-champagne-light);
  font-size: 16px;
  transition: all 0.3s ease;
}

.link-card:hover .link-card-action {
  background-color: var(--eb-champagne);
  border-color: var(--eb-champagne);
  color: var(--eb-obsidian);
  transform: translate(2px, -2px);
}

/* ==========================================================================
   QUICK DIAGNOSTIC STRIP & FOOTER
   ========================================================================== */
.links-secondary-bar {
  margin-top: 24px;
  width: 100%;
  text-align: center;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.secondary-form-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 235, 218, 0.75);
  text-decoration: none;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(212, 185, 150, 0.25);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.secondary-form-link:hover {
  color: var(--eb-champagne);
  border-color: var(--eb-champagne);
}

.links-footer {
  margin-top: 44px;
  text-align: center;
  width: 100%;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 245, 242, 0.42);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.links-footer-logo {
  height: 24px;
  width: auto;
  opacity: 0.55;
  filter: brightness(0) invert(1);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
