/*
  Pro Connect X — static fallback stylesheet (loads from /proconnectx-base.css).
  Use when /_next/static/css/*.css fails to apply (Safari, preview browsers, blockers).
  Semantic classes: bv-* — keep in sync with key layout components.
*/
:root {
  --background: 43 32% 97%;
  --foreground: 222 24% 14%;
  --muted-foreground: 222 12% 38%;
  --border: 38 14% 86%;
  --gold: 34 36% 40%;
  --gold-muted: 30 22% 32%;
  --gold-foreground: 222 28% 12%;
  --card: 0 0% 100%;
  --muted: 40 18% 93%;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background-color: hsl(var(--background));
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family:
    "Source Sans 3",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Serif display — matches Cormorant when webfont loads */
.font-display,
h1,
h2,
h3,
.bv-font-display {
  font-family:
    "Cormorant Garamond",
    Georgia,
    "Times New Roman",
    serif;
  font-weight: 600;
  line-height: 1.2;
}

/* --- Header --- */
.bv-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid hsl(var(--border));
  background-color: hsl(43 32% 97% / 0.95);
  box-shadow: 0 1px 0 0 hsl(var(--border));
}

.bv-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  min-height: 4.25rem;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .bv-header-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.bv-logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  text-decoration: none;
}

.bv-logo-accent {
  color: hsl(var(--gold));
}

.bv-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 15px;
}

@media (min-width: 1024px) {
  .bv-nav {
    display: flex;
  }
}

/* Hamburger — shown below lg when React/Tailwind loads; hidden at lg+ */
.bv-mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .bv-mobile-menu-btn {
    display: none !important;
  }
}

/* Tools section — bottom tab bar (mobile / tablet; hidden on lg+) */
.bv-tools-bottom-nav {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (min-width: 1024px) {
  .bv-tools-bottom-nav {
    display: none !important;
  }
}

.bv-nav a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
}

.bv-nav a:hover {
  color: hsl(var(--foreground));
}

.bv-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Ghost / outline text buttons in header */
.bv-header-actions a.bv-link {
  padding: 0.35rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  text-decoration: none;
}

.bv-header-actions a.bv-link:hover {
  background-color: hsl(var(--muted));
}

@media (max-width: 639px) {
  .bv-hide-sm {
    display: none !important;
  }
}

@media (min-width: 640px) {
  .bv-show-sm {
    display: inline-flex !important;
  }

  .bv-header-auth-row {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
  }

  .bv-signin-link {
    display: inline-flex !important;
  }
}

@media (max-width: 639px) {
  .bv-header-auth-row {
    display: none !important;
  }

  .bv-signin-link {
    display: none !important;
  }
}

/* --- Buttons (match Button + Link asChild) --- */
a.bv-btn,
button.bv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  border-radius: 0.375rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.bv-btn--default {
  background-color: hsl(var(--foreground));
  color: hsl(var(--background));
  padding: 0.5rem 1rem;
  min-height: 2.5rem;
}

.bv-btn--gold {
  background-color: hsl(var(--gold));
  color: hsl(var(--gold-foreground));
  padding: 0.5rem 1rem;
  min-height: 2.5rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
}

.bv-btn--gold:hover {
  opacity: 0.94;
}

.bv-btn--outline {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  padding: 0.5rem 1rem;
  min-height: 2.5rem;
}

.bv-btn--outline:hover {
  background-color: hsl(var(--muted));
}

.bv-btn--ghost {
  background: transparent;
  color: hsl(var(--foreground));
  padding: 0.35rem 0.5rem;
}

.bv-btn--destructive,
.bv-btn--secondary {
  padding: 0.5rem 1rem;
  min-height: 2.5rem;
}

.bv-btn--destructive {
  background-color: #a63a3a;
  color: #fff;
}

.bv-btn--secondary {
  background-color: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.bv-btn--link {
  background: transparent;
  color: hsl(var(--foreground));
  text-decoration: underline;
  padding: 0;
  min-height: auto;
}

.bv-btn--lg {
  min-height: 2.75rem;
  padding: 0.5rem 2rem;
  font-size: 1rem;
}

.bv-btn--sm {
  min-height: 2.25rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

/* --- Layout --- */
.bv-container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .bv-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.bv-hero {
  border-bottom: 1px solid hsl(var(--border));
  background: radial-gradient(
      ellipse 120% 80% at 50% -30%,
      hsl(38 42% 94% / 0.95),
      transparent 55%
    ),
    linear-gradient(
      180deg,
      hsl(43 32% 97%) 0%,
      hsl(40 28% 96%) 45%,
      hsl(43 32% 97%) 100%
    );
}

.bv-hero-inner {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding: 5rem 1rem 6rem;
}

@media (min-width: 640px) {
  .bv-hero-inner {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

.bv-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--gold-muted));
}

.bv-hero h1 {
  margin-top: 1.25rem;
  font-size: 2.25rem;
}

@media (min-width: 640px) {
  .bv-hero h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .bv-hero h1 {
    font-size: 3.75rem;
  }
}

.bv-hero-lead {
  margin-top: 1.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 640px) {
  .bv-hero-lead {
    font-size: 1.25rem;
  }
}

.bv-hero-lead strong,
.bv-hero-lead .bv-em {
  color: hsl(var(--foreground));
  font-weight: 500;
}

.bv-cta-row {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .bv-cta-row {
    flex-direction: row;
    gap: 1.25rem;
  }
}

.bv-cta-row a {
  min-width: 200px;
}

/* --- Feature grid --- */
.bv-section {
  padding: 5rem 1rem;
}

@media (min-width: 1024px) {
  .bv-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

.bv-section h2 {
  text-align: center;
  font-size: 1.875rem;
}

@media (min-width: 640px) {
  .bv-section h2 {
    font-size: 2.25rem;
  }
}

.bv-section-lead {
  margin-top: 1rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
}

.bv-features-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .bv-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bv-feature-card {
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 2rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}

.bv-feature-card svg {
  width: 1.75rem;
  height: 1.75rem;
  color: hsl(var(--gold));
}

.bv-feature-card h3 {
  margin-top: 1.25rem;
  font-size: 1.25rem;
}

.bv-feature-card p {
  margin-top: 0.75rem;
  font-size: 15px;
  line-height: 1.65;
  color: hsl(var(--muted-foreground));
}

/* Testimonials */
.bv-section-muted {
  border-top: 1px solid hsl(var(--border));
  background-color: hsl(var(--muted) / 0.5);
}

.bv-testimonial {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.06);
}

@media (min-width: 640px) {
  .bv-testimonial {
    padding: 2.5rem 3rem;
  }
}

.bv-testimonial blockquote {
  margin: 0;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .bv-testimonial blockquote {
    font-size: 1.5rem;
  }
}

.bv-testimonial-nav {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.bv-testimonial-nav button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.375rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  cursor: pointer;
}

/* Footer */
.bv-footer {
  border-top: 1px solid hsl(var(--border));
  background-color: hsl(var(--muted) / 0.4);
}

.bv-footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  padding: 3.5rem 1rem;
}

@media (min-width: 640px) {
  .bv-footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bv-footer-inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
  }
}

.bv-footer a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
}

.bv-footer a:hover {
  color: hsl(var(--foreground));
}

.bv-footer-copy {
  border-top: 1px solid hsl(var(--border));
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* Kill default blue underlines on main nav CTAs when Tailwind missing */
main a.bv-btn {
  color: inherit;
}

.bv-btn--gold {
  color: hsl(var(--gold-foreground));
}

.bv-hero-accent {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  color: hsl(var(--gold));
}
