/* Fundy Digital — shared theme CSS (extracted from index.html) */
body { font-family: "Inter", sans-serif; }

/* Active nav link (set by assets/nav.js based on current page) */
nav a[aria-current="page"],
nav button[aria-current="page"],
header a[aria-current="page"],
header button[aria-current="page"] {
  color: #0891B2 !important;
  font-weight: 700;
  position: relative;
}
nav a[aria-current="page"]::after,
nav button[aria-current="page"]::after,
header a[aria-current="page"]::after,
header button[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, #6366F1, #22D3EE, #FB7185);
  border-radius: 2px;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Subtle dot-grid background */
.dot-grid {
  background-image: radial-gradient(#C2C6D8 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Glassmorphism card — cyan tint */
.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(8, 145, 178, 0.1);
}

/* Dual-color gradient text */
.dual-gradient-text {
  background: linear-gradient(135deg, #0891B2 0%, #F97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Dual-color gradient fill */
.dual-gradient-bg {
  background: linear-gradient(135deg, #0891B2 0%, #F97316 100%);
}

.badge-violet { background: #CFFAFE; color: #0E7490; }
.badge-coral  { background: #FFEDD5; color: #EA580C; }
.badge-neutral { background: #E7E8EA; color: #424656; }

.avatar-ring-violet { box-shadow: 0 0 0 4px #CFFAFE, 0 0 0 6px #0891B2; }
.avatar-ring-coral  { box-shadow: 0 0 0 4px #FFEDD5, 0 0 0 6px #F97316; }

html { scroll-behavior: smooth; }

.dot-grid-ocean {
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

@keyframes fundyTide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.wave-back  { animation: fundyTide 20s linear infinite; }
.wave-mid   { animation: fundyTide 14s linear infinite; animation-delay: -6s; }
.wave-front { animation: fundyTide 9s  linear infinite; animation-delay: -2s; }

/* Agent grid */
.agent-grid {
  max-width: 1000px; margin: 0 auto; padding: 0 24px 64px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
@media (max-width: 800px) { .agent-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .agent-grid { grid-template-columns: repeat(2, 1fr); } }
.agent-card {
  background: white; border-radius: 16px; padding: 24px 16px 20px;
  text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  transition: transform 0.15s ease;
}
.agent-card:hover { transform: translateY(-3px); }
.agent-avatar { width: 120px; height: 120px; margin: 0 auto 14px; overflow: hidden; background: transparent; }
.agent-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.agent-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 2px; }
.agent-role {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: white; display: inline-block; padding: 2px 10px; border-radius: 9999px; margin-bottom: 10px;
}
.agent-desc { font-size: 0.8rem; color: #424656; line-height: 1.45; }

/* Product page phone-mock */
.product-mock {
  width: 260px; height: 520px; border-radius: 42px; background: #1C1917; padding: 10px;
  box-shadow: 0 30px 60px -10px rgba(0,0,0,.35); margin: 0 auto;
}
.product-mock-screen {
  width: 100%; height: 100%; border-radius: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 120px;
}

/* ─────────────────────────────────────────────────────
   Mobile navigation (injected by assets/nav.js)
   Hamburger + slide-down panel for screens < 768px.
   ───────────────────────────────────────────────────── */
.fd-mobile-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: transparent;
  color: #0D1B4B;
  border: 1px solid rgba(13, 27, 75, 0.12);
  cursor: pointer;
  margin-left: 4px;
}
.fd-mobile-toggle:hover { background: rgba(13, 27, 75, 0.04); }
.fd-mobile-toggle .material-symbols-outlined { font-size: 24px; }

.fd-mobile-panel {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: white;
  border-bottom: 1px solid #E5E7EB;
  box-shadow: 0 10px 20px -8px rgba(0,0,0,0.12);
  padding: 12px 16px 20px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  z-index: 60;
}
.fd-mobile-panel a,
.fd-mobile-panel .fd-m-section-label {
  display: block;
  padding: 10px 12px;
  font-size: 0.95rem;
  color: #424656;
  border-radius: 10px;
  text-decoration: none;
}
.fd-mobile-panel a { font-weight: 600; }
.fd-mobile-panel a:hover,
.fd-mobile-panel a:focus { background: #F3F4F6; color: #0891B2; }
.fd-mobile-panel a[aria-current="page"] { color: #0891B2; background: #ECFEFF; }
.fd-mobile-panel .fd-m-section-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: #6B7280; padding-bottom: 2px; padding-top: 10px;
}
.fd-mobile-panel .fd-m-divider {
  height: 1px; background: #E5E7EB; margin: 8px 4px;
}

@media (max-width: 767px) {
  .fd-mobile-toggle { display: inline-flex; }
  .fd-mobile-panel.fd-open { display: block; }
}
