/* Shared CSS for /for-businesses function detail pages + site-wide brand */
:root {
  --denim: #0B3D91;
  --denim-light: #e8eef8;
  --teal: #17BEBB;
  --teal-light: #e6f7f7;
  --tan: #F4A261;
  --tan-light: #fef3e8;
  --ink: #1a1a2e;
  --paper: #ffffff;
  --warm: #fafaf7;
  --muted: #5a5a72;
  --border: #e4e4ed;
  --section-pad: 5rem 2rem;
  --max-w: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 2rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
nav .inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: 'Cormorant', 'Instrument Serif', serif;
  font-weight: 700; font-size: 1.6rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.logo .logo-accent { color: var(--denim); }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-item {
  position: relative; padding: 0.5rem 0.75rem;
  font-size: 0.85rem; font-weight: 500; color: var(--muted);
  text-decoration: none; letter-spacing: 0.01em; transition: color 0.15s;
  border-radius: 8px;
}
.nav-item:hover, .nav-item.active { color: var(--ink); }
.nav-item .drop-arrow { font-size: 0.6rem; margin-left: 2px; opacity: 0.5; }
.nav-divider { width: 1px; height: 20px; background: var(--border); margin: 0 0.25rem; }
.nav-signin { font-size: 0.85rem; font-weight: 500; color: var(--muted); text-decoration: none; letter-spacing: 0.01em; transition: color 0.15s; padding: 0.5rem 0.75rem; border-radius: 8px; }
.nav-signin:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1.1rem;
  background: var(--denim); color: #fff; text-decoration: none;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.85rem; font-weight: 600; border-radius: 8px;
  letter-spacing: -0.01em; transition: background 0.15s, transform 0.15s;
}
.nav-cta:hover { background: #092f6e; transform: translateY(-1px); }

/* Mega dropdown */
.nav-dropdown {
  position: absolute; top: calc(100% + 0.5rem); left: 50%;
  transform: translateX(-50%);
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.1); padding: 1.25rem 1.5rem;
  display: none; min-width: 480px; z-index: 200;
}
.nav-item:hover .nav-dropdown, .nav-dropdown:hover { display: flex; gap: 2rem; }
.nav-dropdown-group { display: flex; flex-direction: column; gap: 0.15rem; }
.nav-dropdown-label {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); padding: 0.25rem 0 0.5rem; border-bottom: 1px solid var(--border); margin-bottom: 0.5rem;
}
.nav-dropdown-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 0.75rem; border-radius: 8px; text-decoration: none;
  transition: background 0.15s;
}
.nav-dropdown-link:hover { background: var(--warm); }
.nav-dropdown-link .dd-icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--denim-light); display: flex; align-items: center; justify-content: center;
  color: var(--denim); flex-shrink: 0;
}
.nav-dropdown-link .dd-icon.teal { background: var(--teal-light); color: var(--teal); }
.nav-dropdown-link .dd-icon.tan { background: var(--tan-light); color: var(--tan); }
.nav-dropdown-link span { font-size: 0.82rem; font-weight: 500; color: var(--ink); }

/* Mobile nav */
.mobile-nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.mobile-nav-toggle svg { width: 22px; height: 22px; color: var(--ink); }

/* ─── HERO (function detail) ─── */
.fn-hero {
  min-height: 55vh; display: flex; align-items: center;
  padding: 8rem 2rem 4rem; position: relative; overflow: hidden;
}
.fn-hero::before {
  content: ''; position: absolute; top: -10%; right: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(11,61,145,0.06) 0%, transparent 65%);
  border-radius: 50%; pointer-events: none;
}
.fn-hero .inner { max-width: var(--max-w); margin: 0 auto; width: 100%; position: relative; z-index: 1; }
.fn-hero .back-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; font-weight: 500; color: var(--muted); text-decoration: none;
  margin-bottom: 2rem; transition: color 0.15s;
}
.fn-hero .back-link:hover { color: var(--denim); }
.fn-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1.25rem;
}
.fn-eyebrow::before { content: ''; display: block; width: 18px; height: 2px; background: var(--teal); }
.fn-hero h1 {
  font-family: 'Cormorant', serif; font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 600; line-height: 1.1; letter-spacing: -0.02em;
  max-width: 800px; margin-bottom: 1.25rem; color: var(--ink);
}
.fn-hero h1 em { font-style: italic; color: var(--denim); }
.fn-hero .hero-sub {
  font-size: 1.1rem; color: var(--muted); max-width: 560px;
  line-height: 1.75; margin-bottom: 2.5rem;
}
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  background: var(--denim); color: #fff; text-decoration: none;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem; font-weight: 600; border-radius: 10px;
  letter-spacing: -0.01em; transition: background 0.15s, transform 0.15s;
}
.btn-primary:hover { background: #092f6e; transform: translateY(-2px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1.75rem; border: 1.5px solid var(--border);
  color: var(--ink); text-decoration: none;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem; font-weight: 500; border-radius: 10px;
  letter-spacing: -0.01em; transition: border-color 0.15s, background 0.15s;
}
.btn-secondary:hover { border-color: var(--denim); background: var(--denim-light); }

/* ─── STICKY FUNCTION NAV ─── */
.fn-nav { padding: 3.5rem 2rem; background: var(--warm); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.fn-nav .inner { max-width: var(--max-w); margin: 0 auto; }
.fn-nav .fn-nav-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.25rem; text-align: center;
}
.fn-nav-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.75rem; }
.fn-nav-link {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1rem 0.75rem; border: 1.5px solid var(--border); border-radius: 12px;
  text-decoration: none; background: var(--paper); transition: border-color 0.2s, background 0.2s;
}
.fn-nav-link:hover { border-color: var(--denim); background: var(--denim-light); }
.fn-nav-link.active { border-color: var(--denim); background: var(--denim-light); }
.fn-nav-icon {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: var(--denim-light); border-radius: 8px; margin-bottom: 0.5rem; color: var(--denim);
}
.fn-nav-link.active .fn-nav-icon { background: var(--denim); color: #fff; }
.fn-nav-link span { font-size: 0.78rem; font-weight: 600; color: var(--ink); }

/* ─── SECTION LABELS ─── */
.section-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.75rem;
}
.section-label.dark { color: rgba(255,255,255,0.45); }
.section-title {
  font-family: 'Cormorant', serif; font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1rem;
}
.section-title.dark { color: #fff; }

/* ─── PAIN SECTION ─── */
.pain-section { padding: var(--section-pad); }
.pain-section .inner { max-width: var(--max-w); margin: 0 auto; }
.pain-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
  background: var(--border); border-radius: 16px; overflow: hidden;
}
.pain-card { background: var(--paper); padding: 2rem 1.75rem; transition: background 0.2s; }
.pain-card:hover { background: var(--warm); }
.pain-icon {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--tan-light); border-radius: 10px; margin-bottom: 1rem; color: var(--tan);
}
.pain-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--ink); }
.pain-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

/* ─── COST SECTION ─── */
.cost-section { padding: var(--section-pad); background: var(--ink); color: #fff; }
.cost-section .inner { max-width: var(--max-w); margin: 0 auto; }
.cost-section .section-label { color: rgba(255,255,255,0.45); }
.cost-section .section-title { color: #fff; }
.cost-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  margin-top: 2.5rem; margin-bottom: 2.5rem;
}
.cost-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 1.75rem 1.5rem;
}
.cost-card .cost-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 0.5rem;
}
.cost-card .cost-num {
  font-family: 'Cormorant', serif; font-size: 1.8rem; font-weight: 600;
  letter-spacing: -0.03em; margin-bottom: 0.35rem;
  color: var(--tan);
}
.cost-card .cost-desc { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.6; }
.cost-summary {
  background: rgba(11,61,145,0.25); border: 1px solid rgba(11,61,145,0.5);
  border-radius: 14px; padding: 1.75rem 2rem; text-align: center;
}
.cost-summary p { font-size: 1rem; color: rgba(255,255,255,0.65); line-height: 1.7; }
.cost-summary strong { color: #fff; }

/* ─── WHAT WE DO SECTION ─── */
.what-section { padding: var(--section-pad); }
.what-section .inner { max-width: var(--max-w); margin: 0 auto; }
.what-list { margin-top: 2.5rem; display: flex; flex-direction: column; }
.what-item {
  display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: start;
  padding: 2.5rem 0; border-bottom: 1px solid var(--border);
}
.what-item:last-child { border-bottom: none; }
.what-item .what-num {
  font-family: 'Cormorant', serif; font-size: 3.5rem; font-weight: 600;
  color: var(--teal); line-height: 1; margin-bottom: 0.75rem;
  opacity: 0.4;
}
.what-item h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.6rem; color: var(--ink); }
.what-item p { font-size: 0.92rem; color: var(--muted); line-height: 1.7; }

/* ─── WHO IT'S FOR ─── */
.who-section { padding: var(--section-pad); background: var(--warm); }
.who-section .inner { max-width: 700px; margin: 0 auto; text-align: center; }
.who-section .section-title { margin-bottom: 0.75rem; }
.who-section > .inner > p { font-size: 1rem; color: var(--muted); line-height: 1.7; margin-bottom: 2rem; }
.who-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; }
.who-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.1rem; background: #fff; border: 1.5px solid var(--border);
  border-radius: 30px; font-size: 0.85rem; font-weight: 500; color: var(--ink);
}
.who-tag svg { color: var(--teal); flex-shrink: 0; }

/* ─── CTA SECTION ─── */
.fn-cta { padding: var(--section-pad); background: var(--denim); color: #fff; text-align: center; }
.fn-cta .inner { max-width: 680px; margin: 0 auto; }
.fn-cta h2 {
  font-family: 'Cormorant', serif; font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 1rem;
}
.fn-cta p { font-size: 1rem; color: rgba(255,255,255,0.75); margin-bottom: 2.5rem; line-height: 1.7; }
.cta-buttons { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.btn-white {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1.75rem; background: #fff; color: var(--denim);
  text-decoration: none;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem; font-weight: 600; border-radius: 10px;
  letter-spacing: -0.01em; transition: transform 0.15s, box-shadow 0.2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.btn-outline-white {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1.75rem; border: 1.5px solid rgba(255,255,255,0.35); color: #fff;
  text-decoration: none;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem; font-weight: 500; border-radius: 10px;
  letter-spacing: -0.01em; transition: border-color 0.15s, background 0.15s;
}
.btn-outline-white:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.08); }

/* ─── NEWSLETTER ─── */
.newsletter { padding: 4rem 2rem; border-top: 1px solid var(--border); }
.newsletter .inner { max-width: 560px; margin: 0 auto; text-align: center; }
.newsletter h3 { font-family: 'Cormorant', serif; font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.newsletter p { font-size: 0.92rem; color: var(--muted); margin-bottom: 1.5rem; line-height: 1.7; }
.newsletter-form { display: flex; gap: 0.75rem; max-width: 420px; margin: 0 auto; }
.newsletter-form input[type="email"] {
  flex: 1; padding: 0.8rem 1.25rem; font-family: 'Work Sans', sans-serif; font-size: 0.88rem;
  border: 1.5px solid var(--border); border-radius: 10px; background: #fff; color: var(--ink);
  outline: none; transition: border-color 0.15s;
}
.newsletter-form input[type="email"]:focus { border-color: var(--denim); }
.newsletter-form button {
  padding: 0.8rem 1.25rem;
  background: var(--denim); color: #fff; font-family: 'Work Sans', sans-serif;
  font-size: 0.85rem; font-weight: 600; border: none; border-radius: 10px;
  cursor: pointer; white-space: nowrap; transition: background 0.15s;
}
.newsletter-form button:hover { background: #092f6e; }
.newsletter-success { display: none !important; color: #10b981; font-size: 0.9rem; font-weight: 500; margin-top: 1rem; }

/* ─── FOOTER ─── */
footer {
  background: var(--ink); padding: 0; color: #fff;
}
footer .footer-top {
  padding: 4rem 2rem 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
footer .footer-top .inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 2.5rem;
}
footer .footer-brand .footer-logo {
  font-family: 'Cormorant', serif; font-weight: 700; font-size: 1.5rem;
  color: #fff; text-decoration: none; display: block; margin-bottom: 0.75rem;
}
footer .footer-tagline {
  font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.6;
  margin-bottom: 1.5rem; max-width: 220px;
}
footer .social-links { display: flex; gap: 0.75rem; }
footer .social-link {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); text-decoration: none; transition: background 0.15s, color 0.15s;
}
footer .social-link:hover { background: rgba(255,255,255,0.12); color: #fff; }
footer .footer-col h4 {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 1.25rem;
}
footer .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
footer .footer-col ul li a {
  font-size: 0.88rem; color: rgba(255,255,255,0.65); text-decoration: none;
  transition: color 0.15s;
}
footer .footer-col ul li a:hover { color: #fff; }

/* Newsletter footer */
footer .footer-newsletter input[type="email"] {
  width: 100%; padding: 0.75rem 1rem; font-family: 'Work Sans', sans-serif; font-size: 0.88rem;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; background: rgba(255,255,255,0.06);
  color: #fff; outline: none; margin-bottom: 0.75rem; transition: border-color 0.15s;
}
footer .footer-newsletter input[type="email"]::placeholder { color: rgba(255,255,255,0.3); }
footer .footer-newsletter input[type="email"]:focus { border-color: var(--teal); }
footer .footer-newsletter button {
  width: 100%; padding: 0.75rem; background: var(--teal); color: var(--ink);
  font-family: 'Work Sans', sans-serif; font-size: 0.85rem; font-weight: 600;
  border: none; border-radius: 10px; cursor: pointer; transition: background 0.15s;
}
footer .footer-newsletter button:hover { background: #14a8a3; }

/* Footer bottom */
footer .footer-bottom {
  padding: 1.5rem 2rem;
}
footer .footer-bottom .inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: rgba(255,255,255,0.35);
}
footer .footer-bottom a { color: rgba(255,255,255,0.35); text-decoration: none; }
footer .footer-bottom a:hover { color: rgba(255,255,255,0.65); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  footer .footer-top .inner { grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
  footer .footer-col:first-child { grid-column: 1 / -1; }
  footer .footer-newsletter { grid-column: 1 / -1; max-width: 340px; }
}
@media (max-width: 900px) {
  .pain-grid { grid-template-columns: 1fr; }
  .cost-grid { grid-template-columns: 1fr; }
  .what-item { grid-template-columns: 1fr; gap: 1rem; }
  .fn-nav-grid { grid-template-columns: repeat(3, 1fr); }
  footer .footer-top .inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  footer .footer-col:first-child { grid-column: auto; }
}
@media (max-width: 640px) {
  nav { padding: 0.85rem 1.25rem; }
  .nav-links { display: none; }
  .mobile-nav-toggle { display: flex; }
  .fn-hero { padding: 7rem 1.25rem 3.5rem; }
  .pain-section, .cost-section, .what-section, .who-section, .fn-cta, .newsletter { padding: 4rem 1.25rem; }
  .fn-nav { padding: 3rem 1.25rem; }
  .fn-nav-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .cta-buttons { flex-direction: column; }
  footer .footer-top .inner { grid-template-columns: 1fr; gap: 1.5rem; }
  footer .footer-newsletter { grid-column: auto; max-width: 100%; }
  footer .footer-bottom .inner { flex-direction: column; gap: 0.5rem; text-align: center; }
  .newsletter-form { flex-direction: column; }
}