/*
Theme Name: HM Consulting
Theme URI: https://hammadmahmood.com
Author: Hammad Mahmood
Description: Minimal, founder-led theme for B2B SaaS Google Ads and LinkedIn Ads consulting.
Version: 1.12.2
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: hm-consulting
*/

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #16161a;
  --muted: #5d5d66;
  --line: #e6e3dc;
  --accent: #2f5d50;
  --accent-ink: #ffffff;
  --accent-soft: rgba(47, 93, 80, .10);
  --create: #b4683a;
  --capture: #2f5d50;
  --bad: #b4453a;
  --bad-soft: rgba(180, 69, 58, .08);
  --track: #efece5;
  --arch: #ead8c8;
  --crm: #2563eb;
  --max: 1080px;
  --narrow: 680px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --surface: #1a1a1d;
    --ink: #f1efea;
    --muted: #a3a2a8;
    --line: #2b2b30;
    --accent: #7fb8a6;
    --accent-ink: #0f1513;
    --accent-soft: rgba(127, 184, 166, .14);
    --create: #e09a6c;
    --capture: #7fb8a6;
    --bad: #e08070;
    --bad-soft: rgba(224, 128, 112, .10);
    --track: #26262b;
    --arch: #3a2e27;
    --crm: #7aa7ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }

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

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 18px/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { flex: none; display: block; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.nav .btn { color: var(--accent-ink); }

/* Buttons */
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 12px 20px; border-radius: 6px; text-decoration: none; font-weight: 600;
  font-size: 15px; border: 0; cursor: pointer; font-family: inherit;
}
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }

/* Sections */
section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 20px; }
h1 { font-size: clamp(40px, 6vw, 64px); }
h2 { font-size: clamp(30px, 4vw, 42px); }
h3 { font-size: 22px; }
.lead { font-size: 20px; color: var(--muted); margin: 0 0 32px; }

.hero { padding: 120px 0 104px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.card p { color: var(--muted); margin: 0; }

.problems li { margin-bottom: 10px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
.steps li::before {
  content: counter(step, decimal-leading-zero); font: 500 22px/1.2 var(--serif); color: var(--accent);
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }

.about { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .about { grid-template-columns: 280px 1fr; } }
.about-photo {
  aspect-ratio: 4/5; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.hero h1 { max-width: 900px; }
.hero h1 em { font-style: italic; color: var(--accent); white-space: nowrap; }
.hero .lead { max-width: 680px; }
.trust { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--muted); font-size: 15px; }
.trust li::before { content: "✓"; color: var(--accent); font-weight: 600; margin-right: 8px; }
.hero .clients { margin: 28px 0 0; font-size: 15px; color: var(--ink); }
.hero .clients span { color: var(--muted); margin-right: 6px; }

.split { display: grid; gap: 40px; }
@media (min-width: 880px) { .split { grid-template-columns: 5fr 7fr; gap: 64px; } }
.pains { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.pains li { color: var(--muted); padding-left: 20px; border-left: 2px solid var(--line); }
.pains strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

/* Hero report */
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.report {
  margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -12px rgba(0,0,0,.12);
}
.report-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.report-title { font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--capture); box-shadow: 0 0 0 4px var(--accent-soft); }
.report-tag { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.report-label { font-size: 12px; color: var(--muted); margin: 0 0 8px; text-transform: uppercase; letter-spacing: .06em; }
.spark { width: 100%; height: 90px; display: block; margin-bottom: 22px; overflow: visible; }
.spark-area { fill: var(--accent-soft); }
.spark-line { fill: none; stroke: var(--capture); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark-dot { fill: var(--capture); }
.bars { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 10px; font-size: 13px; }
.bar-name { color: var(--muted); }
.bar { height: 10px; background: var(--track); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; }
i.create { background: var(--create); }
i.capture { background: var(--capture); }
.legend { display: flex; gap: 18px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Platforms strip */
.platforms { padding: 32px 0; }
.platforms .wrap { display: flex; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.platforms p { margin: 0; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.platforms ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.platforms li { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.platforms svg { width: 22px; height: 22px; flex: none; }

/* Client logos */
.clients .wrap { flex-direction: column; align-items: stretch; gap: 20px; }
.clients ul { align-items: center; justify-content: space-between; gap: 24px 28px; }
@media (max-width: 720px) { .clients ul { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; gap: 28px 16px; } }
.clients img { display: block; width: auto; filter: brightness(0); opacity: .5; transition: opacity .2s; }
.clients li:hover img { opacity: .85; }
.clients .logo-docebo { height: 24px; }
.clients .logo-refinelabs { height: 19px; }
.clients .logo-aisera { height: 30px; width: 135px; object-fit: cover; object-position: top; }
.clients .logo-audiense { height: 26px; }
.clients .logo-stockiq { height: 32px; }
.clients .logo-safetyplus { height: 26px; width: 137px; object-fit: cover; object-position: top; }
.clients .logo-text { font: 700 21px/1 var(--sans); letter-spacing: -0.03em; color: #000; opacity: .5; transition: opacity .2s; }
.clients li:hover .logo-text { opacity: .85; }
@media (prefers-color-scheme: dark) {
  .clients img { filter: brightness(0) invert(1); opacity: .6; }
  .clients .logo-text { color: #fff; opacity: .6; }
  .clients li:hover img, .clients li:hover .logo-text { opacity: .95; }
}

/* Problem graphic */
.mismatch { display: grid; gap: 12px; margin-top: 28px; max-width: 360px; }
.chip { border-radius: 10px; padding: 14px 16px; border: 1px solid var(--line); background: var(--surface); }
.chip span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.chip strong { font-weight: 600; }
.chip.good strong { color: var(--capture); }
.chip.bad { background: var(--bad-soft); border-color: transparent; }
.chip.bad strong { color: var(--bad); font-family: var(--serif); font-size: 19px; font-weight: 500; }
.chip.bad { margin-left: 32px; }

/* Approach flow */
.flow-wrap { margin: 8px 0 40px; }
.flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; align-items: stretch; }
@media (min-width: 860px) { .flow { grid-template-columns: 1fr 48px 1fr 48px 1fr; } }
.flow-step { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--capture); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 2px; }
.flow-step.create { border-top-color: var(--create); }
.flow-step.create .card-tag { color: var(--create); }
.flow-step.crm { border-top-color: var(--crm); }
.flow-step.crm .card-tag { color: var(--crm); }
.flow-step strong { font: 500 22px/1.2 var(--serif); }
.flow-step small { color: var(--muted); font-size: 13px; }
.flow-step p { margin: 10px 0 0; font-size: 15px; }
.flow-arrow { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.flow-arrow svg { width: 40px; height: 16px; }
@media (max-width: 859px) { .flow-arrow svg { transform: rotate(90deg); } }
.flow-loop { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 12px 16px; border: 1px dashed var(--line); border-radius: 10px; font-size: 14px; color: var(--muted); }
.flow-loop svg { width: 20px; height: 20px; flex: none; color: var(--accent); }

/* Tracking + funnel */
.tracking { margin-top: 48px; display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .tracking { grid-template-columns: 1fr 1fr; gap: 56px; } }
.tracking h3 { margin-bottom: 8px; }
.tracking p { color: var(--muted); margin: 0; }
.funnel { margin: 0; display: grid; gap: 8px; justify-items: center; }
.f-row { width: var(--w); height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.f-row.dim { background: var(--track); color: var(--muted); }
.f-row.hl { background: var(--accent); color: var(--accent-ink); }
.funnel figcaption { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 10px; font-size: 13px; color: var(--muted); }
.funnel figcaption i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.funnel figcaption i.dim { background: var(--track); border: 1px solid var(--line); }
.funnel figcaption i.hl { background: var(--accent); }

/* Reason icons */
.reasons .icon { display: inline-flex; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.reasons .icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reasons h3 { margin-top: 14px; }

/* Steps timeline */
.steps li { position: relative; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 34px; bottom: -22px; width: 1px; background: var(--line); }

/* About experience */
.about-lead { font-size: 19px; color: var(--ink); }
.about-stats { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.about-stats li { border-top: 2px solid var(--accent); padding-top: 12px; }
.about-stats strong { display: block; font: 500 32px/1.1 var(--serif); color: var(--accent); }
.about-stats span { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
@media (max-width: 519px) {
  .about-stats { grid-template-columns: 1fr; gap: 12px; }
  .about-stats li { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; padding-top: 10px; }
  .about-stats strong { font-size: 26px; }
  .about-stats span { margin: 0; }
}
.about-sides { display: grid; gap: 20px; margin: 0 0 24px; }
@media (min-width: 640px) { .about-sides { grid-template-columns: 1fr 1fr; } }
.about-sides > div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.about-sides p:last-child { margin: 0; color: var(--muted); font-size: 15px; }
.about-tools { font-size: 14px; color: var(--muted); }
.about-tools span { font-weight: 600; color: var(--ink); margin-right: 4px; }

/* About monogram */
.monogram { font: 500 88px/1 var(--serif); color: var(--accent); letter-spacing: -0.04em; }
.about-photo { background: var(--accent-soft); border-color: transparent; align-items: flex-end; }
.about-photo img { object-fit: cover; object-position: center bottom; }

/* Hero photo */
.hero { padding: 72px 0; }
.hero h1 { font-size: clamp(40px, 5.2vw, 58px); }
.hero-grid { align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; } }
.hero-photo { position: relative; width: 100%; max-width: 470px; margin: 0 auto; aspect-ratio: 495 / 538; }
.hero-arch {
  position: absolute; left: 0; right: 0; bottom: 0; height: 80%;
  background: var(--arch); border-radius: 240px 240px 24px 24px;
}
.hero-photo img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; clip-path: inset(0 round 0 0 24px 24px); }
.float {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px 9px 12px; font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 28px -10px rgba(0,0,0,.25);
}
.float svg { width: 20px; height: 20px; flex: none; }
.float.f1 { bottom: -3%; left: 50%; transform: translateX(-50%); }
.float.f2 { bottom: 7%; right: -3%; }
.float.f3 { top: 56%; left: -7%; }
.float.f4 { top: 56%; right: -3%; }
.float.f5 { bottom: 7%; left: -2%; }
@media (max-width: 959px) {
  .hero-photo { max-width: 360px; }
  .float { font-size: 13px; padding: 7px 12px 7px 9px; }
  .float.f3 { left: 0; }
  .float.f2, .float.f4 { right: 0; }
  .float.f1 { bottom: -3%; }
  .float.f2 { bottom: 13%; }
  .float.f3, .float.f4 { top: 50%; }
  .float.f5 { left: 0; bottom: 13%; }
}

/* Hero byline */
.byline { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-size: 14px; color: var(--muted); }
.byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 15%; background: var(--accent-soft); }
.byline strong { display: block; color: var(--ink); font-size: 15px; }

.card-tag, .card .card-tag { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 10px; }
.card h3 { margin-bottom: 10px; }

.cases { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.case .metric { font-size: 30px; color: var(--ink); }
.case > p { color: var(--muted); }
.case blockquote { margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.case blockquote p { font-family: var(--serif); font-size: 18px; margin: 0 0 8px; color: var(--ink); }
.case cite { font-style: normal; font-size: 14px; color: var(--muted); }

.reasons { display: grid; gap: 36px 48px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 16px; }
.reasons .num { font-size: 13px; color: var(--accent); font-weight: 600; }
.reasons h3 { margin: 6px 0 8px; }
.reasons p { margin: 0; color: var(--muted); }

.price-card { display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--accent); }
.price { font: 500 36px/1.1 var(--serif); margin: 6px 0 4px; color: var(--ink) !important; }
.price-note { font-size: 14px; margin: 0 0 20px !important; }
.price-card ul { padding-left: 18px; margin: 0; color: var(--muted); display: grid; gap: 6px; }
.center { text-align: center; margin-top: 40px; }

#faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
#faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
#faq details[open] summary::after { content: "–"; }
#faq details p { color: var(--muted); margin: 12px 0 0; }

.checks { border: 0; padding: 0; margin: 0; display: flex; gap: 24px; flex-wrap: wrap; }
.checks legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.contact-form .checks label { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 15px; }
.contact-form .checks input { width: auto; }

/* Form */
.contact-form { display: grid; gap: 16px; margin-top: 32px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.contact-form input, .contact-form textarea, .contact-form select {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 6px; padding: 12px 14px; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-form .row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; border-radius: 6px; margin-top: 24px; border: 1px solid var(--line); background: var(--surface); }
.notice.ok { border-color: var(--accent); }

/* Footer */
.site-footer { padding: 40px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-links { display: flex; align-items: center; gap: 20px; }
.footer-links .social { display: inline-flex; color: var(--muted); }
.footer-links .social:hover { color: #0a66c2; }

/* Generic content (blog/pages) */
.content { padding: 72px 0; }
.content .entry + .entry { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--line); }

@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  section { padding: 72px 0; }
  .hero { padding: 88px 0 72px; }
}
