/* ====== CSS RESET & NORMALIZE ====== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption,
tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F6F8FB;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
  vertical-align: middle;
}
button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}
:root {
  --color-primary: #104373;
  --color-secondary: #F6F8FB;
  --color-accent: #F2B705;
  --color-electric1: #16C6FF; /* Vibrant blue */
  --color-electric2: #FB008C; /* Pink/Magenta */
  --color-electric3: #28F19C; /* Neon green */
  --color-dark: #182538;
  --color-light: #FFFFFF;
  --color-grey: #E5ECF3;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --shadow-card: 0 4px 32px 0 rgba(16,67,115,0.08), 0 1.5px 8px 0 rgba(16,67,115,0.05);
  --shadow-strong: 0 8px 24px 0 rgba(16,67,115,0.18);
  --radius: 16px;
}

/* ====== GENERAL TYPOGRAPHY ====== */
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-dark);
  background: var(--color-secondary);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--color-primary);
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 700;
}
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.5rem; }
}
p, ul li, ol li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-dark);
  margin-bottom: 10px;
}
strong {
  font-weight: bold;
}
.subheadline {
  font-size: 1.2rem;
  color: var(--color-electric1);
  font-weight: 600;
  margin-bottom: 24px;
}
.text-section {
  margin-bottom: 28px;
}
.text-section ul {
  padding-left: 1em;
}
.text-section li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 22px;
}
.text-section li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 10px;
  border-radius: 100%;
  background: var(--color-accent);
}

/* ====== CONTAINER & SPACING ====== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  margin: 0 auto;
  max-width: 850px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (max-width: 768px) {
  .section { padding: 30px 8px; margin-bottom: 36px; }
  .content-wrapper { max-width: 100%; padding: 0; }
}
/* Core flex spacing requirements */
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  min-width: 0;
  margin-bottom: 20px;
  transition: box-shadow 0.22s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-strong);
  background: #FCFCFC;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  padding: 28px 20px 20px 20px;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  min-width: 240px;
  max-width: 350px;
  flex: 1 1 200px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature-item img {
  width: 36px;
  margin-bottom: 10px;
}
.feature-item:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-3px) scale(1.03);
}
@media (max-width: 992px) {
  .content-grid, .features-grid, .services-grid, .testimonial-list, .testimonial-slider {
    flex-wrap: wrap;
    flex-direction: column;
    gap: 18px;
  }
  .feature-item, .service-item {
    max-width: 100%;
    width: 100%;
  }
}

/* ====== NAVIGATION ====== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(16,67,115,0.045);
  z-index: 999;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  position: relative;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.07rem;
  color: var(--color-primary);
  padding: 7px 12px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
header nav a:hover:not(.btn-primary):not(.active),
header nav a:focus:not(.btn-primary):not(.active) {
  background: var(--color-electric1);
  color: #fff;
}
header nav a.active {
  background: var(--color-accent);
  color: var(--color-dark);
  font-weight: 800;
}
.btn-primary {
  background: var(--color-electric2);
  color: #fff;
  border-radius: 8px;
  padding: 10px 26px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.10rem;
  letter-spacing: 1px;
  box-shadow: 0 2px 10px 0 rgba(251,0,140,0.13);
  transition: background 0.2s, color 0.2s, transform 0.15s;
  outline: none;
  border: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  transform: scale(1.07);
}

/* ====== MOBILE NAVIGATION ====== */
.mobile-menu-toggle {
  display: none;
  background: var(--color-electric1);
  color: #fff;
  border-radius: 8px;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  z-index: 1011;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-electric2);
}
@media (max-width: 1024px) {
  header nav { display: none; }
  .mobile-menu-toggle {
    display: flex;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 95vw;
  max-width: 410px;
  height: 100vh;
  background: #fff;
  box-shadow: -8px 0 32px 0 rgba(16,67,115,0.18);
  z-index: 1202;
  transform: translateX(110vw);
  transition: transform 0.32s cubic-bezier(.69,.11,.3,1.31);
  padding: 36px 32px 24px 32px;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 8px;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  z-index: 1203;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-electric2);
  color: #fff;
}
.mobile-menu nav.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}
.mobile-nav a {
  font-size: 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  padding: 13px 0;
  border-bottom: 1px solid var(--color-grey);
  transition: color 0.16s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-electric2);
}
@media (max-width: 400px) {
  .mobile-menu {
    max-width: 100vw;
    padding-left: 10px; padding-right: 10px;
  }
}

/* ====== HERO, CTA & GENERAL SECTIONS ====== */
section {
  width: 100%;
  background: none;
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
.cta-section {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 36px 0 rgba(16,67,115,0.16);
  border-radius: var(--radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-section h2, .cta-section p {
  color: #fff;
}
@media (max-width: 768px) {
  .cta-section {
    padding: 28px 10px;
  }
}

/* ====== FEATURES & SERVICES ====== */
.features-grid, .services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  margin-top: 20px;
  width: 100%;
}
.service-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  flex: 1 1 200px;
  max-width: 325px;
  min-width: 240px;
  padding: 28px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.19s, transform 0.17s;
}
.service-item img {
  width: 34px;
  margin-bottom: 8px;
}
.service-item:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px) scale(1.04);
}
@media (max-width: 992px) {
  .features-grid, .services-grid {
    gap: 18px;
    flex-direction: column;
  }
  .feature-item, .service-item {
    max-width: 100%;
    width: 100%;
  }
}

/* ====== TESTIMONIALS ====== */
.testimonial-slider, .testimonial-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
  justify-content: center;
}
.testimonial-card {
  flex: 1 1 265px;
  max-width: 380px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 20px 22px 20px;
  margin-bottom: 20px;
  color: #182538;
  min-width: 0;
  position: relative;
  flex-direction: column;
  gap: 11px;
}
.testimonial-card p {
  font-size: 1.12rem;
  color: var(--color-dark);
  margin-bottom: 14px;
  font-style: italic;
  line-height: 1.6;
}
.testimonial-author {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-electric2);
}
@media (max-width: 768px) {
  .testimonial-slider, .testimonial-list {
    flex-direction: column;
    gap: 18px;
  }
}

/* ====== CASE STUDY PREVIEW ====== */
.case-study-preview {
  background: var(--color-grey);
  border-left: 6px solid var(--color-electric1);
  padding: 18px 18px 10px 22px;
  margin: 19px 0 17px 0;
  border-radius: 8px;
  font-size: 1rem;
  color: var(--color-primary);
  font-family: var(--font-body);
  box-shadow: 0 3px 18px 0 rgba(16,67,115,0.06);
}

/* ====== FOOTER ====== */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 52px 0 0 0;
  font-size: 1rem;
  width: 100%;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 36px 56px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 30px;
}
.footer-content > * {
  flex: 1 1 160px;
  min-width: 140px;
}
.footer-links a,
.footer-contact div,
.footer-social a {
  display: block;
  color: #fff;
  opacity: 0.92;
  font-size: 1rem;
  margin-bottom: 9px;
  transition: color 0.15s, opacity 0.15s;
}
.footer-links a:hover,
.footer-contact a:hover {
  color: var(--color-accent);
  opacity: 1;
}
.footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer-social a img {
  filter: brightness(90%) drop-shadow(0 1px 3px rgba(255,255,255,0.15));
  width: 28px; height: 28px;
  transition: filter 0.21s;
}
.footer-social a:hover img {
  filter: brightness(1.3) drop-shadow(0 2px 5px var(--color-electric1));
}
.footer-copyright {
  text-align: center;
  color: #C4E0FF;
  font-size: 0.94rem;
  padding-bottom: 36px;
  padding-top: 20px;
  opacity: 0.75;
}
@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* ====== CONTACT MAP PLACEHOLDER ====== */
.contact-map-placeholder {
  background: var(--color-grey);
  margin: 20px 0 0 0;
  padding: 22px 20px 16px 20px;
  border-radius: 12px;
  box-shadow: 0 3px 14px 0 rgba(16,67,115,0.06);
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-map-placeholder p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .contact-map-placeholder {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 13px 7px 8px 7px;
  }
}
/* Links inside text */
a {
  color: var(--color-electric1);
  transition: color 0.18s;
}
a:hover { color: var(--color-electric2); }

/* ====== COOKIE CONSENT BANNER ====== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 11000;
  background: #fff;
  color: var(--color-dark);
  width: 100%;
  padding: 18px 16px 18px 16px;
  box-shadow: 0 -3px 28px 0 rgba(16,67,115,0.11);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: center;
  transition: transform 0.36s cubic-bezier(.69,.11,.3,1.31), opacity 0.27s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-msg {
  font-size: 1rem;
  flex: 1 1 200px;
}
.cookie-btns {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  padding: 9px 22px;
  border-radius: 7px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  font-size: 1rem;
  margin: 0 2px;
  box-shadow: 0 1.5px 6px rgba(16,67,115,0.11);
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-electric2);
  color: #fff;
  transform: scale(1.07);
}
.cookie-btn.cookie-settings {
  background: var(--color-electric1);
  color: #fff;
}
.cookie-btn.cookie-settings:hover {
  background: var(--color-primary);
  color: #fff;
}

/* COOKIE CONSENT MODAL */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 12000;
  inset: 0;
  background: rgba(16,67,115,0.24);
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: background 0.2s;
}
.cookie-modal.active {
  display: flex;
  animation: cookieModalFadeIn 0.28s cubic-bezier(.45,1.29,.52,.99);
}
@keyframes cookieModalFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 9px 36px rgba(22, 199, 255, 0.17);
  padding: 32px 28px 28px 28px;
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 15px;
}
.cookie-modal-content h2 {
  margin-bottom: 14px;
  font-size: 1.44rem;
  color: var(--color-primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 13px;
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--color-accent);
}
.cookie-category span {
  font-size: 1.05rem;
  color: var(--color-dark);
}
.cookie-category .always-on {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.97rem;
  opacity: 0.95;
  letter-spacing: 0.04em;
}
.cookie-modal-close {
  position: absolute;
  top: 11px; right: 11px;
  background: none;
  color: var(--color-primary);
  font-size: 1.9rem;
  border-radius: 7px;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-grey);
}
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
  margin-top: 8px;
}

/* ====== TABLES & LISTS ====== */
table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
}
th, td {
  padding: 12px 8px;
  border-bottom: 1px solid #d6e4ed;
  vertical-align: top;
}
th {
  background: var(--color-grey);
  font-weight: bold;
}

ul, ol {
  margin: 14px 0 14px 24px;
}
ul li {
  margin-bottom: 10px;
}

/* ====== MISC. CLASSES ====== */
img[alt*="icon"] {
  vertical-align: middle;
  margin-right: 6px;
}

::-webkit-input-placeholder { color: #6c7a93; }
::-moz-placeholder { color: #6c7a93; }
:-ms-input-placeholder { color: #6c7a93; }
::placeholder { color: #6c7a93; }

/* ====== ANIMATIONS & TRANSITIONS ====== */
.card, .feature-item, .service-item, .testimonial-card, .btn-primary, .cookie-btn {
  transition: box-shadow 0.18s, transform 0.18s, background 0.19s, color 0.19s;
}

/* ====== RESPONSIVE: LAYOUT ADJUSTMENTS ====== */
@media (max-width: 768px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.01rem; }
  .features-grid, .services-grid, .testimonial-slider, .testimonial-list {
    flex-direction: column;
    gap: 13px;
  }
  .feature-item, .service-item, .testimonial-card {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  .section {
    padding: 22px 5px;
    margin-bottom: 32px;
  }
  .container {
    padding: 0 8px;
  }
  header .container {
    padding-left: 8px;
    padding-right: 8px;
    height: 60px;
  }
}
@media (max-width: 480px) {
  .footer-content {
    gap: 9px;
    padding: 0;
    flex-direction: column;
  }
  .footer-social a img {
    width: 22px; height: 22px;
  }
  .cookie-banner { padding: 9px 3px; font-size: 0.99rem; }
  .cookie-btn { padding: 7px 12px; font-size: 0.99rem; }
}

/* ====== PRINT ====== */
@media print {
  * { background: white !important; color: black !important; box-shadow: none !important; }
  header, footer, .cookie-banner, .cookie-modal { display: none !important; }
}

/* ====== FINAL DESIGN POLISH ====== */
::-webkit-scrollbar {
  width: 7px;
  background: var(--color-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 7px;
}

/* Vibrant section highlights */
section:nth-child(2n) {
  background: rgba(251,0,140,0.035);
}

/* Accent border for card on :hover */
.card:hover, .feature-item:hover, .service-item:hover {
  border-left: 5px solid var(--color-electric1);
}

/* Decorative spark accent on .feature-item */
.feature-item:before {
  content: "";
  display: block;
  width: 39px;
  height: 4px;
  background: linear-gradient(90deg,var(--color-electric3),var(--color-electric2),var(--color-accent));
  border-radius: 3px;
  margin-bottom: 8px;
}
/* Remove on mobile for less clutter */
@media (max-width: 576px) {
  .feature-item:before { display: none; }
}

/* ====== END CSS ====== */