/* BMS Cyber Defence: original Elementor brand, rebuilt by hand.
   Layout concept: bright white pages, navy Poppins headlines, alternating
   media/text rows, soft grey-blue bands, sky-blue pill buttons.
   Deliberately a single light theme to match the established brand. */
:root {
  --navy: #1c244b;        /* Elementor primary */
  --text: #324a6d;        /* Elementor text */
  --blue: #467ff7;        /* Elementor accent */
  --sky: #5bc0de;         /* buttons */
  --mist: #f3f5f8;        /* Elementor secondary */
  --snow: #f9fafd;
  --steel: #c8d5dc;       /* footer band */
  --white: #ffffff;
  --line: #e2e8f0;
  --ok: #1f7a4d;
  --err: #b42318;
  color-scheme: light;

  --font: "Poppins", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  --step-3: clamp(1.8rem, 1.3rem + 2vw, 2.4rem);
  --step-4: clamp(2.2rem, 1.4rem + 3.6vw, 4.06rem);

  --wide: 72rem;
  --radius: 16px;
  --shadow: 0 10px 30px rgb(28 36 75 / 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--font); font-size: var(--step-0); line-height: 1.7; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font); color: var(--navy); font-weight: 600; line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }
p { margin: 0; }
ul { margin: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 8px 12px; z-index: 60; }
.skip:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--wide); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.flow > * + * { margin-top: 1rem; }
.center { text-align: center; }
.center .btn-row { justify-content: center; }
.narrow { max-width: 46rem; margin-inline: auto; }
.lede { font-size: 1.1rem; }
.small { font-size: var(--step--1); }
.highlight { color: #c2185b; font-weight: 600; }
.note-em { color: #c2185b; font-style: italic; font-size: var(--step--1); }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--white); box-shadow: 0 1px 0 var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--white); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand img { height: 64px; width: auto; }
@media (max-width: 600px) { .brand img { height: 48px; } }
.brand-text { font-weight: 700; font-size: 1.4rem; color: #4a6fa5; line-height: 1.05; text-decoration: none; }

.nav { display: none; }
.nav > ul { list-style: none; display: flex; gap: 2px; padding: 0; align-items: center; }
.nav a { display: block; padding: 10px 9px; color: var(--navy); text-decoration: none; font-size: 0.92rem; border-radius: 8px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }
.has-sub { position: relative; }
.has-sub > a::after { content: ""; display: inline-block; margin-left: 7px; border: 4.5px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.sub { list-style: none; padding: 8px; position: absolute; left: 0; top: 100%; min-width: 15rem; background: var(--white); border-radius: 12px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: 0.2s ease; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { padding: 8px 12px; }
.sub a:hover { background: var(--mist); }

.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 9px 16px; border-radius: 100px; background: var(--sky); color: var(--white); font-weight: 500; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(18rem, calc(100vw - 32px)); background: var(--white); border-radius: 12px; padding: 8px; box-shadow: var(--shadow); }
.menu-panel ul { list-style: none; padding: 0; }
.menu-panel a { display: block; padding: 10px 12px; color: var(--navy); text-decoration: none; border-radius: 8px; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--mist); color: var(--blue); }
.menu-panel .indent a { padding-left: 26px; font-size: 0.92rem; }
@media (min-width: 1200px) { .nav { display: block; } .menu { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 34px; border-radius: 100px; background: var(--sky); color: var(--white); font-family: var(--font); font-weight: 500; font-size: 0.95rem; text-decoration: none; border: 1px solid var(--sky); cursor: pointer; transition: background 0.2s, border-color 0.2s, transform 0.2s; box-shadow: 0 6px 16px rgb(91 192 222 / 0.35); }
.btn:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.btn.alt { background: var(--blue); border-color: var(--blue); box-shadow: 0 6px 16px rgb(70 127 247 / 0.3); }
.btn.alt:hover { background: var(--navy); border-color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { color: var(--navy); font-weight: 500; font-size: 0.9rem; }

/* Sections */
.section { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.tint { background: var(--snow); }
.mist { background: var(--mist); }
.split { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split.media-first > .media { order: -1; } }
.split > * { min-width: 0; }
.media { display: grid; place-items: center; }
.lottie { width: 100%; max-width: 520px; aspect-ratio: 1 / 0.8; }
.lottie.square { aspect-ratio: 1; max-width: 440px; }
.rounded { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-box { width: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--navy); aspect-ratio: 16 / 9; }
.video-box video { width: 100%; height: 100%; object-fit: cover; }

/* Hero with video background */
.hero { position: relative; overflow: hidden; background: var(--mist); }
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(255 255 255 / 0.82) 0%, rgb(255 255 255 / 0.55) 45%, rgb(255 255 255 / 0) 75%); }
@media (max-width: 760px) { .hero::after { background: rgb(255 255 255 / 0.72); } }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(4rem, 3rem + 7vw, 9rem); }
.hero-copy { max-width: 40rem; display: grid; gap: 1.1rem; }
.hero-copy p { color: var(--navy); font-size: 1.1rem; font-weight: 500; }
.hero-copy .btn-row { margin-top: 1rem; }
.hero.short .wrap { padding-block: clamp(3.5rem, 2.5rem + 5vw, 7rem); }
.eyebrow { color: var(--blue); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* Lists */
.bullets { padding-left: 1.2rem; display: grid; gap: 6px; }
.bullets li::marker { color: var(--blue); }
.bold-list { list-style: none; padding: 0; display: grid; gap: 4px; }
.bold-list li { padding-left: 18px; position: relative; font-weight: 600; color: var(--navy); }
.bold-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }
.bold-list a { color: inherit; text-decoration: none; }
.bold-list a:hover { color: var(--blue); }
.checks { list-style: none; padding: 0; display: grid; gap: 8px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border-radius: 50%; background: var(--sky); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 0.55em; width: 6px; height: 9px; border-right: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(45deg); }

/* Cards */
.cards { display: grid; gap: 1.75rem; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--white); border-radius: var(--radius); display: grid; gap: 12px; align-content: start; }
.card .thumb { border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 2; box-shadow: var(--shadow); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .thumb img { transform: scale(1.06); }
.card h3 { font-size: 1.1rem; }
.card p { font-size: 0.92rem; }
.panel { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: grid; gap: 10px; align-content: start; }

.logo-row { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: center; }
.logo-row img { height: 110px; width: auto; }
.cs-logo { width: 240px; }

/* YouTube facade */
.yt { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: linear-gradient(135deg, var(--navy), var(--blue)); }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt button, .yt a.yt-link { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(28 36 75 / 0.25); border: 0; cursor: pointer; color: var(--white); font: inherit; text-decoration: none; }
.yt .play { width: 74px; height: 52px; border-radius: 14px; background: #ff0033; display: grid; place-items: center; box-shadow: 0 8px 24px rgb(0 0 0 / 0.3); transition: transform 0.2s; }
.yt .play::before { content: ""; border-left: 20px solid var(--white); border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.yt button:hover .play, .yt a.yt-link:hover .play { transform: scale(1.08); }
.yt .yt-note { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 14px; font-size: 0.78rem; background: rgb(28 36 75 / 0.7); color: var(--white); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Steps */
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: s; background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; background: var(--sky); color: var(--white); display: grid; place-items: center; font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 54rem; margin-inline: auto; }
.faq details { background: var(--white); border-radius: 12px; box-shadow: 0 2px 10px rgb(28 36 75 / 0.06); }
.faq summary { cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 600; color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--sky); color: var(--white); display: grid; place-items: center; font-size: 1.1rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 22px 20px; display: grid; gap: 10px; }

/* Pricing */
.tiers { display: grid; gap: 1.75rem; max-width: 60rem; margin-inline: auto; }
@media (min-width: 820px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tier { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); display: grid; gap: 16px; align-content: start; border-top: 5px solid var(--sky); }
.tier.featured { border-top-color: var(--blue); }
.price { font-size: 2.6rem; font-weight: 700; color: var(--navy); line-height: 1; }
.price small { font-size: 1rem; vertical-align: top; }

/* Contact */
.contact-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.3fr; } }
.contact-grid > * { min-width: 0; }
.dl { display: grid; gap: 1.4rem; }
.dl dt { font-weight: 600; color: var(--navy); font-size: 1.1rem; }
.dl dd { margin: 4px 0 0; }
address { font-style: normal; }
form.card-form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 34px); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: 0.92rem; color: var(--navy); }
.req { color: var(--err); }
.field input, .field textarea { font: inherit; color: var(--navy); background: var(--snow); border: 1px solid var(--steel); border-radius: 10px; padding: 11px 14px; width: 100%; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field textarea { min-height: 9rem; resize: vertical; }
.two { display: grid; gap: 18px; }
@media (min-width: 600px) { .two { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--step--1); }
.form-status { font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

/* Social posts */
.posts { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1050px) { .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.post .pimg { aspect-ratio: 1.91 / 1; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.post .pimg img { width: 100%; height: 100%; object-fit: cover; }
.post .pbody { padding: 20px 22px; display: grid; gap: 10px; align-content: start; }
.post .pbody p { font-size: 0.92rem; }
.post .pmeta { font-size: 0.8rem; color: var(--blue); font-weight: 600; }

.link-cards { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .link-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.link-card { display: grid; gap: 6px; padding: 24px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); text-decoration: none; color: var(--text); border-left: 5px solid var(--sky); transition: transform 0.2s; }
.link-card:hover { transform: translateY(-3px); border-left-color: var(--blue); }
.link-card strong { color: var(--navy); font-size: 1.15rem; }
.link-card .go { color: var(--blue); font-weight: 600; font-size: 0.92rem; }

/* Legal */
.prose { max-width: 46rem; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2rem; }

/* Footer */
.fb-strip { display: grid; grid-template-columns: repeat(3, 1fr); }
@media (min-width: 760px) { .fb-strip { grid-template-columns: repeat(6, 1fr); } }
.fb-strip a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--navy); }
.fb-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, opacity 0.3s; }
.fb-strip a:hover img { transform: scale(1.08); opacity: 0.85; }
.socials { display: flex; justify-content: center; gap: 18px; padding-block: 2.2rem 1.6rem; }
.socials a { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; transition: transform 0.2s; }
.socials a:hover { transform: translateY(-3px) scale(1.05); }
.socials svg { width: 28px; height: 28px; fill: var(--white); }
.s-fb { background: #3b5998; }
.s-x { background: #1da1f2; }
.s-li { background: #0077b5; }
.site-footer .bottom { background: var(--steel); color: var(--navy); font-size: 0.8rem; text-align: center; }
.site-footer .bottom .wrap { padding-block: 14px; display: grid; gap: 6px; }
.foot-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.foot-links a { color: var(--navy); text-decoration: none; }
.foot-links a:hover { color: var(--blue); }

/* Cookie banner */
.consent { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50; max-width: 26rem; margin-right: 16px; background: var(--white); color: var(--text); border-radius: 14px; box-shadow: 0 16px 40px rgb(28 36 75 / 0.2); padding: 18px 20px; display: grid; gap: 12px; font-size: 0.88rem; }
.consent strong { color: var(--navy); }
.consent .btn { padding: 9px 20px; box-shadow: none; }
.consent .btn.ghost { background: transparent; color: var(--navy); border-color: var(--steel); }

.preview-flag { background: var(--navy); color: var(--white); font-size: 0.8rem; text-align: center; padding: 6px 16px; }

/* Scroll animations (Elementor-style fadeInDown / Left / Right / zoomIn) */
@media (prefers-reduced-motion: no-preference) {
  html.anim [data-anim] { opacity: 0; transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
  html.anim [data-anim="down"] { transform: translateY(-30px); }
  html.anim [data-anim="up"] { transform: translateY(30px); }
  html.anim [data-anim="left"] { transform: translateX(-40px); }
  html.anim [data-anim="right"] { transform: translateX(40px); }
  html.anim [data-anim="zoom"] { transform: scale(0.85); }
  html.anim [data-anim].in { opacity: 1; transform: none; }
}

/* Slide-in animations start off to the side; never let them widen the page */
main, .site-footer { overflow-x: clip; }
.cs-big { max-width: 320px; }

/* World attack map embed */
.map-head { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.map-section { padding-block: 2rem 1rem; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #0b1020; height: clamp(520px, 80vh, 900px); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-frame.map-preview { display: grid; place-items: center; padding: 24px; height: auto; min-height: 320px; }
.map-note { margin-top: 12px; }
