/* ==========================================
   CUSTOM PROPERTIES
   Atualizar em /gerar-design
   ========================================== */

:root {
  /* Fonts: Substituir pelo font pairing escolhido */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Cores: Definir paleta do projeto */
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-primary: #6366f1;
  --color-primary-hover: #4f46e5;
  --color-border: #e5e7eb;
  --color-error: #ef4444;
  --color-success: #10b981;

  /* Spacing */
  --section-py: clamp(4rem, 10vw, 8rem);
  --container-px: clamp(1rem, 5vw, 2rem);
  --container-max: 1200px;
}

/* ==========================================
   RESET
   ========================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

ul, ol {
  list-style: none;
}

/* ==========================================
   LAYOUT
   ========================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

/* ==========================================
   FORMS
   ========================================== */

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.form-input.error {
  border-color: var(--color-error);
}

.form-feedback {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  display: none;
}

.form-feedback.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-feedback.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* intl-tel-input */
.iti {
  width: 100%;
}

.iti__country-list {
  z-index: 100;
}

/* ==========================================
   UTILITIES
   ========================================== */

.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;
}

.text-muted {
  color: var(--color-text-muted);
}

/* ==========================================
   ACESSIBILIDADE
   ========================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================
   PAGE STYLES — Bio Link
   ========================================== */

:root {
  --bio-bg-1: #f5efe6;
  --bio-bg-2: #ece2d2;
  --bio-card: #ffffff;
  --bio-ink: #2a221c;
  --bio-ink-soft: #7a6e62;
  --bio-line: #ebe2d4;
  --bio-accent: #b08763;
  --bio-accent-deep: #8a6a4b;
  --bio-shadow: 0 10px 30px -12px rgba(80, 55, 30, 0.18);
  --font-display: 'Cormorant Garamond', Georgia, serif;
}

.bio-page {
  font-family: var(--font-body);
  color: var(--bio-ink);
  background: var(--bio-bg-1);
  min-height: 100svh;
  min-height: 100vh;
  overflow-x: hidden;
}

.bio-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(800px 500px at 20% 0%, rgba(176, 135, 99, 0.18), transparent 60%),
    radial-gradient(700px 600px at 100% 100%, rgba(176, 135, 99, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bio-bg-1) 0%, var(--bio-bg-2) 100%);
}

.bio {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: clamp(2rem, 8vw, 3.5rem) 1.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  min-height: 100svh;
  min-height: 100vh;
}

/* ----- Header ----- */

.bio-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bio-avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--bio-accent) 0%, #e9d3b8 50%, var(--bio-accent-deep) 100%);
  box-shadow: var(--bio-shadow);
  margin-bottom: 1.25rem;
}

.bio-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bio-card);
}

.bio-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.bio-handle {
  margin-top: 0.4rem;
  color: var(--bio-accent-deep);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.bio-tagline {
  margin-top: 0.75rem;
  color: var(--bio-ink-soft);
  font-size: 0.95rem;
  max-width: 32ch;
}

.bio-tagline strong {
  color: var(--bio-ink);
  font-weight: 600;
}

.bio-instagram {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--bio-ink);
  color: #fbf7f0;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.bio-instagram:hover,
.bio-instagram:focus-visible {
  background: var(--bio-accent-deep);
  transform: translateY(-1px);
}

/* ----- Links ----- */

.bio-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bio-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  background: var(--bio-card);
  border: 1px solid var(--bio-line);
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 6px 18px -12px rgba(80, 55, 30, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.bio-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(176, 135, 99, 0.08) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  pointer-events: none;
}

.bio-link:hover,
.bio-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--bio-accent);
  box-shadow: 0 14px 28px -16px rgba(138, 106, 75, 0.45);
  outline: none;
}

.bio-link:hover::before,
.bio-link:focus-visible::before {
  transform: translateX(100%);
}

.bio-link-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7eee0, #ece0cb);
  color: var(--bio-accent-deep);
}

.bio-link-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.bio-link-text strong {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--bio-ink);
}

.bio-link-text small {
  font-size: 0.8rem;
  color: var(--bio-ink-soft);
  margin-top: 0.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bio-link-arrow {
  flex: 0 0 auto;
  color: var(--bio-ink-soft);
  transition: transform 0.2s ease, color 0.2s ease;
}

.bio-link:hover .bio-link-arrow,
.bio-link:focus-visible .bio-link-arrow {
  transform: translateX(3px);
  color: var(--bio-accent-deep);
}

/* ----- Footer ----- */

.bio-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  text-align: center;
  color: var(--bio-ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.3px;
}

/* ----- Responsive tweaks ----- */

@media (max-width: 360px) {
  .bio {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .bio-link {
    padding: 0.9rem 0.95rem;
    gap: 0.75rem;
  }
  .bio-link-icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }
}

