/* ======================= 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F2F2F2;
  color: #1B3556;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color .2s, background .2s, border-color .2s;
}
img {
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  box-sizing: border-box;
  outline: none;
  background: none;
  border: none;
}

/* ======================= BRAND COLORS & TYPOGRAPHY ======================= */
:root {
  --primary: #1B3556;
  --primary-rgb: 27, 53, 86;
  --secondary: #57B18C;
  --secondary-rgb: 87, 177, 140;
  --accent: #F2F2F2;
  --neutral-100: #FFFFFF;
  --neutral-200: #F2F2F2;
  --neutral-900: #1B3556;
  --danger: #e62739;
  --shadow: 0 6px 26px 0 rgba(27,53,86,0.08), 0 1.5px 9px 0 rgba(27,53,86,0.06);
  --radius: 18px;
  --radius-small: 8px;
}
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 16px;
  background: var(--accent);
  color: var(--primary);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
}
h1 { font-size: 2.7rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; font-weight: 700; }
h3 { font-size: 1.3rem; margin-bottom: 12px; font-weight: 700; }

p, ul, ol {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 18px;
}
strong { font-weight: 700; }

/* ======================= CORE LAYOUT & SPACING ======================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ======================= HEADER & NAVIGATION ======================= */
header {
  background: var(--neutral-100);
  box-shadow: 0 2px 18px 0 rgba(27,53,86,0.05);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
}
header .container {
  padding-top: 14px;
  padding-bottom: 14px;
}
header .content-wrapper {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--primary);
  padding: 8px 10px;
  border-radius: var(--radius-small);
  transition: background 0.16s, color 0.16s;
  position: relative;
}
.main-nav a:not(.cta-btn):hover {
  background: var(--secondary);
  color: var(--neutral-100);
}

/* CTA BUTTON (HEADER & SECTIONS) */
.cta-btn {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 1.07rem;
  letter-spacing: 0.9px;
  background: var(--secondary);
  color: var(--neutral-100) !important;
  padding: 12px 26px;
  border-radius: 25px;
  box-shadow: var(--shadow);
  border: 2px solid var(--secondary);
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
  cursor: pointer;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--primary);
  color: var(--secondary) !important;
  border-color: var(--primary);
  box-shadow: 0 8px 32px 0 rgba(27,53,86,0.12);
}

/* ======================= MOBILE NAVIGATION ======================= */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  color: var(--primary);
  border: none;
  padding: 10px;
  border-radius: var(--radius-small);
  transition: background .18s;
  z-index: 120;
  cursor: pointer;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--secondary);
  color: var(--neutral-100);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary);
  color: var(--neutral-100);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 28px 0 28px;
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(.6,.22,.32,1);
  box-shadow: 0 16px 60px rgba(27,53,86,0.22);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--neutral-100);
  font-size: 2.3rem;
  border: none;
  margin-bottom: 22px;
  cursor: pointer;
  align-self: flex-end;
  transition: color .2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 14px;
  width: 100%;
}
.mobile-nav a {
  color: var(--neutral-100);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  border-radius: var(--radius-small);
  padding: 11px 4px 11px 0;
  letter-spacing: 0.7px;
  transition: background .18s, color .18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

@media (max-width: 1020px) {
  .main-nav {
    gap: 16px;
  }
}
@media (max-width: 840px) {
  .main-nav {
    gap: 8px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
/* ======================= HERO / BASIC SECTION LAYOUT ======================= */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--neutral-100);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px 0 rgba(27,53,86,0.030);
}
section:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  section {
    padding: 24px 8px;
    margin-bottom: 38px;
    border-radius: var(--radius-small);
  }
}

/* ======================= FEATURE/CARD/TEXT STYLES ======================= */
.feature-grid, .team-list, .faq-list, .blog-post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  justify-content: flex-start;
  margin-bottom: 12px;
}
.feature-grid > div, .team-list > div, .faq-list > div, .blog-post-list > div {
  background: var(--accent);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  flex: 1 1 240px;
  min-width: 240px;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .19s, transform .16s;
  border: 2.5px solid transparent;
}
.feature-grid > div:hover, .team-list > div:hover, .faq-list > div:hover, .blog-post-list > div:hover {
  box-shadow: 0 10px 36px rgba(27,53,86,0.10);
  border-color: var(--secondary);
  transform: translateY(-6px) scale(1.03);
}
.feature-grid > div img {
  width: 50px;
  margin-bottom: 17px;
}

/* .card-container & .card (unified) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 -10px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius-small);
  background: var(--accent);
  box-shadow: var(--shadow);
  padding: 28px 20px;
  transition: box-shadow .2s, border-color .2s, transform .16s;
}
.card:hover {
  border-color: var(--secondary);
  box-shadow: 0 12px 40px 0 rgba(27,53,86,.09);
  transform: translateY(-7px) scale(1.04);
}

/* Text-image section flex alignment */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 19px;
    align-items: flex-start;
  }
}

/* ======================= TESTIMONIALS ======================= */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F2F2F2;
  padding: 20px 30px;
  border-radius: var(--radius-small);
  box-shadow: var(--shadow);
  color: var(--primary);
  margin-bottom: 24px;
  border-left: 6px solid var(--secondary);
  min-width: 220px;
  max-width: 750px;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  transition: box-shadow .17s, border-color .18s, transform .13s;
}
.testimonial-card:hover {
  border-color: var(--primary);
  box-shadow: 0 7px 28px 0 rgba(27,53,86,0.13);
  transform: scale(1.028);
}
.testimonial-card p {
  font-size: 1.02rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0;
}
.testimonial-card strong {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--secondary);
  font-weight: 700;
}

/* ======================= FEATURE ITEMS ======================= */
.feature-item, .case-study-preview, .client-logos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.case-study-preview {
  background: var(--accent);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  margin-bottom: 24px;
}
/* Client Logos */
.client-logos {
  flex-direction: row;
  gap: 32px;
  align-items: center;
  margin-top: 18px;
}
.client-logos img {
  height: 40px;
  filter: grayscale(0.6) contrast(1.1);
  opacity: 0.87;
  transition: filter .15s, opacity .16s;
}
.client-logos img:hover {
  filter: grayscale(0) contrast(1.15);
  opacity: 1;
}

/* ======================= FORMS & LISTS ======================= */
ul, ol {
  padding-left: 22px;
  margin-bottom: 16px;
}
ul li, ol li {
  padding-left: 6px;
  margin-bottom: 8px;
  font-size: 1rem;
}
ul li::marker, ol li::marker {
  color: var(--secondary);
}

/* ======================= FOOTER ======================= */
footer {
  background: var(--primary);
  color: var(--neutral-100);
  padding-top: 40px; padding-bottom: 30px;
}
footer .container {
  padding-top: 0;
  padding-bottom: 0;
}
footer .content-wrapper {
  flex-direction: row;
  gap: 60px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 330px;
  font-size: 0.97rem;
}
.footer-brand img {
  width: 170px;
  margin-bottom: 5px;
}
.footer-brand .tagline {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--secondary);
  margin-bottom: 7px;
  font-size: 1rem;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-nav a {
  color: var(--neutral-100);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.09rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.5px;
  border-radius: var(--radius-small);
  padding: 4px 8px;
  transition: background .18s, color .16s;
  width: fit-content;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
footer p, footer address {
  color: var(--neutral-100);
  font-size: 0.98rem;
  margin-bottom: 2px;
}
footer address { font-style: normal; }

@media (max-width: 768px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 24px;
  }
}
@media (max-width: 480px) {
  .footer-brand img { width: 120px; }
  .footer-brand .tagline { font-size: 0.95rem; }
}

/* ======================= BLOG POST LIST ======================= */
.blog-post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-post-list > div {
  border-left: 6px solid var(--secondary);
  margin-bottom: 20px;
}
.blog-post-list a {
  color: var(--secondary);
  font-weight: 700;
  margin-top: 9px;
  display: inline-block;
  font-size: 1.01rem;
  transition: color .18s;
}
.blog-post-list a:hover,
.blog-post-list a:focus {
  color: var(--primary);
  text-decoration: underline;
}

/* ======================= RESPONSIVE ADJUSTMENTS ======================= */
@media (max-width: 1100px) {
  .feature-grid > div, .team-list > div, .faq-list > div, .blog-post-list > div {
    min-width: 180px;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .feature-grid, .team-list, .faq-list, .blog-post-list {
    flex-direction: column;
    gap: 16px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-nav {
    flex-direction: column;
    gap: 5px;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.28rem; }
  .testimonial-card { padding: 14px 9px; font-size: 0.92rem; }
  section { padding: 12px 2px; }
}

/* ======================= COOKIE CONSENT BANNER ======================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--primary);
  color: var(--neutral-100);
  padding: 22px 14px 16px 14px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  z-index: 10002;
  box-shadow: 0 8px 24px 0 rgba(27,53,86,0.11);
  animation: cookie-appear .34s cubic-bezier(.39,1.09,.38,.97);
}
@keyframes cookie-appear {
  0% { opacity: 0; transform: translateY(65px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner-text {
  font-size: 1.01rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  max-width: 600px;
  margin-bottom: 6px;
}
.cookie-banner-btns {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 4px;
}
.cookie-btn {
  display: inline-block;
  min-width: 114px;
  font-size: 1.03rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  background: var(--secondary);
  color: var(--neutral-100);
  border: none;
  border-radius: 24px;
  padding: 10px 18px;
  margin-right: 2px;
  cursor: pointer;
  transition: background .17s, color .17s;
  outline: none;
}
.cookie-btn.secondary {
  background: var(--neutral-100);
  color: var(--primary);
  border: 2px solid var(--secondary);
  font-weight: 700;
}
.cookie-btn.danger {
  background: var(--danger);
  color: var(--neutral-100);
  border-radius: 24px;
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: var(--primary);
  color: var(--secondary);
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 18px 5px 11px 5px;
    align-items: flex-start;
  }
  .cookie-banner-btns {
    gap: 7px;
    flex-direction: column;
    width: 100%;
    margin-top: 7px;
  }
  .cookie-btn { width: 100%; }
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27,53,86,0.28);
  z-index: 10003;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: modal-fadein .18s cubic-bezier(.47,.17,.2,1.12);
}
@keyframes modal-fadein {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: var(--neutral-100);
  border-radius: var(--radius);
  box-shadow: 0 10px 36px 0 rgba(27,53,86,0.18);
  color: var(--primary);
  min-width: 320px;
  max-width: 440px;
  padding: 36px 30px 24px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modal-drop .24s cubic-bezier(.4,1.1,.77,1.11);
}
@keyframes modal-drop {
  0% {transform: translateY(-60px); opacity: 0;}
  100% {transform: translateY(0); opacity: 1;}
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 1.5rem;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex;
  align-items: center; justify-content: center;
  transition: background .14s, color .13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--secondary);
  color: var(--neutral-100);
}
.cookie-modal h3 {
  font-size: 1.12rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-bottom: 10px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.01rem;
  padding: 5px 0;
}
.cookie-modal .cookie-category label {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1.01rem;
}
.cookie-modal .cookie-toggle {
  width: 40px;
  height: 22px;
  background: var(--secondary);
  border-radius: 14px;
  position: relative;
  transition: background .14s;
  border: 0;
  outline: none;
}
.cookie-modal .cookie-toggle[aria-checked="false"] {
  background: #dadada;
}
.cookie-modal .cookie-toggle-handle {
  position: absolute;
  left: 2px; top: 2.5px;
  width: 17px; height: 17px;
  background: var(--neutral-100);
  border-radius: 50%;
  transition: left .14s, background .14s;
}
.cookie-modal .cookie-toggle[aria-checked="true"] .cookie-toggle-handle {
  left: 21px;
  background: var(--secondary);
}
.cookie-modal .cookie-category.essential .cookie-toggle, 
.cookie-modal .cookie-category.essential label {
  opacity: 0.7;
}
.cookie-modal .cookie-category.essential .cookie-toggle {
  pointer-events: none;
}

.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 14px;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 576px) {
  .cookie-modal {
    padding: 18px 8px 12px 8px;
    min-width: 70vw;
    max-width: 96vw;
  }
}

/* ======================= MICROINTERACTIONS & HOVERS ======================= */
a, .cta-btn, .cookie-btn, .feature-grid > div, .testimonial-card, .main-nav a, .footer-nav a, .mobile-nav a {
  transition: background 0.16s, color 0.16s, border 0.13s, box-shadow 0.15s, outline 0.17s, transform 0.13s;
}

/* ======================= UTILITY FLEX CLASSES (FEATURED BY MANDATORY LAYOUT) ======================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ======================= Z-INDEX LAYERS ======================= */
header { z-index: 100; }
.mobile-menu { z-index: 999; }
.cookie-banner { z-index: 10002; }
.cookie-modal-overlay { z-index: 10003; }

/* ======================= ACCESSIBILITY FOCUS ======================= */
a:focus, .cta-btn:focus, .footer-nav a:focus, .main-nav a:focus, .mobile-nav a:focus, .cookie-btn:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  background: var(--neutral-200);
  color: var(--primary);
}

/* ======================= END OF CSS FILE ======================= */
