/*
Theme Name: Lead Response Labs
Theme URI: https://leadresponselabs.com
Author: Lead Response Labs
Description: Lightweight, conversion-focused WordPress theme for Lead Response Labs — local lead generation, conversion-focused websites, and lead response systems. Built-in attributed lead capture with instant auto-reply and HubSpot sync.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: leadresponselabs
*/

/* ==========================================================================
   1. Design tokens (derived from the logo)
   ========================================================================== */
:root {
  --navy: #0b2a5b;          /* "Lead" / "Labs" wordmark */
  --navy-deep: #071c3d;
  --blue: #1f6bff;          /* "Response" wordmark */
  --blue-light: #4d8dff;
  --blue-soft: #e8f0ff;
  --orange: #f7931e;        /* arrow */
  --orange-deep: #e4781a;
  --ink: #141a20;           /* logo background */
  --ink-2: #1b2430;
  --ink-3: #243040;
  --text: #1f2933;
  --muted: #5b6b7b;
  --line: #dde4ec;
  --surface: #ffffff;
  --surface-2: #f4f7fb;
  --success: #1f9d55;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(11, 42, 91, 0.10);
  --shadow-lg: 0 24px 60px rgba(7, 28, 61, 0.25);
  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --container: 1160px;
  --gutter: 20px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--orange); color: #000; padding: .5rem 1rem; z-index: 1000; }
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--alt { background: var(--surface-2); }
.section--dark { background: var(--ink); color: #d6dee8; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--navy { background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, #103a7a); color: #e6eefc; }
.section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: .75rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.section--dark .lead, .section--navy .lead { color: #b9c6d8; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: .9rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none !important; line-height: 1.1;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--orange); color: #111; box-shadow: 0 8px 24px rgba(247,147,30,.35); }
.btn--primary:hover { background: #ffa339; }
.btn--secondary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px rgba(31,107,255,.3); }
.btn--secondary:hover { background: var(--blue-light); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { border-color: #fff; }
.btn--ghost-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--lg { font-size: 1.08rem; padding: 1.05rem 1.9rem; }
.btn--block { width: 100%; }

/* ==========================================================================
   4. Header / navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.site-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none !important; }
.site-logo img { height: 48px; width: auto; }
.site-logo__mark { height: 48px; width: 48px; border-radius: 10px; }
.site-logo__word { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; color: #fff; line-height: 1; white-space: nowrap; }
.site-logo__word .is-blue { color: var(--blue-light); }
@media (max-width: 400px) { .site-logo__word { font-size: 1.05rem; } }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; }
.site-nav a { color: #d6dee8; font-weight: 600; font-size: .95rem; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: #fff; text-decoration: none; }
.site-nav .btn { padding: .65rem 1.2rem; font-size: .92rem; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: .5rem; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink-2); padding: 1rem var(--gutter) 1.5rem; flex-direction: column; align-items: stretch; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: .2rem; }
  .site-nav a { display: block; padding: .7rem 0; font-size: 1.05rem; }
  .site-nav .btn { margin-top: .5rem; }
}

/* ==========================================================================
   5. Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(31,107,255,.28), transparent 60%),
              radial-gradient(800px 500px at -10% 110%, rgba(247,147,30,.18), transparent 60%),
              var(--ink);
  color: #fff;
  padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px);
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { color: #c3cedc; font-size: 1.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero__note { margin-top: 1rem; font-size: .9rem; color: #8fa0b5; }
.hero__visual { position: relative; }
.hero__card {
  background: linear-gradient(160deg, var(--ink-2), var(--ink-3));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-lg);
}
.hero__card h3 { color: #fff; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; color: #9fb3cc; }
.lead-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.lead-timeline li { display: grid; grid-template-columns: 64px 1fr; gap: .8rem; align-items: start; padding: .75rem .9rem; background: rgba(255,255,255,.04); border-radius: var(--radius-sm); border-left: 3px solid var(--blue); }
.lead-timeline li.is-hot { border-left-color: var(--orange); }
.lead-timeline time { font-family: var(--font-head); font-weight: 800; color: var(--orange); font-size: .95rem; }
.lead-timeline strong { display: block; color: #fff; font-size: .95rem; }
.lead-timeline span { color: #9fb3cc; font-size: .86rem; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   6. Trust bar / stats
   ========================================================================== */
.trust { background: var(--navy-deep); color: #fff; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.4rem 0; }
.trust__item { display: flex; gap: .7rem; align-items: center; font-weight: 600; font-size: .95rem; }
.trust__item svg { width: 22px; height: 22px; flex: none; color: var(--orange); }
@media (max-width: 860px) { .trust__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   7. Cards / grids
   ========================================================================== */
.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); position: relative;
}
.card__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: 1rem; }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); margin-bottom: .6rem; }
.card ul { color: var(--text); margin: .6rem 0 0; padding-left: 1.1em; font-size: .95rem; }
.card ul li { margin: .25rem 0; }
.card--accent { border-top: 4px solid var(--orange); }
.card--soon { opacity: .9; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; background: var(--blue-soft); color: var(--navy); margin-bottom: .6rem; }
.badge--orange { background: #fff1e0; color: #a65300; }

.section--dark .card, .section--navy .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); box-shadow: none; }
.section--dark .card h3, .section--navy .card h3 { color: #fff; }
.section--dark .card p, .section--navy .card p { color: #b9c6d8; }
.section--dark .card__icon, .section--navy .card__icon { background: rgba(31,107,255,.2); color: #8db4ff; }

/* ==========================================================================
   8. Problem / split sections
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2rem; } }
.checklist { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .7rem; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: .6rem; align-items: start; }
.checklist svg { width: 22px; height: 22px; color: var(--success); margin-top: .15rem; }
.checklist--x svg { color: #d64545; }
.quote { font-size: 1.1rem; border-left: 4px solid var(--orange); padding: .4rem 0 .4rem 1rem; color: var(--navy); font-weight: 600; margin: 1.2rem 0; }
.quote cite { display: block; font-size: .85rem; color: var(--muted); font-weight: 400; font-style: normal; margin-top: .4rem; }

/* ==========================================================================
   9. Steps (How it works)
   ========================================================================== */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.step { position: relative; padding: 1.5rem 1.4rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 1.2rem; width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: #111; font-family: var(--font-head); font-weight: 800; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(247,147,30,.4); }
.step h3 { margin-top: .4rem; font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
.step small { display: block; margin-top: .6rem; color: var(--blue); font-weight: 600; font-size: .82rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ==========================================================================
   10. CTA band
   ========================================================================== */
.cta-band { background: linear-gradient(120deg, var(--navy-deep), var(--navy) 55%, var(--blue)); color: #fff; }
.cta-band__inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center; padding: clamp(40px, 6vw, 72px) 0; }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: #d6e2f8; margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: flex-end; }
@media (max-width: 860px) { .cta-band__inner { grid-template-columns: 1fr; } .cta-band__actions { justify-content: flex-start; } }

/* ==========================================================================
   11. Lead form
   ========================================================================== */
.lead-form-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.lead-form-wrap h3 { margin-bottom: .3rem; }
.lead-form-wrap .form-intro { color: var(--muted); font-size: .95rem; margin-bottom: 1.2rem; }
.lead-form { display: grid; gap: .9rem; }
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 560px) { .lead-form .row { grid-template-columns: 1fr; } }
.lead-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; color: var(--navy); }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,107,255,.15); }
.lead-form textarea { min-height: 110px; resize: vertical; }
.lead-form .hp { position: absolute; left: -5000px; }
.lead-form .consent { font-size: .82rem; color: var(--muted); }
.lead-form .btn { margin-top: .3rem; }
.form-notice { padding: .9rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .95rem; }
.form-notice--error { background: #fdecec; color: #8a1f1f; border: 1px solid #f3bcbc; }
.form-notice--success { background: #e7f7ee; color: #14532d; border: 1px solid #bfe7cf; }
.contact-aside h3 { margin-bottom: .4rem; }
.contact-aside p { color: var(--muted); }
.contact-aside .contact-line { display: flex; gap: .6rem; align-items: center; font-weight: 600; color: var(--navy); margin: .5rem 0; }
.contact-aside .contact-line svg { width: 20px; height: 20px; color: var(--orange); }

/* ==========================================================================
   12. Page header (inner pages)
   ========================================================================== */
.page-hero { background: radial-gradient(900px 400px at 85% 0%, rgba(31,107,255,.25), transparent 60%), var(--ink); color: #fff; padding: clamp(48px, 7vw, 88px) 0; }
.page-hero h1 { color: #fff; margin-bottom: .6rem; }
.page-hero .lead { color: #c3cedc; }

/* ==========================================================================
   13. Blog
   ========================================================================== */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 960px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-list { grid-template-columns: 1fr; } }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card__body { padding: 1.2rem 1.3rem 1.4rem; }
.post-card__meta { font-size: .82rem; color: var(--muted); margin-bottom: .4rem; }
.post-card h3 { font-size: 1.1rem; }
.post-card h3 a { color: var(--navy); }
.entry-content { max-width: 760px; margin: 0 auto; font-size: 1.08rem; }
.entry-content h2, .entry-content h3 { margin-top: 1.8em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote { border-left: 4px solid var(--orange); margin: 1.5em 0; padding: .2em 0 .2em 1.2em; color: var(--navy); }
.entry-meta { color: var(--muted); font-size: .9rem; }
.page-content { max-width: 820px; margin: 0 auto; }
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2rem; }
.pagination .page-numbers { padding: .5rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--navy); }
.pagination .current { background: var(--navy); color: #fff; }

/* WordPress core alignment classes */
.alignwide { max-width: var(--container); margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-image img { height: auto; }
figure { margin: 1.5em 0; }
figcaption { font-size: .85rem; color: var(--muted); }

/* ==========================================================================
   14. Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #9fb3cc; padding: 3.5rem 0 2rem; border-top: 1px solid rgba(255,255,255,.06); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .4rem 0; }
.site-footer a { color: #c3cedc; }
.site-footer a:hover { color: #fff; }
.footer__logo { margin-bottom: 1rem; }
.footer__logo .site-logo__mark { height: 44px; width: 44px; }
.footer__tag { font-size: .95rem; max-width: 36ch; }
.footer__bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; font-size: .85rem; color: #7f91a8; }

/* ==========================================================================
   15. Utilities
   ========================================================================== */
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-bottom: .7rem; background: var(--surface); }
.faq summary { font-weight: 700; color: var(--navy); cursor: pointer; font-family: var(--font-head); }
.faq details p { margin: .7rem 0 0; color: var(--muted); }
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
@media (max-width: 760px) { .founders { grid-template-columns: 1fr; } }
.founder { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.founder__role { color: var(--orange); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .4rem; }
.founder h3 { margin-bottom: .2rem; }
.founder p { color: var(--muted); }
.area-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.area-list li { background: var(--blue-soft); color: var(--navy); font-weight: 600; font-size: .85rem; padding: .35rem .75rem; border-radius: 999px; }
