/* ============================================================
   modern.css: shared look for every page (tokens, type, buttons, forms,
   navbar dropdowns, footer, call modal, sticky bar). Load after styles.css.
   Built 27 Oct 2026 from the home-v2 mockup.
   ============================================================ */

/* Navbar logo and dropdowns */
.v2-nav-logo { display: flex; align-items: center; height: 3rem; color: var(--primary); }
.v2-nav-logo svg { height: 3rem; width: auto; display: block; }
.v2-nav-logo img { height: 3rem; width: auto; display: block; }
.v2-nav-logo [data-logo] { display: none; }
.v2-nav-logo [data-logo].is-active { display: block; }
.navbar-desktop .nav-link, .navbar-desktop .nav-cta, .navbar-desktop .nav-phone { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .navbar-desktop { gap: 0; }
  .navbar-desktop .nav-link { padding: 0.5rem 0.625rem; }
  .navbar-desktop .nav-phone { padding: 0.5rem 0.5rem; }
  .navbar-desktop .nav-cta { margin-left: 0.5rem; }
}

/* --- 26 Oct: navbar dropdowns --- */
.v2-navbar-desktop { gap: 0.25rem; }
.v2-nav-item { position: relative; }
.v2-nav-trigger { display: inline-flex; align-items: center; gap: 0.3rem; background: none; border: 0; cursor: pointer; line-height: 1.25; }
.v2-nav-chevron { transition: transform 0.2s ease; flex: none; }
.v2-nav-item.is-open .v2-nav-trigger { color: var(--primary); background-color: var(--secondary); }
.v2-nav-item.is-open .v2-nav-chevron { transform: rotate(180deg); }
.v2-nav-menu { position: absolute; top: calc(100% + 0.5rem); left: 0; min-width: 13.5rem; margin: 0; padding: 0.5rem; list-style: none; background: var(--background); border: 1px solid var(--border); border-radius: 0.75rem; box-shadow: 0 12px 32px -8px rgba(28, 74, 94, 0.25); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s; z-index: 60; }
.v2-nav-item.is-open .v2-nav-menu { opacity: 1; visibility: visible; transform: none; }
.v2-nav-menu-link { display: block; padding: 0.625rem 0.875rem; font-family: var(--font-sans); font-size: 0.875rem; font-weight: 500; color: var(--foreground); border-radius: var(--radius); white-space: nowrap; }
.v2-nav-menu-link:hover, .v2-nav-menu-link:focus-visible { color: var(--primary); background-color: var(--secondary); outline: none; }
.v2-mnav-group { border-bottom: 1px solid var(--border); }
.v2-mnav-group:first-of-type { border-top: 1px solid var(--border); }
.v2-mnav-summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; font-weight: 700; color: var(--primary); }
.v2-mnav-summary::-webkit-details-marker { display: none; }
.v2-mnav-group[open] .v2-nav-chevron { transform: rotate(180deg); }
.v2-mnav-links { display: flex; flex-direction: column; padding: 0 0 0.5rem 0.75rem; }
.v2-mnav-link { padding-top: 0.625rem; padding-bottom: 0.625rem; }


/* Sticky mobile call bar */
.v2-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 0.5rem; padding: 0.625rem 1rem calc(0.625rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); border-top: 1px solid var(--border); transform: translateY(110%); transition: transform 0.25s ease; }
.v2-sticky.is-visible { transform: translateY(0); }
.v2-sticky .btn { flex: 1; min-height: 2.75rem; font-size: 0.9375rem; }
@media (min-width: 1024px) { .v2-sticky { display: none; } }


/* ============================================================
   26 Oct: "Modern" look layer. Scoped to bodyso the
   mockup panel can flip between it and the current styling.
   ============================================================ */
body {
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --muted-foreground: #5f6f7a;
  --border: #e6ebf0;
  --secondary: #f3f6f9;
  --accent-orange: #d98a2b;
  --shadow-card: 0 1px 2px rgba(16, 36, 48, 0.04), 0 16px 40px -18px rgba(16, 36, 48, 0.2);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Type scale: Merriweather for display only, Inter for everything else */
.section-title { font-size: 2.125rem; line-height: 1.12; letter-spacing: -0.01em; }
@media (min-width: 768px) { .section-title { font-size: 2.625rem; } }
.section-header p { font-size: 1.125rem; line-height: 1.6; color: var(--muted-foreground); max-width: 40rem; margin-left: auto; margin-right: auto; }
.hero-text { color: #33434d; }
.v2-card h3, .v2-tile h3, .v2-quote h3, .v2-listing h3,
.v2-rm-name, .home-team-name, .v2-faq-item summary {
  font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.005em; }
.v2-card h3, .v2-tile h3 { font-size: 1.125rem; }
.v2-card p, .v2-tile p, .v2-faq-item p, .v2-rm-panel li { color: #4a5a64; }
.home-team-role { color: var(--muted-foreground); }

/* Buttons and links */
.btn { font-weight: 600; font-size: 0.9375rem; padding: 0.75rem 1.375rem; border-radius: 0.625rem; letter-spacing: -0.005em; }
.btn-lg { padding: 0.9375rem 1.625rem; font-size: 1rem; }
.btn-primary { box-shadow: 0 1px 2px rgba(16, 36, 48, 0.12); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(28, 74, 94, 0.55); }
.btn-outline { border-color: #d5dde4; color: var(--primary); }
.btn-outline:hover { border-color: var(--primary); background-color: #fff; }
.nav-cta { padding: 0.625rem 1.125rem; font-size: 0.875rem; }
.nav-link, .v2-nav-trigger { font-size: 0.9375rem; color: #1f2d36; }
.learn-more-link, .v2-faq-more a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.learn-more-link:hover, .v2-faq-more a:hover { color: var(--accent-orange); }

/* Surfaces: one soft shadow on white, no border, one radius */
.v2-card, .v2-quote, .v2-listing, .v2-roadmap, .v2-faq-item, .v2-nav-menu, .v2-tile {
  border-color: transparent; box-shadow: var(--shadow-card); }
.v2-card, .v2-quote, .v2-listing, .v2-tile { border-radius: 1.125rem; }
.v2-faq-item { border-radius: 0.875rem; }
.v2-listing:hover { box-shadow: 0 1px 2px rgba(16, 36, 48, 0.04), 0 24px 48px -20px rgba(16, 36, 48, 0.28); }
.v2-card-icon, .v2-tile-icon { background: #eef4f8; border-radius: 0.875rem; }
.v2-section--tint { background: #f6f8fa; }

/* Spacing rhythm */
.v2-section { padding: 5rem 0; }
@media (min-width: 1024px) {
  .v2-section { padding: 6.5rem 0; }
  .v2-section .section-header { margin-bottom: 3.5rem; }
}
.v2-hero--center + .v2-section { padding-top: 8.5rem; }
@media (min-width: 1024px) { .v2-hero--center + .v2-section { padding-top: 10rem; } }

/* Dark band */
.v2-diff { background: linear-gradient(135deg, #1c4a5e 0%, #143745 100%); }
.v2-diff-item { border-top: 1px solid rgba(255, 255, 255, 0.18); }
.v2-diff-num { color: var(--accent-orange); font-weight: 600; }
.v2-diff-item h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1.25rem; }

/* Forms */
.form-input { padding: 0.8125rem 0.9375rem; border-radius: 0.625rem; font-size: 0.9375rem; border-color: #d5dde4; }
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(28, 74, 94, 0.15); }
.form-label { font-weight: 500; color: #1f2d36; }

/* Footer: four columns */
.v2-footer { padding: 4rem 0 2rem; border-top: 1px solid var(--border); background: #fff; font-family: var(--font-sans); }
.v2-footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 768px) { .v2-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; } }
.v2-footer-logo { display: inline-flex; color: var(--primary); }
.v2-footer-logo svg, .v2-footer-logo img { height: 3.5rem; width: auto; display: block; }
.v2-footer-brand p { font-size: 0.9375rem; line-height: 1.6; color: var(--muted-foreground); margin: 1rem 0 1.25rem; max-width: 20rem; }
.v2-footer-contact { display: flex; flex-direction: column; gap: 0.375rem; }
.v2-footer-contact a { font-size: 0.9375rem; font-weight: 500; color: var(--foreground); }
.v2-footer-contact a:hover { color: var(--primary); }
.v2-footer h4 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); margin: 0 0 1rem; }
.v2-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.v2-footer ul a { font-size: 0.9375rem; color: var(--foreground); }
.v2-footer ul a:hover { color: var(--primary); }
.v2-footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; font-size: 0.8125rem; color: var(--muted-foreground); }
.v2-footer-bottom p { margin: 0; max-width: 40rem; line-height: 1.5; }
.v2-footer-bottom .footer-links { padding: 0; gap: 1.25rem; justify-content: flex-start; }
.v2-footer-bottom .footer-link { font-size: 0.8125rem; color: var(--muted-foreground); text-decoration: none; }
.v2-footer-bottom .footer-link:hover { color: var(--primary); text-decoration: underline; }
.v2-footer-disclaimer { margin: 0.75rem 0 0; font-size: 0.75rem; color: #8a98a2; line-height: 1.5; }
.v2-sticky .btn { padding: 0.625rem 0.75rem; font-size: 0.9375rem; white-space: nowrap; }


/* ---------- Call request modal ---------- */
.v2-modal { position: fixed; inset: 0; margin: auto; border: 0; padding: 0; background: transparent; width: min(32rem, calc(100% - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); overflow: visible; color: var(--foreground); }
.v2-modal::backdrop { background: rgba(11, 31, 42, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.v2-modal[open] { animation: v2-modal-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }
.v2-modal[open]::backdrop { animation: v2-fade-in 0.22s ease; }
@keyframes v2-modal-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes v2-fade-in { from { opacity: 0; } to { opacity: 1; } }
.v2-modal-inner { position: relative; background: #fff; border-radius: 1.25rem; padding: 1.75rem 1.5rem 1.5rem; max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 40px 80px -30px rgba(11, 31, 42, 0.6); }
@media (min-width: 768px) { .v2-modal-inner { padding: 2.25rem 2.25rem 2rem; } }
.v2-modal-title { font-family: var(--font-merriweather); font-size: 1.5rem; line-height: 1.25; color: var(--primary); margin: 0 2.5rem 0.5rem 0; }
.v2-modal-sub { font-family: var(--font-sans); font-size: 0.9375rem; line-height: 1.55; color: var(--muted-foreground); margin: 0 0 1.25rem; }
.v2-modal-close { position: absolute; top: 1rem; right: 1rem; width: 2.25rem; height: 2.25rem; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--secondary); color: var(--primary); cursor: pointer; }
.v2-modal-close:hover { background: #e3ebf1; }
/* Inside the modal the card loses its own chrome and the optional fields */
.v2-modal .sell-form-card { background: none; box-shadow: none; border: 0; padding: 0; margin: 0; max-width: none; }
.v2-modal .form-group { margin-bottom: 0.875rem; }
.v2-modal .form-label { margin-bottom: 0.375rem; }
.v2-modal .error-message:empty { display: none; }
.v2-modal .btn-full { margin-top: 0.5rem; }
html:has(.v2-modal[open]) { overflow: hidden; }
/* Phones: a bottom sheet */
@media (max-width: 767px) {
  .v2-modal { width: 100%; max-height: 92dvh; margin: auto 0 0; top: auto; }
  .v2-modal-inner { border-radius: 1.25rem 1.25rem 0 0; max-height: 92dvh; padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
  .v2-modal[open] { animation: v2-sheet-in 0.26s cubic-bezier(0.2, 0.8, 0.2, 1); }
  @keyframes v2-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
}
/* Full form in the modal: keep it within a laptop screen */
.v2-modal .form-textarea { min-height: 4.5rem; height: 4.5rem; resize: vertical; }
.v2-modal .form-privacy-note { margin-top: 0.75rem; padding-top: 0.75rem; }
@media (min-width: 768px) { .v2-modal-inner { padding-top: 1.75rem; padding-bottom: 1.5rem; } .v2-modal-sub { margin-bottom: 1rem; } }
/* Desktop modal: fields in pairs (name/phone, email/business, revenue/best time) */
@media (min-width: 768px) {
  .v2-modal { width: min(42rem, calc(100% - 2rem)); }
  .v2-modal .sell-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .v2-modal .sell-form > .form-group:has(.form-textarea),
  .v2-modal .sell-form > .btn-full,
  .v2-modal .sell-form > .form-privacy-note { grid-column: 1 / -1; }
}


/* Footer: team locations, two by two with a small pin */
.v2-footer-brand p { margin-bottom: 0.875rem; }
.v2-footer .v2-footer-cities { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 0.375rem 1.25rem; font-size: 0.875rem; color: var(--muted-foreground); }
.v2-footer-cities li { display: inline-flex; align-items: center; gap: 0.375rem; white-space: nowrap; }
.v2-footer-cities li::before { content: ''; width: 0.75rem; height: 0.75rem; flex: none; background: currentColor; opacity: 0.7; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Live-site cards get the same borderless, soft-shadow treatment as the home page cards */
.feature-card, .service-card, .testimonial-card, .video-card, .tool-card, .blog-card, .team-card,
.sell-form-card, .calculator-form-card, .calculator-results-card, .valuation-form-card, .benchmark-form-card,
.benchmark-card, .advisor-card, .article-cta, .cta-box {
  border-color: transparent; box-shadow: var(--shadow-card); border-radius: 1.125rem; }
.faq-item { border-color: transparent; box-shadow: var(--shadow-card); border-radius: 0.875rem; }
.section-subtitle, .hero-text, .article-content p, .legal-content p { color: #33434d; }
.article-content, .legal-content, .page-content, .schedule-section { font-family: var(--font-sans); }
.article-title, .page-title, .legal-title, .schedule-title, .card-title, .hero-title { font-family: var(--font-merriweather); }
/* Navbar logo: the arches mark replaces the old image */
.navbar-logo-img { display: none; }
/* In-page anchors land below the fixed navbar */
[id] { scroll-margin-top: 6rem; }
/* Listings page: the CTA the intro promises */
.page-intro-cta { text-align: center; margin: -0.5rem 0 2.5rem; }
/* The sticky bar stays out of the way while the call modal is open */
html:has(.v2-modal[open]) .v2-sticky { display: none; }
