/* ========================== */
/* RESET, NORMALIZE & BASE    */
/* ========================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  background: #fff;
  color: #1D3557;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border-radius: 0;
  outline: none;
  border: none;
}
button {
  cursor: pointer;
  background: none;
}
a {
  color: inherit;
  background: none;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}
ul, ol {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  line-height: 1.2;
  color: #1D3557;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  line-height: 1.3;
}
p {
  font-size: 1rem;
  color: #34495e;
  margin-bottom: 16px;
  font-weight: 400;
}
strong {
  font-weight: 700;
}
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================== */
/* SPACING PATTERNS          */
/* ========================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  box-shadow: 0 2px 12px rgba(34, 52, 80, 0.05);
  border-radius: 12px;
  padding: 32px 24px;
  flex: 1 1 320px;
  transition: box-shadow 0.22s cubic-bezier(.2,.7,.5,.9), transform 0.22s cubic-bezier(.16,.81,.32,1);
}
.card:hover {
  box-shadow: 0 6px 32px rgba(60,60,80,0.14);
  transform: translateY(-4px) scale(1.012);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #F1FAEE;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(40, 50, 80, 0.09);
  transition: box-shadow 0.18s;
  min-width: 0;
  max-width: 480px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(60,80,120,0.16);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ========================== */
/* HEADER & NAV               */
/* ========================== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(34, 52, 80, 0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px;
}
.logo img {
  height: 40px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}
.main-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: #1D3557;
  padding: 7px 13px;
  border-radius: 6px;
  transition: background 0.17s, color 0.17s;
}
.main-nav a:not(.button-primary):hover, .main-nav a:focus {
  background: #F1FAEE;
  color: #457B9D;
}
.button-primary {
  background: #1D3557;
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 24px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  margin-left: 8px;
  box-shadow: 0 2px 7px rgba(29,53,87,0.08);
  border: none;
  transition: background 0.18s, transform 0.13s;
}
.button-primary:hover, .button-primary:focus {
  background: #457B9D;
  color: #fff;
  transform: scale(1.03);
}
.button-secondary {
  background: #F1FAEE;
  color: #1D3557 !important;
  padding: 8px 20px;
  border-radius: 22px;
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid #1D3557;
  transition: background 0.18s, color 0.18s, border 0.18s, transform 0.13s;
}
.button-secondary:hover, .button-secondary:focus {
  background: #457B9D;
  color: #fff;
  border-color: #457B9D;
  transform: scale(1.02);
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: #F1FAEE;
  color: #1D3557;
  padding: 10px 12px;
  font-size: 1.6rem;
  border-radius: 8px;
  border: 1px solid #EDF6F9;
  z-index: 110;
  transition: background 0.12s, box-shadow 0.11s;
}
.mobile-menu-toggle:active {
  background: #e2ece7;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 6px 30px rgba(34,52,87,0.10);
  z-index: 1400;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 32px;
  padding-left: 0;
  transform: translateX(-100vw);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(.82,.05,.26,.93), opacity 0.19s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  margin-right: 26px;
  margin-bottom: 22px;
  background: #F1FAEE;
  color: #1D3557;
  border-radius: 8px;
  padding: 8px 15px;
  z-index: 3;
  transition: background 0.14s;
}
.mobile-menu-close:active {
  background: #e2ece7;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100vw;
  padding-left: 40px;
}
.mobile-nav a {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1D3557;
  letter-spacing: 0.002em;
  padding: 10px 0;
  border-radius: 7px;
  transition: color 0.17s, background 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F1FAEE;
  color: #457B9D;
}

/* ========================== */
/* HERO, MAIN SECTIONS       */
/* ========================== */
main {
  width: 100%;
  background: #fff;
}
.section, main section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}
.hero, main > section:first-child {
  padding-top: 48px;
  padding-bottom: 48px;
}
.subheadline {
  font-size: 1.2rem;
  line-height: 1.5;
  color: #457B9D;
  margin-bottom: 18px;
  font-weight: 500;
}
.feature-grid, .service-benefits-grid, .case-grid, .post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.feature {
  background: #fff;
  box-shadow: 0 2px 12px rgba(44,68,101,0.08);
  border-radius: 14px;
  padding: 32px 18px 28px 18px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 240px;
  min-height: 220px;
  max-width: 352px;
  gap: 10px;
  transition: box-shadow 0.17s, transform 0.18s;
}
.feature img {
  width: 40px; height: 40px;
  margin-bottom: 8px;
}
.feature:hover {
  box-shadow: 0 8px 32px rgba(40,70,120,0.13);
  transform: translateY(-3px) scale(1.015);
}

/* Cards, Blog Posts, Case Studies */
.card, .blog-post, .case-study {
  box-shadow: 0 2px 8px rgba(90,90,120,0.08);
  border-radius: 13px;
  padding: 28px 18px;
  background: #fff;
  margin-bottom: 20px;
  transition: box-shadow 0.15s;
}
.card:hover, .blog-post:hover, .case-study:hover {
  box-shadow: 0 8px 28px rgba(70,70,120,0.12);
}
.blog-post h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.read-post {
  color: #457B9D;
  font-weight: 600;
  margin-top: 8px;
  text-decoration: underline;
  transition: color 0.16s;
}
.read-post:hover {
  color: #1D3557;
}

/* Testimonial styles */
.testimonial-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.testimonial-slider .testimonial-card {
  min-width: 320px;
  scroll-snap-align: start;
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.testimonial-card p {
  font-size: 1.07rem;
  color: #1D3557;
  margin-bottom: 10px;
}
.author, .client-name {
  font-size: 0.94rem;
  font-weight: 500;
  color: #457B9D;
  margin-top: 6px;
}

/* About/Contact details & social */
.contact-details, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 9px;
  font-size: 1rem;
}
.social-links {
  display: flex;
  gap: 18px;
  margin-top: 10px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: #F1FAEE;
  border-radius: 50%;
  transition: background 0.16s;
}
.social-links a:hover {
  background: #457B9D;
}
.social-links img {
  width: 22px; height: 22px;
  filter: grayscale(20%);
}

/* Map Embed */
.map-embed {
  margin: 26px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-embed img {
  width: 100%;
  max-width: 420px;
}

/* Portfolio Logos, Tags, Highlights */
.logo-list {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 25px 0 10px 0;
}
.logo-list img {
  height: 42px;
}
.industry-tags, .categories-filter {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.tag {
  background: #F1FAEE;
  color: #1D3557;
  padding: 6px 16px;
  border-radius: 14px;
  font-size: 0.96rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.results-highlight {
  color: #457B9D;
  background: #F1FAEE;
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
}

/* ========================== */
/* FORMS: Blog Search        */
/* ========================== */
.blog-search {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 18px 0 22px 0;
}
.blog-search input {
  flex: 1 1 0;
  padding: 9px 14px;
  border: 1px solid #CED6DB;
  border-radius: 8px 0 0 8px;
  font-size: 1rem;
  color: #1D3557;
  background: #fff;
  transition: border 0.16s;
}
.blog-search input:focus {
  border-color: #457B9D;
}
.blog-search button {
  background: #457B9D;
  border-radius: 0 8px 8px 0;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: background 0.17s;
}
.blog-search button:hover {
  background: #1D3557;
}
.blog-search button img {
  width: 20px;
  filter: invert(99%) sepia(9%) saturate(22%) hue-rotate(186deg);
}

/* ========================== */
/* FAQ Preview               */
/* ========================== */
.faq-preview {
  margin-top: 32px;
  padding: 28px 20px;
  background: #F1FAEE;
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-preview h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

/* ========================== */
/* FOOTER                    */
/* ========================== */
footer {
  width: 100%;
  background: #fff;
  border-top: 1.5px solid #dee2e6;
  margin-top: 40px;
  padding-bottom: 0;
  box-shadow: 0 -2px 10px rgba(34,52,87, 0.042);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 35px 20px 20px 20px;
}
.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.98rem;
  color: #457B9D;
  font-weight: 500;
  opacity: 0.88;
  padding: 4px 9px;
  border-radius: 6px;
  transition: background 0.14s, color 0.11s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #F1FAEE;
  color: #1D3557;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1rem;
  color: #34495e;
  margin-bottom: 0;
}
.footer-copy {
  font-size: 0.92rem;
  color: #97a5b7;
  opacity: 0.87;
  margin-top: 6px;
}

/* ========================== */
/* COOKIE CONSENT BANNER      */
/* ========================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 2000;
  width: 100%;
  background: #F1FAEE;
  color: #1D3557;
  box-shadow: 0 -1px 16px rgba(26,45,70,0.10);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  transition: transform 0.26s cubic-bezier(.59,.04,.37,1), opacity 0.17s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(105%);
}
.cookie-banner p {
  font-size: 1rem;
  margin-bottom: 0;
}
.cookie-buttons {
  display: flex;
  gap: 12px;
}
.cookie-buttons .button-primary, .cookie-buttons .button-secondary {
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 18px;
  min-width: 110px;
  min-height: 41px;
}
.cookie-settings {
  background: #fff;
  color: #1D3557;
  border: 1px solid #457B9D;
  padding: 7px 14px;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #457B9D;
  color: #fff;
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(29, 53, 87, 0.19);
  z-index: 2100;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.cookie-modal-overlay.open {
  display: flex;
  animation: fadeInCookieModal 0.25s cubic-bezier(.77,.03,.67,.99);
}
@keyframes fadeInCookieModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(29,53,87, 0.13);
  width: 95%;
  max-width: 470px;
  padding: 38px 30px 32px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookieModalAppear 0.31s cubic-bezier(.81,.13,.66,.92);
}
@keyframes cookieModalAppear {
  from { transform: translateY(40px) scale(0.96); opacity: 0.5; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 1.7rem;
  color: #1D3557;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex;
  align-items: center; justify-content: center;
  transition: background 0.13s;
}
.cookie-modal-close:hover {
  background: #F1FAEE;
}
.cookie-modal h3 {
  font-size: 1.23rem;
  color: #1D3557;
  margin-bottom: 0;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 14px 0 10px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F1FAEE;
  padding: 10px 14px;
  border-radius: 11px;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  transform: scale(1.2);
  accent-color: #457B9D;
  margin-left: 14px;
}
.cookie-essential-label {
  font-weight: 500;
  color: #1D3557;
}
.cookie-essential-disabled {
  opacity: 0.66;
  pointer-events: none;
}
.cookie-save-btn {
  background: #1D3557;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 22px;
  border-radius: 20px;
  border: none;
  align-self: flex-end;
  margin-top: 7px;
  transition: background 0.19s;
}
.cookie-save-btn:hover {
  background: #457B9D;
}

/* ======================= */
/* RESPONSIVE QUERIES     */
/* ======================= */
@media (max-width: 992px) {
  .feature-grid, .service-benefits-grid, .case-grid, .post-grid, .content-grid, .testimonial-list  {
    gap: 16px;
  }
  .container {
    padding: 0 10px;
  }
}
@media (max-width: 820px) {
  .feature-grid, .service-benefits-grid, .case-grid, .post-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .logo-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .testimonial-slider {
    gap: 13px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  header .container {
    padding: 16px 10px 16px 10px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-wrapper, .contact-details, .faq-preview {
    gap: 13px;
  }
  .testimonial-slider, .testimonial-list {
    flex-direction: column;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 15px;
  }
  .section, main section, .hero {
    padding: 24px 0 28px 0;
    margin-bottom: 34px;
  }
  h1 { font-size: 2.07rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.09rem; }
  .blog-search input, .blog-search button {
    font-size: 1rem;
    padding: 8px 12px;
  }
  .map-embed img {
    max-width: 100%;
  }
}
@media (max-width: 520px) {
  .footer-contact p {
    font-size: 0.99rem;
  }
  .tag {
    font-size: 0.93rem;
    padding: 5px 12px;
  }
  .testimonial-card, .card {
    padding: 17px 8px;
  }
  .cookie-modal {
    padding: 18px 8px 22px 8px;
  }
}

/* Utility for wide desktop hero */
@media (min-width: 1290px) {
  .container { max-width: 1200px; }
}

/* ======================= */
/* MICRO-INTERACTIONS     */
/* ======================= */
.button-primary, .button-secondary, .cookie-save-btn {
  transition: background 0.17s, color 0.18s, box-shadow 0.16s, transform 0.12s;
}
button:active, .button-primary:active, .button-secondary:active {
  transform: scale(0.98);
}
.card, .testimonial-card, .feature {
  transition: box-shadow 0.16s, transform 0.17s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 10px 30px rgba(20,40,72,0.14);
  transform: translateY(-3px) scale(1.011);
}

/* ======================= */
/* CUSTOM SELECTION       */
/* ======================= */
::selection {
  background: #457B9D;
  color: #fff;
}

/* ======================= */
/* MISC                   */
/* ======================= */
::-webkit-input-placeholder { color: #b0b8c1; }
::-moz-placeholder { color: #b0b8c1; }
:-ms-input-placeholder { color: #b0b8c1; }
::placeholder { color: #b0b8c1; }

/* Hide cookie modal scrollbars */
.cookie-modal { overflow-y: auto; }
.cookie-category input[type="checkbox"] { margin-left: 12px; }

/* Accessibility */
a:focus {
  outline: 2px solid #457B9D;
  outline-offset: 2px;
}

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