/* ==========================================================================
   Netbyzz Small Task Experts — Main Stylesheet
   Design system: light background, dark navy text, blue/indigo accents.
   Sections: tokens → base → layout → header/nav → hero → sections →
             cards → steps → FAQ → CTA → footer → utilities.
   ========================================================================== */

/* ------------------------------------------------------------ 1. Tokens */
:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --ink: #0f1e35;
  --ink-soft: #43536d;
  --muted: #7c8aa5;
  --line: #e3e9f2;
  --brand: #2563eb;
  --brand-2: #4f46e5;
  --brand-ink: #1d4ed8;
  --brand-soft: #eaf1ff;
  --ok: #16a34a;
  --ok-bg: #e9f9ef;
  --err: #dc2626;
  --err-bg: #fdecec;
  --grad: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(15, 30, 53, .06), 0 4px 14px rgba(15, 30, 53, .06);
  --shadow-2: 0 8px 28px rgba(15, 30, 53, .12);
  --header-h: 72px;
  --wrap: 1160px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* --------------------------------------------------------------- 2. Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--alt { background: var(--surface); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--brand-ink); background: var(--brand-soft);
  border: 1px solid #d8e5ff; border-radius: 999px; padding: 4px 14px; margin-bottom: 14px;
}

/* ------------------------------------------------- 3. Buttons & badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, .35); }
.btn--primary:hover { box-shadow: 0 8px 22px rgba(37, 99, 235, .45); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-1); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn--sm { padding: 9px 16px; font-size: .92rem; border-radius: 10px; }
.btn--block { width: 100%; }

.badge {
  display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .4px;
  color: var(--brand-ink); background: var(--brand-soft); border: 1px solid #d8e5ff;
  border-radius: 999px; padding: 3px 12px;
}

/* ------------------------------------------------ 4. Header & nav */
.site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { height: 44px; width: auto; display: block; }
.brand--footer img { height: 34px; }

.nav-list { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-list > li { position: relative; }
.nav-list a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink-soft); font-weight: 600; font-size: .97rem; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--brand-ink); background: var(--brand-soft); text-decoration: none; }

.has-dropdown > a .caret { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s ease; }
.has-dropdown.open > a .caret { transform: rotate(225deg) translateY(-2px); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; width: 560px; max-width: 88vw;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-2); padding: 12px; display: none; grid-template-columns: 1fr 1fr; gap: 2px;
}
.has-dropdown.open > .dropdown, .has-dropdown:hover > .dropdown { display: grid; }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: .93rem; font-weight: 500; }
.dropdown a:hover { background: var(--brand-soft); }
.dd-icon { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; background: var(--brand-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--brand-ink); }
.dd-icon svg { width: 18px; height: 18px; }
.dd-more { grid-column: 1 / -1; border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dd-more a { font-weight: 600; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line);
  background: var(--surface); border-radius: 10px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle .bars { width: 20px; height: 14px; position: relative; }
.nav-toggle .bars span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 6px; }
.nav-toggle .bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.header-cta { margin-left: 4px; }

/* ------------------------------------------ 5. Hero (home) */
.hero { padding: 72px 0 64px; background:
  radial-gradient(900px 380px at 85% -10%, #e6edff 0%, transparent 60%),
  radial-gradient(700px 320px at -10% 110%, #eef0ff 0%, transparent 55%), var(--bg); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
.hero-copy .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy p.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 26px; padding: 0; }
.hero-points li { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: .95rem; font-weight: 500; }
.tick { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: inline-flex; align-items: center; justify-content: center; }
.tick svg { width: 11px; height: 11px; }

.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; }

/* --------------------------------- 6. Cards (services / features) */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 10px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.card h3 { margin: 0; }
.card p { color: var(--ink-soft); font-size: .95rem; margin: 0; flex-grow: 1; }
/* Card links rendered as proper buttons (Explore services / View project / Submit task) */
.card .card-link {
  margin-top: 10px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  align-self: stretch;
  padding: 10px 16px; border-radius: 10px;
  background: var(--brand-soft); border: 1px solid #d8e5ff;
  color: var(--brand-ink); font-weight: 600; font-size: .93rem; line-height: 1.2;
  text-align: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card .card-link:hover {
  background: var(--grad); border-color: transparent; color: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .3); transform: translateY(-1px);
  text-decoration: none;
}
.card .card-link svg { width: 15px; height: 15px; flex: 0 0 15px; }
.icon-tile { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); display: inline-flex; align-items: center; justify-content: center; }
.icon-tile svg { width: 22px; height: 22px; }

/* ------------------------------------------------ 7. Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; box-shadow: var(--shadow-1); }
.step-num {
  width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem; margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--ink-soft); font-size: .93rem; margin: 0; }

/* ------------------------------------------------ 8. FAQ */
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-item h3 { margin: 0; }
.faq-item h3 button {
  all: unset; display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 14px;
  padding: 16px 18px; cursor: pointer; font-weight: 600; font-size: 1rem; color: var(--ink); font-family: var(--font);
}
.faq-item h3 button:hover { color: var(--brand-ink); }
.faq-item h3 button .chev { flex: 0 0 auto; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .18s ease; }
.faq-item[data-open="true"] h3 button .chev { transform: rotate(225deg); }
.faq-a { padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height .22s ease; }
.faq-a p { color: var(--ink-soft); font-size: .95rem; }
.faq-item[data-open="true"] .faq-a { max-height: 400px; padding-bottom: 16px; }

/* --------------------------------------- 9. CTA band & page hero */
.cta-band { background: var(--grad); border-radius: 22px; color: #fff; padding: 46px 34px; text-align: center; box-shadow: 0 16px 40px rgba(37, 99, 235, .28); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e5ecff; max-width: 560px; margin: 0 auto 22px; }
.cta-band .btn--primary { background: #fff; color: var(--brand-ink); box-shadow: 0 8px 20px rgba(15, 30, 53, .2); }

.page-hero { background: linear-gradient(180deg, #eef3ff 0%, #f7f9fc 100%); padding: 58px 0 46px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.page-hero p { max-width: 640px; color: var(--ink-soft); font-size: 1.08rem; }
.page-hero .hero-actions { margin-top: 18px; }

/* ------------------------------------------------ 10. Footer (light) */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--ink-soft); margin-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; padding: 52px 0 30px; }
.site-footer h4 { color: var(--ink); font-size: .95rem; letter-spacing: .4px; margin-bottom: 14px; }
.site-footer a { color: var(--ink-soft); font-size: .93rem; display: inline-block; padding: 3px 0; }
.site-footer a:hover { color: var(--brand-ink); text-decoration: none; }
.footer-brand p { font-size: .93rem; max-width: 300px; }
.footer-brand .brand { color: var(--ink); margin-bottom: 10px; }
.footer-brand .brand img { height: 36px; width: auto; }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px 0 26px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .85rem; }
.footer-bottom a { color: var(--ink-soft); }

/* ------------------------------------------------ 11. Utilities */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.muted { color: var(--muted); font-size: .9rem; }
.center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; }
.hidden { display: none !important; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 2000; }
.skip-link:focus { left: 0; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* Legal / long-form text pages */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; font-size: 1.25rem; }
.prose p { color: var(--ink-soft); }

/* Task chips (category pages) */
.task-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 920px; margin: 0 auto; }
.task-chip {
  display: inline-flex; align-items: center; padding: 10px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .93rem;
  color: var(--ink-soft); box-shadow: var(--shadow-1); transition: transform .15s ease, border-color .15s ease, color .15s ease;
}
.task-chip:hover { border-color: var(--brand); color: var(--brand-ink); transform: translateY(-2px); text-decoration: none; }
.task-chip--other { background: var(--brand-soft); border-color: #d8e5ff; color: var(--brand-ink); }

/* Related category pills */
.related-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.related-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .9rem;
  color: var(--ink-soft); box-shadow: var(--shadow-1); transition: transform .15s ease, border-color .15s ease, color .15s ease;
}
.related-pill:hover { border-color: var(--brand); color: var(--brand-ink); text-decoration: none; transform: translateY(-2px); }
.related-pill svg { width: 16px; height: 16px; color: var(--brand-ink); }
.faq-wrap { max-width: 760px; margin: 0 auto; }

/* Placeholder for missing project images */
.ph-img {
  width: 100%; aspect-ratio: 16/10; border-radius: 12px; border: 1px solid var(--line);
  background: repeating-linear-gradient(135deg, #eef2f9 0 12px, #f7fafd 12px 24px);
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; letter-spacing: .5px;
}

/* ------------------------------------------------ 12. Responsive */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .section { padding: 48px 0; }
  .nav-list {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--surface);
    flex-direction: column; align-items: stretch; gap: 0; padding: 14px 18px 30px; overflow-y: auto;
    display: none; border-top: 1px solid var(--line);
  }
  .nav-list.open { display: flex; }
  .nav-list a { padding: 14px 10px; font-size: 1.05rem; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .dropdown { position: static; display: none; width: 100%; box-shadow: none; border: 0; padding: 0 0 8px 14px; grid-template-columns: 1fr; background: transparent; }
  .has-dropdown.open > .dropdown { display: grid; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 44px 0 48px; }
}
@media (max-width: 560px) {
  .card-grid, .steps, .grid-2 { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 20px; }
}
