/*
Theme Name: Budget cPanels
Theme URI: https://budgetcpanels.com.au
Author: Michael van Diermen
Description: Lightweight custom theme for budgetcpanels.com.au, rebuilt September 2026 from page snapshots of the previous Phox/Elementor site. Content pages are self-contained HTML sections; the theme provides the header, navigation, footer, blog templates and the shared section design system (assets/css/sections.css).
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: bcp
*/

/* ============ Design tokens ============ */
:root {
  --red: #970001;
  --red-dark: #6e0001;
  --red-band: #d83b3c;
  --ink: #222222;
  --soft: #555555;
  --muted: #7a7a7a;
  --line: #e3e3e6;
  --paper: #ffffff;
  --grey: #f6f6f7;
  --slate: #3b3e46;
  --dark: #33353a;
  --green: #1d8a72;
  --maxw: 1180px;
  --r: 12px;
  --shadow: 0 16px 40px -18px rgba(0, 0, 0, .28);
  --shadow-soft: 0 6px 22px -10px rgba(0, 0, 0, .18);
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--red); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 2.2rem; font-weight: 600; }
h2 { font-size: 1.8rem; font-weight: 500; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.bcp-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; overflow: hidden; position: absolute !important;
}

/* Buttons (shared by chrome and content) */
.bcp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff !important;
  font-weight: 600; font-size: .86rem; letter-spacing: .04em;
  padding: 12px 28px; border-radius: 999px; border: 2px solid var(--red);
  text-decoration: none !important; cursor: pointer; font-family: inherit; line-height: 1.2;
  transition: background .18s, border-color .18s, transform .18s;
}
.bcp-btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.bcp-btn.ghost { background: transparent; color: var(--red) !important; }
.bcp-btn.ghost:hover { background: var(--red); color: #fff !important; }
.bcp-btn.white { background: #fff; border-color: #fff; color: var(--red) !important; }
.bcp-btn.white:hover { background: #fff5f5; border-color: #fff5f5; }
.bcp-btn.outline-white { background: transparent; border-color: #fff; color: #fff !important; }
.bcp-btn.outline-white:hover { background: #fff; color: var(--red-band) !important; }
.bcp-btn.sm { padding: 9px 20px; font-size: .78rem; }

/* ============ Top bar ============ */
.bcp-topbar { background: var(--red); color: #fff; font-size: .84rem; }
.bcp-topbar .bcp-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; min-height: 34px; }
.bcp-topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.bcp-topbar a:hover { text-decoration: underline; }
.bcp-topbar svg { width: 14px; height: 14px; fill: currentColor; }

/* ============ Header ============ */
.bcp-header {
  position: sticky; top: 0; z-index: 200;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}
.bcp-header .bcp-wrap { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.bcp-logo { display: block; text-decoration: none; padding: 5px 0 0; line-height: 0; }
.bcp-logo img { display: block; width: 303px; max-width: 62vw; height: auto; }
.bcp-logo small {
  display: block; line-height: 1.2; margin: 0 0 6px 2px;
  font-size: .68rem; font-style: italic; color: var(--muted);
}
.bcp-nav { margin-left: auto; }
.bcp-nav ul { list-style: none; margin: 0; padding: 0; }
.bcp-nav > ul { display: flex; align-items: center; gap: 2px; }
.bcp-nav li { position: relative; }
.bcp-nav a {
  display: block; padding: 26px 13px;
  color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase;
  transition: color .15s;
}
.bcp-nav > ul > li:hover > a,
.bcp-nav > ul > li.current-menu-item > a,
.bcp-nav > ul > li.current-menu-ancestor > a,
.bcp-nav > ul > li.current_page_parent > a { color: var(--red); }
.bcp-nav .menu-item-has-children > a::after {
  content: ""; display: inline-block; margin-left: 7px; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
}
.bcp-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 250px;
  background: #fff; border-top: 3px solid var(--red); border-radius: 0 0 10px 10px;
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .35);
  padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .16s, transform .2s, visibility .16s;
}
.bcp-nav li:hover > .sub-menu, .bcp-nav li:focus-within > .sub-menu, .bcp-nav li.open > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.bcp-nav .sub-menu a {
  padding: 10px 18px; font-size: .84rem; text-transform: none; letter-spacing: 0; font-weight: 500;
  white-space: nowrap;
}
.bcp-nav .sub-menu a:hover, .bcp-nav .sub-menu .current-menu-item > a { color: var(--red); background: var(--grey); }

.bcp-menu-toggle {
  display: none; margin-left: auto;
  background: none; border: 1.5px solid var(--ink); border-radius: 8px;
  padding: 8px 12px; cursor: pointer; font: inherit; font-weight: 600; font-size: .85rem; color: var(--ink);
}
@media (max-width: 980px) {
  .bcp-menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .bcp-header .bcp-wrap { padding-bottom: 8px; }
  .bcp-nav {
    display: none; flex-basis: 100%; margin: 0;
    border-top: 1px solid var(--line); padding: 6px 0 14px;
  }
  .bcp-nav.open { display: block; }
  .bcp-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .bcp-nav a { padding: 12px 6px; }
  .bcp-nav .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-left: 2px solid var(--line); border-radius: 0;
    padding: 0 0 0 14px; margin: 0 0 6px 8px; display: none;
  }
  .bcp-nav li.open > .sub-menu { display: block; }
  .bcp-nav .sub-menu a { white-space: normal; }
}

/* ============ Title bands ============ */
.bcp-band { background: var(--red); color: #fff; padding: 58px 0 54px; text-align: center; }
.bcp-band h1 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 600; margin: 0 0 12px; max-width: 900px; margin-left: auto; margin-right: auto; }
.bcp-band p { color: rgba(255, 255, 255, .9); margin: 0; }
.bcp-crumbs { font-size: .84rem; font-weight: 500; }
.bcp-crumbs a { color: #fff; text-decoration: none; }
.bcp-crumbs a:hover { text-decoration: underline; }
.bcp-crumbs .sep { margin: 0 8px; opacity: .8; }
.bcp-hero-band {
  color: #fff; padding: 72px 0; text-align: center;
  background: linear-gradient(rgba(30, 32, 40, .66), rgba(30, 32, 40, .66)), url(assets/img/team-banner.jpg) center / cover no-repeat;
}
.bcp-hero-band h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 12px; }

/* ============ Content ============ */
.bcp-main { min-height: 50vh; }
/* HTML pages that start with their own heading (order forms, product pages) get breathing room below the header */
.page .bcp-main > div:first-child:not(.bcp-hero-band):not(.bcp-band),
.page .bcp-main > style:first-child + div:not(.bcp-hero-band):not(.bcp-band) { margin-top: 32px; }
.bcp-prose { max-width: 860px; margin: 0 auto; padding: 44px 22px 60px; }
.bcp-prose h2 { font-size: 1.45rem; font-weight: 600; margin-top: 1.6em; }
.bcp-prose h3 { margin-top: 1.4em; }
.bcp-prose img { border-radius: 8px; }
.bcp-prose li { margin: .3em 0; }

/* Single post: card overlapping the red band */
.bcp-post {
  max-width: 900px; margin: -34px auto 50px; position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-soft); padding: 34px clamp(20px, 4vw, 48px) 40px;
}
.bcp-post .meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-bottom: 22px; }
.bcp-post .meta svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 5px; fill: currentColor; }
.bcp-post h2 { font-size: 1.4rem; font-weight: 600; margin-top: 1.5em; }
.bcp-post h3 { margin-top: 1.3em; }
.bcp-post p, .bcp-post li { color: #3a3a3a; }
.bcp-post-nav {
  max-width: 900px; margin: 0 auto 60px; padding: 0 22px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .9rem;
}
.bcp-post-nav a { text-decoration: none; font-weight: 500; color: var(--green); }
.bcp-post-nav a:hover { text-decoration: underline; }
.bcp-post-nav small { display: block; color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: .7rem; letter-spacing: .1em; margin-bottom: 4px; }

/* Blog cards (index + [bcp_posts] shortcode) */
.bcp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bcp-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 26px; box-shadow: var(--shadow-soft); transition: transform .2s, box-shadow .2s;
}
.bcp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bcp-card.post { display: flex; flex-direction: column; }
.bcp-card.post .date { font-size: .78rem; color: var(--muted); margin-bottom: 10px; }
.bcp-card.post .date svg { width: 12px; height: 12px; fill: currentColor; vertical-align: -1px; margin-right: 5px; }
.bcp-card.post h2 { font-size: 1.05rem; font-weight: 600; line-height: 1.35; margin: 0 0 10px; }
.bcp-card.post h2 a { color: var(--ink); text-decoration: none; }
.bcp-card.post h2 a:hover { color: var(--red); }
.bcp-card.post p { font-size: .9rem; color: var(--soft); flex: 1; }
.bcp-card.post .bcp-btn { align-self: flex-start; }
.bcp-blog { padding: 50px 0 70px; }
.bcp-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.bcp-pagination a, .bcp-pagination span {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px;
  text-decoration: none; color: var(--ink); font-size: .9rem;
}
.bcp-pagination .current { background: var(--red); color: #fff; border-color: var(--red); }
@media (max-width: 900px) { .bcp-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .bcp-cards { grid-template-columns: 1fr; } }

/* ============ Footer ============ */
.bcp-footer {
  color: #d9dadd; margin-top: 0; padding: 62px 0 26px; font-size: .92rem;
  background: var(--dark) url(assets/img/footer-bg.jpg) center / cover no-repeat;
}
.bcp-footer a { color: #d9dadd; text-decoration: none; transition: color .15s; }
.bcp-footer a:hover { color: #fff; }
.bcp-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 34px; }
.bcp-footer h2 { color: #fff; font-size: .95rem; font-weight: 600; margin: 0 0 16px; }
.bcp-footer ul { list-style: none; margin: 0; padding: 0; }
.bcp-footer li { margin: 0 0 9px; padding-left: 14px; position: relative; }
.bcp-footer li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px;
  border-right: 1.5px solid #9a9ca3; border-top: 1.5px solid #9a9ca3; transform: rotate(45deg);
}
.bcp-footer-brand img { width: 230px; height: auto; display: block; margin-bottom: 18px; }
.bcp-footer-brand li { padding-left: 0; }
.bcp-footer-brand li::before { display: none; }
.bcp-footer-brand a { display: inline-flex; align-items: center; gap: 9px; }
.bcp-footer-brand svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.bcp-footer-bottom {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .78rem; color: #b9bbc1;
}
.bcp-footer-bottom .legal { text-align: right; max-width: 520px; line-height: 1.6; }
@media (max-width: 980px) { .bcp-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .bcp-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .bcp-footer-bottom { flex-direction: column; }
  .bcp-footer-bottom .legal { text-align: left; }
}
