/* =========================================================
   LUTTY CHAGAS · bio link · v4
   Paleta: Verde Imperial #173A35 + Dourado Champagne #C8A56A
   Cards com LOGO oficial (badge circular) + Octavius temporario com glyph
   Hero avatar = placeholder ate Lutty enviar foto
   ========================================================= */

:root {
  --imperial: #173A35;
  --imperial-deep: #0F2A26;
  --imperial-deeper: #081A17;
  --gold: #C8A56A;
  --gold-light: #E0C58E;
  --gold-soft: #F4E5C0;
  --ivory: #F1E8D8;
  --ebony: #111111;
  --bronze: #8C6A43;

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --script: 'Great Vibes', 'Brush Script MT', cursive;
  --sans: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  --w: 480px;
  --card-radius: 16px;
}

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

html, body {
  background: var(--imperial-deeper);
  color: var(--ivory);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- Background ambient ---------- */
.bg-overlay {
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(200,165,106,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(200,165,106,0.08) 0%, transparent 55%),
    linear-gradient(180deg, var(--imperial) 0%, var(--imperial-deep) 40%, var(--imperial-deeper) 100%);
  z-index: -1;
}

.bg-overlay::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.78  0 0 0 0 0.65  0 0 0 0 0.41  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.55;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ---------- Layout ---------- */
.page {
  max-width: var(--w);
  margin: 0 auto;
  padding: 18px 18px 56px;
  padding-top: max(18px, env(safe-area-inset-top));
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 0 0 28px;
}

/* Portrait editorial — foto grande, edge-to-edge do .page, nome sobreposto */
.portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 1080 / 1009;
  margin: 0 0 26px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(200,165,106,0.45);
  box-shadow:
    0 1px 0 rgba(244,229,192,0.08) inset,
    0 30px 70px -18px rgba(0,0,0,0.75),
    0 0 0 1px rgba(200,165,106,0.18);
  isolation: isolate;
}

.portrait-img {
  position: absolute;
  inset: 0;
  background-image: url("img/lutty-avatar.jpg");
  background-size: 100% auto;
  background-position: 50% 0%;
  background-repeat: no-repeat;
  background-color: var(--imperial-deeper);
  image-rendering: -webkit-optimize-contrast;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(8,26,23,0.15) 0%,
      rgba(8,26,23,0) 35%,
      rgba(8,26,23,0.55) 75%,
      rgba(8,26,23,0.92) 100%);
  pointer-events: none;
}

.portrait-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 26px 26px;
  text-align: center;
  z-index: 1;
}

.name {
  font-family: var(--script);
  font-size: 54px;
  font-weight: 400;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 2px 12px rgba(0,0,0,0.65);
  margin: 0;
  white-space: nowrap;
}

.role {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.95;
  margin: 0 0 10px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.tagline {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ivory);
  opacity: 0.92;
  margin-bottom: 26px;
  letter-spacing: 0.3px;
}

.tagline em {
  font-style: italic;
  color: var(--gold-light);
  opacity: 0.9;
}

/* ---------- Socials ---------- */
.socials {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 4px;
}

.socials a {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--gold);
  background: rgba(200,165,106,0.07);
  border: 1px solid rgba(200,165,106,0.28);
  transition: all 0.25s ease;
}

.socials a:hover {
  background: rgba(200,165,106,0.16);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.socials svg { width: 18px; height: 18px; }

/* ---------- Cards ---------- */
.cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 168px;
  padding: 24px 22px;
  border-radius: var(--card-radius);
  text-decoration: none;
  color: var(--ivory);
  border: 1px solid rgba(200,165,106,0.3);
  box-shadow:
    0 1px 0 rgba(244,229,192,0.06) inset,
    0 18px 44px -16px rgba(0,0,0,0.7);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow:
    0 1px 0 rgba(244,229,192,0.12) inset,
    0 20px 44px -16px rgba(0,0,0,0.72),
    0 0 0 1px rgba(200,165,106,0.4);
}

.card:hover .card-arrow svg { transform: translateX(4px); }
.card:hover .card-arrow { color: var(--gold-light); }

/* --- Variante A: card com LOGO oficial em badge --- */
.card--logo {
  background: linear-gradient(135deg, var(--imperial) 0%, var(--imperial-deep) 60%, var(--imperial-deeper) 100%);
}

.card-logo {
  flex: 0 0 auto;
  width: 116px; height: 116px;
  border-radius: 18px;
  background: #FAF6EC;
  border: 1px solid rgba(200,165,106,0.55);
  box-shadow:
    0 1px 0 rgba(244,229,192,0.55) inset,
    0 10px 26px rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.card-logo img {
  width: 86%; height: 86%;
  object-fit: contain;
  display: block;
}

/* Logos que ja vem com fundo escuro (ex: JC redonda preta, BM color) */
.card-logo--dark {
  background: var(--imperial-deeper);
  border-color: rgba(200,165,106,0.7);
}
.card-logo--dark img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.card--vitta .card-logo { background: #FFFFFF; }
.card--filhos .card-logo { background: #FFFFFF; }
.card--jc .card-logo { background: #000000; }

/* --- Variante B: card com glyph SVG (temporario, ex: Octavius enquanto site fora) --- */
.card--glyph {
  background: linear-gradient(135deg, var(--imperial) 0%, var(--imperial-deep) 60%, var(--imperial-deeper) 100%);
}

.card--octavius {
  background: linear-gradient(135deg, #1a1208 0%, #0d0905 50%, #060300 100%);
  border-color: rgba(200,165,106,0.45);
}
.card--octavius .card-logo {
  background: #000000;
  border-color: rgba(200,165,106,0.7);
}
.card--octavius .card-logo img {
  width: 94%; height: 94%;
  object-fit: contain;
}

.card--bestmoments {
  background: linear-gradient(135deg, #2a1810 0%, #1a0f08 60%, #0d0704 100%);
  border-color: rgba(200,165,106,0.32);
}

.card--filhos {
  background: linear-gradient(135deg, #14302a 0%, #0d2018 60%, #07140f 100%);
  border-color: rgba(200,165,106,0.32);
}

/* Octávia · marca B2B de automação (logo oficial dourada sobre preto) */
.card--octaviahub {
  background: linear-gradient(135deg, #181410 0%, #0f0c08 55%, #070503 100%);
  border-color: rgba(200,165,106,0.32);
}
.card--octaviahub .card-logo {
  background: #0c0c0c;
  border-color: rgba(200,165,106,0.55);
  box-shadow: 0 0 0 1px rgba(200,165,106,0.12) inset, 0 10px 26px rgba(0,0,0,0.55);
}
.card--octaviahub .card-logo img { width: 100%; height: 100%; object-fit: cover; }

.card-glyph {
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  height: 160px;
  opacity: 0.85;
  z-index: 0;
  pointer-events: none;
  filter: drop-shadow(0 6px 18px rgba(200,165,106,0.25));
}

.card-glyph svg {
  width: 100%; height: 100%;
}

.card--glyph .card-content {
  position: relative;
  z-index: 1;
  max-width: 62%;
}

/* --- Texto interno --- */
.card-content { flex: 1; min-width: 0; position: relative; z-index: 1; }

.card-eyebrow {
  font-size: 10.5px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.82;
  margin-bottom: 8px;
  font-weight: 500;
}

.card-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.3px;
  color: var(--ivory);
  line-height: 1.1;
  margin-bottom: 8px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}

.card-sub {
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(241,232,216,0.82);
  line-height: 1.45;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.card-desc {
  margin-top: 7px;
  font-size: 11.5px;
  font-weight: 300;
  color: rgba(200,165,106,0.78);
  line-height: 1.4;
  letter-spacing: 0.2px;
}

.card-arrow {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--gold);
  background: rgba(200,165,106,0.1);
  border: 1px solid rgba(200,165,106,0.3);
  position: relative;
  z-index: 2;
}

.card-arrow svg {
  width: 18px; height: 18px;
  transition: transform 0.28s ease;
}

/* ---------- Footer ---------- */
.foot {
  margin-top: 44px;
  text-align: center;
}

.foot-rule {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 16px;
  opacity: 0.5;
}

.foot p {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: rgba(241,232,216,0.45);
  font-weight: 300;
}

/* ---------- Animations ---------- */
.rise {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (min-width: 520px) {
  .name { font-size: 64px; }
  .portrait-overlay { padding: 24px 32px 32px; }
  .card { min-height: 184px; padding: 28px 26px; }
  .card-logo { width: 128px; height: 128px; }
  .card-title { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; animation: none; }
  .card, .socials a { transition: none; }
}
