:root {
  --bg: #001C2E;
  --bg-alt: #012C4A;
  --surface: #01365C;
  --surface-2: #014477;
  --border: #1B4A6E;
  --text: #EAF1F7;
  --text-muted: #9FBBD1;
  --azure: #70A4D8;
  --green: #98CB00;
  --magenta: #EC008C;
  --font: 'Calibri', 'Carlito', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --gradient: linear-gradient(90deg, var(--green), var(--magenta));
  --max-width: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  scroll-behavior: smooth;
}

body { line-height: 1.5; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 15px;
}
.logo svg { display: block; }
/* header mark much larger than the footer one (user request 2026-09-19) */
.site-header .logo { font-size: 28px; gap: 14px; letter-spacing: 0.1em; }
.site-header .logo svg { width: 52px; height: 52px; }

.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-size: 16px;
  color: var(--text-muted);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--text); }
.main-nav .nav-contact { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-pill {
  display: inline-flex;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  background: none;
  color: var(--text);
}
.lang-pill span { padding: 2px 8px; border-radius: 999px; opacity: 0.55; }
.lang-pill span.is-active { opacity: 1; background: var(--surface-2); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}
.btn-primary {
  background: var(--green);
  color: var(--bg);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-alert {
  background: #fff;
  color: #D0021B;
  border: 1px solid #D0021B;
}
.btn-primary:hover, .btn-secondary:hover, .btn-alert:hover { filter: brightness(1.12); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

#menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 8px 10px;
  cursor: pointer;
}

/* ---- Shared typographic pieces (kicker + section head) ---- */
.kicker {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--azure);
  margin: 0 0 18px;
}
.section-head h2 {
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}
.section-head .intro {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0;
}

/* Two-column section: heading on the left, prose on the right */
.split .container {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
  position: relative;
}
.split .prose p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 20px;
}
.split .prose p:last-child { margin-bottom: 0; }

/* ---- Hero (full-bleed photo, text over a left-to-right fade) ---- */
.hero {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 720px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,28,46,0.55) 0%, rgba(0,28,46,0) 30%, rgba(0,28,46,0) 70%, rgba(0,28,46,0.85) 100%),
    linear-gradient(90deg, rgba(0,28,46,0.98) 0%, rgba(0,28,46,0.94) 38%, rgba(0,28,46,0.6) 60%, rgba(0,28,46,0.12) 100%);
}
.hero .container {
  position: relative;
  width: 100%;
  padding-top: 120px;
  padding-bottom: 120px;
}
.hero-left { max-width: 700px; }
.hero h1 {
  font-size: 76px;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.hero p.lead {
  color: var(--text);
  opacity: 0.85;
  font-size: 19px;
  line-height: 1.6;
  margin: 0 0 36px;
  max-width: 560px;
}
.hero .btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- How we work (split: heading left, prose right) ---- */
.how {
  padding: 112px 0;
  position: relative;
  overflow: hidden;
}
.how::before {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  left: -110px; bottom: -90px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg stroke='%2398CB00' stroke-width='1.5' opacity='0.3'%3E%3Cline x1='30' y1='40' x2='100' y2='80'/%3E%3Cline x1='100' y1='80' x2='70' y2='160'/%3E%3Cline x1='100' y1='80' x2='180' y2='50'/%3E%3Cline x1='70' y1='160' x2='150' y2='190'/%3E%3C/g%3E%3Cg fill='%2398CB00' opacity='0.5'%3E%3Ccircle cx='30' cy='40' r='4'/%3E%3Ccircle cx='100' cy='80' r='5'/%3E%3Ccircle cx='180' cy='50' r='4'/%3E%3Ccircle cx='70' cy='160' r='4'/%3E%3Ccircle cx='150' cy='190' r='4'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---- Services (card grid with hairline dividers, 3 + 2) ---- */
.services {
  padding: 112px 0;
  background: var(--bg-alt);
}
.services .section-head { margin-bottom: 48px; }
/* Five full-width rows, one per service, all with the same weight */
.services-list {
  border-top: 1px solid var(--border);
}
.service-row {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) auto;
  gap: 40px;
  align-items: start;
  padding: 36px 8px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}
.service-row:hover, .service-row:focus-visible { background: var(--bg-alt); outline: none; }
.service-key {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 2px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}
.service-key .service-blob { width: 28px; height: 28px; }
.service-body { max-width: 640px; }
.service-row h3 { font-size: 24px; line-height: 1.2; margin: 0 0 10px; }
.service-row p { font-size: 16px; line-height: 1.65; color: var(--text-muted); margin: 0; }
.service-row .more {
  padding-top: 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--azure);
  white-space: nowrap;
}
.service-row:hover .more { color: var(--green); }
.service-blob {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
  position: relative;
}
.service-blob::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,28,46,0.55) 1.3px, transparent 1.3px);
  background-size: 7px 7px;
}
.service-row:nth-child(5n+1) .service-blob { background: var(--green); }
.service-row:nth-child(5n+2) .service-blob { background: var(--azure); }
.service-row:nth-child(5n+3) .service-blob { background: var(--magenta); }
.service-row:nth-child(5n+4) .service-blob { background: var(--green); }
.service-row:nth-child(5n+5) .service-blob { background: var(--azure); }

/* ---- About (split) ---- */
.about { padding: 112px 0; }

/* ---- CTA band ---- */
.cta-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 72px 0;
}
.cta-band .container {
  display: grid;
  grid-template-columns: minmax(0, 7fr) auto;
  gap: 48px;
  align-items: center;
}
.cta-band h2 { font-size: 34px; line-height: 1.15; margin: 0 0 12px; }
.cta-band p { color: var(--text-muted); font-size: 17px; margin: 0; max-width: 560px; }
.cta-band .btn-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }

/* ---- Page head (all subpages) ---- */
.page-head {
  position: relative;
  padding: 88px 0 56px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(112,164,216,0.22) 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
}
.page-head .container { position: relative; max-width: 900px; }
.page-head h1 {
  font-size: 50px;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  max-width: 760px;
}
.page-head .intro {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 680px;
  margin: 0;
}

/* ---- Service detail (prose body of the service pages) ---- */
.service-detail { padding: 72px 0 88px; }
.service-detail .container { max-width: 900px; }
.service-detail .body-text { color: var(--text-muted); font-size: 17px; line-height: 1.65; margin: 0 0 24px; max-width: 700px; }
.service-detail .btn { margin-top: 12px; }

/* ---- Contact (split: text left, form card right) ---- */
.contact { padding: 112px 0; }
.contact .container {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}
.section-head p.direct { color: var(--text-muted); font-size: 17px; margin: 0 0 24px; }
.section-head p.direct a { color: var(--green); font-family: var(--mono); font-size: 15px; }
.safe-note {
  border-left: 3px solid var(--azure);
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
  max-width: 460px;
}
.safe-note strong { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--azure); margin-bottom: 6px; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  text-align: left;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
}
.field select { background: var(--surface); }
.field select option { background: var(--surface); color: var(--text); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--azure); outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-card .btn-primary { width: 100%; margin-top: 4px; }
.form-note { margin-top: 14px; font-size: 14px; color: var(--green); min-height: 1.2em; }

/* Incident report form (raspuns.html) */
.incident { padding: 0 0 96px; }
.incident .container {
  max-width: 900px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: start;
  padding-top: 64px;
  border-top: 1px solid var(--border);
}
.incident .contact-card { border-color: rgba(236,0,140,0.45); }
.incident .contact-card .btn-primary { background: #fff; color: #D0021B; }

/* ---- Footer (columns) ---- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { color: var(--text-muted); font-size: 14.5px; margin: 0; max-width: 300px; line-height: 1.55; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.footer-col a { display: block; font-size: 14.5px; color: var(--text); margin-bottom: 10px; }
.footer-col a:hover { color: var(--green); }
.footer-col a.incident-link { color: #FF6B8A; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ---- Palo Alto tech page ---- */
.tech-page { padding: 64px 0 88px; }
.tech-page .container { max-width: 900px; }
.tech-page p { color: var(--text-muted); font-size: 17px; line-height: 1.65; margin: 0 0 22px; max-width: 700px; }
.status-note {
  border-left: 3px solid var(--azure);
  padding: 14px 18px;
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  margin-bottom: 24px;
  color: var(--text);
  max-width: 700px;
}
.status-note.alert { border-left-color: var(--magenta); }

/* ---- Legal page ---- */
.legal-page { padding: 56px 0 88px; }
.legal-page .container { max-width: 900px; }
.legal-page h2 { font-size: 19px; margin: 36px 0 12px; }
.legal-page p, .legal-page li { color: var(--text-muted); font-size: 15.5px; line-height: 1.7; max-width: 700px; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero { min-height: 600px; }
  .hero .container { padding-top: 96px; padding-bottom: 96px; }
  .hero h1 { font-size: 52px; }
  .split .container, .contact .container, .incident .container { grid-template-columns: 1fr; gap: 32px; }
  .section-head h2 { font-size: 34px; }
  .service-row { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
  .service-row .more { grid-column: 2; padding-top: 0; }
  .cta-band .container { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-head h1 { font-size: 40px; }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
  }
  .main-nav.is-open { display: flex; }
  #menu-btn { display: inline-flex; }
  .site-header .logo { font-size: 20px; gap: 8px; }
  .site-header .logo svg { width: 38px; height: 38px; }
  .site-header .container { gap: 12px; }
  .header-actions { gap: 8px; }
  .site-header .btn-alert { white-space: nowrap; padding: 9px 12px; font-size: 12.5px; }
  .header-actions .lang-pill { display: none; }
  .header-actions .btn-primary { display: none; }
  .main-nav .nav-contact { display: block; color: var(--green); }
  .hero { min-height: 0; }
  .how::before { display: none; }
  .hero::before { background: linear-gradient(180deg, rgba(0,28,46,0.9) 0%, rgba(0,28,46,0.8) 60%, rgba(0,28,46,0.95) 100%); }
  .hero-bg { object-position: 60% center; }
  .hero .container { padding-top: 64px; padding-bottom: 56px; }
  .hero h1 { font-size: 40px; }
  .hero p.lead { font-size: 16px; }
  .how, .services, .about, .contact { padding: 72px 0; }
  .section-head h2 { font-size: 30px; }
  .service-row { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  .service-row .more { grid-column: 1; }
  .service-row h3 { font-size: 21px; }
  .cta-band { padding: 56px 0; }
  .cta-band h2 { font-size: 28px; }
  .page-head { padding: 56px 0 40px; }
  .page-head h1 { font-size: 32px; }
  .page-head .intro { font-size: 16px; }
  .service-detail { padding: 48px 0 64px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-card { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding-top: 40px; }
}

/* very narrow phones: the header keeps only the mark, the alert button and the menu */
@media (max-width: 480px) {
  .site-header .logo .wordmark { display: none; }
}
