/* TopSEOus — Static HTML Theme */
/* ============================== Reset & base ============================== */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.55; color: #1a1f1c; background: #fafbf9; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
:root {
  --brand: #367e4e;
  --brand-dark: #245a37;
  --brand-light: #4a9d65;
  --gold: #b98328;
  --gold-bright: #d39d3b;
  --bg: #fafbf9;
  --surface: #ffffff;
  --border: #e4e7e2;
  --text: #1a1f1c;
  --text-muted: #5a615b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20,30,20,.06);
  --shadow-md: 0 6px 16px rgba(20,30,20,.08);
  --shadow-lg: 0 18px 40px -12px rgba(20,30,20,.18);
  --maxw: 1240px;
}
@media (prefers-color-scheme: dark) {
  /* Optional light/dark — keeping light by default since the previous design was light */
}
/* ============================== Typography ============================== */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--brand); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
h1, h2, h3, h4 { font-family: 'Inter', system-ui, sans-serif; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--text); }
h1 { font-size: clamp(28px, 4.8vw, 44px); }
h2 { font-size: clamp(22px, 3.4vw, 32px); }
h3 { font-size: 18px; }
.text-gold { color: var(--gold); }
.text-brand { color: var(--brand); }
.text-balance { text-wrap: balance; }
.muted { color: var(--text-muted); }
/* ============================== Layout ============================== */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }
section { padding: 64px 0; }
@media (min-width: 768px) { section { padding: 96px 0; } }
.section-tight { padding: 48px 0; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 20px; } .gap-6 { gap: 24px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 20px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-10 { margin-top: 40px; } .mt-12 { margin-top: 48px; }
.max-w-2xl { max-width: 720px; margin-inline: auto; }
.max-w-3xl { max-width: 820px; margin-inline: auto; }
.max-w-4xl { max-width: 960px; margin-inline: auto; }
.hidden-mobile { display: none; }
@media (min-width: 768px) { .hidden-mobile { display: inline-flex; } .hidden-desktop { display: none; } }
/* ============================== Header ============================== */
.header { position: sticky; top: 0; z-index: 50; background: rgba(250,251,249,.92); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; transition: transform .3s ease; }
.logo:hover { transform: scale(1.06); filter: drop-shadow(0 0 14px rgba(54,126,78,.45)); }
.logo svg { width: 40px; height: 40px; }
.logo-text { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.logo-text .us { color: var(--brand); }
.stars { color: var(--gold); font-size: 12px; letter-spacing: 1px; line-height: 1; margin-bottom: 2px; }
.logo-stack { display: inline-flex; flex-direction: column; line-height: 1; }
.nav-desktop { display: none; gap: 28px; }
@media (min-width: 900px) { .nav-desktop { display: inline-flex; } }
.nav-desktop a { font-size: 14px; font-weight: 500; color: var(--text); padding: 8px 0; transition: color .15s; }
.nav-desktop a:hover { color: var(--brand); }
.header-cta { display: inline-flex; align-items: center; gap: 10px; }
.menu-toggle { display: inline-flex; padding: 10px; border-radius: 8px; }
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-menu { display: none; border-top: 1px solid var(--border); padding: 16px 20px; background: var(--bg); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 0; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: 0; }
/* ============================== Buttons ============================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; transition: all .2s ease; cursor: pointer; white-space: nowrap; text-align: center; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #1a1f1c; font-weight: 700; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 6px 14px -6px rgba(185,131,40,.5); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 10px 22px -8px rgba(185,131,40,.65); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-arrow::after { content: "→"; transition: transform .2s; }
.btn-arrow:hover::after { transform: translateX(3px); }
/* ============================== Hero ============================== */
.hero { position: relative; border-bottom: 1px solid var(--border); overflow: hidden; padding: 64px 0 80px; }
@media (min-width: 768px) { .hero { padding: 96px 0 112px; } }
.hero::before { content: ""; position: absolute; top: -200px; left: 50%; width: 600px; height: 600px; transform: translateX(-50%); background: radial-gradient(circle, rgba(54,126,78,.18), transparent 70%); pointer-events: none; }
.hero-video { position: relative; width: 100%; max-width: 1100px; margin: 0 auto 40px; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-lg); background: #0e120f; }
.hero-video video { width: 100%; height: auto; display: block; aspect-ratio: 16/9; object-fit: cover; }
.hero h1 { text-align: center; max-width: 880px; margin: 0 auto; }
.hero h1 .accent { color: var(--gold); }
.hero-sub { text-align: center; max-width: 640px; margin: 24px auto 0; font-size: 17px; color: var(--text-muted); }
.hero-ctas { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; margin-top: 36px; }
@media (min-width: 480px) { .hero-ctas { flex-direction: row; } }
/* ============================== Stats strip ============================== */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 920px; margin: 56px auto 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--border); gap: 1px; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); padding: 22px 16px; text-align: center; }
.stat-num { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.stat-label { margin-top: 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); }
/* ============================== Section header ============================== */
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
@media (min-width: 768px) { .section-head { margin: 0 0 48px; text-align: left; } }
.section-head .eyebrow { justify-content: center; }
@media (min-width: 768px) { .section-head .eyebrow { justify-content: flex-start; } }
/* ============================== Service cards ============================== */
.svc-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card { display: flex; flex-direction: row; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); transition: all .25s ease; }
@media (min-width: 640px) { .svc-card { flex-direction: column; } }
.svc-card:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow-md); }
.svc-card-img { width: 144px; aspect-ratio: 1/1; flex-shrink: 0; overflow: hidden; background: #0e120f; }
@media (min-width: 640px) { .svc-card-img { width: 100%; aspect-ratio: 4/3; } }
.svc-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.svc-card-img a { display: block; width: 100%; height: 100%; }
.svc-card:hover .svc-card-img img { transform: scale(1.05); }
.svc-card-body { padding: 20px; flex: 1; }
@media (min-width: 640px) { .svc-card-body { padding: 24px; } }
.svc-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(54,126,78,.12); color: var(--brand); display: grid; place-items: center; }
.svc-icon svg { width: 18px; height: 18px; }
.svc-card h3 { margin-top: 12px; font-size: 16px; }
@media (min-width: 640px) { .svc-card h3 { font-size: 18px; margin-top: 20px; } }
.svc-card p { margin-top: 6px; font-size: 13px; color: var(--text-muted); line-height: 1.55; }
/* ============================== Process ============================== */
.process { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.process-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); border-radius: 16px; overflow: hidden; border: 1px solid var(--border); margin-top: 48px; }
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-step { background: var(--bg); padding: 28px; }
.process-num { font-family: 'JetBrains Mono', monospace; font-size: 28px; font-weight: 800; color: var(--brand); }
.process-step h3 { margin-top: 14px; font-size: 16px; }
.process-step p { margin-top: 8px; font-size: 13px; color: var(--text-muted); }
/* ============================== Metrics ============================== */
.metrics-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 48px; }
@media (min-width: 768px) { .metrics-grid { grid-template-columns: repeat(3, 1fr); } }
.metric-card { padding: 32px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.metric-val { font-family: 'JetBrains Mono', monospace; font-size: 30px; font-weight: 800; color: var(--gold); letter-spacing: -.02em; }
.metric-label { margin-top: 12px; font-size: 14px; color: var(--text-muted); }
/* ============================== Testimonials ============================== */
.testi-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 48px; }
@media (min-width: 768px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }
.testi-card { padding: 28px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg); display: flex; flex-direction: column; }
.testi-stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; }
.testi-headline { margin-top: 16px; font-size: 16px; font-weight: 700; line-height: 1.35; }
.testi-quote { margin-top: 12px; font-size: 14px; color: var(--text-muted); line-height: 1.6; flex: 1; }
.testi-foot { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(54,126,78,.15); color: var(--brand); font-weight: 700; display: grid; place-items: center; font-size: 13px; }
.testi-name { font-size: 13px; font-weight: 700; }
.testi-role { font-size: 11px; color: var(--text-muted); }
/* ============================== Pricing ============================== */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 48px; }
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pricing-grid { grid-template-columns: repeat(4, 1fr); } }
.pricing-card { padding: 28px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; transition: all .3s ease; }
.pricing-card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: 0 0 0 2px rgba(54,126,78,.18), 0 18px 40px -12px rgba(54,126,78,.45); }
.pricing-card.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.pricing-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(54,126,78,.12); color: var(--brand); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.pricing-name { font-size: 18px; font-weight: 700; }
.pricing-tag { margin-top: 6px; font-size: 13px; color: var(--text-muted); }
.pricing-price { margin-top: 18px; }
.pricing-amount { font-family: 'JetBrains Mono', monospace; font-size: 26px; font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.pricing-period { font-size: 13px; color: var(--text-muted); margin-left: 4px; }
.pricing-features { margin-top: 20px; flex: 1; }
.pricing-features li { display: flex; align-items: start; gap: 10px; font-size: 13px; line-height: 1.5; padding: 6px 0; color: var(--text); }
.pricing-features li::before { content: "✓"; color: var(--brand); font-weight: 700; flex-shrink: 0; }
.pricing-card .btn { margin-top: 24px; width: 100%; }
/* ============================== FAQ ============================== */
.faq-list { max-width: 820px; margin: 48px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 16px; font-weight: 600; text-align: left; }
.faq-q::after { content: "+"; font-size: 22px; color: var(--brand); transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 0 20px; font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.faq-item.open .faq-a { display: block; }
/* ============================== Footer ============================== */
.footer { background: #14181a; color: #c8d0c9; padding: 56px 0 24px; }
.footer a { color: #c8d0c9; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .15em; margin-bottom: 16px; }
.footer ul li { padding: 6px 0; font-size: 14px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid #2a302b; font-size: 13px; color: #8a948c; text-align: center; }
/* ============================== Page hero (interior pages) ============================== */
.page-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--border); background: var(--surface); }
@media (min-width: 768px) { .page-hero { padding: 96px 0 56px; } }
.page-hero h1 { text-align: center; max-width: 800px; margin: 16px auto 0; }
@media (min-width: 768px) { .page-hero h1 { text-align: left; margin-left: 0; } }
.page-hero p { text-align: center; max-width: 640px; margin: 18px auto 0; color: var(--text-muted); }
@media (min-width: 768px) { .page-hero p { text-align: left; margin-left: 0; } }
.page-hero .eyebrow { justify-content: center; }
@media (min-width: 768px) { .page-hero .eyebrow { justify-content: flex-start; } }
/* ============================== Forms ============================== */
.form-card { padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-sm); }
@media (min-width: 768px) { .form-card { padding: 40px; } }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-input, .form-textarea, .form-select { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: #111; -webkit-text-fill-color: #111; transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none; }
.form-input::placeholder, .form-textarea::placeholder { color: #6b7280; opacity: 1; }
.form-input:-webkit-autofill, .form-textarea:-webkit-autofill, .form-select:-webkit-autofill { -webkit-text-fill-color: #111 !important; -webkit-box-shadow: 0 0 0 1000px #fff inset !important; caret-color: #111; }
@media (prefers-color-scheme: dark) {
  .form-input, .form-textarea, .form-select { background: #fff !important; color: #111 !important; -webkit-text-fill-color: #111 !important; }
  .form-input::placeholder, .form-textarea::placeholder { color: #6b7280 !important; }
}
.form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(54,126,78,.15); }
.form-textarea { resize: vertical; min-height: 110px; font-family: inherit; }
.form-help { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-error { color: #c0392b; font-size: 13px; margin-top: 8px; }
.form-success { color: var(--brand); font-size: 14px; margin-top: 8px; font-weight: 600; }
/* ============================== Audit modal ============================== */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,20,16,.6); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.modal-backdrop.open { display: flex; }
.modal { background: var(--surface); border-radius: 18px; max-width: 520px; width: 100%; padding: 32px; max-height: 90vh; overflow-y: auto; }
.modal h2 { font-size: 22px; margin-bottom: 8px; }
.modal-close { position: absolute; top: 16px; right: 16px; padding: 8px; border-radius: 8px; color: var(--text-muted); }
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-wrap { position: relative; max-width: 520px; width: 100%; }
/* ============================== Audit results page ============================== */
.audit-loading { text-align: center; padding: 80px 20px; }
.audit-spinner { width: 48px; height: 48px; border: 3px solid var(--border); border-top-color: var(--brand); border-radius: 50%; margin: 0 auto 20px; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.audit-scores { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
@media (min-width: 600px) { .audit-scores { grid-template-columns: repeat(4,1fr); } }
.score-card { padding: 20px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); text-align: center; }
.score-circle { width: 86px; height: 86px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 800; font-family: 'JetBrains Mono', monospace; }
.score-good { background: rgba(54,126,78,.12); color: var(--brand); border: 3px solid var(--brand); }
.score-okay { background: rgba(185,131,40,.12); color: var(--gold); border: 3px solid var(--gold); }
.score-bad { background: rgba(192,57,43,.12); color: #c0392b; border: 3px solid #c0392b; }
.audit-section { margin-top: 40px; }
.check-list li { display: flex; align-items: start; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin-bottom: 12px; }
.check-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; }
.check-pass .check-icon { background: rgba(54,126,78,.15); color: var(--brand); }
.check-fail .check-icon { background: rgba(192,57,43,.15); color: #c0392b; }
.check-warn .check-icon { background: rgba(185,131,40,.15); color: var(--gold); }
.check-body { flex: 1; }
.check-name { font-weight: 700; font-size: 14px; }
.check-detail { margin-top: 4px; font-size: 13px; color: var(--text-muted); }
.recommend { padding: 28px; border-radius: 16px; background: linear-gradient(135deg, rgba(54,126,78,.08), rgba(185,131,40,.06)); border: 1px solid var(--border); margin-top: 40px; }
.recommend h3 { font-size: 20px; }
.recommend-list { margin-top: 16px; }
.recommend-item { display: flex; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.recommend-item:last-child { border-bottom: 0; }
.recommend-item-num { font-family: 'JetBrains Mono', monospace; font-weight: 800; color: var(--brand); }
.recommend-item-body h4 { font-size: 15px; }
.recommend-item-body p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ============================== Nav active state + responsive helpers ============================== */
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .md-hidden { display: none; }
  .hidden-mobile { display: inline-flex; }
}
.nav-link.active { color: var(--brand); border-bottom: 2px solid var(--brand); padding-bottom: 6px !important; }

/* ============================== Service detail pages ============================== */
.services-detail-list { display: grid; gap: 48px; }
.svc-detail { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 32px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); scroll-margin-top: 80px; }
@media (min-width: 900px) { .svc-detail { grid-template-columns: 320px 1fr; } }
.svc-detail-img { border-radius: 14px; overflow: hidden; aspect-ratio: 1/1; background: #0e120f; }
.svc-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-detail-body h2 { font-size: 26px; }

/* ============================== Case studies ============================== */
.case-list { display: grid; gap: 32px; }
.case-card { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 28px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
@media (min-width: 900px) { .case-card { grid-template-columns: 360px 1fr; } }
.case-img { border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; background: #0e120f; }
.case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-body h2 { font-size: 24px; }

/* ============================== Blog ============================== */
.blog-list { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .blog-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .blog-list { grid-template-columns: repeat(3, 1fr); } }
.blog-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); transition: all .25s ease; }
.blog-card:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow-md); }
.blog-img { aspect-ratio: 16/9; background: #0e120f; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-body h2 { font-size: 18px; line-height: 1.3; }
.blog-feature { aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #0e120f; }
.blog-feature img { width: 100%; height: 100%; object-fit: cover; }
.blog-content { font-size: 16px; line-height: 1.7; color: var(--text); }
.blog-content p { margin-bottom: 18px; }
.blog-content h2 { font-size: 24px; margin: 32px 0 12px; }
.blog-content h3 { font-size: 20px; margin: 28px 0 10px; }

/* ============================== About ============================== */
.about-block { margin-bottom: 40px; }
.about-block h2 { font-size: 22px; }
.about-block p { margin-top: 12px; font-size: 16px; color: var(--text-muted); line-height: 1.7; }

/* ============================== Contact grid + CTA band ============================== */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
.cta-band { background: linear-gradient(135deg, rgba(54,126,78,.10), rgba(185,131,40,.06)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ============================== Mobile-only: hide desktop nav, show menu toggle ============================== */
@media (max-width: 1023px) {
  .nav-desktop { display: none; }
  .hidden-mobile { display: none; }
  .md-hidden { display: inline-flex; }
}

/* ============================== Markdown content (services long_description, blog) ============================== */
.svc-long h2 { font-size: 18px; margin: 24px 0 10px; }
.svc-long h3 { font-size: 16px; margin: 18px 0 8px; color: var(--brand); }
.svc-long p { font-size: 15px; line-height: 1.7; color: var(--text-muted); margin-bottom: 14px; }
.svc-long ul.md-list { margin: 12px 0 18px; padding: 0; list-style: none; }
.svc-long ul.md-list li { position: relative; padding-left: 24px; margin-bottom: 10px; font-size: 14px; line-height: 1.6; color: var(--text); }
.svc-long ul.md-list li::before { content: "→"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.svc-long strong { color: var(--text); font-weight: 600; }

.blog-content ul.md-list { margin: 16px 0; padding-left: 20px; }
.blog-content ul.md-list li { margin-bottom: 8px; }
.blog-content strong { color: var(--text); }

/* OG default image fallback — also create a placeholder */

/* ============================== One-page specifics ============================== */
.hero-h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; font-weight: 800; letter-spacing: -.025em; }
.hero-h1 .accent { color: var(--gold); }
.testi-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.faq-section { background: var(--surface); border-top: 1px solid var(--border); }
.svc-grid { grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 700px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card { flex-direction: column; }
.svc-card-img { width: 100%; aspect-ratio: 16/9; }
.svc-card-body { padding: 22px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; gap: 18px; } }
.contact-list { list-style: none; padding: 0; margin-top: 24px; }
.contact-list li { padding: 12px 0; font-size: 15px; border-bottom: 1px solid var(--border); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list a { color: var(--brand); }
.contact-list a:hover { text-decoration: underline; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 80px; }

/* ============================== SERVICE CARD BUTTON ============================== */
.svc-card { display: flex; flex-direction: column; }
.svc-card-body { display: flex; flex-direction: column; flex: 1; }
.svc-card-body .svc-quote-btn { margin-top: auto; align-self: flex-start; padding: 10px 18px; font-size: 14px; }

/* ============================== QUOTE MODAL ============================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 23, 20, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
}
.modal-overlay.is-open { display: flex; }
.modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 18px;
  max-width: 720px;
  width: 100%;
  padding: 32px 28px 28px;
  box-shadow: 0 25px 80px rgba(0,0,0,.35);
  animation: modalIn .2s ease-out;
  margin: auto 0;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 12px; right: 14px;
  background: transparent; border: none;
  font-size: 32px; line-height: 1; cursor: pointer;
  color: #6b7280; padding: 6px 10px; border-radius: 8px;
}
.modal-close:hover { background: #f3f4f6; color: #111; }
.modal-header { margin-bottom: 20px; padding-right: 40px; }
.modal-header h2 { margin: 0 0 6px; font-size: 26px; color: #111; }
.modal-header .muted { margin: 0; font-size: 14px; }
body.modal-open { overflow: hidden; }
.req { color: #c0392b; }

@media (max-width: 640px) {
  .modal-overlay { padding: 12px 8px; }
  .modal-dialog { padding: 24px 18px 20px; border-radius: 14px; }
  .modal-header h2 { font-size: 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ============================== MINI-AUDIT SECTION ============================== */
.audit-section { background: linear-gradient(180deg, #f4f7f2 0%, #fff 100%); }
.audit-card { max-width: 900px; margin: 40px auto 0; background: #fff; border-radius: 20px; padding: 32px; box-shadow: 0 10px 40px rgba(0,0,0,.06); border: 1px solid var(--border); }
@media (max-width: 640px) { .audit-card { padding: 20px 16px; border-radius: 14px; } }
.audit-form { margin-bottom: 8px; }
.audit-input-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
@media (max-width: 640px) { .audit-input-row { grid-template-columns: 1fr; } }
.audit-url-input { font-size: 17px !important; padding: 16px 18px !important; }

/* Progress */
.audit-progress { margin-top: 24px; }
.audit-progress-bar { height: 8px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.audit-progress-fill { height: 100%; background: linear-gradient(90deg, #367e4e, #b98328); width: 0%; transition: width .4s ease; border-radius: 999px; }
.audit-progress-text { margin-top: 12px; text-align: center; color: var(--text-muted); font-size: 14px; }

.audit-error { margin-top: 20px; padding: 14px 16px; background: #fff3f2; border: 1px solid #fecaca; border-radius: 10px; color: #991b1b; font-size: 14px; }

/* Results */
.audit-results { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); }
.audit-score-hero { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin-bottom: 32px; }
@media (max-width: 640px) { .audit-score-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 16px; } }
.audit-score-circle {
  width: 140px; height: 140px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: conic-gradient(var(--brand) calc(var(--score, 0) * 1%), #e5e7eb 0%);
  position: relative;
  transition: background 1s ease;
}
.audit-score-circle::before {
  content: ''; position: absolute; inset: 10px; background: #fff; border-radius: 50%;
}
.audit-score-num, .audit-score-label { position: relative; z-index: 1; }
.audit-score-num { font-size: 44px; font-weight: 800; color: #111; line-height: 1; }
.audit-score-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.audit-score-circle.grade-poor { background: conic-gradient(#dc2626 calc(var(--score, 0) * 1%), #e5e7eb 0%); }
.audit-score-circle.grade-fair { background: conic-gradient(#eab308 calc(var(--score, 0) * 1%), #e5e7eb 0%); }
.audit-score-circle.grade-good { background: conic-gradient(#367e4e calc(var(--score, 0) * 1%), #e5e7eb 0%); }
.audit-score-circle.grade-great { background: conic-gradient(#059669 calc(var(--score, 0) * 1%), #e5e7eb 0%); }
.audit-score-domain { font-size: 14px; color: var(--text-muted); margin-bottom: 4px; word-break: break-all; }
.audit-score-grade { font-size: 28px; font-weight: 700; color: #111; margin-bottom: 6px; }
.audit-score-msg { font-size: 15px; color: var(--text-muted); }

/* Metric cards */
.audit-metrics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 32px; }
@media (max-width: 640px) { .audit-metrics-grid { grid-template-columns: 1fr; } }
.audit-metric { background: #fafbf9; border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.audit-metric-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.audit-metric-head h4 { margin: 0; font-size: 15px; color: #111; font-weight: 700; }
.audit-metric-score { font-size: 15px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #e5e7eb; color: #6b7280; }
.audit-metric-score.grade-poor { background: #fef2f2; color: #991b1b; }
.audit-metric-score.grade-fair { background: #fefce8; color: #854d0e; }
.audit-metric-score.grade-good { background: #f0fdf4; color: #14532d; }
.audit-metric-score.grade-great { background: #dcfce7; color: #14532d; }
.audit-metric-details { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.audit-check { display: flex; align-items: flex-start; gap: 8px; line-height: 1.4; }
.audit-check-icon { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; margin-top: 1px; }
.audit-check.pass .audit-check-icon { background: #dcfce7; color: #14532d; }
.audit-check.fail .audit-check-icon { background: #fee2e2; color: #991b1b; }
.audit-check.warn .audit-check-icon { background: #fef3c7; color: #854d0e; }
.audit-check-text { color: #374151; }
.audit-check-value { color: var(--text-muted); font-size: 13px; }

/* CTA block */
.audit-cta-block { background: linear-gradient(135deg, #367e4e 0%, #2a6a3f 100%); color: #fff; border-radius: 14px; padding: 28px 24px; text-align: center; }
.audit-cta-block h3 { color: #fff; margin: 0 0 10px; font-size: 22px; }
.audit-cta-block .muted { color: rgba(255,255,255,.85); margin: 0 auto 20px; max-width: 560px; font-size: 14px; }

/* =========================================================
   SERVICE PAGES (services/[slug]/)
   ========================================================= */

/* Breadcrumb */
.breadcrumb { background: #f5f7f4; border-bottom: 1px solid var(--border); padding: 14px 0; font-size: 14px; }
.breadcrumb a { color: var(--brand); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .crumb-sep { color: var(--text-muted); margin: 0 8px; }
.breadcrumb .crumb-current { color: var(--text-muted); }

/* Service hero */
.svc-hero { padding-top: 40px; padding-bottom: 40px; }
@media (min-width: 900px) { .svc-hero { padding-top: 64px; padding-bottom: 64px; } }
.svc-hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 900px) { .svc-hero-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.svc-hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.1; letter-spacing: -0.02em; }
.svc-hero .lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--text-muted); line-height: 1.6; max-width: 560px; }
.svc-hero .hero-ctas { flex-direction: row; align-items: flex-start; justify-content: flex-start; margin-top: 24px; flex-wrap: wrap; }
.svc-hero-visual { position: relative; }
.svc-hero-visual img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 20px 60px rgba(54,126,78,.12); border: 1px solid var(--border); }

/* Problem grid (3 items) */
.problem-section { background: #fff; }
.problem-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .problem-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.problem-item { background: #fafbf9; border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.problem-item h3 { font-size: 18px; margin: 0 0 10px; color: #1a1a1a; }
.problem-item p { color: var(--text-muted); margin: 0; line-height: 1.6; font-size: 15px; }
.problem-item .problem-icon { width: 40px; height: 40px; border-radius: 10px; background: #fef2f2; color: #dc2626; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 20px; font-weight: 700; }

/* Included grid (6 items) */
.included-section { background: #f5f7f4; }
.included-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .included-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1000px) { .included-grid { grid-template-columns: repeat(3, 1fr); } }
.included-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px; transition: transform .2s ease, box-shadow .2s ease; }
.included-item:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.06); }
.included-item .check-icon { width: 32px; height: 32px; border-radius: 50%; background: #dcfce7; color: var(--brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; font-weight: 700; font-size: 16px; }
.included-item h3 { font-size: 17px; margin: 0 0 8px; }
.included-item p { color: var(--text-muted); margin: 0; line-height: 1.55; font-size: 14px; }

/* Mid-page CTA banner */
.mid-cta { background: linear-gradient(135deg, #367e4e 0%, #2a6a3f 100%); color: #fff; padding: 48px 0; text-align: center; }
.mid-cta h2 { color: #fff; margin: 0 0 20px; font-size: clamp(22px, 3vw, 30px); max-width: 800px; margin-inline: auto; }
.mid-cta .btn-gold { display: inline-flex; }

/* Process grid (4 steps) */
.process-section { background: #fff; }
.process-grid { display: grid; grid-template-columns: 1fr; gap: 20px; counter-reset: step; }
@media (min-width: 700px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-step { background: #fafbf9; border: 1px solid var(--border); border-radius: 12px; padding: 24px; position: relative; }
.process-step .step-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 12px; font-size: 15px; }
.process-step h3 { font-size: 17px; margin: 0 0 8px; }
.process-step p { color: var(--text-muted); margin: 0; line-height: 1.55; font-size: 14px; }

/* Case study card */
.case-section { background: #f5f7f4; }
.case-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .case-card { grid-template-columns: 1.4fr 1fr; } }
.case-body { padding: 32px; }
.case-body h3 { font-size: clamp(20px, 2.4vw, 26px); margin: 0; }
.case-body p { color: var(--text-muted); line-height: 1.7; margin: 12px 0 0; }
.case-metrics { background: linear-gradient(135deg, #367e4e 0%, #2a6a3f 100%); color: #fff; padding: 32px; display: grid; gap: 20px; align-content: center; }
.case-metric { display: flex; flex-direction: column; }
.case-metric-value { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: #ffd57a; line-height: 1; }
.case-metric-label { font-size: 13px; opacity: .9; margin-top: 6px; text-transform: uppercase; letter-spacing: .1em; }

/* FAQ (page-scoped, similar to homepage but standalone) */
.faq-section { background: #fff; }
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 24px; color: var(--brand); font-weight: 400; flex-shrink: 0; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 24px 20px; color: var(--text-muted); line-height: 1.7; }

/* Related services */
.related-section { background: #f5f7f4; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 700px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.related-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px; text-decoration: none; color: inherit; display: block; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.related-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.08); border-color: var(--brand); }
.related-card h3 { font-size: 18px; margin: 0 0 8px; color: #1a1a1a; }
.related-card p { color: var(--text-muted); margin: 0 0 12px; line-height: 1.55; font-size: 14px; }
.related-card .related-arrow { color: var(--brand); font-weight: 600; font-size: 14px; }

/* Final CTA band */
.cta-band { background: #fff; padding: 64px 0; border-top: 1px solid var(--border); }
.cta-band .hero-ctas { flex-direction: row; align-items: center; flex-wrap: wrap; }

/* Sticky mobile CTA bar */
.sticky-cta-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border); padding: 12px 16px; gap: 10px; z-index: 900; box-shadow: 0 -4px 20px rgba(0,0,0,.08); }
.sticky-cta-bar .btn { flex: 1; justify-content: center; padding: 12px 16px; font-size: 15px; }
@media (max-width: 767px) { .sticky-cta-bar { display: flex; } body { padding-bottom: 72px; } }

/* Services dropdown menu */
.nav-desktop .has-dropdown { position: relative; }
.nav-desktop .dropdown-menu { position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 8px; min-width: 260px; box-shadow: 0 20px 40px rgba(0,0,0,.08); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s ease; z-index: 100; }
.nav-desktop .has-dropdown:hover .dropdown-menu,
.nav-desktop .has-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-desktop .dropdown-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); font-size: 14px; font-weight: 500; }
.nav-desktop .dropdown-menu a:hover { background: #f5f7f4; color: var(--brand); }

/* Service card actions (homepage — Learn more + Request Quote) */
.svc-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.svc-card-link { color: var(--brand); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.svc-card-link:hover { text-decoration: underline; }
.svc-card-actions .btn { flex-shrink: 0; }
