/* Zero Bugs Marketing, LLC — main stylesheet */
:root {
  --ink: #12201E;
  --ink-soft: #4C5E5A;
  --forest: #0F3D35;
  --emerald: #12A37A;
  --emerald-deep: #0B8F6A;
  --mint: #D7F5E6;
  --coral: #FF6F59;
  --mist: #F3F6F5;
  --white: #FFFFFF;
  --line: #D5DEDB;

  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 44px);
  --section: clamp(64px, 9vw, 120px);
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--emerald-deep); text-underline-offset: 3px; }
a:hover { color: var(--forest); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 0.45em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 48px; margin-bottom: clamp(32px, 5vw, 56px); }
.head-row h2 { margin: 0; max-width: 16ch; }
.head-row p { margin: 0; color: var(--ink-soft); max-width: 30rem; font-size: 1.08rem; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--coral); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; border-radius: var(--r); border: 2px solid var(--forest); font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; transition: box-shadow .15s ease, transform .15s ease; }
.btn-solid { background: var(--forest); color: var(--white); }
.btn-solid:hover { color: var(--white); box-shadow: 4px 4px 0 var(--coral); transform: translate(-2px, -2px); }
.btn-line { background: transparent; color: var(--forest); }
.btn-line:hover { color: var(--forest); box-shadow: 4px 4px 0 var(--forest); transform: translate(-2px, -2px); }
.btn-coral { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.btn-coral:hover { color: var(--ink); box-shadow: 4px 4px 0 var(--white); transform: translate(-2px, -2px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 2px solid var(--forest); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 14px; border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 600; }
.nav-links a:hover { background: var(--mist); }
.nav-links a[aria-current="page"] { background: var(--mint); }
.nav-links .btn { margin-left: 12px; padding: 11px 18px; }
.nav-links .btn:hover { background: var(--forest); }
.nav-toggle { display: none; background: none; border: 2px solid var(--forest); border-radius: var(--r); color: var(--forest); padding: 7px 12px; font: 700 .95rem var(--font-body); cursor: pointer; }
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; background: var(--white); padding: 12px var(--gutter) 24px; border-bottom: 2px solid var(--forest); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 12px; }
  .nav-links .btn { margin: 12px 0 0; }
}

/* Hero */
.hero { background: var(--mint); border-bottom: 2px solid var(--forest); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero h1 { color: var(--forest); }
.hero-lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); max-width: 32rem; color: var(--ink); margin-bottom: 1.8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-proof { margin: 36px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; font-weight: 600; color: var(--forest); }
.hero-proof li::before { content: "✓"; color: var(--emerald-deep); font-weight: 800; margin-right: 8px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 460px; } }

/* Stats band */
.stats { background: var(--forest); color: var(--white); }
.stats dl { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats dl > div { padding: 34px 24px; border-left: 1px solid rgba(255,255,255,.18); }
.stats dl > div:first-child { border-left: 0; padding-left: 0; }
.stats dt { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--mint); line-height: 1; letter-spacing: -0.03em; }
.stats dd { margin: 8px 0 0; color: rgba(255,255,255,.75); }
.stats dl > div { display: flex; flex-direction: column; }
@media (max-width: 760px) {
  .stats dl { grid-template-columns: 1fr 1fr; }
  .stats dl > div { padding: 26px 0 26px 18px; }
  .stats dl > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stats dl > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); }
}

/* Services list */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--forest); }
.svc { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 16px 40px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); }
.svc h3 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.svc p { margin: 0; color: var(--ink-soft); }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 260px; }
.svc-tags span { font-size: .82rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--mist); color: var(--forest); }
@media (max-width: 860px) {
  .svc { grid-template-columns: 1fr; }
  .svc-tags { justify-content: flex-start; max-width: none; }
}

/* Process timeline */
.process { background: var(--mist); }
.process-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.process-grid .intro { position: sticky; top: 110px; }
.process-grid .intro p { color: var(--ink-soft); font-size: 1.08rem; }
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: s; position: relative; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px; background: var(--forest); }
.timeline li { counter-increment: s; position: relative; padding: 0 0 40px 76px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--white); border: 2px solid var(--forest); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--forest); }
.timeline li:last-child::before { background: var(--coral); border-color: var(--coral); color: var(--white); }
.timeline h3 { margin-top: 8px; }
.timeline p { color: var(--ink-soft); margin: 0 0 8px; }
.timeline .deliverable { font-size: .94rem; font-weight: 600; color: var(--forest); margin: 0; }
@media (max-width: 860px) { .process-grid { grid-template-columns: 1fr; } .process-grid .intro { position: static; } }

/* Testimonials */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.q { margin: 0; padding: clamp(24px, 4vw, 40px); border: 2px solid var(--forest); border-radius: var(--r); background: var(--white); display: flex; flex-direction: column; }
.q:nth-child(2) { background: var(--forest); color: var(--white); }
.q:nth-child(2) cite span { color: rgba(255,255,255,.7); }
.q p { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.3; letter-spacing: -0.015em; flex: 1; }
.q cite { font-style: normal; font-weight: 700; }
.q cite span { display: block; font-weight: 400; color: var(--ink-soft); }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

/* Post cards */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.post-card img { border-radius: var(--r); border: 2px solid var(--forest); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; margin-bottom: 18px; }
.post-card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.post-meta { font-size: .9rem; color: var(--ink-soft); margin-bottom: 6px; }
.post-card p { color: var(--ink-soft); margin: 0; }
.posts.featured .post-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; }
.posts.featured .post-card:first-child img { margin: 0; }
.posts.featured .post-card:first-child h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .posts, .posts.featured .post-card:first-child { grid-template-columns: 1fr; } .posts.featured .post-card:first-child { gap: 0; } .posts.featured .post-card:first-child img { margin-bottom: 18px; } }

/* Contact */
.contact { background: var(--forest); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 88px); }
.contact h2 { color: var(--mint); }
.contact-info p { color: rgba(255,255,255,.82); font-size: 1.08rem; }
.contact-info ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-info li { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.18); }
.contact-info strong { display: block; font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.6); }
.contact-info a { color: var(--white); font-weight: 700; }
.form { background: var(--white); color: var(--ink); border-radius: var(--r); padding: clamp(22px, 4vw, 38px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; box-shadow: 8px 8px 0 var(--coral); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .92rem; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--white); border: 2px solid var(--line); border-radius: var(--r); padding: 11px 13px; width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #C8321F; }
.field-error { display: none; color: #B02A18; font-size: .86rem; }
.field.invalid .field-error { display: block; }
.check { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--forest); flex-shrink: 0; }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form-status { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border-radius: var(--r); background: var(--mint); color: var(--forest); font-weight: 700; display: none; }
.form-status.show { display: block; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } .form .btn { justify-self: stretch; } }

/* Inner page header */
.page-head { background: var(--mint); border-bottom: 2px solid var(--forest); padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 60px); }
.page-head h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); color: var(--forest); max-width: 18ch; }
.page-head p { font-size: 1.12rem; max-width: 40rem; margin: 0; }
.page-head .updated { display: block; margin-top: 18px; font-weight: 700; color: var(--forest); font-size: .95rem; }

/* Article */
.article { max-width: 720px; margin: 0 auto; }
.article-hero { border: 2px solid var(--forest); border-radius: var(--r); margin: 0 0 40px; overflow: hidden; }
.article p, .article li { font-size: 1.1rem; line-height: 1.75; }
.article h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-top: 1.8em; }
.article ul, .article ol { padding-left: 24px; margin: 0 0 1.2em; }
.article li { margin-bottom: .5em; }
.article blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--coral); font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.35; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--ink-soft); font-size: .98rem; margin-top: 18px; }
.back-link { display: inline-block; margin-top: 48px; font-weight: 700; }

/* Legal */
.legal { display: grid; grid-template-columns: 250px 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.legal-toc { position: sticky; top: 100px; padding: 20px; background: var(--mist); border-radius: var(--r); font-size: .94rem; }
.legal-toc p { font-weight: 700; margin-bottom: 10px; }
.legal-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 7px; }
.legal-toc a { color: var(--ink-soft); text-decoration: none; }
.legal-toc a:hover { color: var(--forest); text-decoration: underline; }
.legal-body { max-width: 72ch; }
.legal-body h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-top: 2em; scroll-margin-top: 96px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body ul { padding-left: 22px; }
.legal-body li { margin-bottom: .4em; }
.table-scroll { overflow-x: auto; margin: 0 0 1.4em; border: 2px solid var(--forest); border-radius: var(--r); }
.legal-body table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 520px; }
.legal-body th, .legal-body td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-body th { background: var(--mint); }
.legal-body tr:last-child td { border-bottom: 0; }
.notice { padding: 16px 18px; border-radius: var(--r); background: var(--mint); margin-bottom: 1.2em; }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .legal-toc { position: static; } }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); font-size: .95rem; }
.footer-cta { border-bottom: 1px solid rgba(255,255,255,.14); padding: clamp(48px, 7vw, 80px) 0; }
.footer-cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer-cta h2 { color: var(--white); margin: 0; max-width: 16ch; }
.footer-main { padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .brand { color: var(--white); margin-bottom: 14px; }
.site-footer h4 { color: var(--white); margin: 0 0 14px; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: var(--mint); text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }
.footer-bottom button { background: none; border: 0; padding: 0; font: inherit; color: rgba(255,255,255,.72); text-decoration: underline; cursor: pointer; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Cookie bar */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--white); border-top: 2px solid var(--forest); padding: 18px 0; transform: translateY(110%); transition: transform .3s ease; }
.cookie-bar.show { transform: none; }
.cookie-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; }
.cookie-bar p { margin: 0; max-width: 62ch; font-size: .95rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { padding: 11px 18px; font-size: .93rem; }
