/* ═══════════════════════════════════════════════════
   VISUALITIC SYSTEMS — SHARED STYLESHEET
   Used by: index.html, safety/index.html, security/index.html
═══════════════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────────────── */
:root {
  --navy:         #07111F;
  --navy-mid:     #0B1828;
  --navy-card:    #111827;
  --navy-border:  rgba(255,255,255,0.07);
  --navy-border2: rgba(255,255,255,0.13);
  --gold:         #C8A24A;
  --gold-mid:     #B8922E;
  --gold-light:   #DEBB6E;
  --gold-dim:     rgba(200,162,74,0.10);
  --gold-line:    rgba(200,162,74,0.28);
  --white:        #F5F7FA;
  --grey:         #AAB3C2;
  --grey-light:   #C8D1DC;
  --header-h:     112px;
  --radius:       6px;
  --radius-lg:    10px;
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── GLOBAL FONT ────────────────────────────────── */
html, body, button, input, textarea, select,
h1, h2, h3, h4, h5, h6, p, a, li, label, span, div {
  font-family: 'Inter', sans-serif;
}

/* ─── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; font-size: 16px; }
body { background: var(--navy); color: var(--white); font-weight: 400; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
button { cursor: pointer; border: none; background: none; }

/* ─── LAYOUT ─────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px,5vw,64px); }

/* ─── HEADER ─────────────────────────────────────── */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: var(--header-h); border-bottom: 1px solid transparent; transition: background 0.4s, border-color 0.4s; }
.site-header.scrolled { background: rgba(7,17,31,0.95); backdrop-filter: blur(16px); border-color: var(--navy-border); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; flex-direction: column; gap: 2px; }
.logo-name { font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; color: var(--white); line-height: 1; }
.logo-tag { font-size: 0.6rem; font-weight: 400; color: var(--gold); letter-spacing: 0.06em; line-height: 1; }
.site-nav ul { display: flex; align-items: center; gap: 18px; }
.site-nav a { font-size: 0.8rem; font-weight: 400; color: var(--grey-light); transition: color 0.2s; white-space: nowrap; }
.site-nav a:hover { color: var(--white); }
.site-nav a.active { color: var(--gold); }
.nav-book { font-size: 0.78rem; font-weight: 600; padding: 9px 20px; background: var(--gold); color: var(--navy); border-radius: var(--radius); transition: background 0.2s; white-space: nowrap; display: inline-block; }
.nav-book:hover { background: var(--gold-light); }
.menu-btn { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.menu-btn span { display: block; width: 22px; height: 1.5px; background: var(--white); border-radius: 2px; }
.mobile-nav { display: none; position: fixed; inset: 0; background: var(--navy-mid); z-index: 190; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 1.2rem; font-weight: 500; color: var(--grey-light); transition: color 0.2s; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--gold); }
.mobile-close { position: absolute; top: 20px; right: 24px; font-size: 1.4rem; color: var(--grey); line-height: 1; padding: 8px; }

/* ─── SECTION ────────────────────────────────────── */
.section { padding: clamp(72px,10vw,112px) 0; }
.section-mid  { background: var(--navy-mid); border-top: 1px solid var(--navy-border); }
.section-navy { background: var(--navy); border-top: 1px solid var(--navy-border); }
.eyebrow { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 12px; }
.section-h { font-size: clamp(1.8rem,3.5vw,2.8rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; color: var(--white); margin-bottom: 12px; }
.section-sub { font-size: clamp(0.9rem,1.2vw,1rem); font-weight: 400; color: var(--grey-light); line-height: 1.8; max-width: 620px; margin-bottom: 52px; }

/* ─── BUTTONS ────────────────────────────────────── */
.btn-gold { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em; padding: 15px 30px; background: var(--gold); color: var(--navy); border-radius: var(--radius); transition: background 0.2s, transform 0.2s; }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em; padding: 15px 30px; border: 1.5px solid var(--gold-line); color: var(--gold); border-radius: var(--radius); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn-outline:hover { background: var(--gold-dim); color: var(--gold-light); border-color: rgba(200,162,74,0.5); }
.btn-lg { font-size: 1rem; padding: 18px 38px; }

/* ─── SERVICE GRID ───────────────────────────────── */
.service-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--navy-border); }
.service-card { background: var(--navy-card); padding: 32px 24px; position: relative; transition: background 0.25s; }
.service-card::after { content:''; position:absolute; top:0; left:0; width:100%; height:3px; background:var(--gold); opacity:0; transition:opacity 0.25s; }
.service-card:hover { background: rgba(17,24,39,0.8); }
.service-card:hover::after { opacity: 0.5; }
.service-num { font-size: 0.58rem; font-weight: 600; letter-spacing: 0.18em; color: var(--gold); opacity: 0.65; display: block; margin-bottom: 12px; }
.service-card h3 { font-size: 0.9rem; font-weight: 600; color: var(--white); margin-bottom: 16px; letter-spacing: -0.01em; }
.service-card ul li { font-size: 0.78rem; font-weight: 400; color: var(--grey); padding: 5px 0; border-bottom: 1px solid var(--navy-border); display: flex; align-items: flex-start; gap: 8px; line-height: 1.55; }
.service-card ul li:last-child { border-bottom: none; }
.service-card ul li::before { content: '—'; color: var(--gold); opacity: 0.45; font-size: 0.72rem; flex-shrink: 0; margin-top: 1px; }

/* ─── HOW IT WORKS ───────────────────────────────── */
.how-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; position: relative; }
.how-steps::before { content:''; position:absolute; top:18px; left:18px; right:18px; height:1px; background:linear-gradient(90deg,var(--gold-line),rgba(200,162,74,0.1)); }
.how-step-n { width:36px; height:36px; border-radius:50%; border:1px solid var(--gold-line); background:var(--navy-card); display:flex; align-items:center; justify-content:center; font-size:0.7rem; font-weight:600; color:var(--gold); margin-bottom:18px; position:relative; z-index:1; }
.how-step h3 { font-size: 0.9rem; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.how-step p { font-size: 0.8rem; font-weight: 400; color: var(--grey); line-height: 1.7; }

/* ─── INDUSTRY GRID ──────────────────────────────── */
.industry-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.industry-card { background: var(--navy-card); border: 1px solid var(--navy-border); border-radius: var(--radius); padding: 22px 18px; transition: border-color 0.25s, transform 0.25s; }
.industry-card:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.ind-icon { width:32px; height:32px; display:flex; align-items:center; justify-content:center; background:var(--gold-dim); border-radius:var(--radius); margin-bottom:12px; }
.industry-card h3 { font-size: 0.82rem; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.industry-card p { font-size: 0.75rem; font-weight: 400; color: var(--grey); line-height: 1.6; }

/* ─── TRUST BLOCK ────────────────────────────────── */
.trust-block { max-width: 760px; margin: 0 auto; padding: 36px 40px; background: var(--navy-card); border: 1px solid var(--navy-border2); border-radius: var(--radius-lg); border-left: 3px solid var(--gold-line); text-align: center; }
.trust-block h3 { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 12px; }
.trust-block p { font-size: 0.82rem; font-weight: 400; color: var(--grey); line-height: 1.8; }

/* ─── CONTACT FORM ───────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.contact-left h2 { font-size: clamp(1.6rem,2.8vw,2.2rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 12px; }
.contact-left p { font-size: 0.9rem; color: var(--grey-light); line-height: 1.8; margin-bottom: 2rem; }
.c-detail { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--grey); margin-bottom: 8px; }
.c-detail svg { opacity: 0.55; flex-shrink: 0; }
.contact-form { display: flex; flex-direction: column; gap: 13px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--grey); }
.form-group input, .form-group select, .form-group textarea { background: var(--navy-card); border: 1px solid var(--navy-border2); border-radius: var(--radius); padding: 11px 13px; font-size: 0.85rem; font-weight: 400; color: var(--white); outline: none; transition: border-color 0.2s; -webkit-appearance: none; width: 100%; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--grey); opacity: 0.5; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold-line); }
.form-group select { cursor: pointer; }
.form-group select option { background: #111827; }
.form-group textarea { resize: vertical; min-height: 96px; }
.form-submit { font-size: 0.9rem; font-weight: 600; padding: 14px 24px; background: var(--gold); color: var(--navy); border-radius: var(--radius); transition: background 0.2s; width: 100%; }
.form-submit:hover { background: var(--gold-light); }
.form-privacy { font-size: 0.7rem; color: var(--grey); opacity: 0.65; line-height: 1.6; }
.form-success { display: none; padding: 20px 24px; background: var(--gold-dim); border: 1px solid var(--gold-line); border-radius: var(--radius); font-size: 0.88rem; color: var(--gold-light); }

/* ─── FOOTER ─────────────────────────────────────── */
.site-footer { background: var(--navy-mid); border-top: 1px solid var(--navy-border); padding: 48px 0 36px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; margin-bottom: 32px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links a { font-size: 0.78rem; color: var(--grey); transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-contact { font-size: 0.78rem; color: var(--grey); line-height: 2; text-align: right; }

/* ─── REVEAL ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.rd1 { transition-delay: 0.1s; }
.rd2 { transition-delay: 0.2s; }
.rd3 { transition-delay: 0.3s; }
.rd4 { transition-delay: 0.4s; }
.rd5 { transition-delay: 0.5s; }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .industry-grid { grid-template-columns: repeat(3,1fr); }
  .how-steps { grid-template-columns: 1fr 1fr; gap: 28px; }
  .how-steps::before { display: none; }
}
@media (max-width: 1199px) {
  .site-nav, .nav-book { display: none; }
  .menu-btn { display: flex; }
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-contact { text-align: left; }
}
@media (max-width: 640px) {
  .service-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .trust-block { padding: 28px 24px; text-align: left; }
  .btn-lg { font-size: 0.9rem; padding: 15px 28px; }
}
@media (max-width: 420px) {
  .industry-grid { grid-template-columns: 1fr; }
}

/* ── LOGO IMAGE ── */
.site-logo { height: clamp(56px, 6.5vw, 88px); width: auto; display: block; }
.site-logo--footer { height: 72px; opacity: 0.9; }

/* ── INDUSTRY CARD WITH IMAGE ── */
.ind-img {
  overflow: hidden;
  flex-shrink: 0;
}
.industry-card { overflow: hidden; }
/* Stack content below image */
.industry-card .ind-icon { margin-top: 0; }

@media (max-width: 640px) {
  .ind-img { height: 120px !important; }
}

/* ── PAGE HERO SPLIT LAYOUT ── */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding: 0 !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-h));
  max-height: 780px;
  margin-top: var(--header-h);
}
/* Remove old full-bleed approach */
.page-hero[style] { background-image: none !important; }

/* Text panel — left */
.page-hero-text {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: clamp(52px,8vh,88px) clamp(32px,5vw,72px);
  background: var(--navy);
  border-bottom: 1px solid var(--gold-line);
}
.page-hero-text::before {
  content:'';
  position:absolute; bottom:0; left:0;
  width:160px; height:3px;
  background:linear-gradient(90deg,var(--gold),var(--gold-mid));
}

/* Image panel — right */
.page-hero-image {
  position: relative;
  overflow: hidden;
}
.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
/* Left-edge fade: image blends into text panel */
.page-hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(7,17,31,0.55) 0%,
    rgba(7,17,31,0.2) 20%,
    transparent 50%
  );
}

/* Grid texture on text panel */
.page-hero-text::after {
  content:'';
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(200,162,74,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,162,74,0.03) 1px, transparent 1px);
  background-size:64px 64px;
  pointer-events:none;
  z-index:-1;
}

/* Mobile: stack image on top, text below */
@media (max-width: 860px) {
  .page-hero {
    grid-template-columns: 1fr;
    max-height: none;
    min-height: auto;
  }
  .page-hero-image {
    height: clamp(240px, 52vw, 400px);
    order: -1;
  }
  .page-hero-image::after {
    background: linear-gradient(to bottom, transparent 50%, rgba(7,17,31,0.7) 100%);
  }
  .page-hero-text {
    border-bottom: none;
    border-top: 2px solid var(--gold-line);
  }
  .page-hero-text::before { display: none; }
}
@media (max-width: 640px) {
  .page-hero-text { padding: 36px 20px 44px; }
  .page-hero-ctas { flex-direction: column; }
  .page-hero-ctas .btn-gold,
  .page-hero-ctas .btn-outline { width: 100%; text-align: center; justify-content: center; }
}

/* Hide old overlay div — no longer needed */
.page-hero-overlay { display: none; }


/* ─── LEGAL FOOTER ROW ───────────────────────────── */
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--navy-border); display: flex; align-items: center; gap: 10px 28px; flex-wrap: wrap; opacity: 1; }
.footer-bottom .copyright { font-size: 0.8rem; color: var(--grey); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.footer-legal a, .footer-legal .link-btn { font-size: 0.8rem; color: var(--grey); transition: color 0.2s; }
.footer-legal a:hover, .footer-legal .link-btn:hover { color: var(--gold); }
.footer-legal .sep { color: var(--grey); opacity: 0.5; user-select: none; }
.link-btn { background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; }
.footer-trust-link { font-size: 0.8rem; color: var(--grey); transition: color 0.2s; }
.footer-trust-link:hover { color: var(--gold); }

/* ─── ACCESSIBILITY: FOCUS + MOTION ──────────────── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ─── COOKIE CONSENT UI ──────────────────────────── */
.cc-overlay { position: fixed; inset: 0; background: rgba(4,10,18,0.7); z-index: 400; }
.cc-panel { position: fixed; z-index: 401; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(560px, calc(100vw - 32px)); max-height: min(85vh, 640px); overflow-y: auto; background: var(--navy-mid); border: 1px solid var(--navy-border2); border-top: 2px solid var(--gold); border-radius: var(--radius-lg); padding: 28px; box-shadow: 0 28px 70px rgba(0,0,0,0.5); }
.cc-panel h2 { font-size: 1.15rem; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.cc-intro { font-size: 0.85rem; color: var(--grey-light); line-height: 1.7; margin-bottom: 18px; }
.cc-intro a { color: var(--gold); text-decoration: underline; }
.cc-cat { border: 1px solid var(--navy-border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; background: var(--navy-card); }
.cc-cat label { display: flex; align-items: center; gap: 10px; color: var(--white); font-size: 0.9rem; cursor: pointer; }
.cc-cat input { width: 16px; height: 16px; accent-color: var(--gold); }
.cc-cat p { font-size: 0.78rem; color: var(--grey); line-height: 1.6; margin: 6px 0 0 26px; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cc-btn { font-size: 0.82rem; font-weight: 600; padding: 10px 18px; border-radius: var(--radius); border: 1px solid var(--gold-line); color: var(--gold-light); background: transparent; cursor: pointer; font-family: inherit; transition: background 0.2s; }
.cc-btn:hover { background: var(--gold-dim); }
.cc-btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.cc-btn-gold:hover { background: var(--gold-light); }
.cc-banner { position: fixed; z-index: 399; left: 16px; right: 16px; bottom: 16px; max-width: 720px; margin: 0 auto; background: var(--navy-mid); border: 1px solid var(--navy-border2); border-top: 2px solid var(--gold); border-radius: var(--radius-lg); padding: 18px 22px; box-shadow: 0 18px 50px rgba(0,0,0,0.5); }
.cc-banner p { font-size: 0.82rem; color: var(--grey-light); line-height: 1.6; }
.cc-banner a { color: var(--gold); text-decoration: underline; }
.cc-banner .cc-actions { margin-top: 12px; }
