/*
Theme Name: The Pitch Kraft
Theme URI: https://thepitchkraft.com
Author: The Pitch Kraft
Description: A light, corporate-blue one-page theme for The Pitch Kraft, a B2B marketing and lead generation agency. Includes a working contact form, editable statistics and contact details in the Customizer.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thepitchkraft
*/

/* ==========================================================
   THE PITCH KRAFT: single-page website
   Theme: Corporate Blue (light only)
   Change the palette in the :root block below.
   ========================================================== */
:root {
  --white: #FFFFFF;
  --bg-alt: #F4F8FC;
  --bg-soft: #E8F1FB;
  --primary: #1F5FBF;
  --primary-dark: #174E9F;
  --navy: #0B2545;
  --text: #1F2937;
  --muted: #5B6B7F;
  --border: #D9E2EC;
  --field-border: #AEBDD0;
  --error: #B42318;
  --header-h: 72px;

  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--navy);
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 8px);
}
*, *::before, *::after { box-sizing: inherit; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--white);
  z-index: 10;
}
img, svg { max-width: 100%; }
h1, h2, h3 { color: var(--navy); font-weight: 600; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.3vw, 3.2rem); line-height: 1.15; letter-spacing: -0.012em; }
h2 { font-size: clamp(1.65rem, 2.9vw, 2.3rem); line-height: 1.22; letter-spacing: -0.008em; }
h3 { font-size: 1.125rem; line-height: 1.35; }
p { margin: 0; }
a { color: var(--primary); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1140px, 100% - 48px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 108px) 0; }
.alt { background: var(--bg-alt); }
.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head p { margin-top: 16px; color: var(--muted); }
.lead { color: var(--muted); max-width: 62ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  border-radius: 8px; border: 1.5px solid var(--primary);
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline { background: #fff; color: var(--primary); }
.btn-outline:hover { background: var(--bg-soft); }
.btn-small { min-height: 44px; padding: 10px 20px; font-size: .95rem; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--white); border-bottom: 1px solid var(--border);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
.logo svg { flex: none; }
.nav-list { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--text); text-decoration: none; font-size: .975rem; font-weight: 500; padding: 8px 0; }
.nav-list a:hover { color: var(--primary); }
.nav-cta-mobile { display: none; }
.header-cta { display: inline-flex; }
.menu-btn { display: none; background: none; border: 1.5px solid var(--border); border-radius: 8px; width: 46px; height: 46px; cursor: pointer; color: var(--navy); align-items: center; justify-content: center; }

/* Hero */
.hero { padding: clamp(48px, 7vw, 88px) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero p.lead { margin-top: 22px; font-size: 1.175rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 20px 44px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--border); }
.hero-stats strong { display: block; font-size: 1.85rem; line-height: 1.1; color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-stats span { color: var(--muted); font-size: .92rem; }
.funnel-panel { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 14px; padding: clamp(16px, 2.4vw, 28px); margin: 0; }
.funnel-panel svg { display: block; width: 100%; height: auto; }
.funnel-panel figcaption { margin-top: 14px; font-size: .92rem; color: var(--muted); }
.stage { opacity: 0; animation: stageIn .7s ease forwards; }
.stage:nth-of-type(1) { animation-delay: .15s; }
.stage:nth-of-type(2) { animation-delay: .55s; }
.stage:nth-of-type(3) { animation-delay: .95s; }
.stage:nth-of-type(4) { animation-delay: 1.35s; }
@keyframes stageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero-end { height: clamp(56px, 8vw, 96px); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-copy p + p { margin-top: 18px; }
.about-copy .note { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--navy); font-weight: 500; }
.statements { display: grid; gap: 0; border-left: 3px solid var(--primary); background: #fff; border-radius: 0 10px 10px 0; box-shadow: 0 1px 2px rgba(11,37,69,.06); }
.statements div { padding: 22px 26px; }
.statements div + div { border-top: 1px solid var(--border); }
.statements h3 { margin-bottom: 6px; }
.statements p { color: var(--muted); font-size: 1rem; }

/* What we do */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); }
.pillar { padding: 4px 36px; }
.pillar:first-child { padding-left: 0; }
.pillar:last-child { padding-right: 0; }
.pillar + .pillar { border-left: 1px solid var(--border); }
.pillar .ico { margin-bottom: 18px; }
.pillar h3 { margin-bottom: 8px; font-size: 1.25rem; }
.pillar p { color: var(--muted); font-size: 1rem; }
.ico { width: 46px; height: 46px; border-radius: 10px; background: var(--bg-soft); color: var(--primary); display: grid; place-items: center; }
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 26px 24px 28px; transition: border-color .18s ease, box-shadow .18s ease; }
.service:hover { border-color: #9DBBE6; box-shadow: 0 6px 18px rgba(11,37,69,.08); }
.service .ico { margin-bottom: 18px; }
.service h3 { margin-bottom: 8px; }
.service p { color: var(--muted); font-size: .975rem; line-height: 1.6; }
.services-close { margin-top: 36px; color: var(--navy); font-weight: 500; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.steps li { position: relative; padding-top: 58px; }
.steps li::before { content: attr(data-n); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 600; display: grid; place-items: center; }
.steps li::after { content: ""; position: absolute; top: 19px; left: 52px; right: -28px; height: 2px; background: var(--border); }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .975rem; line-height: 1.6; }

/* Industries */
.chips { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; margin: 0; padding: 0; }
.chips li { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 12px 24px; color: var(--navy); font-weight: 500; }

/* Why us */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 44px; }
.why { display: grid; grid-template-columns: 30px 1fr; gap: 14px; }
.why .tick { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; margin-top: 2px; }
.why .tick svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.why h3 { margin-bottom: 6px; }
.why p { color: var(--muted); font-size: .975rem; line-height: 1.6; }

/* Results */
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.result { background: #fff; border: 1px solid #C9D9EE; border-radius: 10px; padding: 28px 28px 30px; }
.result .num { display: block; font-size: clamp(2.3rem, 4vw, 3rem); line-height: 1.05; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.result h3 { margin-top: 10px; font-size: 1.05rem; color: var(--primary); }
.result p { margin-top: 6px; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.fine { margin-top: 26px; color: var(--muted); font-size: .95rem; }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; font-weight: 600; color: var(--navy); font-size: 1.075rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-soft); color: var(--primary); display: grid; place-items: center; font-size: 1.35rem; font-weight: 500; line-height: 1; transition: background-color .18s ease, color .18s ease; }
.faq details[open] summary::after { content: "\2212"; background: var(--primary); color: #fff; }
.faq .answer { padding: 0 56px 24px 4px; color: var(--muted); }

/* CTA band */
.cta-band { padding: clamp(52px, 7vw, 80px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner p { margin-top: 10px; color: var(--muted); max-width: 52ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-copy p { color: var(--muted); margin-top: 16px; }
.expect { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.expect li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--text); }
.expect svg { width: 22px; height: 22px; fill: none; stroke: var(--primary); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-top: 3px; }
.details { margin: 34px 0 0; padding-top: 24px; border-top: 1px solid var(--border); display: grid; gap: 12px; }
.details div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; color: var(--navy); font-weight: 500; }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 2px 6px rgba(11,37,69,.05); }
.form-card h3 { font-size: 1.3rem; margin-bottom: 20px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; color: var(--navy); font-size: .95rem; margin-bottom: 6px; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1px solid var(--field-border); border-radius: 8px;
  font: inherit; font-size: 1rem; color: var(--text); background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.field [aria-invalid="true"] { border-color: var(--error); }
.err { color: var(--error); font-size: .9rem; margin-top: 6px; min-height: 0; }
.err:empty { display: none; }
.form-card .btn { width: 100%; margin-top: 6px; }
.form-note { margin-top: 14px; font-size: .9rem; color: var(--muted); }
.success { text-align: left; }
.success h3 { margin-bottom: 10px; }
.success p { color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy); color: #C9D6E8; padding: 64px 0 28px; font-size: .975rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .logo { color: #fff; }
.site-footer .brand p { margin-top: 16px; max-width: 34ch; line-height: 1.6; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #C9D6E8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: .9rem; }
.footer-bottom ul { display: flex; gap: 22px; }

/* Responsive */
@media (max-width: 1120px) {
  .menu-btn { display: inline-flex; }
  .header-cta { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--border); display: none; padding: 8px 24px 20px; box-shadow: 0 12px 20px rgba(11,37,69,.08); }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-cta-mobile { display: block; margin-top: 16px; }
  .nav-list .nav-cta-mobile a { border-bottom: 0; color: #fff; padding: 12px 26px; text-align: center; }
  .nav-list .nav-cta-mobile a:hover { color: #fff; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 30px 62px; min-height: 40px; }
  .steps li::after { top: 46px; bottom: 4px; left: 19px; right: auto; width: 2px; height: auto; }
}
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 32px; }
  .pillar, .pillar:first-child, .pillar:last-child { padding: 0; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--border); padding-top: 32px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap { width: min(1140px, 100% - 40px); }
  .service-grid, .why-grid, .results-grid, .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-inner .btn { width: 100%; }
  .faq .answer { padding-right: 8px; }
  .details div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage { opacity: 1; animation: none; }
  .btn, .service, .faq summary::after { transition: none; }
}

/* ==========================================================
   WordPress additions
   ========================================================== */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 500; }
.skip-link:focus { top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { background: #FDECEA; border: 1px solid #F1B8B2; color: var(--error); border-radius: 8px; padding: 12px 14px; margin: 0 0 20px; font-size: .95rem; }
.details dd a { color: var(--navy); text-decoration: none; }
.details dd a:hover { text-decoration: underline; }

/* Standard pages and posts */
.entry { max-width: 780px; }
.entry h1 { margin-bottom: 24px; }
.entry h2 { margin: 36px 0 14px; font-size: 1.5rem; }
.entry h2 a { text-decoration: none; color: var(--navy); }
.entry h3 { margin: 28px 0 10px; }
.entry-content > * + * { margin-top: 1em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content img { height: auto; border-radius: 8px; }
.entry .navigation { margin-top: 36px; }
.entry .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; margin-right: 6px; text-decoration: none; }
.entry .page-numbers.current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Footer column count follows the details you provide */
.footer-grid.cols-2 { grid-template-columns: 1.4fr 1fr; }
.footer-grid.cols-3 { grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 900px) {
  .footer-grid, .footer-grid.cols-2, .footer-grid.cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid, .footer-grid.cols-2, .footer-grid.cols-3 { grid-template-columns: 1fr; }
}

/* Keep the sticky header below the WordPress admin bar for logged-in users */
.admin-bar .site-header { top: 32px; }
:root:has(.admin-bar) { scroll-padding-top: calc(var(--header-h) + 40px); }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

