/* ==========================================================================
   DRA. CARLA DANIELE · LINKS HUB EXCLUSIVO (LINK-IN-BIO)
   Identidade: Ameixa Profundo (#513B40), Rosé Nude (#AD817A), Off-white (#F5EFE8)
   ========================================================================== */

:root {
  --primary: #513B40;
  --primary-rgb: 81, 59, 64;
  --secondary: #AD817A;
  --accent: #B79A70;
  --accent-light: #EADBC8;
  --bg-creme: #F5EFE8;
  --bg-card: #FFFFFF;
  --surface: #FCFAF7;
  --text-dark: #2F292B;
  --text-muted: #6B6265;
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
  --border: rgba(173, 129, 122, 0.22);
  --shadow-sm: 0 4px 14px rgba(81, 59, 64, 0.05);
  --shadow-md: 0 10px 28px rgba(81, 59, 64, 0.08);
  --shadow-lg: 0 16px 40px rgba(81, 59, 64, 0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-creme);
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: 
    radial-gradient(circle at 10% 15%, rgba(173, 129, 122, 0.15), transparent 45%),
    radial-gradient(circle at 90% 85%, rgba(183, 154, 112, 0.12), transparent 45%),
    var(--bg-creme);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1.5rem 1rem 3rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

.page-shell {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

/* TOPLINE BAR */
.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.25rem 1.75rem;
}

.wordmark {
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
}
.wordmark-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.01em;
  line-height: 1;
}
.wordmark-title span {
  color: var(--secondary);
}
.wordmark-sub {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.18em;
  margin-top: 3px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--primary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}
.share-btn svg {
  width: 14px;
  height: 14px;
}
.share-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* PROFILE HERO */
.profile-hero {
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portrait-container {
  position: relative;
  width: 130px;
  height: 130px;
  margin-bottom: 1.25rem;
}

.portrait-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--accent), var(--secondary), var(--primary));
  box-shadow: 0 12px 28px rgba(81, 59, 64, 0.16);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid #fff;
}

.verified-badge {
  position: absolute;
  bottom: 4px;
  right: 6px;
  width: 26px;
  height: 26px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.profile-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--secondary);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.profile-heading {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.45rem;
}
.profile-heading .dot {
  color: var(--accent);
}

.profile-bio-text {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.profile-location-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Rating Badge */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  box-shadow: var(--shadow-sm);
}
.rating-badge .g-mark {
  background: #4285F4;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rating-badge .score {
  font-weight: 700;
  color: var(--text-dark);
}
.rating-badge .stars {
  color: #FBBC04;
  letter-spacing: 1px;
  font-size: 0.85rem;
}
.rating-badge .count {
  color: var(--text-muted);
  font-size: 0.76rem;
}

/* LINKS HUB CONTAINER */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
}

.group-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.8rem 0 0.2rem;
  padding: 0 0.25rem;
}
.group-divider span {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.16em;
  white-space: nowrap;
}
.group-divider i {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
}

/* LINK ITEMS */
.link-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.4, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.link-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.link-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}
.link-item:hover::before {
  opacity: 1;
}

.item-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.item-icon-box svg {
  width: 20px;
  height: 20px;
}
.link-item:hover .item-icon-box {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
}

.item-text-box {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.item-text-box strong {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}
.item-text-box span,
.item-text-box address {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  font-style: normal;
}

.item-arrow {
  color: var(--secondary);
  font-size: 1.05rem;
  font-weight: 600;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}
.link-item:hover .item-arrow {
  color: var(--primary);
  transform: translate(2px, -2px);
}

/* FEATURED CARD: WHATSAPP */
.link-item.featured-whatsapp {
  background: linear-gradient(135deg, #1d3326 0%, #0d2117 100%);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #fff;
  box-shadow: 0 10px 24px rgba(18, 140, 126, 0.2);
}
.link-item.featured-whatsapp::before {
  background: var(--whatsapp);
}
.link-item.featured-whatsapp:hover {
  border-color: var(--whatsapp);
  box-shadow: 0 14px 32px rgba(18, 140, 126, 0.35);
}
.link-item.featured-whatsapp .whatsapp-box {
  background: rgba(37, 211, 102, 0.18);
  border-color: rgba(37, 211, 102, 0.4);
  color: #25D366;
}
.link-item.featured-whatsapp:hover .whatsapp-box {
  background: #25D366;
  color: #0b1e15;
}
.link-item.featured-whatsapp .item-text-box strong {
  color: #fff;
}
.link-item.featured-whatsapp .item-text-box span {
  color: rgba(255, 255, 255, 0.8);
}
.link-item.featured-whatsapp .item-arrow {
  color: #25D366;
}

/* HIGHLIGHT CARD: GUIA EDUCATIVO */
.link-item.highlight-card {
  background: linear-gradient(135deg, rgba(81, 59, 64, 0.05), rgba(173, 129, 122, 0.12));
  border-color: rgba(173, 129, 122, 0.35);
}
.link-item.highlight-card::before {
  background: var(--accent);
}
.link-item.highlight-card .item-icon-box {
  background: var(--primary);
  color: #fff;
}

/* CLOSING QUOTE */
.profile-closing {
  text-align: center;
  padding: 1.5rem 1rem;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.closing-spark {
  display: block;
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.closing-quote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--primary);
  line-height: 1.45;
  margin-bottom: 0.75rem;
}
.closing-quote em {
  font-style: normal;
  font-weight: 600;
  color: var(--secondary);
}
.closing-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}

/* FOOTER */
.profile-footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(173, 129, 122, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.agency-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.jf-monogram-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
}
.agency-credit a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.agency-credit a:hover {
  text-decoration: underline;
}
.footer-copy {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* TOAST NOTIFICATION */
.toast-box {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1);
  z-index: 9999;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.toast-box.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

