/* ===== CSS RESET & BASE ===== */
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;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F9F6F2;
  color: #23303B;
  font-size: 16px;
  min-height: 100vh;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: #2376ff;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 600;
}
a:hover, a:focus {
  color: #ff2c7e;
}
button, input[type="button"], input[type="submit"] {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
ul, ol {
  list-style-position: inside;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== VARIABLES: Vibrant Energetic Palette ===== */
:root {
  --color-primary: #23303B;
  --color-secondary: #8BA3B2;
  --color-accent: #F9F6F2;
  --color-electric: #2376ff;
  --color-magenta: #ff2c7e;
  --color-cyan: #22d3ee;
  --color-yellow: #ffe600;
  --color-green: #1db954;
  --color-dark: #181d25;
  --color-light: #ffffff;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', 'Open Sans', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--color-primary);
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 6px;
}
p, ul, ol, li {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
}
strong, b {
  font-weight: bold;
  color: var(--color-electric);
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
ul, ol {
  margin: 0 0 8px 20px;
  line-height: 1.7;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  width: 100%;
  min-height: 72px;
  background: var(--color-light);
  box-shadow: 0 5px 18px 0 rgba(35, 118, 255, 0.07), 0 1px 0 #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 0 0 12px;
  font-size: 1.05rem;
}
header > a img {
  max-height: 42px;
  margin-right: 16px;
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
header nav a {
  color: var(--color-primary);
  font-weight: 700;
  position: relative;
  padding: 10px 8px;
  border-radius: 6px;
  transition: all 0.18s;
}
header nav a.active, header nav a:focus, header nav a:hover {
  background: var(--color-electric);
  color: #fff;
}
.cta-button {
  background: linear-gradient(90deg, var(--color-electric) 60%, var(--color-magenta) 100%);
  color: #fff !important;
  font-family: 'Roboto Slab', Arial, sans-serif;
  font-weight: bold;
  padding: 11px 30px;
  border-radius: 30px;
  box-shadow: 0 3px 24px 0 rgba(35, 118, 255, 0.12);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  margin-left: 12px;
  transition: transform 0.13s, box-shadow 0.2s, background 0.2s;
}
.cta-button:hover, .cta-button:focus {
  transform: translateY(-2px) scale(1.04);
  background: linear-gradient(90deg, var(--color-magenta) 40%, var(--color-electric) 80%);
  box-shadow: 0 6px 36px 0 rgba(255, 44, 126, 0.22);
}
.mobile-menu-toggle {
  display: none;
  background: var(--color-electric);
  color: #fff;
  font-size: 2.2rem;
  border-radius: 12px;
  padding: 0 12px;
  margin-left: 14px;
  transition: background 0.16s;
  z-index: 2022;
  height: 48px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-magenta);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 102vw;
  max-width: 400px;
  background: var(--color-dark);
  color: #fff;
  transform: translateX(105%);
  transition: transform 0.35s cubic-bezier(.33,1.03,.71,.99);
  z-index: 1999;
  box-shadow: -3px 0 28px 0 rgba(35, 118, 255, 0.15);
  display: flex;
  flex-direction: column;
  padding: 0 0 0 0;
  align-items: flex-start;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--color-magenta);
  color: #fff;
  font-size: 2rem;
  border-radius: 12px;
  margin: 22px 22px 8px 0;
  padding: 4px 12px;
  transition: background 0.22s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-electric);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
  width: 100%;
  padding: 14px 32px 36px 32px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  padding: 12px 2px;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.16s, color 0.18s;
  margin: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-electric);
  color: var(--color-yellow);
}

@media (max-width: 1100px) {
  .container {
    max-width: 99vw;
    padding: 0 8px;
  }
  header nav {
    gap: 8px;
  }
  .cta-button {
    padding: 11px 18px;
    margin-left: 3px;
  }
}

@media (max-width: 992px) {
  .container {
    padding: 0 5vw;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  header {
    min-height: 58px;
    padding: 0 0 0 0;
    font-size: 0.99rem;
  }
  .container {
    max-width: 99vw;
    padding: 0 6px;
  }
  .cta-button {
    font-size: 0.98rem;
    padding: 10px 16px;
  }
}

/* ======= SECTION & LAYOUT ======= */
section {
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-light);
  border-radius: 30px;
  box-shadow: 0 3px 32px 0 rgba(34, 211, 238, 0.09);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3px 22px 0 rgba(35, 118, 255, 0.07);
  transition: transform 0.18s, box-shadow 0.22s;
}
.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 46px 0 rgba(35, 118, 255, 0.15);
}
.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;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-top: 18px;
}
.feature-grid > div {
  background: var(--color-light);
  border-radius: 26px;
  box-shadow: 0 2px 14px 0 rgba(34, 211, 238, 0.10);
  padding: 24px 16px 28px 16px;
  flex: 0 1 300px;
  min-width: 220px;
  max-width: 350px;
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: box-shadow 0.19s, transform 0.13s;
  border: 2px solid #2376ff11;
}
.feature-grid > div:hover {
  box-shadow: 0 7px 34px 0 rgba(255, 44, 126, 0.14);
  border-color: var(--color-electric);
  z-index: 2;
  transform: translateY(-4px) scale(1.03);
}
.feature-grid img {
  max-width: 54px;
  margin-bottom: 6px;
  filter: drop-shadow(0px 4px 12px #8ba3b2cc);
}

.team-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}
.team-overview > div {
  background: var(--color-secondary);
  color: var(--color-light);
  border-radius: 18px;
  box-shadow: 0 1px 10px 0 rgba(35,118,255,0.05);
  padding: 16px 16px 16px 19px;
  flex-basis: 260px;
  min-width: 170px;
  max-width: 320px;
  margin-bottom: 20px;
  border: 1.5px solid #2376ff23;
  transition: box-shadow 0.15s, transform 0.14s;
}
.team-overview > div:hover {
  box-shadow: 0 5px 26px 0 rgba(34,211,238,0.13);
  transform: scale(1.04);
}

.service-icons {
  display: flex;
  gap: 24px;
  margin: 18px 0 0 0;
  align-items: center;
  flex-wrap: wrap;
}
.service-icons img {
  max-height: 62px;
  filter: drop-shadow(0px 2px 6px #8ba3b277);
}

.case-study {
  background: var(--color-accent);
  border-radius: 20px;
  box-shadow: 0 1.5px 14px 0 rgba(35, 48, 59, 0.06);
  padding: 24px 24px 20px 24px;
  margin-bottom: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.case-study h2 {
  color: var(--color-electric);
}

.client-logo-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  margin-top: 15px;
}
.client-logo-grid img {
  max-width: 78px;
  filter: drop-shadow(0 0 8px #2376ff44);
  background: #fff;
  border-radius: 14px;
  padding: 7px;
}
/* .map (contact.html section) */
.map {
  border-radius: 16px;
  border: 2px solid var(--color-secondary);
  background: #fff8f4;
  padding: 23px 20px 16px 20px;
  margin-top: 18px;
  box-shadow: 0 2px 16px 0 rgba(35, 118, 255, 0.05);
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(35, 48, 59, 0.08);
  margin-bottom: 22px;
  border: 2.5px solid var(--color-electric);
  color: var(--color-dark);
  font-size: 1.05rem;
  transition: box-shadow 0.18s, border-color 0.14s;
}
.testimonial-card strong {
  color: var(--color-magenta);
}
.testimonial-card:hover {
  box-shadow: 0 7px 42px 0 rgba(255, 230, 0, 0.21);
  border-color: var(--color-magenta);
}

/* ===== FAQ ACCORDION (Static, index/faq.html) ===== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}
.faq-accordion h2 {
  font-family: 'Roboto Slab', Arial, sans-serif;
  font-size: 1.12rem;
  background: var(--color-secondary);
  color: #fff;
  border-radius: 13px;
  padding: 10px 15px;
  margin-bottom: 0;
  font-weight: 800;
}
.faq-accordion p {
  background: #fff;
  border-radius: 0 0 9px 9px;
  padding: 14px 17px 12px 23px;
  box-shadow: 0 2px 8px 0 rgba(35, 48, 59, 0.02);
  margin-bottom: 0;
}

/* ===== PRICING TABLE ===== */
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1.11rem;
  margin: 18px 0 24px 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px 0 rgba(255,230,0,0.04);
}
.pricing-table th, .pricing-table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 2px solid #8BA3B217;
}
.pricing-table th {
  background: #2376ff;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.01em;
  font-family: 'Roboto Slab', Arial, sans-serif;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}

/* ===== BUTTONS (universal, also for Cookie Banner) ===== */
.button, .cookie-btn {
  display: inline-block;
  padding: 12px 26px;
  font-family: 'Roboto Slab', Arial, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  background: var(--color-electric);
  color: #fff;
  border-radius: 32px;
  border: none;
  cursor: pointer;
  margin: 8px 9px 5px 0;
  text-align: center;
  transition: background 0.17s, transform 0.11s, box-shadow 0.18s;
  box-shadow: 0 2px 12px 0 rgba(35, 118, 255, 0.14);
}
.button:hover, .button:focus,
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-magenta);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 7px 22px 0 rgba(255,44,126,0.14);
  color: #fff;
}
.button.secondary, .cookie-btn.secondary {
  background: var(--color-secondary);
  color: #fff;
  border: none;
}
.button.secondary:hover, .cookie-btn.secondary:hover {
  background: var(--color-yellow);
  color: var(--color-primary);
}

/* ===== FOOTER ===== */
footer {
  width: 100%;
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 0;
  font-size: 1rem;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 38px 20px 28px 20px;
  justify-content: space-between;
}
.footer-main a, .footer-main nav a {
  color: var(--color-yellow);
  font-weight: bold;
  font-family: 'Roboto Slab', Arial, sans-serif;
  font-size: 1rem;
  margin-right: 14px;
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.14s;
}
.footer-main a:hover, .footer-main nav a:hover { color: var(--color-cyan); }
.footer-main > a img { max-height: 48px; }
.footer-main nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 170px;
}
.contact-info-short p, .contact-info-short a {
  color: #fff;
  font-size: 0.98rem;
}
.contact-info-short a:hover {
  color: var(--color-cyan);
}

@media (max-width: 900px) {
  .footer-main { flex-direction: column; gap: 14px; align-items: flex-start; padding: 32px 9px; }
}


/* ==== RESPONSIVE FLEX LAYOUT ADJUSTMENTS ==== */
@media (max-width: 768px) {
  .feature-grid, .client-logo-grid, .card-container, .content-grid, .team-overview {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .footer-main { padding: 28px 5px; }
  .section { padding: 28px 5px; margin-bottom: 34px; }
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.08rem; }
}

/* ==== SPACING + VISUAL PATTERNS (cf. MANDATORY RULES) ==== */
.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; }

/* ==== COOKIE CONSENT BANNER & MODAL ==== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: var(--color-primary);
  border-top: 4px solid var(--color-electric);
  box-shadow: 0 -3px 24px 0 rgba(35, 48, 59, 0.08), 0 -1.5px 0 #8ba3b2;
  z-index: 4010;
  padding: 22px 14px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
  font-size: 1rem;
  opacity: 1;
  transition: transform 0.42s, opacity 0.24s;
  animation: banner-in 0.5s; 
}
@keyframes banner-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-btn-group {
  display: flex;
  gap: 12px;
  margin-top: 2px;
  flex-wrap: wrap;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,48,59,0.87);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1; pointer-events: all;
  transition: opacity 0.32s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  color: var(--color-primary);
  border-radius: 16px;
  max-width: 450px;
  width: 97vw;
  padding: 32px 24px 28px 24px;
  box-shadow: 0 4px 32px 0 rgba(35, 48, 59, 0.32);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  animation: modal-in 0.5s;
}
@keyframes modal-in {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal-content h3 {
  font-size: 1.25rem;
  color: var(--color-electric);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 4px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--color-electric);
  width: 19px;
  height: 19px;
}
.cookie-category label span.essential {
  color: var(--color-magenta);
  font-weight: bold;
  font-size: 0.95em;
}
.cookie-modal-close {
  position: absolute;
  right: 30px;
  top: 21px;
  background: var(--color-magenta);
  color: #fff;
  border-radius: 50%;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.14s;
  z-index: 2;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-electric);
}

@media (max-width: 480px) {
  .cookie-modal-content {
    padding: 17px 5px 16px 10px;
    max-width: 99vw;
  }
  .cookie-modal-close {
    right: 6px; top: 6px;
  }
}

/* ===== MISCELLANEOUS ===== */
::-webkit-scrollbar {
  width: 12px;
  background: #e6eaf2;
}
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 8px;
}

/* Visually hidden, for accessibility helpers, e.g. cookie modal */
.visually-hidden { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden; }

/* ======== Animations / Micro-interactions ======== */
.cta-button, .button, .feature-grid > div, .team-overview > div, .card, .testimonial-card, .case-study, .faq-accordion h2 {
  transition: box-shadow 0.18s, transform 0.14s, background 0.19s;
}
.cta-button:active, .button:active, .feature-grid > div:active, .testimonial-card:active {
  transform: scale(0.97);
}

/* ======= Prevent absolute positioning overlap ======= */
.card, .feature-grid > div, .testimonial-card, .section, .case-study {
  margin-bottom: 20px;
}

/* ====== FORCE FLEXBOX, FORBID GRID/COLUMNS ====== */
/* No use of display:grid, grid-*, columns, column-*, break-inside anywhere above. */
