/* =========================================================
   Brightfocus Cybersecurity — site styles
   Brand: Navy #0E0D30 · Red #E62130 · Montserrat
   ========================================================= */

@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy: #0E0D30;
  --red: #E62130;
  --white: #FFFFFF;
  --text: #E9E9F2;
  --muted: #A9A8C4;

  --panel: rgba(14, 13, 48, 0.74);      /* tinted box over the background */
  --panel-border: rgba(255, 255, 255, 0.09);
  --card: rgba(255, 255, 255, 0.04);

  --radius: 18px;
  --maxw: 1080px;
  --topbar-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 16px); /* section titles don't hide under the bar */
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-width: 320px;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- Fixed background (stays put while content scrolls) ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--navy);
  background-image: url("../img/bg-1920.jpg");
  background-image: image-set(url("../img/bg-1600.webp") type("image/webp") 1x, url("../img/bg-2560.webp") type("image/webp") 2x);
  background-size: cover;
  background-position: center;
}
@media (min-width: 1700px) {
  .bg { background-image: url("../img/bg-2560.webp"); }
}
/* soft darkening toward the edges so text and logo always read well */
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(14,13,48,0) 30%, rgba(14,13,48,0.55) 100%);
}

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: var(--navy);
  padding: 8px 14px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.topbar.is-scrolled {
  background: rgba(14, 13, 48, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--panel-border);
}
.topbar__logo img { height: 34px; width: auto; }
.topbar__logo { opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.topbar.is-scrolled .topbar__logo { opacity: 1; pointer-events: auto; }

.topbar__nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); }
.topbar__nav a:not(.btn) {
  text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--text);
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.topbar__nav a:not(.btn):hover,
.topbar__nav a.is-active { color: var(--white); border-bottom-color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 28px;
  background: var(--red); color: var(--white);
  font-weight: 600; font-size: 0.95rem; letter-spacing: .02em; text-decoration: none;
  border: 2px solid var(--red); border-radius: 999px;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:hover { background: #c81726; border-color: #c81726; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(230,33,48,.35); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: var(--white); box-shadow: none; }
.btn--small { padding: 8px 18px; font-size: 0.875rem; }

a:focus-visible, .btn:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

/* ---------- Hero: logo centered in the window at any size ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--topbar-h) + 24px) 20px 96px;
  position: relative;
}
.hero__logo { margin: 0; }
.hero__logo img {
  /* scales with the window: ~300px on a phone, ~640px on a 24" monitor, capped at 720px */
  width: clamp(260px, 40vw, 720px);
  height: auto;
  filter: drop-shadow(0 6px 30px rgba(0,0,0,.35));
}
.hero__tagline {
  margin: clamp(20px, 3vh, 36px) 0 0;
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  font-weight: 500;
  color: var(--text);
  letter-spacing: .02em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: clamp(24px, 4vh, 44px); }

.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  animation: bob 2.2s ease-in-out infinite;
}
.hero__scroll:hover { color: var(--white); }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll { animation: none; } }

/* Short windows (e.g. 800x600 or a laptop with toolbars): tighten the hero */
@media (max-height: 640px) {
  .hero__logo img { width: clamp(240px, 32vw, 460px); }
  .hero__scroll { display: none; }
}

/* ---------- Sections & tinted panels ---------- */
.section { padding: clamp(32px, 6vw, 72px) clamp(16px, 4vw, 32px); }

.panel {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px);
  background: var(--panel);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  border: 1px solid var(--panel-border);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red);
}
h2 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2; font-weight: 700; color: var(--white);
}
.lead { margin: 0 0 28px; font-size: clamp(1rem, 1.2vw, 1.125rem); max-width: 68ch; color: var(--text); }
.subhead {
  margin: 40px 0 18px;
  font-size: 1.05rem; font-weight: 600; color: var(--white);
}

/* What we do */
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.card {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
}
.card:hover { border-color: rgba(230,33,48,.6); background: rgba(255,255,255,.06); transform: translateY(-2px); }
.card__icon {
  width: 30px; height: 30px; margin-bottom: 14px;
  fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.card h4 { margin: 0 0 6px; font-size: 1rem; font-weight: 600; color: var(--white); }
.card p { margin: 0; font-size: .925rem; color: var(--muted); line-height: 1.55; }

/* Why us strip */
.why {
  margin-top: 36px; padding-top: 28px;
  border-top: 1px solid var(--panel-border);
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.why strong { display: block; color: var(--white); font-weight: 700; margin-bottom: 4px; }
.why strong::before { content: ""; display: inline-block; width: 18px; height: 3px; background: var(--red); margin-right: 10px; vertical-align: middle; }
.why span { color: var(--muted); font-size: .95rem; }

/* Contact */
.panel--contact { text-align: center; }
.panel--contact .lead { margin-left: auto; margin-right: auto; max-width: 56ch; }

.email-card {
  max-width: 560px;
  margin: 8px auto 0;
  padding: clamp(24px, 4vw, 36px);
  background: var(--card);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
}
.email-card__icon {
  width: 40px; height: 40px; margin: 0 auto 12px;
  fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.email-card__address {
  display: inline-block;
  min-height: 1.4em;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  letter-spacing: .01em;
  word-break: break-word;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease;
}
.email-card__address:hover { border-bottom-color: var(--red); }
.email-card__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
.btn--ghost.is-copied { border-color: #3ecf8e; color: #b9f3d9; }
button.btn { font-family: inherit; cursor: pointer; }

/* ---------- Footer: letterhead motif ---------- */
.footer { margin-top: clamp(24px, 6vw, 64px); text-align: center; }
.footer__copy { margin: 0 0 18px; font-size: .85rem; color: var(--muted); }
.footer__bar {
  position: relative;
  height: 52px;
  display: flex; justify-content: center; align-items: flex-end;
}
.footer__bar::after { /* full-width red line */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--red);
}
.footer__tab {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; margin-bottom: 8px;
  padding: 0 52px;
  background: linear-gradient(180deg, #1d1c5c 0%, var(--navy) 100%); color: var(--white);
  font-weight: 500; font-size: 1rem; text-decoration: none;
  clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 100%, 0 100%);
}
.footer__tab svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.footer__tab:hover { color: #ffd6da; }

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  :root { --topbar-h: 60px; }
  .topbar__logo img { height: 26px; }
  .topbar__nav a:not(.btn) { font-size: .9rem; }
}
