/* -------------------------------------------------------------
   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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.4;
  min-height: 100vh;
  background: #fff;
  color: #181b1f;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol {
  margin-left: 2em;
}
a {
  color: #243746;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #75A1A9;
}
img {
  max-width: 100%;
  height: auto;
}
hr {
  border: 0;
  height: 1px;
  background: #eee;
  margin: 32px 0;
}
*:focus {
  outline: 2px solid #243746;
  outline-offset: 2px;
}

/* -------------------------------------------------------------
   Palette
------------------------------------------------------------- */
:root {
  --brand-primary: #181b1f;    /* strong black for text */
  --brand-light: #fff;
  --brand-dark: #243746;      /* logo/dark accent */
  --brand-secondary: #747678; /* subtle medium gray */
  --brand-muted: #ececec;     /* soft gray background */
  --brand-soft-accent: #F2EFEA;
  --brand-accent: #75A1A9;
  --shadow: 0 2px 16px rgba(48,48,48,0.10), 0 1.5px 7px rgba(20,30,35,0.06);
}

/* -------------------------------------------------------------
   Typography
------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  color: var(--brand-primary);
}
h1 { font-size: 2.4rem; line-height: 1.15; margin-top: 0; }
h2 { font-size: 2rem; line-height: 1.18; }
h3 { font-size: 1.45rem; line-height: 1.23; }
h4 { font-size: 1.15rem; }
p, ul, ol, li, span, label, input, textarea {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  color: var(--brand-primary);
}
p { font-size: 1.08rem; margin-bottom: 16px; max-width: 680px; }
strong {
  color: #101217;
  font-weight: 700;
}
small { color: var(--brand-secondary); font-size: 0.97em; }

@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.08rem; }
}

/* Monochrome-Sophisticated Headings */
h1, h2 {
  border-left: 5px solid var(--brand-dark);
  padding-left: 14px;
}

/* -------------------------------------------------------------
   Layout Containers & Sections
------------------------------------------------------------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 600px) {
  .section {
    margin-bottom: 36px;
    padding: 24px 8px;
  }
}

/* Feature & Card Layouts (Monochrome Visuals With Contrast) */
.card-container,
.content-grid,
.feature-grid,
.article-previews,
.project-summary,
.testimonial-slider,
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 20px;
}
.feature-grid > div,
.article-previews > div,
.project-summary > div {
  background: var(--brand-soft-accent);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 28px 22px 20px 22px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  min-width: 230px;
  max-width: 355px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, background 0.2s, transform 0.15s;
}
.feature-grid > div:hover,
.article-previews > div:hover,
.project-summary > div:hover {
  background: #fff;
  box-shadow: 0 4px 18px rgba(50,53,55,0.12),0 2px 12px rgba(48,48,48,0.05);
  transform: translateY(-3px) scale(1.025);
}
.card {
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: 16px;
  margin-bottom: 20px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fafafc;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(24,27,31,0.09);
  padding: 20px 28px 20px 28px;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 410px;
  transition: box-shadow 0.22s, background 0.18s;
}
.testimonial-card p {
  font-style: italic;
  font-size: 1.07rem;
  color: #222327;
  margin-bottom: 8px;
  margin-top: 0;
}
.testimonial-card span {
  font-size: 0.99em;
  color: #383C4A;
}
.testimonial-card strong {
  color: #101217;
}
.testimonial-card:hover {
  background: #fff;
  box-shadow: 0 3px 18px 0 rgba(45,58,65,0.13),0 1.5px 9px rgba(35,39,44,0.08);
}

.client-industries ul {
  list-style: disc inside;
  color: var(--brand-secondary);
  margin: 0;
}
.client-industries li {
  margin-bottom: 6px;
}

.legal-text {
  font-size: 1rem;
  color: #222327;
  max-width: 775px;
  background: #fff;
  border-radius: 14px;
  padding: 26px 24px;
  margin-top: 10px;
  box-shadow: 0 1.5px 7px rgba(55,55,55,0.035);
}
.legal-text h2 {
  font-size: 1.21rem;
  margin: 22px 0 8px 0;
  border: none;
  padding: 0;
}

/* -------------------------------------------------------------
   Text, Image, and Alignment Sections
------------------------------------------------------------- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: flex-start;
  max-width: 740px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}

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

/* -------------------------------------------------------------
   Navigation & Header
------------------------------------------------------------- */
header {
  background: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1010;
  box-shadow: 0 1px 12px rgba(28,33,36,0.07);
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  padding: 20px 0 12px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  background: none;
}
.main-nav img {
  height: 48px;
  margin-right: 24px;
  margin-bottom: -8px;
}
.main-nav a {
  color: #1b1b1d;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--brand-muted);
  color: var(--brand-dark);
}
.cta-btn {
  background: var(--brand-dark);
  color: #fff !important;
  padding: 8px 22px;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: bold;
  margin-left: 12px;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 12px rgba(55,55,55,0.07);
  border: none;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, transform 0.18s;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--brand-accent);
  color: var(--brand-dark) !important;
  transform: translateY(-2px) scale(1.03);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--brand-dark);
  font-size: 2.1rem;
  cursor: pointer;
  margin-left: auto;
  padding: 6px 16px 6px 12px;
  z-index: 1301;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover {
  color: var(--brand-accent);
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  background: rgba(36,55,70,0.96);
  z-index: 1300;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.95,-0.04,.5,1.03);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 28px;
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  align-self: flex-end;
  margin: 20px 0 24px 0;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover {
  color: var(--brand-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 18px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.23rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 13px 0 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  border-radius: 0;
  transition: background 0.13s, color 0.17s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--brand-accent);
  background: rgba(236,236,236,0.05);
}
@media (max-width: 1000px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 1000px) {
  .mobile-menu {
    display: flex;
    padding-top: 8px;
  }
}
@media (min-width: 1001px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* -------------------------------------------------------------
   Footer
------------------------------------------------------------- */
footer {
  background: #243746;
  color: #fff;
  padding: 44px 0 16px 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 4px 8px;
  border-radius: 5px;
  transition: background 0.14s, color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #f2efea;
  color: #243746;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  font-size: 1.01rem;
  color: #fff;
  margin-bottom: 14px;
}
.footer-contact img {
  height: 16px;
  width: 16px;
  vertical-align: middle;
  margin-right: 6px;
}
.footer-trademark {
  text-align: center;
  color: #b3b5b7;
  font-size: 0.97em;
  margin-top: 6px;
}
@media (max-width: 700px) {
  .footer-contact {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
}

/* -------------------------------------------------------------
   Buttons & Forms
------------------------------------------------------------- */
button, .cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  cursor: pointer;
}
button:disabled, .cta-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}
input, textarea, select {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  border-radius: 5px;
  border: 1px solid #d1d1d1;
  padding: 9px 12px;
  font-size: 1rem;
  margin-bottom: 14px;
  transition: border 0.18s, box-shadow 0.180s;
}
input:focus, textarea:focus, select:focus {
  border: 1.8px solid var(--brand-dark);
  box-shadow: 0 1.2px 6px 0 rgba(36,55,70,0.09);
}


/* -------------------------------------------------------------
   Responsive Flex/Card/Content Layouts
------------------------------------------------------------- */
@media (max-width: 1000px) {
  .card-container,
  .content-grid,
  .feature-grid,
  .article-previews,
  .project-summary,
  .testimonial-slider,
  .testimonial-list {
    gap: 16px;
  }
  .feature-grid > div,
  .article-previews > div,
  .project-summary > div {
    min-width: 190px;
  }
}
@media (max-width: 700px) {
  .card-container,
  .content-grid,
  .feature-grid,
  .article-previews,
  .project-summary,
  .testimonial-slider,
  .testimonial-list {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .feature-grid > div,
  .article-previews > div,
  .project-summary > div,
  .testimonial-card {
    max-width: 98vw;
    min-width: 0;
  }
}
@media (max-width: 500px) {
  .feature-grid > div, .article-previews > div, .project-summary > div, .testimonial-card {
    padding: 15px 4vw 13px 4vw;
    font-size: 0.94rem;
  }
}

/* -------------------------------------------------------------
   Misc. Elements
------------------------------------------------------------- */
li {
  margin-bottom: 8px;
}
ol {
  margin-left: 1.75em;
}
.section ul, .section ol {
  margin-top: 8px;
}
blockquote {
  border-left: 3.5px solid #181b1f;
  margin: 22px 0;
  padding: 8px 16px;
  color: #181b1f;
  background: #fafafc;
  border-radius: 6px;
  font-style: italic;
}

/* -------------------------------------------------------------
   Cookie Consent Banner
------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #222;
  color: #fff;
  z-index: 1400;
  box-shadow: 0 -2px 17px 0 rgba(45,58,65,0.12);
  padding: 18px 18px 18px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 1.06rem;
  animation: slideup-cookie-banner .7s cubic-bezier(.77,0,.18,1) 0.13s both;
}
@keyframes slideup-cookie-banner {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__message {
  flex: 1 1 180px;
  min-width: 160px;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  padding: 8px 20px;
  border-radius: 18px;
  font-size: 1rem;
  margin-left: 0;
  margin-right: 4px;
  box-shadow: 0 1px 4px rgba(24,24,24,0.09);
  cursor: pointer;
  transition: background 0.18s, color 0.14s, box-shadow 0.17s;
}
.cookie-btn.accept {
  background: var(--brand-accent);
  color: #243746;
  font-weight: bold;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #4F6E74;
  color: #fff;
}
.cookie-btn.reject {
  background: transparent;
  color: #fff;
  border: 1.2px solid #fff;
  font-weight: 500;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #fff;
  color: #222; 
}
.cookie-btn.settings {
  background: #222;
  color: #F2EFEA;
  border: 1.2px solid #F2EFEA;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #fff;
  color: #222;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 7px 18px 7px;
    font-size: 0.97rem;
  }
  .cookie-banner__actions { gap: 7px; }
}

/* Cookie Consent Modal Dialog */
.cookie-preferences-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(24,28,30,0.87);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1550;
  pointer-events: auto;
  animation: modal-fade-in 0.32s cubic-bezier(.74,.21,.45,1.05);
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-preferences-dialog {
  background: #fff;
  color: #181b1f;
  border-radius: 17px;
  padding: 40px 32px 27px 32px;
  box-shadow: 0 8px 48px rgba(24,24,30,0.16);
  min-width: 320px;
  max-width: 95vw;
  width: 440px;
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.cookie-preferences-dialog h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 7px;
  font-size: 1.17rem;
  color: #181b1f;
}
.cookie-preferences-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  color: #343846;
}
.cookie-category input[type='checkbox'] {
  accent-color: #243746;
  width: 18px; height: 18px;
  margin-right: 5px;
}
.cookie-preferences-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 11px;
}
.cookie-preferences-close {
  position: absolute;
  top: 26px;
  right: 37px;
  background: none;
  border: none;
  font-size: 1.68rem;
  color: #243746;
  cursor: pointer;
  transition: color 0.20s;
  z-index: 2;
}
.cookie-preferences-close:hover {
  color: #75A1A9;
}
@media (max-width: 500px) {
  .cookie-preferences-dialog { padding: 18px 8vw; min-width: 0; width: 98vw; }
  .cookie-preferences-close { top: 13px; right: 11px; }
}

/* -------------------------------------------------------------
   Animations/Microinteractions
------------------------------------------------------------- */
.card, .feature-grid > div, .project-summary > div, .testimonial-card, .article-previews > div {
  transition: box-shadow 0.16s, background 0.17s, transform 0.18s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover, .article-previews > div:hover {
  box-shadow: 0 4px 16px 0 rgba(48,48,63,0.15), 0 2px 8px rgba(30,35,42,0.07);
  transform: translateY(-2px) scale(1.016);
}

.cta-btn, .cookie-btn {
  transition: background 0.14s, color 0.15s, transform 0.13s;
}
.cta-btn:hover, .cta-btn:focus, .cookie-btn:hover, .cookie-btn:focus {
  transform: scale(1.035);
  box-shadow: 0 2.5px 14px rgba(40,60,65,0.13);
}

/* -------------------------------------------------------------
   Accessibility & Miscellaneous
------------------------------------------------------------- */
.sr-only {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

::-webkit-input-placeholder { color: #88909A; }
::-moz-placeholder { color: #88909A; }
:-ms-input-placeholder { color: #88909A; }
::placeholder { color: #88909A; }

/* -------------------------------------------------------------
   Utility: Spacing/Alignment Helpers (where not covered above)
------------------------------------------------------------- */
.mt-32 { margin-top: 32px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mb-16 { margin-bottom: 16px !important; }

/* -------------------------------------------------------------
   Visual Hierarchy (Use Subtle Borders & Shadows, never grid/columns)
------------------------------------------------------------- */
.section:not(:last-child) {
  border-bottom: 2px solid var(--brand-muted);
}
.feature-grid > div:not(:last-child) {
  margin-right: 0;
}

/* -------------------------------------------------------------
   Print styles (minimal, for legal/demo pages)
------------------------------------------------------------- */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display:none !important; }
  body, .container, .content-wrapper, main { background: #fff !important; color: #000!important; }
}

/* -------------------------------------------------------------
   End of Style Sheet
------------------------------------------------------------- */