/* ============================================================
   crowdflowco — shared styles
   All pages link to this file. Page-specific styles stay inline.
============================================================ */

/* SKIP LINK (a11y) */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 999;
  background: var(--accent); color: var(--navy);
  padding: 12px 24px; border-radius: 6px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

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

/* PALETTE */
:root {
  --navy:        #0D1B2A;
  --navy-mid:    #142336;
  --navy-light:  #1B3050;
  --cream:       #F5EEE6;
  --cream-dark:  #E8DDD0;
  --green:       #1E4D35;
  --green-mid:   #2A6147;
  --green-light: #D4E8DC;
  --accent:      #3DD68A;
  --text-dark:   #0D1B2A;
  --text-mid:    #3A5068;
  --text-muted:  #7A93A8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* BUTTONS */
.btn-accent {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--navy);
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600;
  padding: 13px 26px; border-radius: 6px; text-decoration: none;
  border: none; cursor: pointer;
  transition: background 0.15s, transform 0.15s; letter-spacing: 0.1px;
}
.btn-accent:hover { background: #52E89E; transform: translateY(-1px); }

.btn-cream {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream); color: var(--navy);
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  padding: 12px 24px; border-radius: 6px; text-decoration: none;
  transition: background 0.15s; white-space: nowrap;
}
.btn-cream:hover { background: #fff; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: rgba(245,238,230,0.5);
  border: 1px solid rgba(245,238,230,0.15);
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 400;
  padding: 12px 24px; border-radius: 6px; text-decoration: none;
  transition: color 0.15s, border-color 0.15s; white-space: nowrap;
}
.btn-ghost:hover { color: var(--cream); border-color: rgba(245,238,230,0.3); }

/* FOCUS STATES (a11y) */
.btn-accent:focus-visible,
.btn-cream:focus-visible,
.btn-ghost:focus-visible,
.nav-cta:focus-visible,
nav ul a:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* EYEBROW */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.eyebrow-line { width: 24px; height: 1px; background: var(--accent); flex-shrink: 0; }
.eyebrow span {
  font-size: 11px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--accent);
}

/* LOGO */
.logo-svg    { height: 48px; width: auto; }
.logo-svg-sm { height: 32px; width: auto; }

/* NAV */
#mainNav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 66px;
  background: rgba(13,27,42,0.55);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(245,238,230,0.06);
  transition: background 0.3s;
}
#mainNav.scrolled { background: var(--navy); }

.logo-link { text-decoration: none; display: flex; align-items: center; }

nav ul { display: flex; list-style: none; gap: 32px; align-items: center; }
nav ul a {
  font-size: 14px; font-weight: 500; color: rgba(245,238,230,0.65);
  text-decoration: none; letter-spacing: 1.2px;
  text-transform: uppercase; transition: color 0.2s;
}
nav ul a:hover { color: var(--cream); }
nav ul a.active { color: var(--cream); }

.nav-cta {
  background: var(--accent) !important; color: var(--navy) !important;
  font-weight: 600 !important; padding: 9px 20px; border-radius: 6px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: #52E89E !important; }

/* NAV TOGGLE (mobile hamburger) */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--cream);
  margin: 5px 0; transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* FOOTER */
footer { background: var(--navy); padding: 0; }

.footer-main {
  max-width: 1200px; margin: 0 auto;
  padding: 72px 5% 48px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}

.footer-brand { max-width: 300px; }
.footer-brand .logo-svg-sm { margin-bottom: 18px; display: block; height: 24px; width: auto; }
.footer-about {
  font-size: 13px; line-height: 1.8; color: rgba(245,238,230,0.45);
  font-weight: 300; margin-bottom: 24px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(245,238,230,0.06); border: 1px solid rgba(245,238,230,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s; text-decoration: none;
}
.footer-social a:hover { background: rgba(245,238,230,0.1); border-color: rgba(245,238,230,0.15); }
.footer-social svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(245,238,230,0.7); margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 14px; color: rgba(245,238,230,0.45);
  text-decoration: none; transition: color 0.2s;
}
.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding: 24px 5%;
  border-top: 1px solid rgba(245,238,230,0.06);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.footer-copy { font-size: 12px; color: rgba(245,238,230,0.35); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-size: 12px; color: rgba(245,238,230,0.35);
  text-decoration: none; transition: color 0.15s;
}
.footer-legal a:hover { color: rgba(245,238,230,0.6); }

.footer-sister {
  text-align: center; padding: 16px 5%;
  border-top: 1px solid rgba(245,238,230,0.04);
  font-size: 11px; color: rgba(245,238,230,0.25); letter-spacing: 0.3px;
}
.footer-sister a {
  color: rgba(245,238,230,0.4); text-decoration: none; transition: color 0.15s;
}
.footer-sister a:hover { color: var(--cream); }

@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { max-width: 100%; grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-main { grid-template-columns: 1fr; gap: 32px; padding: 48px 5% 32px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
}

/* SHARED SERVICE PAGE STYLES */
.hero-svc {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy);
}
.hero-svc-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero-svc-inner {
  position: relative; z-index: 2; width: 100%;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; padding: 100px 5% 60px;
}
.hero-text h1 {
  font-family: 'Fraunces', serif; font-weight: 900;
  font-size: clamp(38px, 5.5vw, 56px); color: var(--cream);
  line-height: 1.05; letter-spacing: -1.5px; margin-bottom: 18px;
}
.hero-text h1 em {
  display: block; font-style: italic; font-weight: 300;
  color: rgba(245,238,230,0.45);
}
.hero-text p {
  font-size: 15px; color: rgba(245,238,230,0.5);
  line-height: 1.8; font-weight: 300; max-width: 420px; margin-bottom: 28px;
}

.hero-label {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
}
.hero-label-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
.hero-label span {
  font-size: 11px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--accent);
}

.hero-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.hero-feat { display: flex; align-items: center; gap: 10px; }
.hero-feat-check {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: rgba(61,214,138,0.15); border: 1px solid rgba(61,214,138,0.3);
  display: flex; align-items: center; justify-content: center;
}
.hero-feat-check svg { width: 10px; height: 10px; }
.hero-feat span { font-size: 14px; color: rgba(245,238,230,0.6); font-weight: 400; }

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

/* CARD VISUALS (shared across service hero cards) */
.card-wrap {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 480px;
}
.card-glow {
  position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: rgba(61,214,138,0.08); filter: blur(60px);
  animation: drift 6s ease-in-out infinite; pointer-events: none;
}
.card-badge {
  position: absolute; top: -14px; right: -10px; z-index: 3;
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
  background: var(--accent); color: var(--navy);
  padding: 6px 14px; border-radius: 20px;
  box-shadow: 0 4px 16px rgba(61,214,138,0.35);
}
.card-stat {
  position: absolute; bottom: -16px; left: -12px; z-index: 3;
  background: var(--navy); border: 1px solid rgba(245,238,230,0.1);
  border-radius: 12px; padding: 14px 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.card-stat-num {
  font-family: 'Fraunces', serif; font-size: 22px; font-weight: 700;
  color: var(--cream); letter-spacing: -0.5px; line-height: 1;
}
.card-stat-label { font-size: 11px; color: rgba(245,238,230,0.45); line-height: 1.35; max-width: 90px; }

/* HOW IT WORKS & FEATURES (shared across service pages) */
.how-section { padding: 80px 5%; background: var(--cream); }
.features-section { padding: 80px 5%; background: var(--cream); }

.section-h {
  font-family: 'Fraunces', serif; font-weight: 900;
  font-size: clamp(28px, 3.5vw, 42px); color: var(--text-dark);
  line-height: 1.05; letter-spacing: -1.5px; margin-bottom: 48px;
  text-align: center;
}
.section-h em { font-style: italic; font-weight: 300; color: var(--text-muted); }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step {
  background: #fff; border-radius: 14px; padding: 36px;
  border: 1px solid rgba(13,27,42,0.06);
}
.step-num {
  font-family: 'Fraunces', serif; font-size: 48px; font-weight: 900;
  color: rgba(61,214,138,0.12); line-height: 1; margin-bottom: 16px;
}
.step-title {
  font-family: 'Fraunces', serif; font-size: 18px; font-weight: 700;
  color: var(--text-dark); letter-spacing: -0.3px; margin-bottom: 10px;
}
.step-desc { font-size: 13px; line-height: 1.8; color: var(--text-muted); font-weight: 300; }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat-card {
  background: #fff; border-radius: 14px; padding: 32px;
  border: 1px solid rgba(13,27,42,0.06);
}
.feat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(61,214,138,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feat-icon svg { width: 20px; height: 20px; }
.feat-title {
  font-family: 'Fraunces', serif; font-size: 17px; font-weight: 700;
  color: var(--text-dark); letter-spacing: -0.3px; margin-bottom: 8px;
}
.feat-desc { font-size: 13px; line-height: 1.8; color: var(--text-muted); font-weight: 300; }

/* CTA SECTION (shared) */
.cta-section { padding: 96px 5%; }
.cta-inner {
  background: var(--navy); border-radius: 16px; overflow: hidden;
  display: grid; grid-template-columns: 1fr; min-height: 280px;
  position: relative;
}
.cta-text {
  padding: 80px 60px;
  display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center;
}
.cta-text h2 {
  font-family: 'Fraunces', serif; font-weight: 900;
  font-size: clamp(30px, 3.5vw, 46px);
  color: var(--cream); line-height: 1.05; letter-spacing: -1px; margin-bottom: 14px;
}
.cta-text h2 em { font-style: italic; font-weight: 300; color: rgba(245,238,230,0.4); }
.cta-text p {
  font-size: 14px; color: rgba(245,238,230,0.45); line-height: 1.75;
  font-weight: 300; max-width: 380px; margin-bottom: 32px;
}
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* SCROLL TO TOP */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 150;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--navy); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { background: #52E89E; }
.scroll-top svg { width: 18px; height: 18px; }

/* ANIMATIONS */
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.75); opacity: 0.4; }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes drift {
  0%,100% { transform: translate(0,0); }
  25% { transform: translate(20px,-10px); }
  50% { transform: translate(-10px,20px); }
  75% { transform: translate(-20px,-5px); }
}

/* RESPONSIVE — SHARED */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  nav ul {
    display: none; flex-direction: column; position: absolute;
    top: 66px; left: 0; right: 0; background: var(--navy);
    padding: 24px 5% 32px; gap: 20px;
    border-bottom: 1px solid rgba(245,238,230,0.08);
  }
  nav ul.nav-open { display: flex; }
  .hero-svc-inner { grid-template-columns: 1fr; gap: 40px; padding: 100px 5% 60px; }
  .hero-text h1 { font-size: clamp(36px, 10vw, 50px); }
  .hero-text p { max-width: 100%; }
  .card-wrap { height: auto; min-height: 420px; }
  .card-badge { top: -10px; right: -6px; font-size: 10px; padding: 5px 10px; }
  .card-stat { bottom: -12px; left: -8px; padding: 10px 14px; }
  .card-stat-num { font-size: 18px; }
  .steps-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .how-section { padding: 64px 5%; }
  .features-section { padding: 64px 5%; }
  .section-h { margin-bottom: 40px; }
  .cta-text { padding: 48px 24px; }
  .cta-text h2 { font-size: clamp(26px, 6vw, 38px); }
}

@media (max-width: 600px) {
  .hero-svc-inner { padding: 90px 5% 48px; gap: 32px; }
  .hero-text h1 { font-size: 34px; letter-spacing: -1px; }
  .hero-features { gap: 10px; }
  .hero-feat span { font-size: 13px; }
  .card-wrap { min-height: 380px; }
  .card-glow { width: 200px; height: 200px; }
  .feat-grid { grid-template-columns: 1fr; }
  .step { padding: 28px; }
  .feat-card { padding: 24px; }
  .cta-text { padding: 40px 20px; }
  .cta-actions { flex-direction: column; align-items: center; }
}
