/* clinics.css — shared chrome for the new vertical landing pages
   Sits on top of styles.css. Each vertical sets --v-accent and friends. */

/* ============== Theme per vertical (override on <body data-vertical>) ============== */
body[data-vertical="dental"] {
  --v-accent: #DB2777;
  --v-accent-2: #EC4899;
  --v-accent-deep: #9D174D;
  --v-tint: #FCE7F3;
  --v-tint-soft: #FDF2F8;
  --v-grad: linear-gradient(120deg, #DB2777 0%, #EC4899 50%, #F472B6 100%);
  --v-grad-deep: linear-gradient(160deg, #500B30 0%, #831943 60%, #BE185D 100%);
}
body[data-vertical="aesthetic"] {
  --v-accent: #7C3AED;
  --v-accent-2: #C026D3;
  --v-accent-deep: #5B21B6;
  --v-tint: #EDE9FE;
  --v-tint-soft: #F5F3FF;
  --v-grad: linear-gradient(120deg, #7C3AED 0%, #C026D3 50%, #EC4899 100%);
  --v-grad-deep: linear-gradient(160deg, #1A0B3D 0%, #2A1A5E 60%, #4A2B8C 100%);
}
body[data-vertical="nutrition"] {
  --v-accent: #1F8A5B;
  --v-accent-2: #10B981;
  --v-accent-deep: #065F46;
  --v-tint: #D1FAE5;
  --v-tint-soft: #ECFDF5;
  --v-grad: linear-gradient(120deg, #1F8A5B 0%, #10B981 50%, #34D399 100%);
  --v-grad-deep: linear-gradient(160deg, #043624 0%, #065F46 60%, #047857 100%);
}

/* ============== Nav additions: vertical badge ============== */
.nav-vertical-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  margin-left: 4px;
  background: var(--v-grad, var(--gradient-brand));
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 6px;
  text-transform: uppercase;
}

/* Vertical switcher in nav */
/* v-switcher styles live in assets/styles.css (single source of truth, applies to every page) */

/* ============== Vertical page hero ============== */
.v-hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  background: var(--v-grad-deep);
  color: #fff;
}
.v-hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto auto;
  width: 780px; height: 780px;
  background: radial-gradient(circle, color-mix(in srgb, var(--v-accent) 30%, transparent), transparent 60%);
  pointer-events: none;
}
.v-hero::after {
  content: '';
  position: absolute;
  inset: auto auto -40% -15%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, color-mix(in srgb, var(--v-accent-2) 22%, transparent), transparent 60%);
  pointer-events: none;
}
.v-hero .container { position: relative; z-index: 1; }
.v-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) { .v-hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.v-hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}
.v-hero-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--v-accent-2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--v-accent-2) 22%, transparent);
}
.v-hero h1 {
  color: #fff;
  margin-top: 24px;
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.v-hero h1 em {
  font-family: inherit;
  font-style: normal;
  background: linear-gradient(120deg, color-mix(in srgb, var(--v-accent-2) 80%, white), color-mix(in srgb, var(--v-accent) 60%, white));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}
.v-hero-sub {
  margin-top: 26px;
  font-size: 19px;
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
  max-width: 540px;
}
.v-hero-ctas {
  margin-top: 36px;
  display: flex; gap: 12px;
  flex-wrap: wrap;
}
.v-hero-ctas .btn-primary {
  background: #fff;
  color: var(--ink);
}
.v-hero-ctas .btn-primary:hover {
  background: var(--v-tint);
  color: var(--v-accent-deep);
}
.v-hero-ctas .btn-secondary {
  color: #fff;
  border-color: rgba(255,255,255,0.25);
  background: transparent;
}
.v-hero-ctas .btn-secondary:hover { border-color: #fff; }

.v-hero-stats {
  margin-top: 40px;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.v-hero-stat .v {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}
.v-hero-stat .l {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
  font-family: 'Geist Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Hero visual slot — large illustration */
.v-hero-visual {
  position: relative;
}

/* ============== Module index sticky ============== */
.v-index {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  padding: 20px 0;
  position: sticky;
  top: 73px;
  z-index: 40;
}
.v-index-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--v-accent) transparent;
  /* Extra vertical padding so the hover-lifted pills aren't clipped at the top
     (overflow-x:auto implicitly clips overflow-y too) */
  padding: 4px 0 6px;
}
.v-index-inner::-webkit-scrollbar { height: 4px; }
.v-index-inner::-webkit-scrollbar-thumb { background: var(--v-accent); border-radius: 2px; }
.v-jump {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface-warm);
  border: 1px solid var(--border);
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.15s;
}
.v-jump:hover {
  border-color: var(--v-accent);
  color: var(--v-accent);
  transform: translateY(-1px);
}
.v-jump .n {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 4px;
}
.v-jump:hover .n {
  color: var(--v-accent);
  border-color: color-mix(in srgb, var(--v-accent) 30%, transparent);
}
.v-jump.is-active {
  border-color: var(--v-accent);
  color: var(--v-accent);
  background: color-mix(in srgb, var(--v-accent) 8%, #fff);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--v-accent) 35%, transparent) inset;
}
.v-jump.is-active .n {
  color: var(--v-accent);
  border-color: color-mix(in srgb, var(--v-accent) 30%, transparent);
  background: #fff;
}
/* Hide the sub-navigation bar on mobile — the burger menu covers nav, no room for it */
@media (max-width: 880px) {
  .v-index { display: none; }
}

/* ============== Feature module (vertical-tinted) ============== */
.v-module {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-soft);
}
.v-module:nth-of-type(even) { background: var(--v-tint-soft); }
@media (max-width: 760px) { .v-module { padding: 64px 0; } }

.v-module-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.v-module.reverse .v-module-grid { grid-template-columns: 1.1fr 1fr; }
.v-module.reverse .v-module-visual { order: -1; }
@media (max-width: 960px) {
  .v-module-grid, .v-module.reverse .v-module-grid { grid-template-columns: 1fr; gap: 36px; }
  .v-module.reverse .v-module-visual { order: 0; }
}

.v-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--v-accent);
}
.v-eyebrow .num {
  background: var(--v-grad);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
}
.v-module h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: -0.03em;
  margin-top: 18px;
}
.v-module h2 em {
  font-family: inherit;
  font-style: normal;
  background: var(--v-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}
.v-module .lead {
  margin-top: 22px;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 540px;
}

.v-bullets {
  margin-top: 30px;
  display: flex; flex-direction: column;
  gap: 14px;
}
.v-bullet {
  display: grid; grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: flex-start;
}
.v-bullet .ic {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--v-tint);
  color: var(--v-accent-deep);
  display: grid; place-items: center;
  font-size: 12px;
  margin-top: 1px;
  font-weight: 600;
}
.v-bullet p {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.55;
}
.v-bullet p strong { font-weight: 600; }
.v-bullet p span { color: var(--muted); }

.v-specs {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
@media (max-width: 540px) { .v-specs { grid-template-columns: 1fr; } }
.v-spec {
  background: #fff;
  padding: 14px 16px;
}
.v-spec .l {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.v-spec .v {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 4px;
}

/* Stage for mockups in vertical pages */
.v-stage {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px -16px rgba(26,11,61,0.14), 0 8px 16px -8px rgba(26,11,61,0.06);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.v-stage-bar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}
.v-stage-bar .dots { display: flex; gap: 5px; }
.v-stage-bar .dots span { width: 9px; height: 9px; border-radius: 50%; background: #D8D2E5; }
.v-stage-bar .url {
  background: var(--surface-warm);
  padding: 5px 12px;
  border-radius: 6px;
  flex: 1; text-align: center;
  border: 1px solid var(--border-soft);
}

/* Placeholder slot for upcoming feature screenshots */
.v-slot {
  background: linear-gradient(160deg, var(--v-tint-soft), var(--v-tint));
  border: 2px dashed color-mix(in srgb, var(--v-accent) 30%, transparent);
  border-radius: var(--radius-lg);
  min-height: 360px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  padding: 32px;
  text-align: center;
  color: var(--v-accent-deep);
}
.v-slot .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--v-accent) 24%, transparent);
  display: grid; place-items: center;
  color: var(--v-accent);
}
.v-slot .ttl {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.v-slot .ds {
  font-size: 13px;
  color: var(--muted);
  max-width: 320px;
  line-height: 1.5;
}

/* ============== CTA per vertical ============== */
.v-cta {
  padding: 80px 0 100px;
  background: var(--surface);
}
.v-cta-wrap {
  background: var(--v-grad-deep);
  border-radius: var(--radius-xl);
  padding: 72px 56px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 760px) { .v-cta-wrap { padding: 48px 28px; } }
.v-cta-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 40% 60% at 80% 100%, color-mix(in srgb, var(--v-accent-2) 40%, transparent), transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 0%, color-mix(in srgb, var(--v-accent) 40%, transparent), transparent 60%);
}
.v-cta-wrap > * { position: relative; }
.v-cta-wrap h2 {
  color: #fff;
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
}
.v-cta-wrap h2 em {
  background: linear-gradient(120deg, color-mix(in srgb, var(--v-accent-2) 60%, white), color-mix(in srgb, var(--v-accent) 30%, white));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
  font-weight: 700;
}
.v-cta-wrap p { color: rgba(255,255,255,0.72); margin: 22px auto 0; max-width: 560px; font-size: 16px; }
.v-cta-wrap .ctas { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.v-cta-wrap .btn-primary { background: #fff; color: var(--ink); }
.v-cta-wrap .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.2); }
.v-cta-wrap .btn-secondary:hover { border-color: #fff; }
/* The brand pink→violet .btn-gradient clashes with the dental's pink CTA and the
   nutrition's green CTA. Use a frosted-glass button instead — works on any vertical accent. */
.v-cta-wrap .btn-gradient {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15) inset, 0 0 0 1px rgba(255,255,255,0.08) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.v-cta-wrap .btn-gradient:hover {
  background: rgba(255,255,255,0.20);
  border-color: rgba(255,255,255,0.45);
  transform: translateY(-1px);
  filter: none;
}
