/*
Theme Name: Swift Resilience V2
Theme URI: https://swift-resilience.com
Author: Generated by ChatGPT
Author URI: https://chatgpt.com
Description: A custom WordPress theme replicating the design of the Swift Resilience landing page (w3spaces version). This theme provides a modern, minimal and conversion‑focused layout including a sticky header, hero section, risk summary, services overview, process steps, value proposition, FAQ and call‑to‑action.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: swift-resilience-v2
Tags: custom, landing page, compliance, responsive
*/

/*
 * Global Variables and Base Styles
 * These variables and base styles mirror the colours and spacing used on the reference landing page.
 */
:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #16a34a;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

/* Container */
.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}
.brand {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.brand span:first-child {
  color: var(--primary);
}
.brand span:last-child {
  color: var(--text);
  font-weight: 700;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  padding: 14px 22px;
  font-weight: 700;
  transition: 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}
.btn-secondary:hover {
  background: var(--surface-2);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 54px;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(45px);
  opacity: 0.22;
  pointer-events: none;
}
.hero::before {
  width: 320px;
  height: 320px;
  background: rgba(37, 99, 235, 0.22);
  top: -90px;
  right: 2%;
}
.hero::after {
  width: 220px;
  height: 220px;
  background: rgba(14, 165, 233, 0.16);
  bottom: 40px;
  left: 12%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid #dbeafe;
}
h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
h1 .accent {
  color: var(--primary);
}
.hero-copy p {
  max-width: 660px;
  margin: 0 0 24px;
  font-size: 1.1rem;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 26px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}
.hero-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbeafe;
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0) 68%);
}
.card-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.shield {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  position: relative;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.22);
}
.shield::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.3rem;
}
.hero-card h3 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}
.hero-card p {
  margin: 6px 0 0;
  color: var(--muted);
}
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  font-weight: 600;
  color: #1e293b;
}
.check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.12);
  color: var(--success);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 900;
  flex: 0 0 auto;
}

/* Section generic */
section {
  padding: 34px 0;
}
.section-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 26px;
}
.section-intro .mini {
  margin-bottom: 10px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 0.8rem;
}
.section-intro h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.section-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Risk section */
.risk-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: stretch;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.04);
}
.risk-highlight {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 100%;
}
.icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  flex: 0 0 auto;
}
.risk-highlight h3,
.why-copy h3,
.cta-box h3 {
  margin: 0 0 8px;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.risk-highlight p,
.why-copy p,
.cta-box p {
  margin: 0;
  color: var(--muted);
}
.bullet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #334155;
  font-weight: 600;
}
.mini-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dbeafe;
  color: var(--primary);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 900;
}

/* Services cards */
.cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px 18px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.03);
  transition: 0.2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: #bfdbfe;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.08);
}
.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #eff6ff;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.service-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Process */
.process {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.process-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  margin-top: 30px;
}
.process-line::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, #bfdbfe 0%, #60a5fa 100%);
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 8px;
}
.step-number {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #60a5fa 100%);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}
.step h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Why section */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 30px;
  align-items: center;
}
.visual-box {
  min-height: 350px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 35%, rgba(37, 99, 235, 0.14), transparent 28%),
    radial-gradient(circle at 68% 62%, rgba(14, 165, 233, 0.12), transparent 24%),
    linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  border: 1px solid #dbeafe;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.visual-box::before,
.visual-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at center, black 38%, transparent 85%);
}
.shield-big {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 240px;
  border-radius: 44% 44% 48% 48% / 32% 32% 68% 68%;
  border: 4px solid rgba(37, 99, 235, 0.55);
  background: rgba(255, 255, 255, 0.55);
  display: grid;
  place-items: center;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12);
}
.shield-big::after {
  content: "✓";
  color: var(--primary);
  font-size: 4rem;
  font-weight: 900;
}

/* FAQ */
.faq {
  background: #ffffff;
}
.faq-list {
  display: grid;
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
}
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 20px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.03);
}
summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
summary::-webkit-details-marker {
  display: none;
}
.summary-icon {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 800;
  flex: 0 0 auto;
}
details p {
  margin: 0 0 20px;
  color: var(--muted);
}

/* CTA Box */
.cta-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbeafe;
  border-radius: 28px;
  padding: 26px;
  box-shadow: var(--shadow);
}

/* Footer */
.footer {
  padding: 26px 0 50px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 24px;
  padding-top: 12px;
}
.footer h4 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1rem;
}
.footer p,
.footer li,
.footer a {
  font-size: 0.95rem;
  color: var(--muted);
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-grid,
  .risk-grid,
  .why-grid,
  .cta-box,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .process-line {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-box {
    text-align: left;
  }
}
@media (max-width: 780px) {
  .nav {
    flex-wrap: wrap;
    padding: 14px 0;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 14px;
    font-size: 0.88rem;
    overflow-x: auto;
  }
  .hero {
    padding-top: 40px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .process-line {
    grid-template-columns: 1fr;
  }
  .process-line::before {
    display: none;
  }
  .hero-points {
    gap: 14px;
  }
  .cta-box {
    grid-template-columns: 1fr;
  }
  .btn,
  .hero-actions .btn {
    width: 100%;
  }
  .footer-bottom {
    flex-direction: column;
  }
}