/* === 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, main, 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;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F6F3EF;
  color: #18253B;
  min-height: 100vh;
  font-size: 16px;
}
main {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
}
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button, input, select, textarea {
  font-family: inherit;
}
ul, ol {
  list-style: none;
}

/* === BRAND COLORS & TYPOGRAPHY === */
:root {
  --primary: #143977;
  --primary-dark: #102852;
  --secondary: #64A8A0;
  --secondary-dark: #3c6e66;
  --accent: #F6F3EF;
  --display-font: 'Montserrat', Arial, sans-serif;
  --body-font: 'Roboto', Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display-font);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

p, ul, ol, li, a, input, button, textarea, label {
  font-family: var(--body-font);
  font-size: 1rem;
  color: #232323;
}
p {
  margin-bottom: 16px;
  max-width: 780px;
  letter-spacing: 0.01em;
}
strong {
  font-weight: 600;
  color: var(--primary);
}

/* === GENERAL CONTAINER/SPACING === */
.container {
  width: 100%;
  max-width: 1200px;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: auto;
  margin-right: auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(28,46,85,0.06);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* == HEADER / NAVIGATION == */
header {
  background: linear-gradient(90deg, #143977 82%, #64A8A0 100%);
  box-shadow: 0 2px 16px 0 rgba(20,57,119,0.05);
  position: sticky;
  top: 0;
  z-index: 101;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: var(--body-font);
  font-weight: 500;
  color: #fff;
  padding: 8px 6px;
  border-radius: 4px;
  transition: background .2s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: rgba(255,255,255,.12);
}
.main-nav .btn-primary {
  margin-left: 10px;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  border-radius: 5px;
  padding: 5px 12px;
  margin-left: 12px;
  transition: background .2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #64A8A0;
  color: #fff;
}

/* == MOBILE MENU == */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,57,119,0.97);
  transform: translateX(100%);
  transition: transform .36s cubic-bezier(.65,.15,.4,1), opacity .18s;
  opacity: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  margin: 22px 18px 10px auto;
  padding: 2px 10px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  margin: 40px 32px;
  font-size: 1.26rem;
}
.mobile-nav a {
  color: #fff;
  font-weight: 500;
  padding: 8px 2px;
  border-radius: 4px;
  transition: background .17s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #64A8A0;
  color: #fff;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 8px;
  }
  header .container {
    gap: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  section.section, .section {
    padding: 30px 8px;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(90deg, #143977 75%, #64A8A0 120%);
  color: #fff;
  padding: 56px 0 40px 0;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 6px 32px 0 rgba(20,57,119,0.08);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hero h1, .hero h2, .hero p {
  color: #fff;
  text-align: center;
}
.hero .btn-primary {
  margin-top: 8px;
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--display-font);
  font-size: 1.08rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(95deg, var(--secondary), var(--primary) 80%);
  border: none;
  border-radius: 32px;
  outline: none;
  box-shadow: 0 2px 8px 0 rgba(20,57,119,0.14);
  cursor: pointer;
  transition: background .24s, box-shadow .23s, transform .15s;
  margin-bottom: 0;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(92deg, var(--primary-dark), var(--secondary-dark) 110%);
  box-shadow: 0 6px 18px 0 rgba(100,168,160,0.23);
  transform: translateY(-2px) scale(1.045);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 24px;
  background: #fff;
  color: var(--primary);
  font-family: var(--body-font);
  font-weight: 500;
  border: 1.5px solid var(--secondary);
  transition: background .18s, color .18s, border-color .2s;
  cursor: pointer;
  margin-bottom: 0;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--accent);
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* === FLEX LAYOUTS (MANDATORY PATTERN) === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(28,46,85,0.07);
  padding: 24px 22px 18px 22px;
  min-width: 260px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.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;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px 0 rgba(20,57,119,0.07);
  border-left: 5px solid var(--secondary);
  color: #18253B;
}
.testimonial-card p {
  color: #222;
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-card strong {
  color: var(--primary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* == FEATURES & CARDS == */
.features {
  background: linear-gradient(90deg, #EFF6FA 75%, #E1F4F1 100%);
  border-radius: 28px;
  margin-bottom: 60px;
}
.feature-grid, .industry-grid, .service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 24px;
  justify-content: flex-start;
}
.feature-grid > div, .industry-grid > div, .service-grid > div {
  flex: 1 1 260px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(20,57,119,0.05);
  padding: 22px 18px;
  min-width: 220px;
  transition: box-shadow .18s, transform .13s;
}
.feature-grid > div:hover, .industry-grid > div:hover, .service-grid > div:hover {
  box-shadow: 0 8px 22px 0 rgba(100,168,160,0.12);
  transform: scale(1.04);
}
.feature-grid img, .industry-grid img, .service-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
}

/* SECTIONS/ELEMENTS: SPACING & BACKGROUND */
.section, .about, .services, .industries, .newsletter, .process, .focus-industries, .industry-cases, .contact-details, .legal, .thank-you {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.cases, .cases strong, .about div strong {
  color: var(--secondary);
  font-weight: 700;
}

/* === USP LIST === */
.usp-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 16px;
  padding-left: 18px;
  list-style: disc inside;
}
.usp-list li {
  font-size: 1rem;
  color: #212e49;
}

/* === FOOTER === */
footer {
  background: linear-gradient(90deg, #143977 87%, #64A8A0 100%);
  color: #fff;
  padding: 32px 0 14px 0;
  margin-top: 48px;
}
footer .container {
  display: flex;
  flex-direction: column;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-grid > div, .footer-menu {
  flex: 1 1 150px;
  min-width: 120px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-menu a {
  color: #fff;
  font-size: .97rem;
  padding: 4px 0;
  opacity: 0.95;
  border-radius: 2.5px;
  transition: background .14s, color .14s;
}
.footer-menu a:hover {
  background: #18253B;
  color: #fff;
  opacity: 1;
}
.footer-info {
  font-size: 0.95rem;
  color: #c3d6ee;
  margin-top: 18px;
  letter-spacing: .01em;
}

/* === BLOG/ARTICLES, FILTERS === */
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}
.filters button {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #64A8A0;
  color: var(--primary);
  padding: 7px 17px;
  font-size: 1rem;
  font-family: var(--body-font);
  margin-right: 7px;
  transition: background .2s, color .2s;
  cursor: pointer;
}
.filters button:hover, .filters button.active {
  background: var(--primary);
  color: #fff;
  border-color: #143977;
}

/* === CONTACT INFO LISTS === */
.contact-info ul,
.contact-details ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-info li, .contact-details li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.04rem;
  color: #1c324d;
}
.contact-info img, .contact-details img {
  width: 24px;
  height: 24px;
  margin-right: 3px;
}
.contact-details a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}
.contact-details a:hover {
  color: var(--secondary);
}

/* ===== MODALS, COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #143977;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  z-index: 9000;
  padding: 18px 26px 18px 18px;
  box-shadow: 0 -4px 32px 0 rgba(20,57,119,0.18);
  font-size: 1rem;
  transition: transform .3s;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 2 1 320px;
}
.cookie-banner-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}
.cookie-banner .btn-primary, .cookie-banner .btn-secondary {
  font-size: 0.98rem;
  line-height: 1.1;
  padding: 8px 17px;
}

/* Cookie modal popup */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(24,37,59,0.56);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity .2s;
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: #fff;
  padding: 34px 36px 30px 36px;
  border-radius: 18px;
  min-width: 320px;
  max-width: 94vw;
  box-shadow: 0 2px 24px 0 rgba(20,57,119,0.13);
  color: #18253B;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
}
.cookie-modal-content h2 {
  color: var(--primary);
  font-size: 1.27rem;
}
.cookie-modal-content .btn-secondary {
  margin-top: 15px;
}
.cookie-modal-content label {
  font-size: 1rem;
  cursor: pointer;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}
.cookie-category input[type='checkbox'] {
  width: 20px; height: 20px;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 15px;
  font-size: 1.45rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
}

/* === ORDERED & UNORDERED LISTS IN LEGAL === */
.legal ul, .legal ol {
  margin-left: 20px;
  margin-bottom: 18px;
  list-style-type: disc;
  color: #383838;
  font-size: 1.04rem;
}
.legal ul li, .legal ol li {
  margin-bottom: 9px;
}

/* === MEDIA QUERIES: RESPONSIVE LAYOUTS === */
@media (max-width: 1024px) {
  .card-container,.content-grid, .feature-grid, .industry-grid, .service-grid, .footer-grid {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  .footer-grid {
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.42rem;
  }
  h2 {
    font-size: 1.15rem;
    margin-bottom: 12px;
  }
  h3 {
    font-size: 1.03rem;
  }
  .feature-grid, .industry-grid, .service-grid {
    flex-direction: column;
    gap: 20px;
  }
  .section, .about, .services, .industries, .newsletter, .process, .focus-industries, .industry-cases, .contact-details, .legal, .thank-you {
    margin-bottom: 38px;
    padding: 22px 6px;
  }
  .content-wrapper {
    gap: 12px;
  }
  .footer-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 520px) {
  .hero {
    padding: 30px 0 14px 0;
    border-radius: 0 0 17px 17px;
  }
  .footer-grid {
    gap: 8px;
  }
  .cookie-banner {
    flex-direction: column;
    padding: 16px 10px 12px 10px;
    gap: 7px;
  }
  .cookie-banner-content {
    gap: 4px;
  }
  .cookie-banner-btns {
    justify-content: flex-start;
    gap: 7px;
  }
  .cookie-modal-content {
    padding: 20px 6vw;
    min-width: 0;
  }
}

/* === ANIMATIONS & MICROINTERACTIONS === */
@media (hover: hover) and (pointer: fine) {
  a, .btn-primary, .btn-secondary, .footer-menu a, .main-nav a, .mobile-nav a {
    transition: color .17s, background .18s, box-shadow .19s, transform .14s;
  }
  .card, .feature-grid > div, .service-grid > div {
    transition: box-shadow .17s, transform .13s;
  }
}

/* === UTILITIES === */
.hidden { display: none !important; }

/* === PAGE-SPECIFIC === */
.newsletter {
  background: linear-gradient(98deg, #E6F0F5 65%, #ECF8F5 100%);
  text-align: center;
  border-radius: 23px;
  box-shadow: 0 2px 10px 0 rgba(28,46,85,0.12);
}
.newsletter .btn-primary { margin-top: 12px; }

.thank-you {
  text-align: center;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 16px 0 rgba(20,57,119,0.07);
  min-height: 200px;
}

/* == CASES HIGHLIGHTS == */
.cases {
  font-style: italic;
  margin-top: 22px;
  margin-bottom: 12px;
  padding-left: 15px;
  border-left: 4px solid var(--primary);
  background: #F8FAFE;
}

/* == OL Process == */
.process ol {
  margin-left: 22px;
  margin-bottom: 18px;
  list-style: decimal inside;
}
.process ol li {
  margin-bottom: 7px;
}

/* == Misc == */
a[aria-current="page"], .main-nav a.active {
  font-weight: 700;
  background: #64A8A0;
  color: #fff;
}

/* == Smooth transitions for nav/menu == */
@media (max-width: 768px) {
  .mobile-menu {
    touch-action: manipulation;
    will-change: transform;
  }
}

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