/* =============================
   CSS Reset & Variables
   ============================= */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; line-height: 1.6; }
img, svg { max-width: 100%; height: auto; display: block; }
button, a { cursor: pointer; }
button { background: none; border: none; font: inherit; }
ul, ol { margin: 0 0 16px; padding-left: 20px; }
p { margin: 0 0 16px; }

:root {
  /* Brand */
  --brand-primary: #1F3B4D; /* deep steel-blue */
  --brand-secondary: #E07A1A; /* warm orange */
  --brand-accent: #F4F7FA; /* light panels */

  /* Futuristic helpers */
  --bg-900: #0B1220; /* near-black bluish */
  --bg-800: #111A27; /* panel bg */
  --text-100: #EAF2F8; /* bright text */
  --text-80: #CFE0EA; /* secondary text */
  --muted: #9FB7C6; /* muted */
  --neon: #39D5FF; /* cyan neon accent */
  --danger: #FF5C5C;
  --success: #36D399;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-soft: 0 6px 18px rgba(0,0,0,0.2);
  --shadow-neon: 0 0 0px rgba(57,213,255,0), 0 0 18px rgba(57,213,255,0.35);

  --container-max: 1200px;
}

/* =============================
   Base & Typography
   ============================= */
body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-100);
  background-color: var(--bg-900); /* solid fallback */
  background-image: linear-gradient(180deg, rgba(31,59,77,0.25), rgba(11,18,32,0.9));
}

h1, h2, h3, h4 { font-family: "Trebuchet MS", Arial, sans-serif; color: #FFFFFF; margin: 0 0 12px; letter-spacing: 0.2px; }

h1 { font-size: 32px; line-height: 1.2; }
h2 { font-size: 24px; line-height: 1.3; }
h3 { font-size: 18px; line-height: 1.35; }

@media (min-width: 768px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 20px; }
}

p, li { font-size: 16px; color: var(--text-80); }
strong { color: #FFFFFF; font-weight: 700; }
em { color: var(--text-80); }

/* Links */
a { color: var(--neon); text-decoration: none; transition: color 0.25s ease, opacity 0.25s ease; }
a:hover { color: #9BEAFF; }
a:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; border-radius: 4px; }

/* =============================
   Layout Containers (Flex-only)
   ============================= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px; /* ensures 20px min spacing */
}

/* Mandatory spacing & alignment patterns */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: 12px; background: var(--bg-800); border: 1px solid rgba(153, 220, 255, 0.08); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-soft); }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: var(--brand-accent); color: #1B2730; border: 1px solid #E0E8EF; border-radius: var(--radius-md); box-shadow: 0 6px 14px rgba(0,0,0,0.08); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

/* =============================
   Header & Navigation
   ============================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(17,26,39,0.85);
  border-bottom: 1px solid rgba(153,220,255,0.12);
  backdrop-filter: saturate(140%) blur(8px);
}
header > .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img {filter: brightness(3) !important; height: 36px; width: auto; filter: drop-shadow(0 0 10px rgba(57,213,255,0.15)); }

.main-nav { display: none; align-items: center; gap: 18px; }
.main-nav a {
  color: var(--text-100);
  opacity: 0.86;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background-color 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}
.main-nav a:hover { opacity: 1; background: rgba(57,213,255,0.08); box-shadow: var(--shadow-neon); }

.header-cta { display: none; align-items: center; gap: 12px; }

/* Mobile toggle */
.mobile-menu-toggle {
  color: var(--text-100);
  font-size: 22px;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(153,220,255,0.18);
  background: linear-gradient(180deg, rgba(31,59,77,0.25), rgba(17,26,39,0.9));
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.mobile-menu-toggle:hover { box-shadow: var(--shadow-neon); border-color: rgba(153,220,255,0.35); transform: translateY(-1px); }
.mobile-menu-toggle:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0 0 0 auto; /* right side sheet */
  width: 100%; max-width: 92%;
  background: linear-gradient(180deg, rgba(11,18,32,0.98), rgba(17,26,39,0.98));
  border-left: 1px solid rgba(153,220,255,0.14);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 1500;
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px;
}
.mobile-menu.active, .mobile-menu.open, .mobile-menu.is-open, .mobile-menu[aria-hidden="false"] { transform: translateX(0); }

.mobile-menu-close {
  align-self: flex-end; color: var(--text-100);
  width: 40px; height: 40px; font-size: 20px; border-radius: 10px;
  border: 1px solid rgba(153,220,255,0.18);
  background: rgba(17,26,39,0.6);
  display: inline-flex; align-items: center; justify-content: center;
}
.mobile-menu-close:hover { box-shadow: var(--shadow-neon); border-color: rgba(153,220,255,0.35); }

.mobile-nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav a {
  color: #FFFFFF;
  padding: 14px 12px;
  border-radius: 10px;
  background: rgba(31,59,77,0.25);
  border: 1px solid rgba(153,220,255,0.12);
}
.mobile-nav a:hover { background: rgba(57,213,255,0.12); box-shadow: var(--shadow-neon); }

/* Desktop: show main nav */
@media (min-width: 992px) {
  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .mobile-menu-toggle { display: none; }
  .mobile-menu { display: none; }
}

/* =============================
   Hero Section (tech-futuristic)
   ============================= */
.hero {
  background-color: var(--brand-primary); /* fallback */
  background-image: linear-gradient(135deg, rgba(31,59,77,0.85), rgba(11,18,32,0.95));
  border-bottom: 1px solid rgba(153,220,255,0.16);
}
.hero .container { padding-top: 60px; padding-bottom: 40px; }
@media (min-width: 768px) {
  .hero .container { padding-top: 90px; padding-bottom: 70px; }
}
.hero .content-wrapper { align-items: flex-start; }
.hero h1 { text-shadow: 0 0 18px rgba(57,213,255,0.25); }
.hero .subheadline { font-size: 18px; color: #DDF4FF; opacity: 0.92; }
.hero .cta-group { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .micro-note, .hero .trust-badges { color: #CBE7F2; font-size: 14px; opacity: 0.92; }

/* Decorative neon edge (non-content) */
.hero::after {
  content: ""; display: block; height: 2px; width: 100%;
  background: linear-gradient(90deg, rgba(57,213,255,0), rgba(57,213,255,0.75), rgba(57,213,255,0));
}

/* =============================
   Buttons
   ============================= */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700; letter-spacing: 0.3px;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn-primary {
  color: #0B1220;
  background: linear-gradient(180deg, #39D5FF, #21A6CC);
  border-color: rgba(153,220,255,0.6);
  box-shadow: 0 10px 24px rgba(33,166,204,0.35), 0 0 0 rgba(57,213,255,0.0);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(33,166,204,0.45), 0 0 24px rgba(57,213,255,0.35); }
.btn-primary:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }

.btn-secondary {
  color: #FFFFFF;
  background: rgba(31,59,77,0.25);
  border-color: rgba(153,220,255,0.22);
}
.btn-secondary:hover { background: rgba(57,213,255,0.12); border-color: rgba(153,220,255,0.45); box-shadow: var(--shadow-neon); transform: translateY(-1px); }
.btn-secondary:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }

/* CTA Group (global) */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* =============================
   Sections & Content
   ============================= */
section { padding: 40px 0; border-top: 1px solid rgba(153,220,255,0.06); }
section .container { gap: 20px; }
.text-section { display: flex; flex-direction: column; gap: 12px; }
.text-section ul, .text-section ol { display: flex; flex-direction: column; gap: 8px; }

/* Lists default */
ul li::marker, ol li::marker { color: var(--neon); }

/* =============================
   Testimonials (light, high-contrast)
   ============================= */
.testimonial-card p { color: #1B2730; }
.testimonial-card strong { color: #0E1720; }

/* =============================
   Footer
   ============================= */
footer { background: #0A111B; border-top: 1px solid rgba(153,220,255,0.12); }
footer .container { padding-top: 32px; padding-bottom: 32px; }
.footer-top { display: flex; flex-direction: column; gap: 12px; background: rgba(31,59,77,0.15); border: 1px solid rgba(153,220,255,0.1); border-radius: 12px; padding: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 220px; flex: 1; }
.footer-col h3 { color: #FFFFFF; font-size: 18px; }
.footer-col p, .footer-col nav a { color: #C9D8E3; font-size: 14px; }
.footer-col nav { display: flex; flex-direction: column; gap: 8px; }
.footer-col nav a { padding: 6px 0; border-radius: 8px; }
.footer-col nav a:hover { color: #FFFFFF; }
.footer-bottom { display: flex; align-items: center; justify-content: center; margin-top: 16px; border-top: 1px solid rgba(153,220,255,0.1); padding-top: 12px; }
.footer-bottom p { color: #AFC6D4; font-size: 14px; }

/* =============================
   Utility & Micro-interactions
   ============================= */
.hover-lift { transition: transform 0.18s ease, box-shadow 0.25s ease; }
.hover-lift:hover { transform: translateY(-3px); box-shadow: 0 12px 22px rgba(0,0,0,0.25); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 12px; color: #0B1220; background: #9BEAFF; border-radius: 999px; }

.hr { height: 1px; background: rgba(153,220,255,0.1); width: 100%; }

/* =============================
   Responsive Rules
   ============================= */
@media (min-width: 768px) {
  .content-wrapper { gap: 24px; }
}

@media (min-width: 992px) {
  .footer-links { justify-content: space-between; }
}

/* =============================
   Forms (generic, in case added later)
   ============================= */
input, select, textarea { width: 100%; background: rgba(31,59,77,0.22); color: var(--text-100); border: 1px solid rgba(153,220,255,0.22); border-radius: 10px; padding: 12px 14px; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
input:focus, select:focus, textarea:focus { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(57,213,255,0.2); }
label { display: flex; color: var(--text-80); margin-bottom: 6px; }

/* =============================
   Tables (policy pages)
   ============================= */
.table { display: flex; flex-direction: column; gap: 8px; }
.table-row { display: flex; flex-wrap: wrap; gap: 8px; background: rgba(31,59,77,0.18); border: 1px solid rgba(153,220,255,0.12); padding: 10px; border-radius: 8px; }
.table-cell { flex: 1 1 220px; color: var(--text-80); }

/* =============================
   Accessibility Focus Helpers
   ============================= */
:focus-visible { scroll-margin-top: 90px; }

/* =============================
   Cookie Consent Banner & Modal
   ============================= */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 2000;
  display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: #FFFFFF; color: #0E1720; /* light for readability */
  border-top: 3px solid var(--brand-secondary);
  padding: 14px 16px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.12);
  transform: translateY(110%);
  transition: transform 0.35s ease;
}
.cookie-banner.show, .cookie-banner.active { transform: translateY(0); }
.cookie-banner p { color: #1B2730; margin: 0; font-size: 14px; }
.cookie-actions { display: flex; align-items: center; gap: 10px; }
.cookie-actions .btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 14px; border-radius: 10px; font-weight: 600; border: 1px solid transparent;
}
.cookie-accept { background: var(--brand-secondary); color: #0B1220; border-color: #D56F14; }
.cookie-accept:hover { filter: brightness(1.05); }
.cookie-reject { background: #F2F5F8; color: #0E1720; border: 1px solid #D5DEE6; }
.cookie-reject:hover { background: #E7EFF6; }
.cookie-settings { background: #0E1720; color: #FFFFFF; border: 1px solid #1F2A35; }
.cookie-settings:hover { background: #152233; }

/* Cookie modal (preferences) */
.cookie-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 2100; display: none; align-items: center; justify-content: center; padding: 20px; }
.cookie-modal-overlay.show { display: flex; }
.cookie-modal {
  width: 100%; max-width: 720px;
  background: #FFFFFF; color: #0E1720;
  border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  display: flex; flex-direction: column; gap: 14px; padding: 18px;
}
.cookie-modal h3 { color: #0E1720; font-size: 20px; }
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #F7FAFD; border: 1px solid #E2EAF0; border-radius: 10px; padding: 12px; }
.cookie-row .desc { color: #20303D; font-size: 14px; }

/* Toggle switch */
.toggle { position: relative; width: 46px; height: 26px; border-radius: 999px; background: #D1DDE6; border: 1px solid #BAC8D3; display: inline-flex; align-items: center; padding: 2px; transition: background 0.2s ease; }
.toggle .knob { width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 2px rgba(0,0,0,0.15); transform: translateX(0); transition: transform 0.2s ease; }
.toggle.active { background: #B7EAF9; border-color: #9EDFF3; }
.toggle.active .knob { transform: translateX(20px); }

.cookie-modal .actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.cookie-save { background: var(--brand-secondary); color: #0B1220; border: 1px solid #D56F14; }
.cookie-cancel { background: #F2F5F8; color: #0E1720; border: 1px solid #D5DEE6; }
.cookie-save, .cookie-cancel { min-height: 42px; padding: 8px 14px; border-radius: 10px; font-weight: 700; }

/* =============================
   Page-specific micro styles
   ============================= */
/* Index highlights & lists spacing */
.hero .trust-badges, .hero .micro-note { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Ordered lists display in steps */
ol { display: flex; flex-direction: column; gap: 8px; }

/* Quick contact line items */
.text-section p img { display: inline-block; vertical-align: middle; margin-right: 8px; height: 18px; width: 18px; }

/* Project callouts */
.text-section h3 { color: #E7F6FF; }

/* =============================
   Cards (generic, in case used later)
   ============================= */
.card .title { color: #FFFFFF; font-weight: 700; }
.card .meta { color: var(--muted); font-size: 14px; }

/* =============================
   Print tweaks (optional)
   ============================= */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body { background: #FFFFFF; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* =============================
   Safety: ensure minimum gaps and prevent overlap
   ============================= */
.container > * + * { margin-top: 0; }
section .content-wrapper > * { margin: 0; }

/* Ensure all flex containers have gap >= 20px where needed */
.main-nav, .header-cta, .footer-links, .card-container, .content-grid, .text-image-section, .testimonial-card, .feature-item, .cta-group { gap: 20px; }

/* Because .testimonial-card must remain readable on any bg */
section .testimonial-card a { color: #0B6AAE; }
section .testimonial-card a:hover { color: #084E7F; }
