/*
Theme Name: Pipeline Plan
Theme URI: https://pipelineplan.com.au
Author: Pipeline Plan
Author URI: https://pipelineplan.com.au
Description: Custom theme for Pipeline Plan — website design and automation agency.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: pipelineplan
*/

/* ── RESET & BASE ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy:   #1C244B;
  --steel:  #324A6D;
  --blue:   #467FF7;
  --orange: #FF6B35;
  --light:  #F3F5F8;
  --white:  #FFFFFF;
  --border: #E2E8F0;
  --text:   #324A6D;
  --r: 12px;
}
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── UTILITIES ───────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 50px;
  font-weight: 700; font-size: 15px; cursor: pointer; transition: all .2s; border: none;
  letter-spacing: .3px;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: #e85d28; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,107,53,.35); }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.section { padding: 96px 0; }
.section-light { background: var(--light); }
.section-navy { background: var(--navy); color: var(--white); }
.label {
  display: inline-block; background: rgba(70,127,247,.12); color: var(--blue);
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 50px; margin-bottom: 16px;
}
.label-white { background: rgba(255,255,255,.18); color: var(--white); }
h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 800; line-height: 1.1; letter-spacing: -1px; }
h2 { font-size: clamp(28px, 3.5vw, 42px); font-weight: 700; line-height: 1.2; letter-spacing: -.5px; }
h3 { font-size: 20px; font-weight: 700; }
p { font-size: 16px; line-height: 1.75; }
.lead { font-size: 18px; line-height: 1.7; opacity: .85; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* ── NAV ─────────────────────────────────────────── */
nav.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo svg { width: 38px; height: 38px; }
.logo-text { font-size: 18px; font-weight: 700; color: var(--navy); letter-spacing: -.3px; }
.logo-text span { color: var(--blue); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--steel); transition: color .2s; }
.nav-links a:hover { color: var(--navy); }
.nav-cta { background: var(--orange); color: var(--white) !important; padding: 10px 24px; border-radius: 50px; font-size: 14px; font-weight: 700 !important; transition: all .2s; }
.nav-cta:hover { background: #e85d28; transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all .3s; }
.mobile-menu { display: none; flex-direction: column; background: var(--white); border-top: 1px solid var(--border); }
.mobile-menu a { padding: 16px 24px; font-size: 15px; font-weight: 500; color: var(--steel); border-bottom: 1px solid var(--border); }
.mobile-menu .nav-cta { margin: 16px 24px 24px; text-align: center; display: block; border-radius: 50px; color: var(--white) !important; }
.mobile-menu.active { display: flex; }

/* ── HERO ────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6e 100%);
  padding: 120px 24px 100px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(70,127,247,.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -80px; left: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,53,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: var(--white); margin-top: 16px; }
.hero .lead { color: rgba(255,255,255,.8); margin-top: 20px; }
.hero-btns { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r); padding: 28px; backdrop-filter: blur(10px);
}
.hero-card + .hero-card { margin-top: 16px; }
.stat-row { display: flex; gap: 32px; margin-top: 8px; }
.stat-item .num { font-size: 32px; font-weight: 800; color: var(--white); letter-spacing: -1px; }
.stat-item .num span { color: var(--orange); }
.stat-item .lbl { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 50px; padding: 8px 16px; font-size: 13px; color: rgba(255,255,255,.85); margin-bottom: 8px; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }

/* ── TRUST BAR ───────────────────────────────────── */
.trust-bar { padding: 64px 24px; background: var(--white); border-bottom: 1px solid var(--border); }
.trust-inner { max-width: 1140px; margin: 0 auto; }
.trust-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 40px; }
.trust-stat { text-align: center; padding: 32px 24px; border-radius: var(--r); border: 1px solid var(--border); }
.trust-stat .big { font-size: 48px; font-weight: 800; color: var(--navy); letter-spacing: -2px; line-height: 1; }
.trust-stat .big em { color: var(--blue); font-style: normal; }
.trust-stat .desc { font-size: 14px; color: var(--steel); margin-top: 8px; line-height: 1.5; }

/* ── PROBLEM ─────────────────────────────────────── */
.problem { padding: 80px 24px; background: var(--light); }
.problem-inner { max-width: 880px; margin: 0 auto; text-align: center; }
.problem h2 { color: var(--navy); }
.problem-quote {
  background: var(--white); border-left: 4px solid var(--orange);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 24px 28px; margin-top: 32px; text-align: left;
  font-size: 18px; font-weight: 600; color: var(--navy); line-height: 1.6;
}

/* ── SERVICES ────────────────────────────────────── */
.services { padding: 96px 24px; }
.services-inner { max-width: 1140px; margin: 0 auto; }
.services-grid { display: flex; flex-direction: column; gap: 80px; margin-top: 64px; }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.service-row.reverse { direction: rtl; }
.service-row.reverse > * { direction: ltr; }
.service-visual {
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
}
.service-icon-wrap { text-align: center; }
.service-icon-wrap svg { width: 80px; height: 80px; opacity: .9; }
.service-icon-wrap p { color: rgba(255,255,255,.7); font-size: 14px; margin-top: 16px; }
.service-content h2 { color: var(--navy); margin-top: 8px; }
.service-content p { margin-top: 16px; }
.stat-callout {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--light); border-radius: var(--r); padding: 16px 20px; margin-top: 24px;
}
.stat-callout .big-num { font-size: 28px; font-weight: 800; color: var(--blue); letter-spacing: -1px; }
.stat-callout .desc { font-size: 13px; color: var(--steel); line-height: 1.4; }

/* ── AUTOMATION ──────────────────────────────────── */
.automation { padding: 96px 24px; background: var(--navy); }
.automation-inner { max-width: 1140px; margin: 0 auto; }
.automation h2 { color: var(--white); margin-top: 12px; }
.automation .lead { color: rgba(255,255,255,.75); margin-top: 16px; max-width: 620px; }
.auto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.auto-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r); padding: 28px; transition: all .2s;
}
.auto-card:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.auto-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: rgba(70,127,247,.2); display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.auto-icon svg { width: 24px; height: 24px; }
.auto-card h3 { color: var(--white); font-size: 17px; }
.auto-card p { color: rgba(255,255,255,.65); font-size: 14px; margin-top: 8px; line-height: 1.65; }
.auto-stat { color: var(--orange); font-weight: 700; font-size: 13px; margin-top: 16px; }

/* ── WBD ─────────────────────────────────────────── */
.wbd { padding: 96px 24px; background: var(--light); }
.wbd-inner { max-width: 1140px; margin: 0 auto; }
.wbd h2 { color: var(--navy); margin-top: 12px; }
.wbd .lead { margin-top: 16px; max-width: 600px; }
.wbd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.wbd-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 28px; position: relative; overflow: hidden;
}
.wbd-card::before {
  content: attr(data-num);
  position: absolute; top: -8px; right: 16px;
  font-size: 72px; font-weight: 800; color: var(--light);
  line-height: 1; pointer-events: none;
}
.wbd-card h3 { color: var(--navy); font-size: 16px; margin-bottom: 10px; }
.wbd-card p { font-size: 14px; line-height: 1.7; color: var(--steel); }
.wbd-card .tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: var(--blue); background: rgba(70,127,247,.1);
  padding: 4px 10px; border-radius: 4px; margin-bottom: 12px;
}

/* ── PROOF ───────────────────────────────────────── */
.proof { padding: 96px 24px; background: var(--white); }
.proof-inner { max-width: 1140px; margin: 0 auto; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.proof-card {
  border: 1px solid var(--border); border-radius: var(--r); padding: 32px;
  display: flex; flex-direction: column;
}
.stars { color: var(--orange); font-size: 18px; letter-spacing: 2px; margin-bottom: 16px; }
.proof-card blockquote { font-size: 15px; line-height: 1.75; color: var(--steel); flex: 1; }
.proof-author { margin-top: 24px; display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--white); font-size: 16px; flex-shrink: 0; }
.author-info .name { font-weight: 600; font-size: 14px; color: var(--navy); }
.author-info .role { font-size: 13px; color: var(--steel); }

/* ── FAQ ─────────────────────────────────────────── */
.faq { padding: 96px 24px; background: var(--light); }
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq h2 { color: var(--navy); }
.faq-list { margin-top: 48px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; font-weight: 600; color: var(--navy);
  background: none; border: none; cursor: pointer; gap: 16px; font-family: 'Poppins', sans-serif;
}
.faq-q svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform .3s; color: var(--blue); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 16px 24px 20px; font-size: 14px; color: var(--steel); line-height: 1.75; border-top: 1px solid var(--border); }
.faq-item.open .faq-a { max-height: 300px; }

/* ── CTA ─────────────────────────────────────────── */
.cta-section {
  padding: 96px 24px;
  background: linear-gradient(135deg, var(--blue) 0%, #2d60d4 100%);
  text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 65%);
}
.cta-section h2 { color: var(--white); max-width: 640px; margin: 0 auto; }
.cta-section p { color: rgba(255,255,255,.8); margin-top: 16px; font-size: 17px; }
.cta-section .btn-primary { margin-top: 36px; font-size: 16px; padding: 16px 40px; }
.cta-note { color: rgba(255,255,255,.55); font-size: 13px; margin-top: 16px; }

/* ── CONTACT FORM ────────────────────────────────── */
.contact-form-wrap {
  max-width: 560px;
  margin: 36px auto 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 36px 40px;
  text-align: left;
}
.contact-form-wrap .wpforms-form label {
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 500;
}
.contact-form-wrap .wpforms-form input[type="text"],
.contact-form-wrap .wpforms-form input[type="email"],
.contact-form-wrap .wpforms-form textarea {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  color: #fff;
  padding: 12px 14px;
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  transition: border-color .2s;
}
.contact-form-wrap .wpforms-form input::placeholder,
.contact-form-wrap .wpforms-form textarea::placeholder { color: rgba(255,255,255,.4); }
.contact-form-wrap .wpforms-form input:focus,
.contact-form-wrap .wpforms-form textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.18);
}
.contact-form-wrap .wpforms-submit-container { margin-top: 8px; }
.contact-form-wrap .wpforms-submit {
  background: var(--orange) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 14px 32px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  cursor: pointer;
  width: 100%;
  transition: background .2s, transform .15s;
}
.contact-form-wrap .wpforms-submit:hover {
  background: #e85d2a !important;
  transform: translateY(-1px);
}
.contact-form-wrap .wpforms-field { margin-bottom: 18px; }

/* ── FOOTER ──────────────────────────────────────── */
.site-footer { background: var(--navy); padding: 64px 24px 32px; }
.footer-inner { max-width: 1140px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand p { color: rgba(255,255,255,.55); font-size: 14px; margin-top: 16px; max-width: 260px; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.55); font-size: 14px; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { color: rgba(255,255,255,.4); font-size: 13px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-logo svg { width: 34px; height: 34px; }
.footer-logo-text { font-size: 16px; font-weight: 700; color: var(--white); }
.footer-logo-text span { color: var(--blue); }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .trust-stats { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: 1fr; gap: 32px; }
  .service-row.reverse { direction: ltr; }
  .auto-grid { grid-template-columns: repeat(2, 1fr); }
  .wbd-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .section { padding: 64px 0; }
  .trust-stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .auto-grid { grid-template-columns: 1fr; }
  .wbd-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
