/*
Theme Name:  QBD Connect
Theme URI:   https://www.qbdconnect.com
Description: Official theme for QBD Connect - QuickBooks Desktop API Integration Platform.
Author:      Work Horse Integrations
Author URI:  https://workhorseintegrations.com
Version:     1.0.0
License:     GPL-2.0-or-later
Text Domain: qbdc
*/

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

/*  --green: #4A7729;*/
:root {
  --navy: #003D5C;
  --navy-deep: #002645;
  --green: #298719;
  --green-light: #5D9636;
  --green-glow: #6FB83E;
  --cream: #F4F1EC;
  --warm-white: #FDFBF8;
  --text-primary: #1a1a1a;
  --text-mid: #4a4a4a;
  --text-light: #7a7a7a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background: var(--warm-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* â”€â”€â”€ NAV â”€â”€â”€ */
nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  padding: 1.25rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
nav.scrolled {
  background: rgba(0, 61, 92, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.75rem 2rem;
  box-shadow: 0 2px 24px rgba(0,0,0,0.15);
}
.nav-logo img { height: 38px; width: auto; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  color: #fff; text-decoration: none; font-size: 0.875rem;
  font-weight: 500; letter-spacing: 0.02em; opacity: 0.8;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: var(--green); color: #fff !important; opacity: 1 !important;
  padding: 0.6rem 1.4rem; border-radius: 6px;
  font-weight: 600 !important; transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover { background: var(--green-light); transform: translateY(-1px); }

/* â”€â”€â”€ HERO â”€â”€â”€ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background: var(--navy-deep);
  overflow: hidden;
}
.hero-bg-art {
  position: absolute; inset: 0; pointer-events: none;
}
/* Diagonal sweep */
.hero-bg-art::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%; width: 75%; height: 140%;
  background: linear-gradient(155deg, transparent 0%, rgba(74,119,41,0.08) 40%, rgba(74,119,41,0.04) 100%);
  transform: rotate(-5deg);
}
/* Floating orbs */
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.35;
  animation: drift 18s ease-in-out infinite alternate;
}
.orb-1 { width: 500px; height: 500px; background: var(--green); top: -100px; right: 5%; animation-delay: 0s; }
.orb-2 { width: 300px; height: 300px; background: var(--navy); top: 60%; left: -80px; animation-delay: -6s; }
.orb-3 { width: 200px; height: 200px; background: var(--green-light); bottom: 10%; right: 20%; animation-delay: -12s; opacity: 0.2; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -40px) scale(1.08); }
}
/* Grid lines */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 50%, black 20%, transparent 80%);
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center;
}
.hero-text { color: #fff; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.625rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green-glow);
  margin-bottom: 1.5rem;
  opacity: 0; transform: translateY(12px);
  animation: fadeUp 0.7s 0.2s forwards;
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 28px; height: 2px; background: var(--green-glow);
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 700; line-height: 1.15;
  opacity: 0; transform: translateY(16px);
  animation: fadeUp 0.7s 0.35s forwards;
}
.hero h1 em { font-style: italic; color: var(--green-glow); }
.hero-desc {
  margin-top: 1.5rem; font-size: 1.05rem; line-height: 1.7;
  color: rgba(255,255,255,0.6); max-width: 520px;
  opacity: 0; transform: translateY(12px);
  animation: fadeUp 0.7s 0.5s forwards;
}
.hero-actions {
  margin-top: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
  opacity: 0; transform: translateY(12px);
  animation: fadeUp 0.7s 0.65s forwards;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--green); color: #fff; text-decoration: none;
  padding: 0.85rem 1.75rem; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(74,119,41,0.35);
}
.btn-primary:hover {
  background: var(--green-light); transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(74,119,41,0.4);
}
.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.btn-ghost:hover { color: #fff; }

/* Hero right â€” visual */
.hero-visual {
  position: relative; display: flex; justify-content: center; align-items: center;
  opacity: 0; animation: fadeUp 0.8s 0.7s forwards;
}
.flow-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border-radius: 16px; padding: 1.5rem 1.75rem;
  color: #fff; width: 220px; position: relative;
  transition: border-color 0.3s, background 0.3s;
}
.flow-card:hover { border-color: rgba(111,184,62,0.4); background: rgba(255,255,255,0.09); }
.flow-card-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem; font-size: 1.25rem;
}
.flow-card h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.3rem; }
.flow-card p { font-size: 0.75rem; color: rgba(255,255,255,0.45); line-height: 1.5; }
.flow-connector {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  width: 2px; height: 28px; background: linear-gradient(180deg, rgba(111,184,62,0.5), transparent);
}
.flow-wrapper {
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.flow-item { position: relative; }
.flow-item:last-child .flow-connector { display: none; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* â”€â”€â”€ STORY SECTION â”€â”€â”€ */
.story {
  padding: 7rem 2rem;
  background: var(--warm-white);
}
.story-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.story-visual-side {
  position: relative;
}
.story-stat-block {
  background: var(--navy-deep); border-radius: 20px;
  padding: 2.5rem; color: #fff; position: relative; overflow: hidden;
}
.story-stat-block::after {
  content: ''; position: absolute; bottom: -40px; right: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(74,119,41,0.3), transparent 70%);
}
.stat-row { display: flex; gap: 2.5rem; margin-top: 1.75rem; position: relative; z-index: 1; }
.stat-item { text-align: left; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem; font-weight: 700; color: var(--green-glow); line-height: 1;
}
.stat-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); margin-top: 0.35rem; }
.story-badge {
  position: absolute; top: -18px; right: 2rem;
  background: var(--green); color: #fff; border-radius: 24px;
  padding: 0.5rem 1.1rem; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(74,119,41,0.35);
}

.story-text-side h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 700; line-height: 1.25; color: var(--navy);
}
.story-text-side h2 em { font-style: italic; color: var(--green); }
.story-text-side p {
  margin-top: 1.25rem; font-size: 0.95rem; line-height: 1.8; color: var(--text-mid);
}
.story-text-side p + p { margin-top: 1rem; }
.story-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.75rem; color: var(--green); font-weight: 600; font-size: 0.9rem;
  text-decoration: none; transition: gap 0.2s;
}
.story-link:hover { gap: 0.85rem; }

/* â”€â”€â”€ HOW IT WORKS â”€â”€â”€ */
.how {
  padding: 7rem 2rem;
  background: var(--cream);
  position: relative;
}
.how::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,61,92,0.12), transparent);
}
.how-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green); margin-bottom: 0.75rem;
}
.section-label::before { content: ''; width: 24px; height: 2px; background: var(--green); }
.how-header { max-width: 580px; }
.how-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 700; line-height: 1.25; color: var(--navy);
}
.how-header p {
  margin-top: 1rem; font-size: 0.95rem; color: var(--text-mid); line-height: 1.7;
}
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  margin-top: 3.5rem;
}
.step {
  position: relative; padding: 2rem 1.75rem;
  background: #fff; border-radius: 16px;
  border: 1px solid rgba(0,61,92,0.08);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}
.step:hover {
  border-color: rgba(74,119,41,0.3);
  box-shadow: 0 8px 32px rgba(0,61,92,0.08);
  transform: translateY(-3px);
}
.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem; font-weight: 700; color: rgba(0,61,92,0.07);
  line-height: 1; position: absolute; top: 1rem; right: 1.5rem;
}
.step-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--green));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; font-size: 1.3rem;
}
.step h3 { font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; }
.step p { font-size: 0.82rem; line-height: 1.7; color: var(--text-light); }

/* â”€â”€â”€ USE CASES (PAIN POINTS) â”€â”€â”€ */
.usecases { padding: 7rem 2rem; background: var(--warm-white); }
.usecases-inner { max-width: 1100px; margin: 0 auto; }
.usecases-header { text-align: center; max-width: 640px; margin: 0 auto; }
.usecases-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 700; color: var(--navy); line-height: 1.25;
}
.usecases-header p { margin-top: 1rem; font-size: 0.95rem; color: var(--text-mid); line-height: 1.7; }
.cases-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem;
}
.case-card {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem;
  align-items: start; padding: 1.75rem;
  background: #fff; border-radius: 14px;
  border: 1px solid rgba(0,61,92,0.07);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.case-card:hover {
  border-color: rgba(74,119,41,0.25);
  box-shadow: 0 6px 24px rgba(0,61,92,0.06);
}
.case-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,61,92,0.08), rgba(74,119,41,0.12));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.case-card h3 { font-size: 0.95rem; font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; }
.case-card p { font-size: 0.8rem; line-height: 1.7; color: var(--text-light); }

/* â”€â”€â”€ INTEGRATION MARQUEE â”€â”€â”€ */
.integrations {
  padding: 4rem 0; background: var(--navy-deep); overflow: hidden;
}
.integrations-label {
  text-align: center; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: 1.75rem;
}
.marquee-track {
  display: flex; gap: 3.5rem; align-items: center;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  font-family: 'Inter', sans-serif; font-size: 1.1rem;
  font-weight: 500; color: rgba(255,255,255,0.25);
  white-space: nowrap; letter-spacing: 0.03em;
  transition: color 0.3s;
}
.marquee-item:hover { color: rgba(255,255,255,0.7); }
.marquee-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(74,119,41,0.5); flex-shrink: 0;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* â”€â”€â”€ CTA BAND â”€â”€â”€ */
.cta-band {
  padding: 6rem 2rem; margin: 0 2rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 60%, #001a2e 100%);
  border-radius: 28px; position: relative; overflow: hidden;
  max-width: 1100px; margin-left: auto; margin-right: auto;
}
.cta-band::before {
  content: ''; position: absolute; top: -60%; right: -10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(74,119,41,0.18), transparent 65%);
}
.cta-band-inner {
  position: relative; z-index: 1;
  text-align: center; color: #fff; max-width: 640px; margin: 0 auto;
}
.cta-band h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700; line-height: 1.3;
}
.cta-band h2 em { font-style: italic; color: var(--green-glow); }
.cta-band p {
  margin-top: 1rem; font-size: 0.95rem; line-height: 1.7;
  color: rgba(255,255,255,0.55);
}
.cta-band .btn-primary {
  margin-top: 2rem; padding: 1rem 2.2rem; font-size: 1rem;
}

/* â”€â”€â”€ SEO CONTENT â”€â”€â”€ */
.seo-section { padding: 6rem 2rem; background: var(--cream); }
.seo-inner { max-width: 860px; margin: 0 auto; }
.seo-inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem; color: var(--navy); margin-bottom: 1rem; line-height: 1.3;
}
.seo-inner h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; color: var(--navy); margin-top: 2rem; margin-bottom: 0.6rem;
}
.seo-inner p {
  font-size: 0.88rem; line-height: 1.9; color: var(--text-mid);
}
.seo-inner p + p { margin-top: 0.75rem; }
.seo-inner ul {
  list-style: none; margin-top: 0.75rem; padding-left: 0;
}
.seo-inner ul li {
  font-size: 0.88rem; color: var(--text-mid); line-height: 1.8;
  padding-left: 1.25rem; position: relative;
}
.seo-inner ul li::before {
  content: ''; position: absolute; left: 0; top: 0.7em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
}

/* â”€â”€â”€ FOOTER â”€â”€â”€ */
footer {
  background: var(--navy-deep); color: rgba(255,255,255,0.45);
  padding: 3.5rem 2rem 2rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 2rem;
}
.footer-brand img { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: 0.7; }
.footer-brand p { font-size: 0.78rem; margin-top: 0.75rem; max-width: 280px; line-height: 1.6; }
.footer-links { display: flex; gap: 3rem; }
.footer-col h4 { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.7); margin-bottom: 1rem; }
.footer-col a { display: block; color: rgba(255,255,255,0.4); text-decoration: none; font-size: 0.82rem; margin-bottom: 0.6rem; transition: color 0.2s; }
.footer-col a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom {
  max-width: 1100px; margin: 2.5rem auto 0;
  padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.75rem; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem;
}

/* â”€â”€â”€ RESPONSIVE â”€â”€â”€ */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .story-inner { grid-template-columns: 1fr; gap: 3rem; }
  .steps { grid-template-columns: 1fr; max-width: 480px; }
  .cases-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-links .nav-link-text { display: none; }
  .story-inner, .how-inner, .usecases-inner { padding: 0; }
  .cta-band { margin: 0 1rem; padding: 4rem 1.5rem; border-radius: 20px; }
  .footer-links { flex-direction: column; gap: 1.5rem; }
}
