/*
Theme Name: Express Website
Theme URI: https://express-website.co.uk
Author: Express Website
Author URI: https://express-website.co.uk
Description: A modern dark, high-contrast WordPress theme for Express Website — a UK agency building websites for tradespeople and local businesses. Signal Green accent, Schibsted Grotesk display type, programmatic SEO landing pages.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: express-website
Tags: one-page, custom-menu, dark, mobile-first, blog
*/

/* =============================================================
   DESIGN TOKENS
   ============================================================= */
:root {
  /* Signal Green identity system — see ExpressIcons.html (concept 4a) */
  --ink: #101112;
  --ink-2: #17181E;
  --ink-3: #1F2128;
  --line-dark: rgba(255,255,255,0.10);
  --paper: #F4F4F0;
  --paper-2: #FBFBF8;
  --line-light: rgba(16,17,18,0.10);
  --accent: #C6F24E;
  --accent-deep: #7F9B3C;
  --accent-ink: #101112;
  --green-step-1: #3D4429;
  --green-step-2: #7F9B3C;
  --on-dark: #F4F4F0;
  --on-dark-mute: rgba(244,244,240,0.62);
  --on-light: #101112;
  --on-light-mute: rgba(16,17,18,0.58);
  --good: #1F9D55;
  --warn: #E8A33D;
  --high: #E8593D;
  --display: "Schibsted Grotesk", sans-serif;
  --body: "Hanken Grotesk", sans-serif;
  --container: 1200px;
}

/* =============================================================
   RESET / BASE
   ============================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--on-dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3, h4, h5, h6 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; }

/* Non-semantic elements that read as headings get balanced wrapping too.
   Unsupported browsers ignore text-wrap and fall back to normal wrapping. */
.feature-title, .mock-title, .sidebar-recent-title, .blog-card-title, .sec-head h2, .plan .tier { text-wrap: balance; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-muted { color: var(--on-dark-mute); }

/* Section colour helpers (shared) */
.sec-light { background: var(--paper); color: var(--on-light); }
.sec-dark  { background: var(--ink); color: var(--on-dark); }
.accent { color: var(--accent); }

/* Offset in-page anchor jumps so they clear the sticky nav */
:target, section[id], [id^="free-offer"], #services, #industries, #pricing, #process, #cta { scroll-margin-top: 96px; }

/* CF7 setup notice (shown only if Contact Form 7 active but form missing) */
.cf7-notice { font-size: 14px; color: var(--on-dark-mute); background: var(--ink); padding: 16px 18px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-dark); line-height: 1.5; }
.cf7-notice strong { color: var(--accent); }

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 16px;
  padding: 16px 26px; border-radius: 100px;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap; letter-spacing: -0.01em; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 30px -8px rgba(198,242,78,0.5); }
.btn-accent:hover { box-shadow: 0 14px 40px -8px rgba(198,242,78,0.7); }
.btn-ghost-dark { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.22); }
.btn-ghost-dark:hover { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.55); }
.btn-ghost-light { background: transparent; color: var(--on-light); box-shadow: inset 0 0 0 1.5px rgba(16,17,18,0.22); }
.btn-ghost-light:hover { box-shadow: inset 0 0 0 1.5px rgba(16,17,18,0.55); }
.btn-dark { background: var(--ink); color: var(--on-dark); }
.btn-sm { padding: 12px 20px; font-size: 15px; }
.btn-block { width: 100%; }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 600; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(198,242,78,0.18); }
.eyebrow.on-light { color: var(--on-light); }

.pill-tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600; padding: 8px 15px 8px 12px;
  border-radius: 100px; background: rgba(255,255,255,0.06);
  box-shadow: inset 0 0 0 1px var(--line-dark);
}
.pill-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* =============================================================
   PROGRESS BAR
   ============================================================= */
.progress-bar-top {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--accent); z-index: 200; transition: width .1s linear;
  box-shadow: 0 0 12px rgba(198,242,78,0.6);
}

/* =============================================================
   NAV
   ============================================================= */
header.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(16,17,18,0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .25s ease, background .25s ease;
}
header.nav.scrolled { border-bottom-color: var(--line-dark); background: rgba(16,17,18,0.88); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.03em; color: var(--on-dark); }
.logo .mark {
  width: 34px; height: 34px; border-radius: 22.5%; background: var(--accent);
  display: grid; place-items: center; color: var(--accent-ink); flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(198,242,78,0.4), 0 6px 18px -6px rgba(198,242,78,0.5);
}
.logo .mark svg { width: 18px; height: auto; }
.logo .wm { display: inline-flex; align-items: baseline; gap: 1px; }
.logo .wm b { font-weight: 700; }
.logo .wm span { color: var(--accent); font-weight: 700; }

/* Primary menu (WP wp_nav_menu) styled as inline links */
.nav-menu { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-menu li { position: relative; }
.nav-menu a { font-size: 15.5px; font-weight: 500; color: var(--on-dark-mute); transition: color .15s ease; display: inline-flex; align-items: center; gap: 6px; }
.nav-menu a:hover, .nav-menu .current-menu-item > a { color: var(--on-dark); }
.nav-menu .nav-cta-link { color: var(--accent); font-weight: 600; }
/* dropdowns */
.nav-menu .sub-menu {
  position: absolute; top: 140%; left: 0; min-width: 200px; list-style: none; margin: 0; padding: 8px;
  background: var(--ink-2); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-dark), 0 24px 50px -24px rgba(0,0,0,0.7);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease; z-index: 10;
}
.nav-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu .sub-menu a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 14.5px; color: var(--on-dark-mute); }
.nav-menu .sub-menu a:hover { background: rgba(255,255,255,0.05); color: var(--on-dark); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

/* Hamburger */
.nav-hamburger { display: none; width: 44px; height: 44px; border-radius: 12px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; box-shadow: inset 0 0 0 1px var(--line-dark); }
.nav-hamburger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--on-dark); transition: transform .25s ease, opacity .2s ease; }

/* =============================================================
   MOBILE DRAWER
   ============================================================= */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; z-index: 110; }
.drawer-overlay.active { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(360px, 86vw);
  background: var(--ink-2); z-index: 120; transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column;
  box-shadow: -30px 0 80px -30px rgba(0,0,0,0.8); border-left: 1px solid var(--line-dark);
}
.drawer.active { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line-dark); }
.drawer-close { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--on-dark); box-shadow: inset 0 0 0 1px var(--line-dark); font-size: 18px; }
.drawer-close:hover { background: rgba(255,255,255,0.05); }
.drawer-body { padding: 16px 18px; overflow-y: auto; flex: 1; }
.drawer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.drawer-menu a { display: block; padding: 14px 14px; border-radius: 12px; font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--on-dark); letter-spacing: -0.02em; }
.drawer-menu a:hover { background: rgba(255,255,255,0.05); }
.drawer-menu .sub-menu { list-style: none; margin: 0 0 0 12px; padding: 0; }
.drawer-menu .sub-menu a { font-size: 15.5px; font-weight: 500; color: var(--on-dark-mute); }
.drawer-foot { padding: 18px 22px 26px; border-top: 1px solid var(--line-dark); }
body.drawer-open { overflow: hidden; }

/* =============================================================
   FOOTER
   ============================================================= */
footer.site-footer { background: #0A0B0C; border-top: 1px solid var(--line-dark); padding: 56px 0 40px; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line-dark); }
.foot-links { display: flex; gap: 28px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.foot-links a { font-size: 15px; color: var(--on-dark-mute); transition: color .15s ease; }
.foot-links a:hover { color: var(--on-dark); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.foot-bottom p { font-size: 14px; color: var(--on-dark-mute); }
.foot-status { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--on-dark-mute); }
.foot-status .live { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(31,157,85,0.2); }

/* =============================================================
   CHAT WIDGET + BACK TO TOP
   ============================================================= */
.chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 90; }
.chat-fab {
  position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-size: 24px;
  box-shadow: 0 14px 34px -10px rgba(198,242,78,0.6); transition: transform .2s ease;
}
.chat-fab:hover { transform: translateY(-3px) scale(1.04); }
.chat-badge-dot { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 100px; background: var(--high); color: #fff; font-size: 11px; font-weight: 700; font-family: var(--display); display: grid; place-items: center; box-shadow: 0 0 0 3px #0A0B0C; }
.chat-popup {
  position: absolute; bottom: 76px; right: 0; width: min(340px, 84vw);
  background: var(--ink-2); border-radius: 20px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line-dark), 0 40px 80px -30px rgba(0,0,0,0.8);
}
.chat-popup.hidden { display: none; }
.chat-header-bar { padding: 18px 20px; background: linear-gradient(135deg, var(--ink-3), var(--ink-2)); border-bottom: 1px solid var(--line-dark); }
.chat-header-bar h6 { font-size: 16px; }
.chat-header-bar small { font-size: 12.5px; color: var(--on-dark-mute); }
.chat-online { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--on-dark-mute); display: inline-flex; align-items: center; gap: 7px; }
.chat-online .live { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(31,157,85,0.2); }
.chat-body { padding: 18px 18px 6px; }
.chat-msg { background: var(--ink); border-radius: 14px; padding: 14px 15px; font-size: 14px; line-height: 1.5; color: var(--on-dark); box-shadow: inset 0 0 0 1px var(--line-dark); }
.chat-msg .who { font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--accent); margin-bottom: 4px; }
.chat-input-row { display: flex; gap: 8px; padding: 14px 16px 16px; }
.chat-input-row input { flex: 1; background: var(--ink); color: var(--on-dark); border-radius: 100px; padding: 11px 16px; font-family: var(--body); font-size: 14px; box-shadow: inset 0 0 0 1px var(--line-dark); }
.chat-input-row input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.chat-input-row button { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex-shrink: 0; font-size: 18px; }

.back-top {
  position: fixed; right: 22px; bottom: 92px; z-index: 89;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink-2); color: var(--on-dark); box-shadow: inset 0 0 0 1px var(--line-dark), 0 14px 30px -12px rgba(0,0,0,0.7);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease; font-size: 18px;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { color: var(--accent); box-shadow: inset 0 0 0 1px rgba(198,242,78,0.4), 0 14px 30px -12px rgba(0,0,0,0.7); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =============================================================
   RESPONSIVE (base)
   ============================================================= */
@media (max-width: 980px) {
  .nav-menu, .nav-cta .btn-ghost-dark, .nav-cta .nav-login { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .chat-popup { width: min(320px, 90vw); }
}
