/*
Theme Name: SWP Works Professional
Theme URI: https://swp.works/
Author: SWP Works
Author URI: https://swp.works/
Description: A professional, mobile-first WordPress theme for SWP Works safety planning software. Designed for heavy industry, contractors and UK workplaces.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
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: swp-works
Tags: custom-logo, custom-menu, featured-images, full-width-template, responsive-layout
*/

:root {
  --swp-navy-950: #06111a;
  --swp-navy-900: #0a1823;
  --swp-navy-800: #102431;
  --swp-steel-700: #31424e;
  --swp-steel-500: #6d7c86;
  --swp-steel-200: #d9e0e5;
  --swp-steel-100: #eef2f4;
  --swp-white: #ffffff;
  --swp-gold: #f2b511;
  --swp-gold-dark: #d59600;
  --swp-green: #1f8f5f;
  --swp-red: #c43d3d;
  --swp-radius-sm: 8px;
  --swp-radius: 14px;
  --swp-radius-lg: 22px;
  --swp-shadow-sm: 0 8px 24px rgba(6, 17, 26, .08);
  --swp-shadow: 0 18px 50px rgba(6, 17, 26, .14);
  --swp-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--swp-navy-900);
  background: #f7f9fa;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.swp-container { width: min(calc(100% - 32px), var(--swp-max)); margin-inline: auto; }
.swp-section { padding: 84px 0; }
.swp-section--tight { padding: 56px 0; }
.swp-eyebrow { color: var(--swp-gold-dark); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.swp-heading { margin: 10px 0 18px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.07; letter-spacing: -.035em; }
.swp-lead { max-width: 700px; color: var(--swp-steel-700); font-size: clamp(1.05rem, 2vw, 1.25rem); }

.swp-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6,17,26,.94);
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}
.swp-header-inner { min-height: 78px; display: flex; align-items: center; gap: 28px; }
.swp-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.swp-brand-mark { width: 42px; height: 48px; display: grid; place-items: center; }
.swp-brand-text { display: flex; flex-direction: column; line-height: 1; }
.swp-brand-name { font-size: 1.34rem; font-weight: 900; letter-spacing: .02em; }
.swp-brand-tagline { margin-top: 7px; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: #c7d1d8; font-weight: 700; }
.custom-logo { max-height: 48px; width: auto; }
.swp-main-nav { margin-left: auto; }
.swp-main-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.swp-main-nav a { color: #dfe6ea; font-size: .94rem; font-weight: 700; transition: color .2s ease; }
.swp-main-nav a:hover, .swp-main-nav .current-menu-item > a { color: var(--swp-gold); }
.swp-header-actions { display: flex; align-items: center; gap: 12px; }
.swp-mobile-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: transparent; color: white; cursor: pointer; }

.swp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 850;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.swp-btn:hover { transform: translateY(-2px); }
.swp-btn--gold { background: var(--swp-gold); color: #08121a; box-shadow: 0 10px 24px rgba(242,181,17,.22); }
.swp-btn--gold:hover { background: #ffc72b; }
.swp-btn--dark { background: var(--swp-navy-900); color: white; }
.swp-btn--outline { border-color: rgba(255,255,255,.35); color: white; background: rgba(255,255,255,.03); }
.swp-btn--outline-dark { border-color: var(--swp-steel-200); color: var(--swp-navy-900); background: white; }
.swp-btn--small { min-height: 42px; padding: 0 17px; font-size: .9rem; }

.swp-hero {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(90deg, rgba(6,17,26,.98) 0%, rgba(6,17,26,.92) 46%, rgba(6,17,26,.42) 100%),
    radial-gradient(circle at 78% 45%, rgba(242,181,17,.22), transparent 32%),
    linear-gradient(135deg, #101f28 0%, #0a151d 45%, #091017 100%);
}
.swp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, transparent 10%, black 100%);
}
.swp-hero.has-bg { background-size: cover; background-position: center; }
.swp-hero-inner { position: relative; z-index: 2; min-height: 690px; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 56px; padding: 86px 0 74px; }
.swp-hero h1 { margin: 12px 0 22px; max-width: 760px; font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -.055em; }
.swp-hero h1 span { color: var(--swp-gold); }
.swp-hero-copy { max-width: 680px; color: #d7e0e6; font-size: clamp(1.08rem, 2vw, 1.28rem); }
.swp-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.swp-hero-proof { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 24px; color: #c5d0d6; font-size: .92rem; }
.swp-proof-item { display: inline-flex; align-items: center; gap: 9px; }
.swp-proof-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(242,181,17,.14); color: var(--swp-gold); font-size: .72rem; font-weight: 900; }

.swp-hero-panel {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--swp-radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  box-shadow: 0 28px 80px rgba(0,0,0,.3);
  backdrop-filter: blur(18px);
}
.swp-panel-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 20px; }
.swp-status { display: inline-flex; align-items: center; gap: 8px; color: #dce6eb; font-size: .84rem; font-weight: 700; }
.swp-status::before { content: ""; width: 9px; height: 9px; background: #50d38a; border-radius: 50%; box-shadow: 0 0 0 5px rgba(80,211,138,.12); }
.swp-panel-title { font-size: 1.2rem; font-weight: 850; }
.swp-assistant-card { padding: 22px; border-radius: 16px; background: white; color: var(--swp-navy-900); }
.swp-assistant-question { font-size: 1.08rem; font-weight: 850; margin-bottom: 12px; }
.swp-faux-input { min-height: 86px; padding: 14px 16px; border: 1px solid var(--swp-steel-200); border-radius: 10px; color: var(--swp-steel-700); background: #f8fafb; }
.swp-suggestions { display: grid; gap: 9px; margin-top: 16px; }
.swp-suggestion { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 9px; background: var(--swp-steel-100); font-size: .88rem; }
.swp-suggestion b { color: var(--swp-green); }
.swp-panel-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; color: #cbd6dc; font-size: .82rem; }

.swp-trust-strip { background: var(--swp-navy-900); color: white; border-top: 1px solid rgba(255,255,255,.08); }
.swp-trust-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.swp-trust-item { padding: 28px 24px; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.swp-trust-item:last-child { border-right: 0; }
.swp-trust-item strong { display: block; color: var(--swp-gold); font-size: 1.7rem; line-height: 1.1; }
.swp-trust-item span { color: #cbd5db; font-size: .88rem; }

.swp-features-intro { text-align: center; max-width: 780px; margin: 0 auto 42px; }
.swp-feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.swp-card { background: white; border: 1px solid #e2e8ec; border-radius: var(--swp-radius); box-shadow: var(--swp-shadow-sm); }
.swp-feature-card { padding: 28px; }
.swp-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 13px; color: var(--swp-navy-900); background: rgba(242,181,17,.16); margin-bottom: 20px; }
.swp-feature-card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.swp-feature-card p { margin: 0; color: var(--swp-steel-700); }

.swp-process { background: var(--swp-steel-100); }
.swp-process-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; counter-reset: swpstep; }
.swp-step { position: relative; padding: 30px; background: white; border-radius: var(--swp-radius); border: 1px solid #dce4e8; }
.swp-step::before { counter-increment: swpstep; content: "0" counter(swpstep); display: inline-flex; color: var(--swp-gold-dark); font-weight: 900; letter-spacing: .05em; margin-bottom: 18px; }
.swp-step h3 { margin: 0 0 10px; }
.swp-step p { margin: 0; color: var(--swp-steel-700); }

.swp-industries { background: var(--swp-navy-950); color: white; }
.swp-industry-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 34px; }
.swp-industry { min-height: 112px; padding: 20px; border: 1px solid rgba(255,255,255,.11); border-radius: 12px; background: rgba(255,255,255,.05); display: flex; align-items: flex-end; font-weight: 800; }

.swp-cta { padding: 84px 0; }
.swp-cta-box { position: relative; overflow: hidden; padding: 54px; border-radius: var(--swp-radius-lg); color: white; background: linear-gradient(135deg, var(--swp-navy-900), #153245); box-shadow: var(--swp-shadow); }
.swp-cta-box::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -90px; border-radius: 50%; background: rgba(242,181,17,.15); }
.swp-cta-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.swp-cta h2 { margin: 0 0 8px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
.swp-cta p { margin: 0; color: #d1dce2; }

.swp-content-wrap { width: min(calc(100% - 32px), 940px); margin: 0 auto; padding: 64px 0 90px; }
.swp-page-header { padding: 62px 0; color: white; background: var(--swp-navy-900); }
.swp-page-header h1 { margin: 0; font-size: clamp(2.3rem, 5vw, 4.2rem); letter-spacing: -.04em; line-height: 1.05; }
.swp-entry { background: white; padding: clamp(24px,5vw,54px); border-radius: var(--swp-radius); box-shadow: var(--swp-shadow-sm); }
.swp-entry h2, .swp-entry h3 { line-height: 1.2; }
.swp-entry a { color: #a87400; text-decoration: underline; }

.swp-site-footer { background: var(--swp-navy-950); color: #c8d2d8; }
.swp-footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 48px; padding: 58px 0 42px; }
.swp-footer-title { color: white; font-weight: 850; margin-bottom: 14px; }
.swp-footer-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.swp-footer-menu a:hover { color: var(--swp-gold); }
.swp-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0 28px; font-size: .86rem; display: flex; justify-content: space-between; gap: 20px; }

.screen-reader-text { position: absolute!important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 980px) {
  .swp-main-nav { position: fixed; inset: 78px 0 auto 0; display: none; background: var(--swp-navy-950); border-top: 1px solid rgba(255,255,255,.08); padding: 22px 24px 30px; }
  .swp-main-nav.is-open { display: block; }
  .swp-main-nav ul { flex-direction: column; align-items: flex-start; gap: 18px; }
  .swp-mobile-toggle { display: inline-grid; place-items: center; margin-left: auto; }
  .swp-header-actions .swp-btn { display: none; }
  .swp-hero-inner { grid-template-columns: 1fr; min-height: auto; padding-top: 72px; }
  .swp-hero-panel { max-width: 720px; }
  .swp-feature-grid { grid-template-columns: repeat(2,1fr); }
  .swp-industry-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 700px) {
  .swp-container { width: min(calc(100% - 24px), var(--swp-max)); }
  .swp-site-header { position: sticky; }
  .swp-header-inner { min-height: 70px; }
  .swp-brand-tagline { display: none; }
  .swp-brand-name { font-size: 1.16rem; }
  .swp-brand-mark { width: 36px; height: 42px; }
  .swp-main-nav { inset: 70px 0 auto 0; }
  .swp-hero-inner { padding: 56px 0 44px; gap: 38px; }
  .swp-hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .swp-hero-actions .swp-btn { width: 100%; }
  .swp-hero-proof { display: grid; gap: 12px; }
  .swp-hero-panel { padding: 16px; border-radius: 18px; }
  .swp-assistant-card { padding: 17px; }
  .swp-trust-grid { grid-template-columns: repeat(2,1fr); }
  .swp-trust-item:nth-child(2) { border-right: 0; }
  .swp-trust-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .swp-feature-grid, .swp-process-grid, .swp-industry-grid, .swp-footer-grid { grid-template-columns: 1fr; }
  .swp-section { padding: 64px 0; }
  .swp-cta-box { padding: 34px 24px; }
  .swp-cta-inner { align-items: flex-start; flex-direction: column; }
  .swp-cta-inner .swp-btn { width: 100%; }
  .swp-footer-bottom { flex-direction: column; }
}


/* v1.1 industrial photography */
.swp-hero.has-bg { background-size: cover; background-position: center 42%; }
.swp-experience { background: #fff; }
.swp-split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.swp-split-image { position: relative; min-height: 520px; overflow: hidden; border-radius: var(--swp-radius-lg); box-shadow: var(--swp-shadow); background: var(--swp-navy-900); }
.swp-split-image::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 45%,rgba(6,17,26,.78)); pointer-events:none; }
.swp-split-image img { width:100%; height:100%; min-height:520px; object-fit:cover; display:block; }
.swp-image-label { position:absolute; z-index:2; left:24px; bottom:22px; color:#fff; font-weight:850; letter-spacing:.02em; }
.swp-split-copy .swp-heading { font-size:clamp(2rem,3.7vw,3.25rem); }
.swp-check-list { display:grid; gap:18px; margin-top:30px; }
.swp-check-list > div { display:grid; grid-template-columns:34px 1fr; gap:14px; align-items:start; }
.swp-check-list span { width:30px; height:30px; border-radius:50%; background:rgba(242,181,17,.18); color:var(--swp-gold-dark); display:grid; place-items:center; font-weight:900; }
.swp-check-list p { margin:0; color:var(--swp-steel-700); }
.swp-check-list strong { color:var(--swp-navy-900); }
.swp-industries-head { display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:center; }
.swp-industries-photo { min-height:280px; border-radius:18px; overflow:hidden; border:1px solid rgba(255,255,255,.12); box-shadow:0 24px 64px rgba(0,0,0,.26); }
.swp-industries-photo img { width:100%; height:100%; min-height:280px; object-fit:cover; display:block; filter:saturate(.85) contrast(1.05); }
.swp-industry { position:relative; overflow:hidden; background:linear-gradient(145deg,rgba(255,255,255,.085),rgba(255,255,255,.025)); }
.swp-industry::before { content:""; position:absolute; left:0; bottom:0; width:42px; height:3px; background:var(--swp-gold); }

@media (max-width: 980px) {
  .swp-split-layout, .swp-industries-head { grid-template-columns:1fr; }
  .swp-split-image { min-height:420px; }
  .swp-split-image img { min-height:420px; }
}
@media (max-width: 700px) {
  .swp-hero.has-bg { background-position: 62% center; }
  .swp-split-layout { gap:34px; }
  .swp-split-image { min-height:330px; border-radius:16px; }
  .swp-split-image img { min-height:330px; }
  .swp-industries-photo, .swp-industries-photo img { min-height:220px; }
}
