/*
Theme Name: SerpZenith — serpzenith-theme-v1
Theme URI: https://serpzenith.net
Author: WP-Flash | SerpZenith
Author URI: https://serpzenith.com
Description: Bespoke raw PHP theme for SerpZenith — affordable SEO agency, link-building marketplace and client platform. WooCommerce + Rank Math compatible. Built with WP-Flash v4.0.
Version: 1.1.0
Requires PHP: 8.0
Tested up to: 6.7
License: Private
Text Domain: serpzenith
*/

/* ==========================================================================
   1. DESIGN TOKENS — from config/visual-identity.json (logo-derived)
   ========================================================================== */
:root {
  --brand-primary: #101828;
  --brand-primary-hover: #1D2939;
  --brand-secondary: #344054;
  --brand-accent: #7ED000;        /* CTA fills ONLY — never as text on white */
  --brand-accent-dark: #6BB300;
  --brand-accent-text: #3D7A00;   /* WCAG-safe green for links/labels on white */
  --brand-dark: #101828;
  --brand-text: #344054;
  --brand-muted: #667085;
  --brand-light: #F8FAFC;
  --brand-border: #E4E7EC;
  --brand-success: #067647;
  --brand-warning: #B54708;
  --brand-error: #B42318;
  --brand-white: #ffffff;

  /* One professional font site-wide (2026-07 header rebuild spec) */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Header system */
  --header-h: 90px;
  --header-border: #ececec;
  --nav-font-size: 16px;
  --nav-pad-x: clamp(12px, 1.1vw, 22px);
  --nav-hover-bg: #f8f9fb;
  --mega-radius: 10px;
  --mega-transition: 0.25s;

  --radius: 8px;
  --radius-btn: 6px;
  --shadow-sm: 0 1px 3px rgba(16,24,40,.07);
  --shadow-md: 0 4px 16px rgba(16,24,40,.09);
  --shadow-lg: 0 12px 32px rgba(16,24,40,.14);

  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 32px;
  --sp-5: 48px; --sp-6: 64px; --sp-section: 80px;

  --container: 1240px;
  --container-narrow: 800px;
}

/* ==========================================================================
   2. FONTS — self-hosted variable woff2 (performance requirement)
   ========================================================================== */
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   3. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--brand-text);
  background: var(--brand-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-accent-text); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--brand-primary); }
ul, ol { padding-left: 1.3em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand-accent-text); outline-offset: 2px; border-radius: 2px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand-dark); color: #fff; padding: 10px 18px; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; color: #fff; }
.screen-reader-text {
  border: 0; clip-path: inset(50%); height: 1px; width: 1px;
  overflow: hidden; position: absolute !important; word-wrap: normal !important;
}

/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--brand-dark);
  line-height: 1.15;
  font-weight: 800;
}
h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.02em; }
h2 { font-size: clamp(27px, 4vw, 40px); letter-spacing: -0.02em; }
h3 { font-size: clamp(21px, 3vw, 28px); }
h4 { font-size: 20px; font-weight: 700; }
h5 { font-size: 17px; font-weight: 700; }
p { margin-bottom: 1.15em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 19px; color: var(--brand-muted); }
strong { color: var(--brand-dark); }

/* ==========================================================================
   5. LAYOUT
   ========================================================================== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--sp-section) 0; }
.section-tight { padding: var(--sp-5) 0; }
.section-dark { background: var(--brand-dark); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.78); }
.section-light { background: var(--brand-light); }
.section-header { max-width: 720px; margin-bottom: var(--sp-5); }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-label {
  display: inline-block; color: var(--brand-accent-text);
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 10px;
}
.section-dark .section-label { color: var(--brand-accent); }
.section-sub { color: var(--brand-muted); font-size: 18px; margin-top: 10px; }

.grid { display: grid; gap: var(--sp-3); }
.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: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Content + sidebar layout */
.layout-sidebar { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: var(--sp-5); align-items: start; }
@media (max-width: 1024px) { .layout-sidebar { grid-template-columns: 1fr; } }

/* ==========================================================================
   6. BUTTONS — lime fill + dark text is the ONLY primary combo (WCAG 8.9:1)
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-btn);
  font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1.2;
  cursor: pointer; border: 1.5px solid transparent; text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-accent); color: var(--brand-dark); border-color: var(--brand-accent); }
.btn-primary:hover { background: var(--brand-accent-dark); border-color: var(--brand-accent-dark); color: var(--brand-dark); }
.btn-dark { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }
.btn-dark:hover { background: var(--brand-primary-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline:hover { background: var(--brand-dark); color: #fff; }
.section-dark .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); }
.section-dark .btn-outline:hover { background: #fff; color: var(--brand-dark); }
.btn-lg { padding: 16px 34px; font-size: 17px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ==========================================================================
   7. CARDS
   ========================================================================== */
.card {
  background: #fff; border: 1px solid var(--brand-border); border-radius: var(--radius);
  padding: 28px; transition: box-shadow .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); border-color: #d5dae2; }
.card-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: rgba(126,208,0,.12); color: var(--brand-accent-text);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3, .card h4 { margin-bottom: 8px; }
.card p { font-size: 15.5px; color: var(--brand-muted); }
.card-link { font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; }
.card-link::after { content: "→"; transition: transform .18s; }
.card-link:hover::after { transform: translateX(3px); }

/* ==========================================================================
   8. ANNOUNCEMENT BAR
   ========================================================================== */
.announce-bar { background: var(--brand-dark); color: rgba(255,255,255,.85); font-size: 13px; }
.announce-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 7px 24px; max-width: 1360px; margin: 0 auto; }
.announce-links { display: flex; align-items: center; gap: 20px; }
.announce-bar a { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.85); font-weight: 500; }
.announce-bar a:hover { color: var(--brand-accent); }
.announce-bar svg { width: 13px; height: 13px; }
@media (max-width: 768px) { .announce-links.secondary { display: none; } }

/* ==========================================================================
   9. HEADER — enterprise navigation (90px sticky, white, 4-col mega)
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 300;
  background: var(--brand-white);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.header-inner {
  display: flex; align-items: center;
  height: var(--header-h);
  max-width: 1360px; margin: 0 auto; padding: 0 24px;
  gap: 8px;
}

/* Logo — vertically centered, capped height */
.site-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-size: 21px; font-weight: 800;
  color: var(--brand-dark); line-height: 1; white-space: nowrap; flex: none;
}
.site-logo img { width: auto; height: 44px; max-height: 48px; border-radius: 50%; }
.site-logo .zen { color: var(--brand-accent-text); }

/* Primary nav — identical spacing, no wrapping, centered block */
.main-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.nav-list { display: flex; align-items: center; list-style: none; padding: 0; margin: 0; }
.nav-item { position: static; } /* mega panels anchor to .site-header, not the item */
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 var(--nav-pad-x);
  font-family: var(--font-body);
  font-size: var(--nav-font-size); font-weight: 600;
  letter-spacing: 0; line-height: 1.4;
  color: var(--brand-secondary); white-space: nowrap;
  background: none; border: none; border-radius: 8px; cursor: pointer;
  transition: color var(--mega-transition) ease, background-color var(--mega-transition) ease;
}
.nav-link:hover, .nav-item.open > .nav-link { color: var(--brand-dark); background: var(--nav-hover-bg); }
.nav-caret { display: inline-flex; align-items: center; transition: transform var(--mega-transition) ease; }
.nav-caret svg { width: 16px; height: 16px; }
.nav-item.open .nav-caret { transform: rotate(180deg); }

/* ----- Mega panel — full width, anchored under the header ----- */
.mega-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--brand-white);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 24px 48px -12px rgba(16,24,40,.14);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--mega-transition) ease, transform var(--mega-transition) ease, visibility var(--mega-transition);
  pointer-events: none;
}
.nav-item.open > .mega-panel {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.mega-inner { max-width: 1360px; margin: 0 auto; padding: 40px 24px 0; }
.mega-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding-bottom: 32px;
}
.mega-col {
  background: transparent; border-radius: var(--mega-radius);
  padding: 20px; transition: background-color var(--mega-transition) ease;
}
.mega-col:hover { background: var(--nav-hover-bg); }
.mega-heading {
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand-muted); margin: 0 0 14px; line-height: 1.4;
}
.mega-links { list-style: none; padding: 0; margin: 0; }
.mega-links li + li { margin-top: 2px; }
.mega-links a {
  display: block; padding: 8px 10px; margin: 0 -10px;
  font-size: 15px; font-weight: 500; line-height: 1.4;
  color: var(--brand-secondary); border-radius: 8px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  transition: color var(--mega-transition) ease, background-color var(--mega-transition) ease;
}
.mega-links a:hover { color: var(--brand-dark); background: var(--nav-hover-bg); }

.mega-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-top: 1px solid var(--header-border);
  padding: 16px 20px; margin: 0 -24px; padding-left: 44px; padding-right: 44px;
  background: var(--nav-hover-bg);
}
.mega-footer-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.mega-footer-links a { font-size: 14px; font-weight: 500; color: var(--brand-muted); white-space: nowrap; }
.mega-footer-links a:hover { color: var(--brand-dark); }
.mega-view-all { font-size: 14.5px; font-weight: 600; color: var(--brand-accent-text); white-space: nowrap; }
.mega-view-all:hover { color: var(--brand-dark); }

/* ----- Header actions ----- */
.header-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 8px;
  color: var(--brand-secondary); background: none; border: none; cursor: pointer;
  transition: color var(--mega-transition) ease, background-color var(--mega-transition) ease;
}
.icon-btn:hover { background: var(--nav-hover-bg); color: var(--brand-dark); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px;
  background: var(--brand-accent); color: var(--brand-dark); border-radius: 999px;
  font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; padding: 0 4px;
}
.cart-count.is-empty { display: none; }

/* CTA — far right, fixed height, never overflows */
.header-cta {
  height: 48px; padding: 0 30px; margin-left: 12px;
  border-radius: 8px; font-size: 15px; font-weight: 600; white-space: nowrap;
}

/* ----- Header search bar ----- */
.header-search { border-top: 1px solid var(--header-border); background: var(--brand-white); }
.header-search-inner { max-width: 1360px; margin: 0 auto; padding: 14px 24px; }
.header-search form {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--brand-border); border-radius: 8px; padding: 4px 6px 4px 16px;
  max-width: 720px; margin: 0 auto;
}
.header-search svg { color: var(--brand-muted); flex: none; }
.header-search input {
  flex: 1; border: none; outline: none; font-size: 15.5px; min-width: 0;
  height: 40px; background: transparent;
}

/* ----- Responsive: tablet & mobile ----- */
.hamburger { display: none; }
@media (max-width: 1240px) {
  .header-cta { display: none; }
}
@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .main-nav { display: none; }
  .hamburger { display: inline-flex; }
  .site-logo img { height: 38px; }
}

/* ----- Mobile drawer (separate navigation) ----- */
.mobile-nav-overlay {
  position: fixed; inset: 0; z-index: 380;
  background: rgba(16,24,40,.45);
  opacity: 0; transition: opacity var(--mega-transition) ease;
}
.mobile-nav-overlay.open { opacity: 1; }
.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 400;
  width: min(400px, 92vw);
  background: var(--brand-white);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -12px 0 40px rgba(16,24,40,.18);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--header-border); flex: none;
}
.mobile-nav-body { flex: 1; overflow-y: auto; padding: 8px 12px 20px; }
.m-item { border-bottom: 1px solid var(--header-border); }
.m-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 52px; padding: 0 10px;
  font-size: 16px; font-weight: 600; color: var(--brand-dark);
  background: none; border: none; cursor: pointer; text-align: left;
}
.m-toggle[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
.m-panel { padding: 4px 10px 16px; }
.m-heading {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--brand-muted); margin: 14px 0 4px;
}
.m-link {
  display: block; padding: 10px 12px; margin: 0 -12px;
  font-size: 15px; font-weight: 500; color: var(--brand-secondary); border-radius: 8px;
}
.m-link:hover { background: var(--nav-hover-bg); color: var(--brand-dark); }
.m-link.m-top {
  font-size: 16px; font-weight: 600; color: var(--brand-dark);
  min-height: 52px; display: flex; align-items: center;
  border-bottom: 1px solid var(--header-border); margin: 0; border-radius: 0;
}
.m-view-all { color: var(--brand-accent-text); font-weight: 600; }
.mobile-nav-foot {
  display: grid; gap: 10px; padding: 16px 20px;
  border-top: 1px solid var(--header-border); flex: none;
}

/* Reduced motion: kill panel animations */
@media (prefers-reduced-motion: reduce) {
  .mega-panel, .mobile-nav, .mobile-nav-overlay, .nav-caret { transition: none; }
}

/* ==========================================================================
   10. HERO
   ========================================================================== */
.hero { background: var(--brand-dark); color: #fff; overflow: hidden; position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--sp-6); align-items: center; padding: 72px 24px 80px; max-width: var(--container); margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600;
  color: var(--brand-accent); border: 1px solid rgba(126,208,0,.35); border-radius: 999px;
  padding: 5px 14px; margin-bottom: 20px;
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 .accent { color: var(--brand-accent); }
.hero-sub { font-size: 18.5px; color: rgba(255,255,255,.75); max-width: 540px; margin-bottom: 26px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: rgba(255,255,255,.65); }
.hero-trust span strong { color: #fff; }
.hero-visual { position: relative; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; padding: 48px 24px 56px; } .hero-visual { display: none; } }

/* Review source pills */
.review-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.review-pill {
  display: flex; align-items: center; gap: 7px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 8px 14px; font-size: 13px;
}
.review-pill strong { color: #fff; }
.review-pill .stars { color: var(--brand-accent); letter-spacing: 1px; }

/* ==========================================================================
   11. TRUST / PROOF BAR (numbers editable from admin)
   ========================================================================== */
.proof-bar { background: #fff; border-bottom: 1px solid var(--brand-border); }
.proof-inner { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; padding: 26px 24px; max-width: var(--container); margin: 0 auto; text-align: center; }
.proof-num { font-family: var(--font-heading); font-size: 30px; font-weight: 800; color: var(--brand-dark); line-height: 1.1; }
.proof-label { font-size: 13px; color: var(--brand-muted); margin-top: 3px; }
@media (max-width: 900px) { .proof-inner { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .proof-inner { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   12. PROCESS / HOW IT WORKS
   ========================================================================== */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step-num {
  font-family: var(--font-heading); font-weight: 800; font-size: 15px;
  width: 34px; height: 34px; border-radius: 999px; background: var(--brand-accent);
  color: var(--brand-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}

/* ==========================================================================
   13. CITY / DIRECTORY GRIDS
   ========================================================================== */
.chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.chip {
  display: flex; align-items: center; gap: 8px; padding: 11px 15px;
  border: 1px solid var(--brand-border); border-radius: var(--radius);
  font-size: 14.5px; font-weight: 500; color: var(--brand-secondary); background: #fff;
}
.chip:hover { border-color: var(--brand-accent-text); color: var(--brand-accent-text); }
.chip svg { width: 15px; height: 15px; color: var(--brand-accent-text); flex: none; }

/* ==========================================================================
   14. FAQ
   ========================================================================== */
.faq-list { border-top: 1px solid var(--brand-border); }
.faq-item { border-bottom: 1px solid var(--brand-border); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 4px; background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-heading); font-weight: 700; font-size: 17px; color: var(--brand-dark);
}
.faq-q .faq-icon { flex: none; width: 22px; height: 22px; color: var(--brand-accent-text); transition: transform .2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 4px 22px; color: var(--brand-muted); max-width: 760px; }
.faq-item.open .faq-a { display: block; }

/* ==========================================================================
   15. TESTIMONIALS
   ========================================================================== */
.testimonial { display: flex; flex-direction: column; gap: 14px; }
.testimonial .stars { color: #F5A623; font-size: 15px; letter-spacing: 2px; }
.testimonial blockquote { font-size: 15.5px; color: var(--brand-text); }
.testimonial-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.testimonial-meta .who { font-weight: 600; font-size: 14.5px; color: var(--brand-dark); }
.source-badge {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: var(--brand-light); border: 1px solid var(--brand-border);
  color: var(--brand-muted); border-radius: 999px; padding: 3px 10px;
}

/* ==========================================================================
   16. CTA SECTION
   ========================================================================== */
.cta-final { background: var(--brand-dark); border-radius: 16px; padding: 56px 48px; text-align: center; }
.cta-final h2 { color: #fff; margin-bottom: 12px; }
.cta-final p { color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto 28px; }
.cta-final .hero-ctas { justify-content: center; }
@media (max-width: 640px) { .cta-final { padding: 40px 24px; } }

/* ==========================================================================
   17. BREADCRUMBS
   ========================================================================== */
.breadcrumbs { font-size: 13.5px; color: var(--brand-muted); padding: 18px 0 0; }
.breadcrumbs a { color: var(--brand-muted); }
.breadcrumbs a:hover { color: var(--brand-accent-text); }
.breadcrumbs .sep { margin: 0 7px; opacity: .5; }

/* ==========================================================================
   18. PAGE HERO (inner pages)
   ========================================================================== */
.page-hero { padding: 40px 0 48px; }
.page-hero h1 { max-width: 820px; margin-bottom: 14px; }
.page-hero .lead { max-width: 720px; }
.page-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ==========================================================================
   19. ARTICLE / PROSE
   ========================================================================== */
.prose { max-width: var(--container-narrow); }
.prose h2 { margin: 1.6em 0 .6em; }
.prose h3 { margin: 1.4em 0 .5em; }
.prose ul, .prose ol { margin-bottom: 1.15em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose blockquote { border-left: 3px solid var(--brand-accent); padding: 4px 0 4px 20px; margin: 1.5em 0; color: var(--brand-muted); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--brand-border); padding: 10px 14px; text-align: left; }
.prose th { background: var(--brand-light); font-weight: 600; }
.prose .table-wrap { overflow-x: auto; }

/* ==========================================================================
   20. SIDEBAR
   ========================================================================== */
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; align-self: start; }
.sidebar-card { background: var(--brand-light); border: 1px solid var(--brand-border); border-radius: var(--radius); padding: 22px; }
.sidebar-card.dark { background: var(--brand-dark); border-color: var(--brand-dark); }
.sidebar-card.dark h4 { color: #fff; }
.sidebar-card.dark p { color: rgba(255,255,255,.72); font-size: 14px; }
.sidebar-card h4 { margin-bottom: 10px; font-size: 16.5px; }
.sidebar-card ul { list-style: none; padding: 0; }
.sidebar-card li { border-bottom: 1px solid var(--brand-border); }
.sidebar-card li:last-child { border-bottom: none; }
.sidebar-card li a { display: block; padding: 9px 0; font-size: 14.5px; color: var(--brand-secondary); }
.sidebar-card li a:hover { color: var(--brand-accent-text); }
.sidebar-card .btn { width: 100%; margin-top: 6px; }
@media (max-width: 1024px) { .sidebar { position: static; } }

/* ==========================================================================
   21. FORMS
   ========================================================================== */
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field label { display: block; font-size: 14px; font-weight: 600; color: var(--brand-dark); margin-bottom: 6px; }
.form-field .required { color: var(--brand-error); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--brand-border);
  border-radius: var(--radius-btn); font-size: 15.5px; background: #fff; color: var(--brand-text);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--brand-accent-text); outline: none; box-shadow: 0 0 0 3px rgba(126,208,0,.18);
}
.form-field .field-error { color: var(--brand-error); font-size: 13px; margin-top: 4px; display: none; }
.form-field.has-error input, .form-field.has-error textarea { border-color: var(--brand-error); }
.form-field.has-error .field-error { display: block; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--brand-muted); }
.form-consent input { width: auto; margin-top: 3px; }
.form-msg { border-radius: var(--radius-btn); padding: 14px 16px; font-size: 15px; display: none; }
.form-msg.success { display: block; background: #EDFDF3; border: 1px solid #A6F4C5; color: var(--brand-success); }
.form-msg.error { display: block; background: #FEF3F2; border: 1px solid #FECDCA; color: var(--brand-error); }
.hp-field { position: absolute !important; left: -9999px !important; }

/* ==========================================================================
   22. WOOCOMMERCE
   ========================================================================== */
.woocommerce-page .site-main { padding: 40px 0 var(--sp-section); }
ul.products { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 980px) { ul.products { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 600px) { ul.products { grid-template-columns: 1fr !important; } }
ul.products li.product {
  background: #fff; border: 1px solid var(--brand-border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; transition: box-shadow .2s;
}
ul.products li.product:hover { box-shadow: var(--shadow-md); }
ul.products li.product img { border-radius: 6px; margin-bottom: 14px; }
ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-heading); font-size: 17px; font-weight: 700; color: var(--brand-dark); margin-bottom: 6px; }
ul.products li.product .price { color: var(--brand-dark); font-weight: 700; font-size: 16px; margin-bottom: 12px; }
ul.products li.product .price del { color: var(--brand-muted); font-weight: 400; margin-right: 6px; }
ul.products li.product .button {
  margin-top: auto; background: var(--brand-accent); color: var(--brand-dark);
  border-radius: var(--radius-btn); padding: 11px 20px; font-weight: 600; text-align: center; border: none;
}
ul.products li.product .button:hover { background: var(--brand-accent-dark); }
.woocommerce .star-rating span::before, .woocommerce p.stars a { color: #F5A623; }
.onsale {
  position: absolute; top: 14px; right: 14px; background: var(--brand-dark); color: var(--brand-accent);
  font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 12px; z-index: 2;
}
.woocommerce div.product form.cart .button,
.woocommerce #payment #place_order, .woocommerce-page #payment #place_order,
.woocommerce a.checkout-button, .wc-proceed-to-checkout a.checkout-button {
  background: var(--brand-accent); color: var(--brand-dark); font-weight: 700; border-radius: var(--radius-btn);
}
.woocommerce div.product form.cart .button:hover,
.woocommerce #payment #place_order:hover { background: var(--brand-accent-dark); color: var(--brand-dark); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--brand-dark); font-weight: 800; font-size: 24px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom-color: var(--brand-accent); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--brand-accent-dark); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--brand-accent-text); }
.woocommerce table.shop_table { border: 1px solid var(--brand-border); border-radius: var(--radius); }
.sz-secure-note { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--brand-muted); margin-top: 14px; }
.sz-secure-note svg { width: 16px; height: 16px; color: var(--brand-success); }

/* Order fields box on product page */
.sz-order-fields { background: var(--brand-light); border: 1px solid var(--brand-border); border-radius: var(--radius); padding: 20px; margin: 18px 0; }
.sz-order-fields h4 { font-size: 15px; margin-bottom: 12px; }
.sz-order-fields .form-field { margin-bottom: 12px; }

/* ==========================================================================
   23. CLIENT DASHBOARD
   ========================================================================== */
.dash-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: var(--sp-4); align-items: start; padding: 40px 0 var(--sp-section); }
@media (max-width: 900px) { .dash-layout { grid-template-columns: 1fr; } }
.dash-nav { background: #fff; border: 1px solid var(--brand-border); border-radius: var(--radius); overflow: hidden; position: sticky; top: 90px; }
.dash-nav ul { list-style: none; padding: 8px; }
.dash-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 6px;
  font-size: 14.5px; font-weight: 500; color: var(--brand-secondary);
}
.dash-nav a:hover { background: var(--brand-light); color: var(--brand-dark); }
.dash-nav li.active a { background: var(--brand-dark); color: #fff; }
.dash-nav svg { width: 17px; height: 17px; flex: none; }
.dash-nav .badge { margin-left: auto; background: var(--brand-accent); color: var(--brand-dark); font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 8px; }

.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
@media (max-width: 900px) { .dash-stats { grid-template-columns: repeat(2, 1fr); } }
.dash-stat { background: #fff; border: 1px solid var(--brand-border); border-radius: var(--radius); padding: 18px 20px; }
.dash-stat .num { font-family: var(--font-heading); font-size: 26px; font-weight: 800; color: var(--brand-dark); }
.dash-stat .lbl { font-size: 13px; color: var(--brand-muted); }

.dash-table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #fff; }
.dash-table th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-muted); padding: 12px 14px; border-bottom: 1px solid var(--brand-border); }
.dash-table td { padding: 14px; border-bottom: 1px solid var(--brand-border); }
.dash-table tr:hover td { background: var(--brand-light); }

.status-badge { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 11px; white-space: nowrap; }
.status-badge.pending   { background: #FFFAEB; color: var(--brand-warning); border: 1px solid #FEDF89; }
.status-badge.progress  { background: #EFF8FF; color: #175CD3; border: 1px solid #B2DDFF; }
.status-badge.completed { background: #ECFDF3; color: var(--brand-success); border: 1px solid #A6F4C5; }
.status-badge.hold      { background: #FEF3F2; color: var(--brand-error); border: 1px solid #FECDCA; }

.progress-track { background: var(--brand-border); border-radius: 999px; height: 8px; overflow: hidden; min-width: 90px; }
.progress-fill { background: var(--brand-accent); height: 100%; border-radius: 999px; transition: width .4s ease; }

/* Chat */
.chat-box { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--brand-border); border-radius: var(--radius); height: 560px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 75%; padding: 11px 15px; border-radius: 12px; font-size: 14.5px; }
.chat-msg.mine { align-self: flex-end; background: var(--brand-dark); color: #fff; border-bottom-right-radius: 3px; }
.chat-msg.theirs { align-self: flex-start; background: var(--brand-light); border: 1px solid var(--brand-border); border-bottom-left-radius: 3px; }
.chat-msg .meta { display: block; font-size: 11px; opacity: .6; margin-top: 4px; }
.chat-msg a { text-decoration: underline; }
.chat-msg.mine a { color: var(--brand-accent); }
.chat-input { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--brand-border); }
.chat-input textarea { flex: 1; resize: none; height: 46px; padding: 11px 14px; border: 1px solid var(--brand-border); border-radius: var(--radius-btn); }
.chat-attach { display: flex; align-items: center; }

/* Offer card */
.offer-card { background: #fff; border: 1px solid var(--brand-border); border-left: 4px solid var(--brand-accent); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; }
.offer-price { font-family: var(--font-heading); font-size: 28px; font-weight: 800; color: var(--brand-dark); }
.offer-price del { font-size: 18px; color: var(--brand-muted); font-weight: 500; margin-right: 8px; }
.offer-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--brand-muted); margin: 12px 0 18px; }
.offer-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ==========================================================================
   24. FOOTER — authority footer
   ========================================================================== */
.site-footer { background: var(--brand-dark); color: rgba(255,255,255,.72); font-size: 14.5px; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1fr; gap: 32px; padding: 64px 24px 44px; max-width: var(--container); margin: 0 auto; }
@media (max-width: 1080px) { .footer-main { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .footer-main { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { font-size: 14px; margin: 14px 0; }
.footer-brand .site-logo { color: #fff; }
.footer-contact li { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; list-style: none; }
.footer-contact svg { width: 15px; height: 15px; color: var(--brand-accent); flex: none; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .05em; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: rgba(255,255,255,.68); font-size: 14px; }
.footer-col a:hover { color: var(--brand-accent); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; color: rgba(255,255,255,.75); }
.footer-social a:hover { border-color: var(--brand-accent); color: var(--brand-accent); }
.footer-social svg { width: 16px; height: 16px; }

/* Expandable directories */
.footer-directories { border-top: 1px solid rgba(255,255,255,.1); max-width: var(--container); margin: 0 auto; padding: 10px 24px; }
.footer-dir { border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-dir summary { cursor: pointer; padding: 14px 0; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.85); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.footer-dir summary::-webkit-details-marker { display: none; }
.footer-dir summary::after { content: "+"; color: var(--brand-accent); font-size: 17px; }
.footer-dir[open] summary::after { content: "–"; }
.footer-dir-links { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 4px 0 18px; }
.footer-dir-links a { font-size: 13px; color: rgba(255,255,255,.55); }
.footer-dir-links a:hover { color: var(--brand-accent); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 24px; max-width: var(--container); margin: 0 auto; font-size: 13px; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--brand-accent); }
.payment-icons { display: flex; gap: 8px; align-items: center; }
.payment-icons svg { height: 22px; width: auto; opacity: .7; }

/* ==========================================================================
   25. UTILITIES
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.hidden { display: none !important; }
.badge-lime { background: rgba(126,208,0,.14); color: var(--brand-accent-text); font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 4px 12px; display: inline-block; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: var(--sp-5); }
.pagination .page-numbers { padding: 9px 15px; border: 1px solid var(--brand-border); border-radius: 6px; font-size: 14.5px; color: var(--brand-secondary); }
.pagination .page-numbers.current { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }
.pagination a.page-numbers:hover { border-color: var(--brand-accent-text); color: var(--brand-accent-text); }

/* ==========================================================================
   26. FLOATING CONVERSION ELEMENTS
   ========================================================================== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 250;
  width: 58px; height: 58px; border-radius: 999px;
  background: var(--brand-accent); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(126,208,0,.4);
  transition: transform .18s ease;
}
.wa-float:hover { transform: scale(1.08); color: var(--brand-dark); }

.mobile-cta-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 240;
  background: #fff; border-top: 1px solid var(--brand-border);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.mobile-cta-bar .btn { flex: 1; padding: 12px 10px; font-size: 15px; }
@media (max-width: 768px) {
  .mobile-cta-bar { display: flex; }
  .wa-float { bottom: 78px; right: 16px; width: 50px; height: 50px; }
  body { padding-bottom: 66px; }
}

.cookie-banner {
  position: fixed; left: 22px; bottom: 22px; z-index: 260;
  max-width: 420px; background: var(--brand-dark); color: rgba(255,255,255,.85);
  border-radius: 12px; padding: 20px; box-shadow: var(--shadow-lg);
  font-size: 14px;
}
.cookie-banner a { color: var(--brand-accent); text-decoration: underline; }
.cookie-banner .cookie-actions { display: flex; gap: 10px; margin-top: 14px; }
@media (max-width: 600px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 78px; max-width: none; }
}

@media print { .announce-bar, .site-header, .site-footer, .sidebar, .wa-float, .mobile-cta-bar, .cookie-banner { display: none !important; } }
