/*
Theme Name: Cybersecurity Advisor
Theme URI: https://www.cyberadvisor.co.uk/
Author: OpenAI Codex
Description: A custom WordPress starter theme for the Cybersecurity Advisor website rebuild.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: cyberadvisor
*/

:root {
  --bg: #eef5fb;
  --bg-strong: #0e315f;
  --panel: #ffffff;
  --panel-soft: #e7f0fb;
  --ink: #11263d;
  --muted: #5c6f85;
  --line: rgba(17, 38, 61, 0.12);
  --brand: #1e70d8;
  --brand-deep: #0d3a74;
  --brand-soft: #dbeafe;
  --accent: #62b8ff;
  --danger: #9f3d2f;
  --shadow: 0 22px 50px rgba(13, 58, 116, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(98, 184, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 55%, #e4eef8 100%);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.site-shell {
  position: relative;
  overflow: hidden;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.site-shell::before {
  top: -220px;
  right: -140px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(30, 112, 216, 0.18), transparent 66%);
}

.site-shell::after {
  left: -140px;
  top: 700px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(98, 184, 255, 0.16), transparent 66%);
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  background: rgba(8, 31, 61, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 30px rgba(8, 31, 61, 0.18);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand__mark {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 24px rgba(13, 58, 116, 0.18);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand__name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__title,
.brand__subtitle,
.hero__eyebrow,
.section-eyebrow,
.stat-card__label,
.quote-card__eyebrow {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.brand__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f7fbff;
}

.brand__subtitle {
  color: rgba(219, 234, 254, 0.78);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  max-width: 32ch;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.96rem;
}

.site-nav a {
  text-decoration: none;
  color: rgba(231, 240, 251, 0.78);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffffff;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6dd6ff, #d8fff6);
  color: #06233f;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(109, 214, 255, 0.22);
}

.header-cta:hover,
.header-cta:focus-visible {
  color: #04182d;
}

.button,
button,
input[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
}

.button:hover,
.button:focus-visible,
button:hover,
button:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 14px 28px rgba(31, 107, 79, 0.20);
}

.button--ghost {
  color: #f7fbff;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.button--secondary {
  color: #fff;
  background: linear-gradient(135deg, #3478e5, #0d3a74);
  box-shadow: 0 14px 28px rgba(13, 58, 116, 0.20);
}

.hero {
  padding: 72px 0 48px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 34px;
  align-items: stretch;
}

.hero__copy {
  position: relative;
  padding: 44px;
  border-radius: 34px;
  background: linear-gradient(155deg, rgba(9, 38, 79, 0.97), rgba(30, 112, 216, 0.90));
  color: #f7fbff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero__copy::after {
  content: "";
  position: absolute;
  inset: auto -90px -110px auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(98, 184, 255, 0.28), transparent 68%);
}

.hero__eyebrow,
.section-eyebrow,
.quote-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero__eyebrow::before,
.section-eyebrow::before,
.quote-card__eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
  opacity: 0.65;
}

.hero h1,
.section-heading {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(2.75rem, 7vw, 5.1rem);
}

.hero__lede {
  max-width: 62ch;
  margin: 18px 0 0;
  font-size: 1.08rem;
  color: rgba(247, 251, 255, 0.84);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.stat-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-card__label {
  color: rgba(219, 234, 254, 0.76);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
}

.hero__visual {
  display: grid;
  gap: 18px;
}

.hero__image-card,
.quote-card {
  overflow: hidden;
  border-radius: 30px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero__image-card img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.quote-card {
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(231, 240, 251, 0.98));
}

.quote-card p {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.quote-card strong {
  color: var(--brand-deep);
}

.section {
  padding: 34px 0 48px;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-intro {
  max-width: 68ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 22px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(17, 38, 61, 0.08);
  box-shadow: var(--shadow);
}

.pillar-card {
  padding: 26px;
}

.pillar-card img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.pillar-card h3,
.lead-card h3,
.info-card h3,
.page-hero h1 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.pillar-card h3,
.lead-card h3,
.info-card h3 {
  margin: 18px 0 10px;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.pillar-card p,
.lead-card p,
.info-card p,
.check-list li,
.contact-list li,
.page-copy p,
.page-copy li {
  color: var(--muted);
}

.check-list,
.contact-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.contact-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}

.check-list li::before,
.contact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 22px;
  padding: 28px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(30, 112, 216, 0.09), rgba(98, 184, 255, 0.10)),
    var(--panel);
}

.split-panel__visual {
  border-radius: 24px;
  overflow: hidden;
}

.split-panel__visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.lead-card {
  padding: 28px;
}

.lead-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.lead-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lead-form__field {
  display: grid;
  gap: 8px;
}

.lead-form__field label,
.lead-form__consent {
  font-size: 0.95rem;
  color: inherit;
}

.lead-form__field input[type="text"],
.lead-form__field input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(16, 32, 25, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font: inherit;
}

.lead-form__field input[type="text"]:focus,
.lead-form__field input[type="email"]:focus {
  outline: 2px solid rgba(30, 112, 216, 0.18);
  border-color: rgba(30, 112, 216, 0.42);
}

.lead-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.lead-form__consent input {
  margin-top: 3px;
}

.lead-form__fineprint {
  margin: 0;
  color: rgba(231, 240, 251, 0.78);
  font-size: 0.88rem;
}

.lead-form--light .lead-form__fineprint,
.lead-form--light .lead-form__consent {
  color: var(--muted);
}

.lead-card--primary .lead-form--light .lead-form__consent,
.lead-card--primary .lead-form--light .lead-form__fineprint {
  color: rgba(247, 251, 255, 0.92);
}

.lead-card--primary .lead-form--light .lead-form__consent a,
.lead-card--primary .lead-form--light .lead-form__fineprint a {
  color: #ffffff;
}

.lead-card--primary .lead-form__consent input {
  accent-color: #8cd1ff;
}

.lead-form--light .lead-form__field input[type="text"],
.lead-form--light .lead-form__field input[type="email"] {
  background: #fff;
}

.status-message {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.status-message--error {
  color: #7d2d23;
  background: rgba(159, 61, 47, 0.10);
  border-color: rgba(159, 61, 47, 0.22);
}

.book-highlight {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.book-highlight img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.download-panel {
  display: grid;
  gap: 18px;
}

.lead-card--primary {
  background: linear-gradient(180deg, rgba(9, 38, 79, 0.98), rgba(21, 84, 171, 0.95));
  color: #f7fbff;
}

.lead-card--primary p,
.lead-card--primary .check-list li {
  color: rgba(231, 240, 251, 0.86);
}

.lead-card--primary .check-list li::before {
  background: linear-gradient(135deg, #8cd1ff, #ffffff);
}

.lead-card--soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(231, 240, 251, 0.98));
}

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 22px;
}

.vpn-feature,
.footer-promo {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
}

.vpn-feature {
  background:
    linear-gradient(135deg, rgba(6, 35, 63, 0.98), rgba(17, 96, 170, 0.92)),
    var(--panel);
  color: #f7fbff;
}

.vpn-feature .section-intro,
.vpn-feature .check-list li {
  color: rgba(231, 240, 251, 0.85);
}

.vpn-feature .check-list li::before {
  background: linear-gradient(135deg, #6dd6ff, #ffffff);
}

.vpn-feature__aside,
.footer-promo__actions {
  display: grid;
  gap: 16px;
}

.vpn-feature__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.vpn-inline-link {
  color: var(--brand-deep);
  font-weight: 700;
  text-decoration: none;
}

.vpn-feature .vpn-inline-link {
  color: #dff4ff;
}

.vpn-inline-link:hover,
.vpn-inline-link:focus-visible {
  text-decoration: underline;
}

.vpn-feature .vpn-inline-link:hover,
.vpn-feature .vpn-inline-link:focus-visible {
  color: #ffffff;
}

.vpn-inline-card {
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.55), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(30, 112, 216, 0.16);
}

.vpn-inline-card h2 {
  margin-top: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.info-card {
  padding: 26px;
}

.page-main {
  padding: 62px 0;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 26px;
  align-items: start;
}

.page-hero,
.page-copy,
.page-aside {
  padding: 30px;
}

.page-hero,
.page-aside {
  position: sticky;
  top: 96px;
}

.page-hero {
  color: #f7fbff;
  background: linear-gradient(180deg, var(--brand-deep), var(--brand));
}

.page-hero h1 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
}

.page-copy h2 {
  margin-top: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.45rem;
}

.page-copy ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.page-copy li + li {
  margin-top: 8px;
}

.page-aside {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(231, 240, 251, 0.96));
}

.page-aside h3 {
  margin-top: 0;
}

.notice {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(98, 184, 255, 0.14);
  color: #1c4576;
  border: 1px solid rgba(30, 112, 216, 0.24);
}

.site-footer {
  margin-top: 30px;
  padding: 40px 0 56px;
  border-top: 1px solid rgba(17, 38, 61, 0.08);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
}

.site-footer p,
.site-footer li {
  color: var(--muted);
}

.footer-promo h3 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.footer-promo p {
  margin-bottom: 0;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--brand-deep);
}

@media (max-width: 980px) {
  .site-header__bar,
  .site-nav,
  .hero__meta,
  .grid-3,
  .grid-2,
  .hero__grid,
  .lead-grid,
  .vpn-feature,
  .footer-promo,
  .lead-form__grid,
  .book-highlight,
  .split-panel,
  .page-grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-header__bar,
  .site-nav,
  .site-header__actions {
    display: grid;
  }

  .site-nav {
    gap: 12px;
  }

  .brand__subtitle {
    max-width: none;
  }

  .hero__copy,
  .vpn-feature,
  .footer-promo,
  .split-panel,
  .page-copy,
  .page-hero,
  .page-aside {
    padding: 24px;
  }

  .hero__image-card img {
    min-height: 340px;
  }

  .page-hero,
  .page-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 44px;
  }

  .hero__copy {
    border-radius: 26px;
  }

  .hero h1 {
    max-width: none;
  }

  .button,
  button,
  input[type="submit"] {
    width: 100%;
  }

  .vpn-feature__actions {
    display: grid;
  }

  .brand {
    align-items: flex-start;
  }

  .brand__mark {
    width: 56px;
    height: 56px;
  }
}
