/* ===============================
   RESET & BASELINE
   =============================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding-left: 1.2rem; }
li { margin: 0.4rem 0; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
button { font: inherit; border: none; background: none; cursor: pointer; }
:focus { outline: 2px dashed #00E5FF; outline-offset: 2px; }

/* ===============================
   THEME VARIABLES (with fallbacks)
   =============================== */
:root {
  --clr-primary: #1F2D38; /* brand primary */
  --clr-secondary: #C0683A; /* brand secondary */
  --clr-accent: #F4EFE6; /* brand accent (light) */
  --clr-bg: #121A22; /* deep background */
  --text-light: #E8F0F6;
  --text-muted: #B5C3D1;
  --neon-cyan: #00E5FF;
  --neon-violet: #7C4DFF;
  --surface: rgba(255,255,255,0.04);
  --surface-strong: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.12);
  --shadow: 0 8px 24px rgba(0,0,0,0.35);
}

/* ===============================
   BASE TYPOGRAPHY & BODY
   =============================== */
body {
  font-family: Verdana, Geneva, sans-serif; /* brand body */
  font-size: 16px; line-height: 1.6;
  color: var(--text-light);
  background-color: var(--clr-primary); /* fallback solid */
  background-image: linear-gradient(135deg, #0D151C 0%, #121A22 60%, #0B1116 100%);
  min-width: 320px;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { font-family: 'Trebuchet MS', Tahoma, sans-serif; /* brand display */ }
h1 { font-size: 32px; line-height: 1.2; letter-spacing: 0.3px; }
h2 { font-size: 24px; line-height: 1.3; }
h3 { font-size: 18px; line-height: 1.4; }
p, li, dd { font-size: 16px; }
small { font-size: 14px; color: var(--text-muted); }
strong { font-weight: 700; }

/* ===============================
   LAYOUT HELPERS (FLEX-ONLY)
   =============================== */
.container {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; flex-direction: column; gap: 24px; align-items: stretch;
}
.content-wrapper {
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
}
main { display: flex; flex-direction: column; gap: 20px; }

/* Mandatory spacing patterns */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Generic section styling (applies to all <section>) */
section { margin-bottom: 60px; padding: 40px 20px; }
section:nth-of-type(even) { background-color: rgba(255,255,255,0.02); }

/* ===============================
   HEADER & NAVIGATION
   =============================== */
header {
  position: sticky; top: 0; z-index: 1000;
  background-color: rgba(18,26,34,0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
header .container { flex-direction: row; align-items: center; justify-content: space-between; }

/* Desktop/primary nav */
header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
header nav a { color: var(--text-light); padding: 10px 6px; border-radius: 8px; transition: color .2s ease, background-color .2s ease; }
header nav a:hover { color: var(--neon-cyan); background-color: rgba(0,229,255,0.08); }
header nav img { height: 38px; width: auto; display: block; }

/* Hide header links on mobile, keep logo visible */
header nav a:not(:first-child) { display: none; }

/* Mobile burger toggle */
.mobile-menu-toggle {
  margin: 10px 16px; width: 44px; height: 44px; border-radius: 10px;
  color: #0B0B0B; background: linear-gradient(180deg, var(--neon-cyan), var(--neon-violet));
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  box-shadow: 0 6px 16px rgba(0,229,255,0.25), 0 6px 18px rgba(124,77,255,0.22);
}
.mobile-menu-toggle:hover { filter: brightness(1.05); }

/* ===============================
   BUTTONS
   =============================== */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 12px; font-weight: 700; letter-spacing: 0.2px;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
  border: 1px solid transparent; min-height: 44px;
}
.button.primary {
  color: #0B0B0B;
  background-color: var(--clr-secondary);
  box-shadow: 0 10px 20px rgba(192,104,58,0.3), 0 0 0 2px rgba(192,104,58,0.2) inset;
}
.button.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(192,104,58,0.35), 0 0 0 2px rgba(0,229,255,0.25) inset; }

.button.secondary {
  background-color: rgba(255,255,255,0.02);
  color: var(--neon-cyan);
  border-color: rgba(0,229,255,0.5);
  box-shadow: 0 0 14px rgba(0,229,255,0.18) inset;
}
.button.secondary:hover { background-color: rgba(0,229,255,0.08); transform: translateY(-2px); }

/* ===============================
   CARDS & SURFACES (Tech-futuristic)
   =============================== */
.card, .feature-grid > div, .service-cards > div, .project-summaries > div, .form-stepper, .map-placeholder {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
}
/* Neon edge glow (decorative) */
.card::before, .feature-grid > div::before, .service-cards > div::before, .project-summaries > div::before, .form-stepper::before, .map-placeholder::before {
  content: ""; position: absolute; inset: 0; border-radius: 16px;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0,229,255,0.25), 0 0 24px rgba(124,77,255,0.15);
}

/* Card hover micro-interaction */
.feature-grid > div:hover, .service-cards > div:hover, .project-summaries > div:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.45);
}

/* ===============================
   FEATURE, SERVICE & PROJECT LAYOUTS
   =============================== */
.feature-grid, .service-cards, .project-summaries {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; justify-content: flex-start;
}
.feature-grid > div, .service-cards > div, .project-summaries > div { flex: 1 1 260px; min-width: 240px; }
.feature-grid img { width: 40px; height: 40px; filter: drop-shadow(0 0 6px rgba(0,229,255,0.4)); }

/* ===============================
   LISTS & DEFINITION LISTS
   =============================== */
ul { display: flex; flex-direction: column; gap: 8px; }
ul li { position: relative; padding-left: 20px; }
ul li::before { content: ""; width: 10px; height: 10px; border-radius: 2px; position: absolute; left: 0; top: 8px; background-color: var(--neon-cyan); box-shadow: 0 0 10px rgba(0,229,255,0.6); }

dt { font-weight: 700; color: var(--neon-cyan); margin-top: 10px; }
dd { margin: 4px 0 10px 0; color: var(--text-light); }

/* ===============================
   TRUST BADGES
   =============================== */
.trust-badges { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.trust-badges img { width: 44px; height: 44px; filter: drop-shadow(0 0 10px rgba(0,229,255,0.35)); }

/* ===============================
   CONTACT INFO & MAP
   =============================== */
.contact-info { display: flex; flex-direction: column; gap: 10px; }
.contact-info p { display: flex; align-items: center; gap: 10px; }
.contact-info img { width: 20px; height: 20px; opacity: 0.9; }
.contact-info a { color: var(--neon-cyan); }

.map-placeholder { align-items: center; justify-content: center; min-height: 240px; }
.map-placeholder img { width: 120px; opacity: 0.8; }

/* ===============================
   TESTIMONIALS (light background for readability)
   =============================== */
.testimonial-card {
  background-color: var(--clr-accent); /* light */
  color: var(--clr-primary); /* dark text for contrast */
  border: 1px solid rgba(31,45,56,0.15);
  border-radius: 14px; box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}
.testimonial-card p { color: #2A3946; }
.testimonial-card strong { color: #0F1B24; }

/* ===============================
   FOOTER
   =============================== */
footer { background-color: #0E151C; border-top: 1px solid var(--border); }
footer .content-wrapper { display: flex; flex-direction: column; gap: 16px; }
footer img { height: 34px; }
footer address { font-style: normal; display: flex; flex-direction: column; gap: 6px; color: var(--text-muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 10px; color: var(--text-muted); }
footer a:hover { color: var(--neon-cyan); }

/* ===============================
   LINKS (GLOBAL)
   =============================== */
a { transition: color .18s ease, opacity .18s ease; }
a:hover { color: var(--neon-cyan); }

/* ===============================
   HEADINGS SPACING (within sections)
   =============================== */
section .content-wrapper > h1 { margin-bottom: 6px; }
section .content-wrapper > h2 { margin-top: 8px; }
section .content-wrapper > p { color: var(--text-light); opacity: 0.95; }

/* ===============================
   ORDERED LISTS
   =============================== */
ol { display: flex; flex-direction: column; gap: 6px; padding-left: 1.2rem; }
ol li { padding-left: 2px; }

/* ===============================
   MOBILE MENU (slide-in)
   =============================== */
.mobile-menu {
  position: fixed; inset: 0; z-index: 2000;
  background-color: rgba(10,14,18,0.9);
  backdrop-filter: blur(8px);
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 20px;
}
.mobile-menu.active { transform: translateX(0%); }
.mobile-menu-close {
  align-self: flex-end; width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(180deg, var(--neon-violet), var(--neon-cyan)); color: #0B0B0B;
  box-shadow: 0 6px 16px rgba(124,77,255,0.25), 0 6px 18px rgba(0,229,255,0.22);
}
.mobile-nav { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.mobile-nav a {
  display: flex; align-items: center; min-height: 48px; padding: 12px 14px; border-radius: 10px;
  background-color: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: #EAF6FF;
}
.mobile-nav a:hover { background-color: rgba(0,229,255,0.08); color: var(--neon-cyan); }

/* Ensure main header nav reappears on desktop */
@media (min-width: 992px) {
  header nav a:not(:first-child) { display: inline-flex; }
  .mobile-menu-toggle { display: none; }
}

/* ===============================
   COOKIE CONSENT (banner + modal)
   =============================== */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 3000;
  background-color: var(--clr-accent); color: var(--clr-primary);
  border-top: 2px solid rgba(31,45,56,0.25); box-shadow: 0 -8px 20px rgba(0,0,0,0.18);
  display: flex; flex-direction: column; gap: 12px; padding: 16px 20px;
  transform: translateY(100%); transition: transform .3s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .content { display: flex; flex-direction: column; gap: 8px; }
.cookie-banner .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn, .cookie-banner .button { min-width: 140px; }
.cookie-banner .accept { background-color: var(--clr-secondary); color: #0B0B0B; }
.cookie-banner .reject { background-color: #FFFFFF; color: #1A1A1A; border: 1px solid rgba(31,45,56,0.3); }
.cookie-banner .settings { background-color: transparent; color: var(--clr-primary); border: 1px solid rgba(31,45,56,0.4); }
.cookie-banner .accept:hover { filter: brightness(1.05); }
.cookie-banner .reject:hover, .cookie-banner .settings:hover { background-color: rgba(31,45,56,0.06); }

.cookie-modal {
  position: fixed; inset: 0; z-index: 3100; display: none;
  background-color: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.cookie-modal.open { display: flex; }
.cookie-modal .modal-inner {
  background-color: #FFFFFF; color: #1A1A1A; border-radius: 16px; width: 100%; max-width: 720px;
  display: flex; flex-direction: column; gap: 16px; padding: 20px; box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-modal .category { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; }
.cookie-modal .category .note { color: #444; font-size: 14px; }
.cookie-modal .modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* Toggle switch (pure CSS visual) */
.toggle { width: 44px; height: 26px; border-radius: 26px; background: #D9DDE1; position: relative; display: inline-flex; align-items: center; padding: 3px; }
.toggle::after { content: ""; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transform: translateX(0); transition: transform .2s ease, background-color .2s ease; }
.toggle.on { background: #25C2A0; }
.toggle.on::after { transform: translateX(18px); background: #FFFFFF; }

/* ===============================
   UTILITIES
   =============================== */
.muted { color: var(--text-muted); }
.centered { display: flex; align-items: center; justify-content: center; }
.spacer-8 { height: 8px; }
.spacer-16 { height: 16px; }

/* ===============================
   RESPONSIVE RULES
   =============================== */
@media (min-width: 600px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .container { gap: 28px; }
}

@media (min-width: 768px) {
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  p, li, dd { font-size: 18px; }
  .text-image-section { flex-direction: row; }
}

/* Ensure text-image sections stack on small screens */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

/* Larger desktop refinements */
@media (min-width: 1140px) {
  h1 { font-size: 48px; }
}

/* ===============================
   PAGE-SPECIFIC TWEAKS
   =============================== */
/* Hero sections: subtle section header accent underline */
section h1, section h2 { position: relative; padding-bottom: 6px; }
section h1::after, section h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 64px;
  background-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0,229,255,0.6);
}

/* Links within paragraphs */
section p a { color: var(--neon-cyan); text-decoration: underline; text-underline-offset: 3px; }
section p a:hover { color: #A9F7FF; }

/* ===============================
   ACCESSIBILITY CONTRAST IN TESTIMONIAL AREAS
   =============================== */
section:has(.testimonial-card) { background-color: rgba(244,239,230,0.06); }

/* ===============================
   PREVENT OVERLAP & SPACING SAFEGUARDS
   =============================== */
section > .container > .content-wrapper > * + * { margin-top: 8px; }
.feature-grid, .service-cards, .project-summaries { margin-top: 12px; }

/* ===============================
   PRINT (optional minimal)
   =============================== */
@media print {
  header, .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #FFFFFF; color: #000; }
}

/* ===============================
   END OF FILE
   =============================== */