/* ===================================================================
   CSS RESET & NORMALIZATION
====================================================================*/
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: #fff;
  color: #181A1B;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style-position: inside;
}
a {
  color: #181A1B;
  text-decoration: none;
  transition: color 0.25s;
}
a:focus {
  outline: 2px solid #20436C;
  outline-offset: 2px;
}
button, input[type="button"], input[type="submit"] {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ===================================================================
   BRAND COLOR VARIABLES (with fallback for custom properties)
====================================================================*/
:root {
  --color-primary: #181A1B; /* deep black (for text/headings) */
  --color-gray0: #FFFFFF;
  --color-gray1: #F7F8FA; /* paper white */
  --color-gray2: #ECEDEF;
  --color-gray3: #B4B7BD;
  --color-gray4: #73767A; /* mid gray for secondary text */
  --color-action: #20436C; /* subtle blue, for accents/buttons */
  --color-success: #6FB07F; /* used for accent states */
  --shadow-card: 0 2px 16px rgba(24,26,27,0.08), 0 1.5px 6px rgba(32,67,108,0.04);
}


/* ===================================================================
   LAYOUT & CONTAINERS
====================================================================*/
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-gray1);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow 0.22s cubic-bezier(.6,.3,0,1);
}
.card:hover {
  box-shadow: 0 6px 24px rgba(24,26,27,0.13), 0 1.5px 8px rgba(32,67,108,0.07);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/**** Special Cards and Elements ****/
.idea-card, .service-card, .case-study-snippet {
  background: var(--color-gray0);
  color: var(--color-primary);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.22s cubic-bezier(.6,.3,0,1);
}
.idea-card:hover, .service-card:hover, .case-study-snippet:hover {
  box-shadow: 0 10px 28px rgba(24,26,27,0.16), 0 1.5px 12px rgba(32,67,108,0.10);
}

/**** Testimonials ****/
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.testimonial-card blockquote {
  font-size: 18px;
  font-style: italic;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1.5;
}
.testimonial-author {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-action);
}

/**** Filter section ****/
.filter-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 16px;
  color: var(--color-primary);
}
.filter-section ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
}
.filter-section li {
  background: var(--color-gray2);
  color: var(--color-primary);
  border-radius: 16px;
  padding: 7px 18px;
  font-size: 15px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  letter-spacing: 0.01em;
}

/**** Footer ****/
footer {
  background: var(--color-primary);
  color: var(--color-gray1);
  padding: 48px 0 24px 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 18px;
  font-weight: 700;
}
.footer-brand img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-menu a {
  color: var(--color-gray3);
  font-size: 16px;
  transition: color 0.22s;
}
.footer-menu a:hover {
  color: var(--color-success);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
}
.footer-contact img {
  vertical-align: middle;
  height: 1.1em;
  margin-right: 7px;
  opacity: 0.7;
}
.footer-social {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 10px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  width: 34px;
  background: var(--color-gray1);
  border-radius: 50%;
  transition: background 0.22s;
}
.footer-social a:hover {
  background: var(--color-action);
}
.footer-social img {
  height: 18px;
  width: 18px;
  filter: grayscale(1) contrast(1.7);
}

/* ===================================================================
   TYPOGRAPHY
====================================================================*/
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
h1 {
  font-size: 2.75rem;
  line-height: 1.17;
}
h2 {
  font-size: 2rem;
  line-height: 1.22;
}
h3 {
  font-size: 1.4rem;
  line-height: 1.28;
  font-weight: 600;
}
h4 {
  font-size: 1.14rem;
  font-weight: 600;
}
.subheadline {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--color-gray4);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 10px;
}
p, li, ul, ol {
  color: var(--color-primary);
  font-size: 1rem;
  line-height: 1.7;
}
b, strong {
  font-weight: 600;
}
.bullets,
ul.bullets {
  list-style: disc inside;
  margin-left: 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
ul.bullets > li {
  padding-left: 0;
}

blockquote {
  border-left: 4px solid var(--color-action);
  background: transparent;
  margin: 0 0 14px 0;
  padding: 4px 0 4px 18px;
  font-style: italic;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-list h3 {
  font-size: 1.04rem;
  color: var(--color-action);
  font-weight: 600;
  margin-bottom: 4px;
}


/* ===================================================================
   NAVIGATION - DESKTOP & MOBILE
====================================================================*/
.desktop-nav {
  display: flex;
  gap: 26px;
  align-items: center;
  margin-left: 30px;
}
.desktop-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
  position: relative;
  padding: 6px 4px;
  transition: color 0.23s;
}
.desktop-nav a:hover, .desktop-nav a:focus {
  color: var(--color-action);
}

header {
  width: 100%;
  background: var(--color-gray0);
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 2px 12px rgba(24,26,27,0.06);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 22px;
}
header .container > a img {
  height: 41px;
  width: auto;
}

.btn-primary {
  padding: 11px 32px;
  min-width: 125px;
  background: var(--color-primary);
  color: var(--color-gray0);
  border: 0;
  border-radius: 28px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: .005em;
  box-shadow: 0 2px 13px rgba(32,67,108,0.06);
  transition: background 0.23s, color 0.22s, box-shadow 0.23s;
  margin-left: 14px;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-action);
  color: var(--color-success);
  box-shadow: 0 4px 19px rgba(24,26,27,0.16);
}
.btn-link {
  background: transparent;
  color: var(--color-action);
  font-size: 1.05rem;
  font-weight: 600;
  border: 0;
  padding: 0;
  margin-top: 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.22s, text-decoration 0.18s;
  text-decoration: underline;
}
.btn-link:hover, .btn-link:focus {
  color: var(--color-primary);
  text-decoration: none;
}

/**** Mobile Menu Styles ****/
.mobile-menu-toggle {
  display: none;
  font-size: 32px;
  background: none;
  border: 0;
  color: var(--color-primary);
  margin-left: auto;
  z-index: 1200;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-gray2);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(32,34,38, 0.95);
  transform: translateX(-100vw);
  transition: transform 0.42s cubic-bezier(.66,.04,.42,1);
  z-index: 2000;
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 28px 0 0;
  font-size: 36px;
  background: none;
  color: var(--color-gray1);
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.2s;
  padding: 5px 11px 2px 11px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-gray4);
  color: var(--color-success);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
  margin-top: 44px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  padding: 12px 30px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: .01em;
  text-align: center;
  transition: background 0.18s, color 0.17s;
  width: 90%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-success);
  color: var(--color-primary);
}

/**** Hamburger visibility & nav behavior ****/
@media (max-width: 1100px) {
  .container {
    max-width: 96vw;
    padding: 0 8px;
  }
}
@media (max-width: 900px) {
  header .container {
    gap: 8px;
    height: auto;
    padding: 7px 7px;
  }
}
@media (max-width: 900px) {
  .desktop-nav {
    display: none !important;
  }
  .btn-primary {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 700px) {
  header .container > a img {
    height: 37px;
  }
}


/* ===================================================================
   RESPONSIVE BEHAVIOR
====================================================================*/
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 25px 6px;
    border-radius: 14px;
  }
  .card-container {
    gap: 14px;
  }
  .testimonial-card, .idea-card, .service-card, .case-study-snippet, .card {
    padding: 18px 10px;
    border-radius: 9px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.45rem;
  }
  .subheadline {
    font-size: 16px;
  }
  .footer-contact, .footer-brand, .footer-menu, .footer-social {
    font-size: 14px;
    gap: 7px;
  }
  .footer-social a {
    height: 26px;
    width: 26px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 17px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .feature-item {
    gap: 9px;
  }
}

@media (max-width: 510px) {
  .container {
    padding: 0 3px;
  }
  .section {
    padding: 15px 2px;
  }
  .footer-contact p { font-size: 13px; }
}


/* ===================================================================
   BUTTONS & INTERACTIONS
====================================================================*/
button, .btn-primary, .btn-link, .mobile-nav a, .mobile-menu-close {
  transition: background 0.22s, color 0.20s, box-shadow 0.25s;
}
a {
  transition: color 0.17s, text-decoration 0.13s;
}

/* ===================================================================
   UTILITY CLASSES
====================================================================*/
.hide {
  display: none !important;
}


/* ===================================================================
   COOKIE CONSENT BANNER & MODAL
====================================================================*/
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #222;
  color: #fafbfc;
  padding: 24px 18px 18px 18px;
  z-index: 3600;
  box-shadow: 0 -2px 24px rgba(24,26,27,0.14);
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  animation: cookieBannerIn 0.88s cubic-bezier(.51,1.43,.49,1) 0.1s both;
}
@keyframes cookieBannerIn {
  0% {opacity: 0; transform: translateY(70px);}
  100% {opacity:1; transform: none;}
}
.cookie-consent-banner .cookie-buttons {
  display: flex;
  gap: 13px;
}
.cookie-consent-banner button {
  font-size: 1rem;
  border-radius: 24px;
  padding: 8px 23px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  outline: none;
  margin-left: 0;
}
.cookie-consent-banner .accept {
  background: var(--color-success);
  color: #181A1B;
}
.cookie-consent-banner .accept:hover, .cookie-consent-banner .accept:focus {
  background: #489a5e;
  color: #fff;
}
.cookie-consent-banner .reject {
  background: var(--color-gray3);
  color: #181A1B;
}
.cookie-consent-banner .reject:hover, .cookie-consent-banner .reject:focus {
  background: #6c757d;
  color: #fff;
}
.cookie-consent-banner .settings {
  background: #fff;
  color: #181A1B;
  border: 1px solid var(--color-gray4);
}
.cookie-consent-banner .settings:hover, .cookie-consent-banner .settings:focus {
  background: var(--color-action);
  color: #fff;
  border-color: var(--color-action);
}
@media (max-width: 600px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    font-size: 0.97rem;
    padding: 17px 5px 17px 10px;
    border-radius: 9px 9px 0 0;
  }
  .cookie-consent-banner .cookie-buttons {
    gap: 7px;
  }
}

/* ------------- Cookie Preferences Modal ------------- */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(36,39,46,0.83);
  z-index: 3999;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInModal 0.23s cubic-bezier(.63,.17,.41,1) both;
}
@keyframes fadeInModal {
  0% {opacity:0;}
  100%{opacity: 1;}
}
.cookie-modal-content {
  background: #fff;
  border-radius: 24px;
  max-width: 410px;
  width: 97vw;
  padding: 34px 30px 28px 30px;
  box-shadow: 0 10px 36px rgba(24,26,27,.20);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  font-size: 1rem;
}
.cookie-modal-content h2 {
  font-size: 1.4rem;
  margin-bottom: 7px;
}
.cookie-modal-content .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-gray2);
  border-radius: 10px;
  padding: 9px 12px;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--color-success);
  width: 20px;
  height: 20px;
}
.cookie-category .always-on {
  color: var(--color-success);
  font-weight: 700;
  font-size: 0.95em;
}
.cookie-modal-content .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 11px;
  margin-top: 10px;
}
.cookie-modal-content button {
  padding: 7px 18px;
  border-radius: 19px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  outline: none;
}
.cookie-modal-content .modal-close {
  position: absolute;
  top: 13px;
  right: 18px;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 29px;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-content .modal-close:hover, .cookie-modal-content .modal-close:focus {
  color: var(--color-success);
}
@media (max-width: 450px) {
  .cookie-modal-content {
    padding: 17px 5px 15px 8px;
    max-width: 99vw;
    min-width: unset;
  }
  .cookie-modal-content h2 {
    font-size: 1.09rem;
  }
}

/* ===================================================================
   MISCELLANEOUS
====================================================================*/
.map-snippet {
  background: var(--color-gray2);
  border-radius: 10px;
  padding: 12px 18px;
  margin-top: 16px;
  font-size: 0.99rem;
  color: var(--color-gray4);
  font-style: italic;
}

/**** Highlight Links in Text ****/
p a, ul li a, ol li a {
  color: var(--color-action);
  border-bottom: 1.5px solid var(--color-success);
  transition: background 0.14s, border-color 0.14s, color 0.18s;
  padding-bottom: 2px;
}
p a:hover, ul li a:hover, ol li a:hover {
  color: var(--color-primary);
  border-color: var(--color-action);
  background: var(--color-gray2);
}

/**** OL/UL style fixes ****/
ol {
  list-style: decimal inside;
  margin-left: 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
ol > li {
  padding-left: 0;
}

/**** Remove outline styles for mouse users while keeping for keyboard users ****/
:focus:not(:focus-visible) {
  outline: none;
}

/**** Accessibility: Ensure adequate color contrast in testimonials and cards ****/
.testimonial-card,
.idea-card,
.service-card,
.case-study-snippet {
  color: #181A1B;
  background: #fff;
}

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