/* ==========================================================================
   THE BRANDING DUDE - EXECUTIVE DIGITAL CARD & MULTI-CLIENT SUITE
   5 Luxury Ambient Gradient Themes + Custom Accent Color Engine
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* 1. SLATE / OBSIDIAN (Default Executive Legal Dark) */
  --gold-primary: #D1B46A;
  --gold-light: #F2E3C6;
  --gold-dark: #8F7238;
  --gold-gradient: linear-gradient(135deg, #F2E3C6 0%, #D1B46A 50%, #9C7D3E 100%);
  --gold-border: rgba(209, 180, 106, 0.25);

  --bg-dark: #0A0E17;
  --bg-card: #0F141F;
  --bg-surface: #121824;
  --bg-surface-elevated: #182030;
  --text-main: #FFFFFF;
  --text-muted: #9BA8BA;
  --pill-bg: rgba(255, 255, 255, 0.04);
  --pill-border: rgba(255, 255, 255, 0.08);
  --ambient-radial1: rgba(209, 180, 106, 0.12);
  --ambient-radial2: rgba(18, 50, 90, 0.22);
}

/* ================= 5 VIBRANT LUXURY THEMES ================= */

/* 1. SLATE / OBSIDIAN */
[data-theme="slate"], body[data-theme="slate"] {
  --gold-primary: #D1B46A;
  --gold-light: #F2E3C6;
  --gold-dark: #8F7238;
  --gold-gradient: linear-gradient(135deg, #F2E3C6 0%, #D1B46A 50%, #9C7D3E 100%);
  --gold-border: rgba(209, 180, 106, 0.25);
  --bg-dark: #0A0E17;
  --bg-card: #0F141F;
  --bg-surface: #121824;
  --bg-surface-elevated: #182030;
  --text-main: #FFFFFF;
  --text-muted: #9BA8BA;
  --pill-bg: rgba(255, 255, 255, 0.04);
  --pill-border: rgba(255, 255, 255, 0.08);
  --ambient-radial1: rgba(209, 180, 106, 0.12);
  --ambient-radial2: rgba(18, 50, 90, 0.22);
}

/* 2. PEARL / MINIMALIST LUXE (LIGHT MODE) */
[data-theme="pearl"], body[data-theme="pearl"] {
  --gold-primary: #B38F4D;
  --gold-light: #D4AF37;
  --gold-dark: #7A5E26;
  --gold-gradient: linear-gradient(135deg, #E5C378 0%, #B38F4D 50%, #8A6A2C 100%);
  --gold-border: rgba(179, 143, 77, 0.3);
  --bg-dark: #F5F4EE;
  --bg-card: #FFFFFF;
  --bg-surface: #F9F8F4;
  --bg-surface-elevated: #FFFFFF;
  --text-main: #141820;
  --text-muted: #546072;
  --pill-bg: #F4F3ED;
  --pill-border: rgba(0, 0, 0, 0.09);
  --ambient-radial1: rgba(209, 180, 106, 0.25);
  --ambient-radial2: rgba(220, 215, 200, 0.5);
}

/* 3. SAPPHIRE (CORPORATE ROYAL BLUE) */
[data-theme="sapphire"], body[data-theme="sapphire"] {
  --gold-primary: #38BDF8;
  --gold-light: #BAE6FD;
  --gold-dark: #0284C7;
  --gold-gradient: linear-gradient(135deg, #BAE6FD 0%, #38BDF8 50%, #0369A1 100%);
  --gold-border: rgba(56, 189, 248, 0.3);
  --bg-dark: #060F1E;
  --bg-card: #0B1930;
  --bg-surface: #102344;
  --bg-surface-elevated: #162E59;
  --text-main: #FFFFFF;
  --text-muted: #9DB0C9;
  --pill-bg: rgba(56, 189, 248, 0.06);
  --pill-border: rgba(56, 189, 248, 0.15);
  --ambient-radial1: rgba(56, 189, 248, 0.2);
  --ambient-radial2: rgba(3, 105, 161, 0.3);
}

/* 4. EMERALD (PRESTIGE FOREST GREEN) */
[data-theme="emerald"], body[data-theme="emerald"] {
  --gold-primary: #34D399;
  --gold-light: #A7F3D0;
  --gold-dark: #059669;
  --gold-gradient: linear-gradient(135deg, #A7F3D0 0%, #34D399 50%, #047857 100%);
  --gold-border: rgba(52, 211, 153, 0.3);
  --bg-dark: #04140E;
  --bg-card: #0A2217;
  --bg-surface: #0F3122;
  --bg-surface-elevated: #164630;
  --text-main: #FFFFFF;
  --text-muted: #9DC1B1;
  --pill-bg: rgba(52, 211, 153, 0.06);
  --pill-border: rgba(52, 211, 153, 0.15);
  --ambient-radial1: rgba(52, 211, 153, 0.2);
  --ambient-radial2: rgba(4, 120, 87, 0.3);
}

/* 5. AMETHYST (ENRICHED HIGH-CONTRAST ROYAL PURPLE) */
/* Lightened, vibrant, crisp text contrast as requested */
[data-theme="amethyst"], body[data-theme="amethyst"] {
  --gold-primary: #D8B4FE;
  --gold-light: #F3E8FF;
  --gold-dark: #A855F7;
  --gold-gradient: linear-gradient(135deg, #F3E8FF 0%, #D8B4FE 50%, #9333EA 100%);
  --gold-border: rgba(216, 180, 254, 0.32);
  --bg-dark: #120A21;
  --bg-card: #1A102E;
  --bg-surface: #241740;
  --bg-surface-elevated: #311F57;
  --text-main: #FFFFFF;
  --text-muted: #D1C7E0;
  --pill-bg: rgba(216, 180, 254, 0.08);
  --pill-border: rgba(216, 180, 254, 0.18);
  --ambient-radial1: rgba(192, 132, 252, 0.25);
  --ambient-radial2: rgba(147, 51, 234, 0.35);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* Ambient Radial Page Backdrop */
.page-ambient-bg {
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 50% 12%, var(--ambient-radial1) 0%, transparent 48%),
    radial-gradient(circle at 10% 85%, var(--ambient-radial2) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-dark) 0%, #030508 100%);
  z-index: -1;
  pointer-events: none;
  transition: all 0.4s ease;
}

body[data-theme="pearl"] .page-ambient-bg {
  background-image: 
    radial-gradient(circle at 50% 12%, var(--ambient-radial1) 0%, transparent 50%),
    radial-gradient(circle at 10% 85%, var(--ambient-radial2) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-dark) 0%, #E8E6DD 100%);
}

.font-serif-luxury {
  font-family: 'Cinzel', Georgia, serif;
}

.glass-panel {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--gold-border);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.desktop-preview-frame {
  max-width: 420px;
  margin: 0 auto;
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid var(--gold-border);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  background: var(--bg-card);
  transition: all 0.35s ease;
}

body[data-theme="pearl"] .desktop-preview-frame {
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

@media (max-width: 640px) {
  .desktop-preview-frame {
    border-radius: 0;
    border: none;
    max-width: 100%;
    box-shadow: none;
  }
}

/* Avatar Subtle Ring */
.avatar-ring {
  position: relative;
  padding: 3px;
  border-radius: 9999px;
  background: var(--gold-gradient);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px var(--gold-border);
}

/* Action Icon Bubbles (Call, Office, WhatsApp, Email, Web) */
.action-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.action-bubble .bubble-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  transition: all 0.2s ease;
}

.action-bubble:hover .bubble-circle {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.action-bubble:active .bubble-circle {
  transform: scale(0.95);
}

.action-bubble.mobile .bubble-circle {
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
}
.action-bubble.mobile:hover .bubble-circle {
  background: #10B981;
  color: #FFFFFF;
}

.action-bubble.office .bubble-circle {
  color: var(--gold-primary);
  background: var(--pill-bg);
  border-color: var(--gold-border);
}
.action-bubble.office:hover .bubble-circle {
  background: var(--gold-primary);
  color: #0A0E17;
}

.action-bubble.whatsapp .bubble-circle {
  color: #25D366;
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.25);
}
.action-bubble.whatsapp:hover .bubble-circle {
  background: #25D366;
  color: #FFFFFF;
}

.action-bubble.email .bubble-circle {
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.25);
}
.action-bubble.email:hover .bubble-circle {
  background: #38BDF8;
  color: #FFFFFF;
}

.action-bubble.web .bubble-circle {
  color: #818CF8;
  background: rgba(129, 140, 248, 0.12);
  border-color: rgba(129, 140, 248, 0.25);
}
.action-bubble.web:hover .bubble-circle {
  background: #818CF8;
  color: #FFFFFF;
}

/* Social Icon Circles (Compact Official Brand Icons) */
.social-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 1.25rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.social-icon-circle:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.social-icon-circle:active {
  transform: scale(0.96);
}

.social-icon-circle.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.social-icon-circle.facebook { background: #1877F2; }
.social-icon-circle.youtube { background: #FF0000; }
.social-icon-circle.linkedin { background: #0A66C2; }
.social-icon-circle.gmb { background: #1A73E8; }

/* Compact Practice Area Pills */
.service-compact-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.service-compact-pill:hover {
  background: rgba(209, 180, 106, 0.12);
  border-color: var(--gold-border);
  transform: translateX(2px);
}

body[data-theme="pearl"] .service-compact-pill:hover {
  background: rgba(179, 143, 77, 0.1);
  color: #111;
}

body[data-theme="amethyst"] .service-compact-pill:hover {
  background: rgba(216, 180, 254, 0.15);
  border-color: rgba(216, 180, 254, 0.4);
}

.service-compact-pill .service-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(209, 180, 106, 0.12);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-right: 12px;
  flex-shrink: 0;
}

body[data-theme="amethyst"] .service-compact-pill .service-icon {
  background: rgba(216, 180, 254, 0.18);
  color: #E9D5FF;
}

/* Primary CTA Button (Save Contact) */
.btn-save-contact {
  background: var(--gold-gradient);
  color: #0A0E17;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 16px;
  padding: 15px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

body[data-theme="pearl"] .btn-save-contact {
  color: #FFFFFF;
  background: linear-gradient(135deg, #B38F4D 0%, #8A6A2C 100%);
}

body[data-theme="amethyst"] .btn-save-contact {
  color: #0E071A;
  background: linear-gradient(135deg, #F3E8FF 0%, #D8B4FE 50%, #A855F7 100%);
}

.btn-save-contact:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn-save-contact:active {
  transform: scale(0.98);
}

/* Google Review Featured Card */
.review-featured-card {
  background: var(--pill-bg);
  border: 1px solid rgba(26, 115, 232, 0.35);
  border-radius: 16px;
  padding: 12px 14px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text-main);
}

.review-featured-card:hover {
  border-color: #1A73E8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 115, 232, 0.2);
}

/* Floating Theme Switcher Bar */
.theme-picker-floating {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

body[data-theme="pearl"] .theme-picker-floating {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.12);
}

.theme-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.theme-dot:hover {
  transform: scale(1.2);
}

.theme-dot.active {
  border-color: #FFFFFF;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

body[data-theme="pearl"] .theme-dot.active {
  border-color: #111;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

/* Toast */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #161D2B;
  color: #FFF;
  border: 1px solid var(--gold-primary);
  border-radius: 30px;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
}

#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Branding Dude Agency Footer Capsule */
.tbd-badge-capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.tbd-badge-capsule:hover {
  transform: translateY(-2px);
  background: #FFFFFF;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Modern iOS Toggle Switch for Section Visibility */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #10B981;
  border-color: #10B981;
}

input:checked + .toggle-slider:before {
  transform: translateX(16px);
}

