/* ==========================================================
   Woppadoodle — Clean & Modern design system
   ========================================================== */

:root {
  --ink: #0f172a;          /* near-black slate */
  --ink-soft: #475569;     /* body text */
  --ink-faint: #94a3b8;    /* muted text */
  --bg: #ffffff;
  --bg-soft: #f6f8fb;      /* section alt background */
  --line: #e6eaf0;
  --brand: #2563eb;        /* primary blue */
  --brand-dark: #1d4ed8;
  --brand-tint: #eaf1fe;
  --accent: #f59e0b;       /* warm accent, used sparingly */
  --radius: 14px;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.07);
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
  --maxw: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 700; }

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; }

p + p { margin-top: 1em; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.22rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

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

.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--ink); }

.nav-links a.active {
  color: var(--brand);
  font-weight: 600;
}

.nav-cta { display: flex; align-items: center; gap: 12px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink-faint);
  color: var(--ink);
  background: var(--bg-soft);
}

.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 88px;
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 0%, var(--brand-tint) 0%, transparent 70%);
}

.hero .eyebrow {
  display: inline-block;
  background: var(--brand-tint);
  color: var(--brand);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 { max-width: 780px; margin: 0 auto 20px; }

.hero .lead {
  max-width: 620px;
  margin: 0 auto 34px;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

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

/* Page hero (inner pages) */
.page-hero {
  padding: 72px 0 56px;
  text-align: center;
  background:
    radial-gradient(60% 60% at 50% 0%, var(--brand-tint) 0%, transparent 70%);
}
.page-hero .lead {
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 1.1rem;
}

/* ---------- Sections ---------- */

.section { padding: 80px 0; }
.section-alt { background: var(--bg-soft); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}
.section-head p { margin-top: 14px; }

/* ---------- Cards / grids ---------- */

.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-tint);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.96rem; }

.card .card-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.92rem;
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stat .label {
  font-size: 0.92rem;
  color: var(--ink-faint);
  margin-top: 4px;
}

/* ---------- Steps (process) ---------- */

.steps { counter-reset: step; }
.step {
  position: relative;
  padding-left: 0;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

/* ---------- Feature rows (about page) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split .visual {
  background: linear-gradient(135deg, var(--brand-tint), #f3e8ff);
  border-radius: var(--radius);
  min-height: 320px;
  display: grid;
  place-items: center;
  font-size: 4rem;
}

.checklist { list-style: none; margin-top: 18px; }
.checklist li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ---------- Pricing-ish service tiers ---------- */

.tier { position: relative; }
.tier.featured {
  border-color: var(--brand);
  box-shadow: 0 10px 40px rgba(37, 99, 235, 0.12);
}
.tier .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, #1e3a8a, var(--brand));
  border-radius: 20px;
  padding: 64px 40px;
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 540px; margin: 0 auto 28px; }
.cta-band .btn-primary {
  background: #fff;
  color: var(--brand);
}
.cta-band .btn-primary:hover {
  background: var(--bg-soft);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ---------- Forms ---------- */

.form-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.field textarea { resize: vertical; min-height: 130px; }

.form-note { font-size: 0.85rem; color: var(--ink-faint); margin-top: 14px; }

.form-success {
  display: none;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 18px;
  font-weight: 500;
}
.form-success.show { display: block; }

/* ---------- Contact info ---------- */

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 26px;
}
.contact-item .ico {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--brand-tint);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}
.contact-item h3 { font-size: 1rem; margin-bottom: 2px; }
.contact-item p { font-size: 0.95rem; }

/* ---------- FAQ ---------- */

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  background: var(--bg);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-q::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--brand);
  transition: transform 0.2s ease;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-a-inner { padding: 0 20px 18px; font-size: 0.96rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 60px 0 28px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer p { font-size: 0.92rem; color: #94a3b8; }
.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { color: #94a3b8; font-size: 0.92rem; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #64748b;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 24px;
  }

  .section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  .cta-band { padding: 44px 24px; }
}
