/* RESET AND NORMALIZE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F2F2F2;
  color: #153451;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: break-word;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #153451;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FABD2F;
  outline: none;
}
strong, b {
  font-weight: bold;
}
ul, ol {
  padding-left: 1.3em;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 0.5em;
}
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 20px 0 rgba(21,52,81,0.07);
}
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

/* TYPOGRAPHY */
h1, .h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  letter-spacing: -1px;
  color: #153451;
  margin-bottom: 16px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: #153451;
  margin-bottom: 14px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.375rem;
  color: #153451;
  margin-bottom: 10px;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: #153451;
}
p,
.content-wrapper > ul, .content-wrapper > ol {
  font-size: 1rem;
  color: #153451;
}

/* BADGE */
.badge {
  display: inline-block;
  background: #FABD2F;
  color: #153451;
  font-family: 'Montserrat', sans-serif;
  border-radius: 12px;
  padding: 5px 17px;
  font-size: 0.98rem;
  font-weight: 700;
  margin-left: 0.5em;
  margin-top: 6px;
}

/* HEADER */
header {
  padding-top: 16px;
  padding-bottom: 16px;
  background: #fff;
  box-shadow: 0 4px 18px 0 rgba(21,52,81,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  position: relative;
}
header nav {
  display: flex;
  gap: 22px;
}
header nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.06rem;
  padding: 8px 2px;
  transition: color 0.18s;
  border-bottom: 2.5px solid transparent;
}
header nav a:hover, header nav a:focus {
  color: #FABD2F;
  border-bottom: 2.5px solid #FABD2F;
}

a.cta-primary {
  background: #FABD2F;
  color: #153451;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  border: none;
  border-radius: 20px;
  padding: 13px 34px;
  text-transform: uppercase;
  box-shadow: 0 3px 14px 0 rgba(250,189,47, 0.08);
  transition: background 0.2s, transform 0.14s, box-shadow 0.2s;
  margin-left: 14px;
  cursor: pointer;
  letter-spacing: 0.5px;
}
a.cta-primary:hover, a.cta-primary:focus {
  background: #f9c847;
  color: #153451;
  transform: scale(1.035);
  box-shadow: 0 4px 18px 0 rgba(250,189,47, 0.19);
}

a.cta-secondary {
  background: transparent;
  color: #153451;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.02rem;
  border: 2px dashed #FABD2F;
  border-radius: 20px;
  padding: 11px 30px;
  margin-top: 18px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  transition: background 0.2s, color 0.2s, border 0.2s;
  cursor: pointer;
}
a.cta-secondary:hover, a.cta-secondary:focus {
  border-style: solid;
  background: #153451;
  color: #FABD2F;
}

/* Hamburger menu */
.mobile-menu-toggle {
  display: none;
  background: #FABD2F;
  color: #153451;
  border: none;
  padding: 10px 15px;
  font-size: 2rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.16s;
  z-index: 201;
  margin-left: auto;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #fccb5f;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #153451;
  color: #fff;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(0.7,0,0.3,1);
  overflow-y: auto;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: #FABD2F;
  border: none;
  font-size: 2.2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  align-self: flex-end;
  margin: 18px 22px 0 0;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 40px;
  gap: 8px;
  align-items: center;
  min-height: 90vh;
}
.mobile-nav a {
  color: #FABD2F;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 17px 0;
  width: 80vw;
  text-align: center;
  border-radius: 12px;
  letter-spacing: 0.5px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFF6DC;
  color: #153451;
}

/* Responsive - Mobile header */
@media (max-width: 991px) {
  header nav,
  a.cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 991px) {
  header .container {
    gap: 8px;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .content-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  .section, section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
}

/* HERO / PRIMARY INTRO */
.content-wrapper > h1:first-child, .content-wrapper > .h1:first-child {
  font-size: 2.3rem;
  background: linear-gradient(90deg, #153451 60%, #FABD2F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 2px 6px 9px rgba(21,52,81,0.07);
}

/* FLEXBOX UTILITY CLASSES */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 3px 13px 0 rgba(21,52,81,0.09);
  transition: transform 0.20s, box-shadow 0.20s;
}
.card:hover, .card:focus-within {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 12px 32px 0 rgba(21,52,81,0.13);
}
.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;
  background: #fffef8;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(21,52,81,0.10);
  min-width: 240px;
  max-width: 440px;
  margin-bottom: 22px;
  border-left: 5px solid #FABD2F;
  transition: box-shadow 0.2s;
}
.testimonial-card p {
  color: #153451;
  font-size: 1.04rem;
  font-style: italic;
}
.testimonial-card strong {
  color: #153451;
  font-weight: 900;
  font-size: 0.97rem;
  letter-spacing: 0.2px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* SECTIONS & ARTISTIC ACCENTS */
section {
  position: relative;
  overflow: visible;
}
section:nth-child(odd) {
  background: #FFF6DC;
}
section:nth-child(even) {
  background: #F2F2F2;
}
section:after {
  content: '';
  position: absolute;
  z-index: 0;
  top: -28px;
  right: -28px;
  width: 85px;
  height: 85px;
  background: rgba(250,189,47,0.23);
  border-radius: 100%;
  pointer-events: none;
}
/* Accent Dots / Abstracts on larger screens */
@media (min-width: 991px) {
  section:before {
    content: '';
    position: absolute;
    left: -40px;
    bottom: -38px;
    width: 80px;
    height: 80px;
    background: rgba(21,52,81,0.09);
    border-radius: 100%;
    pointer-events: none;
    z-index: 0;
  }
}

/* SERVICE LIST & SERVICE GRID */
.service-list, .service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 14px;
  width: 100%;
}
.service-list > div, .service-grid > div {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 22px 0 rgba(21,52,81,0.11);
  flex: 1 1 260px;
  min-width: 260px;
  max-width: 310px;
  padding: 28px 19px 18px 19px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  border-left: 6px solid #FABD2F;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-list > div:hover, .service-grid > div:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 15px 48px 0 rgba(250,189,47,0.13), 0 5px 22px 0 rgba(21,52,81,0.11);
}
.service-list > div h3, .service-grid > div h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.13rem;
  color: #153451;
  font-weight: 800;
  margin-bottom: 6px;
}
.service-list > div p, .service-grid > div p {
  font-size: 0.99rem;
  color: #153451;
}

/* BLOG LIST */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 20px;
}
.blog-list article {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 19px 0 rgba(21,52,81,0.10);
  flex: 1 1 280px;
  min-width: 240px;
  max-width: 330px;
  padding: 25px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.16s, transform 0.16s;
}
.blog-list article h2 {
  font-size: 1.12rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
}
.blog-list article a {
  color: #FABD2F;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.96rem;
  transition: color 0.16s;
  margin-top: 7px;
}
.blog-list article a:hover, .blog-list article a:focus {
  color: #153451;
}
.blog-list article:hover {
  transform: translateY(-4px) scale(1.016);
  box-shadow: 0 14px 29px 0 rgba(21,52,81,0.18);
}

.blog-categories {
  margin-top: 18px;
  margin-bottom: 9px;
}
.blog-categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
}
.blog-categories li {
  display: inline-block;
  background: #FABD2F;
  color: #153451;
  border-radius: 12px;
  padding: 4px 18px;
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  margin-bottom: 7px;
  font-size: 0.96rem;
}

/* TESTIMONIAL SLIDER */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
}

@media (max-width: 991px) {
  .service-list, .service-grid, .testimonial-slider, .blog-list {
    gap: 16px;
  }
  .service-list > div, .service-grid > div {
    min-width: 100%;
    max-width: 100%;
  }
  .blog-list article {
    min-width: 100%;
    max-width: 100%;
  }
  .testimonial-card {
    min-width: 100%;
    max-width: 100%;
  }
}

/* Footer */
footer {
  background: #153451;
  color: #fff;
  padding: 48px 0 0 0;
  margin-top: 38px;
  font-size: 1rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 32px;
}
.footer-grid nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-grid nav a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.18s;
}
.footer-grid a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.18s;
}
.footer-grid nav a:hover, .footer-grid nav a:focus {
  color: #FABD2F;
}
.footer-grid strong {
  display: block;
  color: #FABD2F;
  font-size: 1.08rem;
  margin-bottom: 6px;
}
.footer-grid > div {
  min-width: 210px;
  max-width: 340px;
  font-size: 0.97rem;
}
.footer-grid img {
  height: 54px;
  margin-top: 15px;
}
.footer-bottom {
  background: #0B2238;
  color: #FFF6DC;
  font-size: 0.99rem;
  text-align: center;
  padding: 15px 0 11px 0;
  margin-top: 0;
  letter-spacing: 0.1px;
}

@media (max-width: 991px) {
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-grid > div, .footer-grid nav {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  footer {
    padding: 28px 0 0 0;
  }
}

/* Contact Details and Reveal Map Styles */
.contact-details, .location-map {
  margin-bottom: 22px;
  padding: 15px;
  background: #FFF6DC;
  border-radius: 12px;
  font-size: 1rem;
  box-shadow: 0 2px 8px 0 rgba(21,52,81,0.07);
}
.contact-details ul li, .location-map p, .case-study-briefs p {
  font-size: 1rem;
}
.location-map h2 {
  margin-bottom: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.08rem;
}

/* Expert Profiles and Case Studies */
.expert-profiles, .case-study-briefs {
  margin-bottom: 16px;
  padding: 13px 17px;
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 2px 6px 0 rgba(21,52,81,0.06);
}
.expert-profiles h2 {
  margin-bottom: 4px;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2001;
  background: #153451;
  color: #fff;
  box-shadow: 0 -2px 20px 0 rgba(21,52,81,0.10);
  /* Artistic shape accent */
  border-top-left-radius: 35px 40px;
  border-top-right-radius: 17px 65px;
  padding: 19px 17px 17px 17px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  justify-content: space-between;
  font-size: 1rem;
  animation: banner-in 0.6s 0.2s backwards;
}
@keyframes banner-in {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  flex: 1 1 220px;
  color: #fff;
  margin-right: 9px;
}
.cookie-banner .cookie-btn {
  background: #FABD2F;
  color: #153451;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  border: none;
  border-radius: 15px;
  padding: 9px 22px;
  font-size: 1rem;
  margin-right: 6px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #fccb5f;
  transform: translateY(-1.5px) scale(1.035);
}
.cookie-banner .cookie-link {
  font-family: 'Montserrat', sans-serif;
  background: none;
  color: #FABD2F;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0 2px;
  margin-left: 5px;
}
.cookie-banner .cookie-link:hover, .cookie-banner .cookie-link:focus {
  color: #fff;
}
@media (max-width: 680px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 7px 13px 7px;
    gap: 13px;
    font-size: 0.99rem;
  }
  .cookie-banner .cookie-btn {
    margin-bottom: 3px;
  }
}

/* COOKIE MODAL OVERLAY */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3001;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(21,52,81,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.cookie-modal-overlay.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal {
  background: #FFF6DC;
  color: #153451;
  border-radius: 24px;
  box-shadow: 0 7px 45px 0 rgba(21,52,81,0.15);
  max-width: 410px;
  width: 98vw;
  max-height: 90vh;
  padding: 34px 24px 24px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modal-in 0.32s cubic-bezier(0.77, 0, 0.305, 1) backwards;
}
@keyframes modal-in {
  0% { opacity: 0; transform: translateY(60px) scale(0.91); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #153451;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.01rem;
  margin-bottom: 12px;
}
.cookie-modal .cookie-toggle {
  width: 36px;
  height: 20px;
  border-radius: 17px;
  background: #ccc;
  position: relative;
  transition: background 0.22s;
  cursor: pointer;
  appearance: none;
}
.cookie-modal .cookie-toggle:checked {
  background: #FABD2F;
}
.cookie-modal .cookie-toggle::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 100%;
  background: #153451;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  transition: background 0.22s, transform 0.3s;
}
.cookie-modal .cookie-toggle::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 100%;
  background: #153451;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.cookie-modal .cookie-btn {
  background: #FABD2F;
  color: #153451;
  border: none;
  font-weight: 900;
  font-family: 'Montserrat', sans-serif;
  padding: 10px 22px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.14s, color 0.16s;
}
.cookie-modal .cookie-btn:hover, .cookie-modal .cookie-btn:focus {
  background: #FFD770;
  color: #153451;
}
.cookie-modal .cookie-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #153451;
  font-size: 1.79rem;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  line-height: 1;
  transition: color 0.19s;
}
.cookie-modal .cookie-close:hover, .cookie-modal .cookie-close:focus {
  color: #FABD2F;
}

/* Accessibility improvements */
:focus-visible {
  outline: 2.5px dashed #FABD2F;
  outline-offset: 3px;
}

/* LIST ICONS (service features etc.) */
ul li img {
  vertical-align: middle;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  margin-bottom: -5px;
}

/* Artistic highlight for main nav and sections */
header nav a, .footer-grid nav a {
  color: #FABD2F;
  position: relative;
}

header nav a:before, .footer-grid nav a:before {
  content: '';
  display: block;
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: #FABD2F;
  transition: width 0.19s cubic-bezier(0.7,0.1,0.3,1);
}
header nav a:hover:before, .footer-grid nav a:hover:before {
  width: 100%;
}

/* Newsletter section accent */
.content-wrapper em {
  background: #fff6dc8a;
  padding: 2px 7px;
  border-radius: 7px;
  color: #153451;
  font-size: 0.97rem;
}

/* RESPONSIVE FLEX CHANGES */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
  }
  .footer-grid {
    gap: 13px;
  }
  .card-container, .content-grid, .testimonial-slider, .service-list, .service-grid {
    flex-direction: column;
    gap: 13px;
  }
}

/* Micro-interactions */
.service-list > div, .service-grid > div, .card, .testimonial-card, .blog-list article {
  transition: box-shadow 0.17s, transform 0.17s;
}
.service-list > div:active, .service-grid > div:active, .card:active, .testimonial-card:active, .blog-list article:active {
  transform: scale(0.997) translateY(2px);
  box-shadow: 0 2px 6px 0 rgba(21,52,81,0.08);
}

/* Preventing layout overlaps */
.card, .card-container > * {
  margin-bottom: 20px;
}
.card-container {
  gap: 24px;
}
.service-list, .service-grid, .testimonial-slider, .blog-list {
  gap: 20px;
}
.content-grid {
  gap: 20px;
}
.testimonial-card {
  margin-bottom: 20px;
}

/* Ensure no content card overlap */
.card, .card-container > *, .service-list > div, .service-grid > div, .testimonial-card, .blog-list article {
  min-width: 0;
}

/* Artistic font accent */
h1, h2, h3, h4, .cta-primary, .cta-secondary, .badge {
  letter-spacing: 0.04em;
  text-rendering: optimizeLegibility;
}
h1, h2 {
  text-shadow: 0px 2px 9px rgba(250,189,47,0.07);
}

@media (max-width: 600px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.24rem; }
  .badge { font-size: 0.92rem; }
}

/* Remove gap on last sections for better mobile stacking */
section:last-of-type {
  margin-bottom: 0;
}

/* Miscellaneous for artistic feel */
section {
  border: none;
}

/* Hide art bg shapes on xs screens */
@media (max-width: 480px) {
  section:after, section:before {
    display: none;
  }
}
