/* RESET & NORMALIZE */
html,body,div,span,applet,object,iframe,
h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,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: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
  background: #F9FAFB;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F9FAFB;
  color: #263249;
  line-height: 1.6;
  min-height: 100vh;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  border: 0;
  display: block;
}
a {
  color: #1C315E;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #19A68C;
  outline: none;
}
ul,ol {
  list-style: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  color: #1C315E;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.125rem; margin-bottom: 8px; }
p { margin-bottom: 16px; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

/* BRAND BUTTONS */
.button {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: #1C315E;
  color: #fff;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(28,49,94,0.08);
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.20s;
  margin: 10px 0;
  text-align: center;
  gap: 0.75em;
}
.button.primary {
  background: #19A68C;
  color: #fff;
}
.button:hover, .button:focus {
  background: #162748;
  color: #fff;
  box-shadow: 0 4px 16px rgba(28,49,94,0.10);
}
.button.primary:hover, .button.primary:focus {
  background: #158f78;
  color: #fff;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

/* HEADER */
header {
  background: #fff;
  box-shadow: 0 2px 16px rgba(28,49,94,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.logo img {
  height: 40px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #E5EBF2;
  color: #19A68C;
}
.main-nav .button {
  margin: 0 0 0 12px;
  padding: 10px 20px;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #1C315E;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover {
  background: #E5EBF2;
}

@media (max-width: 990px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    gap: 8px;
    height: 64px;
  }
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(28,49,94,0.95);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.38,0,.60,1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  margin: 24px 24px 0 0;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.15s;
  z-index: 2010;
}
.mobile-menu-close:hover {
  color: #19A68C;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.25rem;
  color: #fff;
  padding: 16px 0;
  border-radius: 5px;
  transition: background 0.16s, color 0.16s;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #162748;
  color: #19A68C;
}
@media (min-width: 991px) {
  .mobile-menu {
    display: none !important;
  }
}

/* SECTIONS & SPACING */
section {
  width: 100%;
  background: none;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 12px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(28,49,94,0.10);
  padding: 32px 28px;
  min-width: 260px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(28,49,94,0.16);
  transform: translateY(-3px) scale(1.02);
}
.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: #F4F6FA;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(28,49,94,0.07);
  margin-bottom: 20px;
  color: #1C315E;
  font-size: 1.05rem;
  transition: box-shadow 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 12px rgba(28,49,94,0.10);
}
.testimonial-card p {
  font-style: italic;
  margin-bottom: 10px;
  color: #263249;
}
.testimonial-card span {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #19A68C;
  font-size: 0.97em;
}
.logo-carousel, .client-logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 16px;
}
.logo-carousel img, .client-logo-grid img {
  height: 40px;
  filter: grayscale(100%) brightness(0.8);
  opacity: 0.7;
  transition: filter 0.16s, opacity 0.16s;
}
.logo-carousel img:hover, .client-logo-grid img:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Contact info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #263249;
  background: #F4F6FA;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 500;
}
.company-details {
  margin-top: 8px;
  font-size: 1rem;
  color: #263249;
  background: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(28,49,94,0.05);
}

.text-section {
  margin-bottom: 18px;
  background: #f6f8fb;
  padding: 22px 18px;
  border-radius: 10px;
}
.text-section h3 {
  margin-top: 0;
}
.text-section ul {
  margin-left: 12px;
}
.text-section ul li {
  list-style: disc inside;
  color: #363f59;
  margin: 6px 0;
}

/* CARD LISTS, etc. */
ul {
  margin-bottom: 16px;
}
ul li {
  margin-bottom: 10px;
  padding-left: 0;
  position: relative;
  color: #363f59;
  font-size: 1rem;
}
ul li img {
  height: 20px;
  width: 20px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}
ul li strong { color: #1C315E; }
span.cat {
  background: #1C315E;
  color: #fff;
  font-size: 0.90em;
  font-weight: 600;
  border-radius: 6px;
  padding: 2px 10px;
  margin-left: 8px;
  vertical-align: middle;
}

/* FOOTER */
footer {
  background: #1C315E;
  color: #fff;
  padding: 32px 0 20px 0;
  width: 100%;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-menu {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 10px;
}
.footer-menu a {
  color: #fff;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  font-size: 1em;
  opacity: .8;
  transition: opacity 0.15s, color 0.15s;
}
.footer-menu a:hover, .footer-menu a:focus { opacity: 1; color: #19A68C; }
.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 8px 0;
}
.social-links img {
  height: 32px;
  width: 32px;
  opacity: 0.82;
  filter: grayscale(100%);
  transition: filter 0.17s, opacity 0.17s;
}
.social-links img:hover {
  filter: grayscale(0%) brightness(1.3);
  opacity: 1;
}
footer img[alt="Spark Whisper"] {
  height: 32px;
}
footer span {
  font-size: .95em;
  opacity: .9;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: #1C315E;
  box-shadow: 0 -2px 18px rgba(28,49,94,0.09);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 18px 22px 18px;
  gap: 24px;
  transition: transform 0.32s cubic-bezier(.5,0,.5,1), opacity 0.24s;
  opacity: 1;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(150%);
}
.cookie-banner-content {
  max-width: 630px;
  font-size: 1rem;
  margin-right: 28px;
}
.cookie-banner-buttons {
  display: flex;
  gap: 15px;
}
.cookie-banner .button {
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
}
.cookie-banner .button:last-child {
  background: #fff;
  color: #1C315E;
  border: 1px solid #1C315E;
}
.cookie-banner .button:last-child:hover {
  background: #E5EBF2;
}

/* COOKIE MODAL */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28,49,94,0.55);
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.35s;
}
.cookie-modal-backdrop.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  max-width: 420px;
  border-radius: 16px;
  padding: 36px 30px 30px 30px;
  box-shadow: 0 6px 44px rgba(28,49,94,0.21);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cookie-modal h2 {
  font-size: 1.325rem;
  margin-bottom: 12px;
  color: #1C315E;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 0;
}
.cookie-modal label {
  font-size: 1rem;
  color: #263249;
}
.cookie-toggle {
  width: 32px;
  height: 20px;
  background: #E5EBF2;
  border-radius: 10px;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.12s;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle span {
  display: block;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.14s, background 0.14s;
  box-shadow: 0 1px 4px rgba(28,49,94,0.10);
}
.cookie-toggle input:checked + span {
  left: 14px;
  background: #19A68C;
}
.cookie-category.essential label {
  opacity: .55;
}
.cookie-modal .modal-buttons {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal .button {
  padding: 10px 20px;
  font-size: 1rem;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #1C315E;
  cursor: pointer;
}

/* RESPONSIVE LAYOUTS */
@media (max-width: 991px) {
  .container {
    max-width: 98vw;
    padding: 0 9px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 99vw;
    padding: 0 3.5vw;
  }
}
@media (max-width: 768px) {
  .section { margin-bottom: 36px; padding: 25px 4vw; }
  .content-wrapper {
    gap: 16px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card, .card {
    padding: 18px 12px;
  }
  .footer-menu {
    gap: 15px;
    flex-wrap: wrap;
  }
  .social-links img {
    height: 28px;
    width: 28px;
  }
  .logo img, footer img[alt="Spark Whisper"] {
    height: 28px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .card {
    min-width: 0;
  }
  .cookie-banner-content {
    margin-right: 0;
    font-size: 0.95rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 6vw;
    gap: 14px;
  }
  .cookie-modal {
    padding: 18px 8vw 18px 8vw;
    max-width: 95vw;
  }
}

@media (max-width: 500px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.15rem; }
  .main-nav .button,
  .button,
  .cookie-banner .button,
  .cookie-modal .button {
    font-size: .97rem;
    padding: 10px 12px;
  }
  .contact-info, .company-details {
    font-size: 0.96rem;
  }
}

/* HOVER & MICRO-INTERACTIONS */
.form-control:focus, input:focus, textarea:focus, select:focus {
  outline: 2px solid #19A68C;
  background: #f7fafc;
  box-shadow: 0 0 0 2px #A0DAD2;
}
.button:active { transform: scale(0.98); }

/* UTILITIES */
.m-0 { margin: 0 !important; }
.mb-20 { margin-bottom: 20px !important; }
.d-flex { display: flex !important; }
.a-center { align-items: center !important; }
.j-between { justify-content: space-between !important; }

/* Hide visually for accessibility */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* FORMS (for contact, cookie modals etc.) */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #263249;
  background: #fff;
  border: 1px solid #d2dae5;
  border-radius: 6px;
  padding: 11px 13px;
  margin-bottom: 12px;
  width: 100%;
  transition: border 0.16s, box-shadow 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: #19A68C;
  background: #F9FAFB;
}
label {
  margin-bottom: 4px;
  display: block;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #1C315E;
  font-weight: 600;
  font-size: .98rem;
}

/* MISC */
hr {
  border: none;
  border-top: 1px solid #E5EBF2;
  margin: 32px 0 18px 0;
}

/* Responsive fixes for cookie banner & modal */
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 5vw;
    gap: 10px;
    font-size: 0.97rem;
  }
  .cookie-modal {
    padding: 10vw 0vw;
    min-width: 0;
  }
}

/* Card secondary style (if used in future) */
.card.secondary {
  background: #F4F6FA;
  border: 1px solid #E5EBF2;
  color: #263249;
}

/* VISUAL HIERARCHY */
.section h2, .container > h2 {
  margin-bottom: 24px;
  border-left: 4px solid #19A68C;
  padding-left: 12px;
  font-size: 2rem;
}
@media (max-width: 600px) {
  .section h2, .container > h2 {
    font-size: 1.25rem;
    padding-left: 7px;
    margin-bottom: 15px;
  }
}

/* END OF STYLES */
