/* ============================================================
   WeFlow — styles.css
   Shared styles for all pages. Page-specific styles remain
   in each page's <style> block.
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design tokens ── */
:root {
  --navy: #0a173a;
  --navy-mid: #122050;
  --navy-light: #1c2f65;
  --gold: #be9b30;
  --gold-light: #d4b34e;
  --white: #ffffff;
  --off-white: #f7f8fc;
  --text-muted: #8a96b0;
  --text-body: #d0d8f0;
  --radius: 12px;
  --radius-lg: 20px;
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Sora', sans-serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
svg { flex-shrink: 0; }

/* ── Layout ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── Typography ── */
.tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(190, 155, 48, .12);
  border: 1px solid rgba(190, 155, 48, .3);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-body);
  max-width: 600px;
  margin-bottom: 48px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all .25s;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
  min-height: 44px;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #a6841f);
  color: var(--navy);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(190, 155, 48, .35);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .3);
  color: var(--white);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Navigation ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid rgba(10, 23, 58, .12);
  box-shadow: 0 1px 20px rgba(10, 23, 58, .08);
  transition: box-shadow .3s, border-color .3s;
}

#navbar.scrolled {
  box-shadow: 0 2px 32px rgba(10, 23, 58, .15);
  border-bottom-color: rgba(190, 155, 48, .35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo link — explicit sizing so the img never collapses in flex context */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 44px;
}
.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
}

/* Text wordmark fallback (if image fails) */
.nav-wordmark {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -.03em;
}
.nav-wordmark .we { color: var(--navy); }   /* FIX: was #fff — invisible on white nav */
.nav-wordmark .flow { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  color: #4a5875;
  transition: color .2s;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--gold); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── Hamburger menu ── */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background .2s;
}
.menu-btn:hover { background: rgba(10, 23, 58, .06); }

.menu-btn .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}

.menu-btn.menu-open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.menu-open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-btn.menu-open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 768px) {
  .menu-btn { display: flex; }
  .nav-cta { display: none; }

  .nav-logo { height: 30px; }
  .nav-logo img { height: 30px; }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(10, 23, 58, .12);
    box-shadow: 0 8px 32px rgba(10, 23, 58, .12);
    padding: 0;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    align-items: stretch;
  }

  .nav-links.nav-open {
    max-height: 380px;
    padding: 8px 0 16px;
  }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 1rem;
    color: var(--navy);
    min-height: 48px;
    border-bottom: 1px solid rgba(10, 23, 58, .06);
  }
  .nav-links a:hover { background: rgba(190, 155, 48, .06); color: var(--gold); }

  .nav-links .mobile-cta {
    display: block;
    margin: 12px 24px 0;
    text-align: center;
  }
}

/* ── Sections ── */
section { padding: 80px 0; }

.section-dark {
  background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 100%);
}

.section-light {
  background: var(--off-white);
  color: var(--navy);
}

.section-light .tag {
  background: rgba(10, 23, 58, .08);
  color: var(--navy);
  border-color: rgba(10, 23, 58, .2);
}

.section-light h2,
.section-light h3 { color: var(--navy); }
.section-light p { color: #4a5568; }
.section-light .section-sub { color: #4a5568; }

/* ── Service hero ── */
.service-hero {
  padding: 140px 0 80px;
  background: radial-gradient(ellipse 70% 60% at 70% 40%, rgba(190, 155, 48, .08) 0%, transparent 60%), var(--navy);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(190, 155, 48, .2), rgba(190, 155, 48, .05));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold), #e8c55a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-body);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.h-stat .num {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
}
.h-stat .lbl {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(190, 155, 48, .2);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.hc-title {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 600;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9rem;
  line-height: 1.6;
}
.check-list li svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 24px;
  opacity: .8;
  transition: opacity .2s;
}
.back-link:hover { opacity: 1; }

/* ── Component cards ── */
.components-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 700px) { .components-grid { grid-template-columns: 1fr; } }

.comp-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.comp-card:hover {
  border-color: rgba(190, 155, 48, .3);
  transform: translateY(-3px);
}

.comp-icon {
  width: 44px;
  height: 44px;
  background: rgba(190, 155, 48, .12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 16px;
}

.comp-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.comp-card p { font-size: .875rem; color: var(--text-muted); line-height: 1.7; }

/* Light section card overrides */
.section-light .comp-card { background: var(--white); border-color: #e8ecf4; }
.section-light .comp-card:hover { border-color: var(--gold); }
.section-light .comp-card p { color: #5a6480; }
.section-light .comp-icon { background: rgba(190, 155, 48, .1); }

/* ── Two-column layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* ── Outcome list ── */
.outcome-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.outcome-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius);
}
.outcome-list li svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.outcome-list li .ot { font-size: .92rem; font-weight: 600; margin-bottom: 3px; }
.outcome-list li .os { font-size: .82rem; color: var(--text-muted); }

/* Light section outcome list overrides */
.section-light .outcome-list li { background: var(--white); border-color: #e8ecf4; }
.section-light .outcome-list li .ot { color: var(--navy); }
.section-light .outcome-list li .os { color: #5a6480; }

/* ── Case study ── */
.case-card {
  background: var(--white);
  border: 1px solid #e0ddd5;
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  margin-top: 32px;
}
.case-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.case-industry {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.case-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.case-card p { font-size: .9rem; color: #5a6480; margin-bottom: 28px; line-height: 1.7; }

.case-stats { display: flex; gap: 32px; flex-wrap: wrap; margin-bottom: 24px; }
.cs .n {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.cs .l { font-size: .75rem; color: #5a6480; margin-top: 4px; }

.case-rev {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: #4ade80;
  font-weight: 600;
  background: rgba(74, 222, 128, .08);
  border: 1px solid rgba(74, 222, 128, .2);
  padding: 7px 16px;
  border-radius: 100px;
}

/* Dark case card variant (lead-gen page) */
.case-card-dark {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(190, 155, 48, .2);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  margin-top: 32px;
}
.case-card-dark::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.case-card-dark h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.case-card-dark p { font-size: .9rem; color: var(--text-muted); margin-bottom: 28px; line-height: 1.7; }

/* ── CTA section ── */
#cta-section {
  padding: 100px 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(190, 155, 48, .08) 0%, transparent 65%), var(--navy-mid);
  text-align: center;
}

/* ── Footer — slim (service pages) ── */
footer {
  background: #060e22;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, .05);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-wordmark {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -.03em;
}
.footer-wordmark .we { color: #fff; }
.footer-wordmark .flow { color: var(--gold); }

.footer-copy { font-size: .8rem; color: var(--text-muted); }

/* ── Footer — full grid (homepage) ── */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  margin-bottom: 28px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer-desc { font-size: .9rem; color: var(--text-muted); line-height: 1.7; margin-top: 16px; }

.footer-col h4 {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: .88rem; color: var(--text-muted); transition: color .2s; }
.footer-col ul a:hover { color: var(--white); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-copy-sm { font-size: .8rem; color: var(--text-muted); }
.footer-tagline { font-size: .8rem; color: var(--gold); font-weight: 500; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Utility ── */
.mobile-only { display: none; }
@media (max-width: 768px) { .mobile-only { display: block; } }

.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Mobile UX polish ── */
.faq-q { min-height: 44px; }
.service-link { min-height: 44px; display: inline-flex; align-items: center; }
.team-linkedin { min-height: 44px; display: inline-flex; align-items: center; }

/* Disable hover transforms on touch devices */
@media (hover: none) {
  .comp-card:hover,
  .service-card:hover,
  .result-card:hover,
  .team-card:hover,
  .pain-card:hover {
    transform: none;
  }
}

/* Small screen adjustments */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 24px; }
  .h-stat .num { font-size: 1.6rem; }
  .case-stats { gap: 20px; }
  section { padding: 64px 0; }
  .service-hero { padding: 120px 0 64px; }
  .components-grid { gap: 16px; }
  .two-col { gap: 40px; }
}

/* Comp card subtle hover shadow */
.comp-card:hover {
  box-shadow: 0 8px 32px rgba(190, 155, 48, .08);
}
.section-light .comp-card:hover {
  box-shadow: 0 8px 32px rgba(10, 23, 58, .08);
}

/* Outcome list hover */
.outcome-list li {
  transition: background .2s, border-color .2s;
  cursor: default;
}
.outcome-list li:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(190, 155, 48, .2);
}
.section-light .outcome-list li:hover {
  background: var(--off-white);
  border-color: rgba(190, 155, 48, .3);
}
