/* ============================================================
   Simone Alves — Site (HTML/CSS/JS puro)
   Mobile-first (igual ao app) + Desktop (layout novo, leve)
   ============================================================ */

:root {
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --nude-rose: #E8D3C3;
  --nude-rose-light: #F4EAE2;
  --gold: #C5A059;
  --gold-soft: #D4AF37;
  --text-primary: #2C2A29;
  --text-secondary: #7A736E;
  --divider: #EEE4DA;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html, body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

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

img { display: block; max-width: 100%; height: auto; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* ===================== Layout container ===================== */
.app-bg { background: var(--bg); width: 100%; min-height: 100vh; }

.container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: 48px;
}

/* ===================== Header (acento dourado) ===================== */
.topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 0 4px;
}
.topbar .accent {
  width: 32px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* ===================== Hero ===================== */
.hero {
  padding: 18px 24px;
}
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--gold);
  margin-bottom: 8px;
}
.hero-namerow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hero-name h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 52px;
  line-height: 58px;
  letter-spacing: -1px;
  color: var(--text-primary);
}
.hero-name h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 52px;
  line-height: 58px;
  letter-spacing: -1px;
  color: var(--gold);
  margin-top: -4px;
}
.hero-logo {
  position: relative;
  width: 86px;
  height: 86px;
  flex-shrink: 0;
}
.hero-logo img {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
}
.hero-logo::after {
  content: '';
  position: absolute;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  top: -6px;
  left: -6px;
  opacity: 0.6;
}
.hero-divider {
  width: 40px;
  height: 1px;
  background: var(--nude-rose);
  margin: 20px 0 18px;
}
.hero-body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.hero-photo {
  position: relative;
  width: 138px;
  height: 196px;
  flex-shrink: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--nude-rose-light);
  box-shadow: 0 8px 24px rgba(44, 42, 41, 0.10);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  width: 30px;
  height: 30px;
  border-top: 1.5px solid var(--gold);
  border-left: 1.5px solid var(--gold);
  border-top-left-radius: 12px;
  z-index: 2;
}
.hero-text {
  flex: 1;
  padding-top: 4px;
}
.hero-text p {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 22px;
  color: var(--text-secondary);
}
.hero-text p strong {
  font-weight: 600;
  color: var(--text-primary);
}
.hero-paragraph {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 22px;
  color: var(--text-secondary);
  margin-top: 14px;
}
.hero-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  line-height: 22px;
  color: var(--gold);
  margin-top: 14px;
}
.hero-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
}
.tag {
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--nude-rose-light);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}
.dot {
  width: 3px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
}

/* ===================== Section label ===================== */
.section-label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--gold);
  text-align: center;
  margin-bottom: 14px;
}

/* ===================== Links ===================== */
.links {
  padding: 28px 24px 8px;
}
.link-btn {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 20px;
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(44, 42, 41, 0.05);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  user-select: none;
}
.link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(44, 42, 41, 0.08);
  border-color: var(--nude-rose);
}
.link-btn:active { transform: scale(0.97); }

.link-icon {
  width: 42px;
  height: 42px;
  border-radius: 21px;
  background: var(--nude-rose-light);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 14px;
  flex-shrink: 0;
  color: var(--gold);
}
.link-icon svg { width: 22px; height: 22px; }

.link-text { flex: 1; min-width: 0; }
.link-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.2px;
  color: var(--text-primary);
  display: block;
}
.link-subtitle {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  display: block;
}
.link-arrow {
  color: var(--gold);
  font-size: 20px;
  flex-shrink: 0;
  margin-left: 8px;
  transition: transform 0.2s ease;
}
.link-btn:hover .link-arrow { transform: translate(2px, -2px); }

/* ===================== Portfolio ===================== */
.portfolio { padding: 36px 24px 0; }

.portfolio h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 18px;
  color: var(--text-primary);
}
.portfolio h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}
.tab {
  padding: 8px 20px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.2s ease;
}
.tab.active {
  color: var(--text-primary);
  font-weight: 600;
}
.tab.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.masonry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  grid-auto-flow: dense;
}
.masonry-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--nude-rose-light);
  transition: transform 0.2s ease;
  cursor: pointer;
}
.masonry-item:active { transform: scale(0.98); }
.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.masonry-item::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 45%;
  background: linear-gradient(to bottom, transparent, rgba(44,42,41,0.25));
  pointer-events: none;
}

/* alturas alternadas (efeito masonry mobile) */
.masonry-item.h0 { height: 220px; }
.masonry-item.h1 { height: 280px; }
.masonry-item.h2 { height: 260px; }
.masonry-item.h3 { height: 240px; }
.masonry-item.h4 { height: 300px; }
.masonry-item.h5 { height: 230px; }

/* Ver mais card */
.ver-mais {
  background: var(--nude-rose-light);
  border: 1px solid var(--nude-rose);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
}
.ver-mais::after { display: none; }
.ver-mais .ver-icon {
  width: 52px;
  height: 52px;
  border-radius: 26px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(197, 160, 89, 0.15);
  color: var(--gold);
}
.ver-mais .ver-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}
.ver-mais .ver-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  color: var(--gold);
  margin-top: -2px;
}
.ver-mais .ver-divider {
  width: 24px;
  height: 1px;
  background: var(--gold);
  margin: 10px 0;
  opacity: 0.6;
}
.ver-mais .ver-handle {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
}

/* ===================== Footer ===================== */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 18px;
}
.footer-divider {
  width: 60px;
  height: 1px;
  background: var(--nude-rose);
  margin-bottom: 16px;
}
.footer-monogram {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--gold);
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.3px;
  color: var(--text-primary);
  margin-top: 6px;
}
.footer-small {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ===================== Animações sutis ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s ease forwards;
}
.fade-in.d1 { animation-delay: 0.12s; }
.fade-in.d2 { animation-delay: 0.22s; }
.fade-in.d3 { animation-delay: 0.32s; }
.fade-in.d4 { animation-delay: 0.42s; }

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

/* Mobile defaults para visibilidade condicional */
.desktop-only { display: none !important; }
.mobile-only { display: revert; }

/* ============================================================
   DESKTOP LAYOUT (≥ 900px) — layout novo, mais largo, leve
   ============================================================ */
@media (min-width: 900px) {
  .container {
    max-width: 1180px;
    padding: 0 32px 64px;
  }

  .topbar { padding: 28px 0 8px; }
  .topbar .accent { width: 48px; height: 3px; }

  /* HERO desktop — 2 colunas elegantes */
  .hero {
    padding: 32px 0 8px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 56px;
    align-items: start;
  }
  .hero-eyebrow-wrap {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }
  .hero-eyebrow-wrap .eyebrow {
    font-size: 11px;
    letter-spacing: 6px;
  }
  .hero-namerow {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }
  .hero-name h1, .hero-name h2 {
    font-size: 88px;
    line-height: 92px;
    letter-spacing: -2px;
  }
  .hero-name h2 { margin-top: -10px; }
  .hero-logo {
    width: 120px;
    height: 120px;
  }
  .hero-logo img {
    width: 120px;
    height: 120px;
  }
  .hero-logo::after {
    width: 138px;
    height: 138px;
    top: -9px;
    left: -9px;
  }
  .hero-divider {
    grid-column: 1 / -1;
    width: 64px;
    margin: 8px 0 24px;
  }
  .hero-body {
    grid-column: 1;
    flex-direction: column;
    gap: 0;
  }
  .hero-photo {
    width: 100%;
    height: 440px;
    border-radius: 24px;
  }
  .hero-photo::before {
    width: 44px;
    height: 44px;
    top: 14px;
    left: 14px;
  }
  .hero-text-block {
    grid-column: 2;
    padding-top: 4px;
  }
  .hero-text-block p {
    font-size: 16px;
    line-height: 28px;
  }
  .hero-text-block p:not(:first-child) { margin-top: 18px; }
  .hero-italic-desktop {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 20px;
    line-height: 28px;
    color: var(--gold);
    margin-top: 22px !important;
  }
  .hero-tags {
    margin-top: 28px;
    gap: 8px;
  }
  .tag {
    padding: 8px 18px;
    font-size: 12px;
  }

  /* Esconder elementos exclusivos do mobile no desktop */
  .mobile-only { display: none !important; }
  .desktop-only { display: revert !important; }

  /* LINKS desktop — 3 colunas */
  .links {
    padding: 64px 0 16px;
  }
  .links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .link-btn { margin-bottom: 0; padding: 20px 22px; }
  .link-label { font-size: 18px; }
  .link-subtitle { font-size: 13px; }
  .section-label {
    font-size: 11px;
    letter-spacing: 6px;
    margin-bottom: 22px;
  }

  /* PORTFÓLIO desktop — 4 colunas masonry-grid */
  .portfolio { padding: 72px 0 0; }
  .portfolio h2 {
    font-size: 44px;
    margin-bottom: 24px;
  }
  .tabs { margin-bottom: 28px; }
  .tab { font-size: 15px; padding: 10px 24px; }

  .masonry {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
  .masonry-item.h0 { height: 320px; }
  .masonry-item.h1 { height: 380px; }
  .masonry-item.h2 { height: 340px; }
  .masonry-item.h3 { height: 300px; }
  .masonry-item.h4 { height: 400px; }
  .masonry-item.h5 { height: 320px; }
  .masonry-item:hover { transform: translateY(-4px); }
  .masonry-item img { transition: transform 0.5s ease; }
  .masonry-item:hover img { transform: scale(1.03); }

  .footer {
    padding: 64px 24px 32px;
  }
  .footer-divider { width: 80px; }
}
