/* ---------------- 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;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  background: #F8FAFB;
  color: #333A4F;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  position: relative;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #35426a;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #B5B8E4;
  outline-offset: 2px;
}

/* ---------------- BRAND COLORS & SOFT PASTEL PALETTE ---------------- */
:root {
  --color-primary: #1B263B;
  --color-secondary: #778DA9;
  --color-accent: #F8FAFB;
  --color-pastel-blue: #E7ECF5;
  --color-pastel-sand: #FBF7F2;
  --color-pastel-green: #D9F5E6;
  --color-pastel-pink: #F9E7EE;
  --color-pastel-yellow: #FEF8E6;
  --color-heading-dark: #212A3E;
  --color-text: #333A4F;
  --color-button: #C4D7F5;
  --color-button-hover: #B5CCEA;
  --color-btn-primary: #60A8D4;
  --color-btn-secondary: #E5B7CF;
  --color-card-bg: #FFFFFFF7;
  --color-shadow: rgba(60,50,80,0.08);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 2px 16px var(--color-shadow);
  --transition: 0.3s cubic-bezier(.54,0,.22,1);
}

/* ---------------- TYPOGRAPHY ---------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--color-heading-dark);
  margin-bottom: 18px;
}
h1 {
  font-size: 2.5rem;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 1.3rem;
  font-weight: 600;
}
h4 {
  font-size: 1.15rem;
}
p, li, ul, ol, span {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--color-text);
}
p {
  margin-bottom: 16px;
}
ul, ol {
  margin-left: 18px;
  margin-bottom: 20px;
}
ul li, ol li {
  margin-bottom: 10px;
}
strong {
  font-weight: 700;
}
.subheadline {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--color-secondary);
  font-size: 1.25rem;
  margin-bottom: 22px;
  font-weight: 400;
  letter-spacing: 0.03em;
}
.text-section {
  margin-bottom: 30px;
  max-width: 700px;
}
.text-section:last-child {
  margin-bottom: 0;
}

/* ---------------- LAYOUT/CONTAINERS ---------------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
}
.content-wrapper {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
/* Spacing and alignment patterns */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--color-card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  flex: 1 1 280px;
  padding: 28px 22px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 6px 26px 0 rgba(60,50,80,0.15);
  transform: translateY(-4px) scale(1.015);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.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: 22px 28px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  max-width: 580px;
}
.testimonial-card p {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 0;
}
.testimonial-card span {
  color: #68708e;
  font-size: 0.99rem;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 240px;
  max-width: 340px;
  background: var(--color-pastel-sand);
  border-radius: var(--radius);
  box-shadow: 0 1px 6px #dedede55;
  padding: 24px 18px 18px 18px;
  transition: background 0.2s, box-shadow 0.2s;
}
.feature-item img {
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
}
.feature-item h3 {
  color: var(--color-primary);
  margin-bottom: 2px;
}
.feature-item p {
  color: #38405D;
}
.feature-item:hover {
  background: var(--color-pastel-blue);
  box-shadow: 0 4px 16px #b9d7f433;
}
.project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-bottom: 22px;
}
.project-list .text-section {
  flex: 1 1 310px;
  background: var(--color-pastel-green);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 0;
  box-shadow: 0 1px 5px #e1efea33;
  min-width: 240px;
  max-width: 440px;
}
.blog-summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.blog-summary-list .text-section {
  flex: 1 1 255px;
  background: var(--color-pastel-pink);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px #ebcdda16;
  padding: 20px 18px;
  margin-bottom: 0;
  min-width: 180px;
  max-width: 390px;
}
.blog-summary-list .text-section h2 { font-size: 1.22rem; }
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 18px;
  background: var(--color-pastel-yellow);
  padding: 18px 18px 10px 18px;
  border-radius: var(--radius);
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.02rem;
  margin-bottom: 5px;
  color: var(--color-primary);
}
.contact-details img {
  width: 18px;
  margin-right: 6px;
}


/* ---------------- HEADER & NAVIGATION ---------------- */
header {
  width: 100%;
  background: linear-gradient(90deg, #F8FAFB 85%, #E7ECF5 100%);
  box-shadow: 0 2px 9px #bfcbe910;
  position: sticky;
  top: 0;
  z-index: 60;
}
.main-navigation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 14px 0;
  justify-content: flex-start;
}
.main-navigation a {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 7px 13px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  background: transparent;
  position: relative;
}
.main-navigation a:not(.cta-primary):hover,
.main-navigation a:not(.cta-primary):focus {
  background: var(--color-pastel-blue);
  color: var(--color-secondary);
  outline: none;
}
.main-navigation a img {
  width: 38px;
  vertical-align: middle;
  margin-right: 4px;
}
.cta-primary, .cta-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border: none;
  padding: 12px 28px;
  border-radius: 26px;
  font-size: 1.08rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform 0.17s;
  box-shadow: 0 2px 12px #dbe9fa33;
  cursor: pointer;
  letter-spacing: 0.03em;
  outline: none;
  margin: 8px 0;
}
.cta-primary {
  background: var(--color-btn-primary);
  color: #fff;
  text-shadow: 0 1px 7px #18609629;
  box-shadow: 0 2px 16px #abdeef29;
  border: 1px solid #8fc5e9;
}
.cta-primary:hover, .cta-primary:focus {
  background: #3689bc;
  color: #fff;
  box-shadow: 0 3px 18px #3689bc48;
  transform: translateY(-2px) scale(1.01);
}
.cta-secondary {
  background: var(--color-btn-secondary);
  color: var(--color-primary);
  border: 1px solid #e5b7cf;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #f4cee8;
  color: var(--color-secondary);
  transform: translateY(-1.5px) scale(1.008);
}

/* Burger menu button */
.mobile-menu-toggle {
  display: none;
  background: var(--color-btn-primary);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 7px 17px;
  border-radius: 36px;
  cursor: pointer;
  margin-left: auto;
  transition: background var(--transition), color var(--transition);
  box-shadow: 0 2px 10px #7aacdd33;
  z-index: 110;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #2c5b88;
  color: #e9f6fd;
}

/* ------ MOBILE MENU -------- */
.mobile-menu {
  position: fixed;
  background: #fafafb;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.5,.12,.25,1);
  box-shadow: 0 0 20px #1b263b11;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  font-size: 2.1rem;
  color: var(--color-primary);
  padding: 15px 24px;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #ae4c84;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  width: 100%;
  padding: 40px 32px 32px 38px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.11rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 10px 0;
  width: 100%;
  border-radius: var(--radius);
  transition: background 0.17s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-pastel-blue);
  color: var(--color-secondary);
}

/* ---------------- HERO ---------------- */
.hero {
  background: linear-gradient(135deg, var(--color-pastel-blue) 87%, var(--color-pastel-pink) 100%);
  min-height: 340px;
  display: flex;
  align-items: center;
  padding: 54px 0 44px 0;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  max-width: 670px;
}

/* ---------------- PROCESS/TIMELINE ---------------- */
.process ol,
section ol {
  list-style-type: decimal-leading-zero;
  padding-left: 24px;
  margin-bottom: 0;
}
.process ol li,
section ol li {
  margin-bottom: 18px;
  background: var(--color-pastel-yellow);
  border-radius: 16px;
  padding: 15px 14px 11px 16px;
  font-weight: 500;
  box-shadow: 0 1px 7px #faf2c655;
}
.process ol li span,
section ol li span {
  color: #767e9a;
  font-weight: 400;
  display: block;
  margin-top: 3px;
  font-size: .97rem;
}

/* ---------------- FOOTER ---------------- */
footer {
  background: linear-gradient(90deg, #E7ECF5 85%, #F8FAFB 100%);
  border-top: 1.5px solid #e2e9f2;
  padding: 36px 0 0 0;
  margin-top: 80px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 18px;
}
.footer-nav a {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.01rem;
  font-weight: 500;
  opacity: .86;
  padding: 7px 14px;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-pastel-yellow);
  color: #879a40;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  font-size: 1rem;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333A4F;
  opacity: 0.90;
}
.footer-contact img {
  width: 20px;
}
.footer-logo {
  margin-top: 18px;
  display: flex;
  align-items: center;
}
.footer-logo img {
  width: 45px;
  opacity: 0.97;
}

/* ---------------- COOKIE BANNER ---------------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: #fff8ff;
  box-shadow: 0 -2px 18px #e7afea28;
  z-index: 1000;
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px 17px 24px;
  font-size: 1rem;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  animation: fadeInBottom 0.8s;
}
.cookie-banner__text {
  color: #4F3960;
  font-size: 1rem;
  line-height: 1.6;
  margin-right: 20px;
}
.cookie-banner__buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 20px;
  padding: 7px 22px;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 5px #eeccef35;
  margin-left: 0;
  transition: background var(--transition), color var(--transition), box-shadow 0.17s, outline 0.12s;
}
.cookie-btn.accept {
  background: #7accb2;
  color: #fff;
  border: 1px solid #6eceb6;
}
.cookie-btn.accept:hover { background: #4fcfa1; }
.cookie-btn.reject {
  background: #f2c5c7;
  color: #aa293b;
  border: 1px solid #efb2be;
}
.cookie-btn.reject:hover { background: #df99a8; color: #fff; }
.cookie-btn.settings {
  background: #e4e6fa;
  color: #6054ab;
  border: 1px solid #d0d7eb;
}
.cookie-btn.settings:hover { background: #c4caf0; }

/* -- Cookie Modal -- */
.cookie-modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,150%);
  z-index: 1010;
  background: #f7f8fa;
  border-radius: 22px;
  box-shadow: 0 10px 28px #332e4c22;
  max-width: 95vw;
  width: 400px;
  padding: 30px 30px 20px 30px;
  animation: none;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal.open {
  display: block;
  animation: fadeInModal 0.4s cubic-bezier(.5,.15,.25,1);
  transform: translate(-50%, -50%);
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal h2 { font-size: 1.35rem; margin-bottom: 18px; }
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 1px 4px #d4dbe733;
  padding: 13px 12px;
}
.cookie-modal .cookie-category .toggle {
  min-width: 36px;
  height: 22px;
  background: #eedbfa;
  border-radius: 11px;
  position: relative;
  margin-left: auto;
  outline: none;
  cursor: pointer;
  border: none;
  transition: background 0.19s;
}
.cookie-modal .cookie-category .toggle[disabled],
.cookie-modal .cookie-category .toggle.disabled {
  background: #d8e7ef;
  opacity: 0.68;
  cursor: default;
}
.cookie-modal .cookie-category .toggle .knob {
  display: block;
  width: 20px;
  height: 20px;
  background: #a5a7f9;
  border-radius: 50%;
  position: absolute;
  top: 1px;
  left: 1px;
  transition: left 0.14s;
}
.cookie-modal .cookie-category .toggle.active {
  background: #86e5a6;
}
.cookie-modal .cookie-category .toggle.active .knob {
  left: 15px;
  background: #42ad7f;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .modal-actions .cookie-btn {
  min-width: 80px;
}

/* Animations */
@keyframes fadeInBottom {
  from { opacity:0; transform: translateY(40px); }
  to { opacity:1; transform: translateY(0); }
}
@keyframes fadeInModal {
  from { opacity:0; transform: translate(-50%,30%); }
  to { opacity:1; transform: translate(-50%,-50%); }
}

/* ---------------- MISC: BUTTONS, FORMS, ETC. ---------------- */
button, .cta-primary, .cta-secondary {
  cursor: pointer;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}
button:focus, .cta-primary:focus, .cta-secondary:focus {
  outline: 2px solid #90caf9;
  outline-offset: 2px;
}

/* Forms (if any) */
input, textarea, select {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border-radius: 12px;
  border: 1.5px solid #c4d3e6;
  padding: 12px 13px;
  background: #fcfdff;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
  transition: border 0.19s, background 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: #97c1f2;
  background: #e5f1fa;
}

/* Cards + Visual Elements */
.card h3, .feature-item h3 {
  font-size: 1.13rem;
  margin-bottom: 5px;
}
.card ul {
  margin-bottom: 0;
}

/* Section Spacing (override if stacked/first/last) */
section {
  margin-bottom: 64px;
  padding: 0;
}
section:last-child {
  margin-bottom: 20px;
}
section > .container {
  padding: 0;
}

/* Utility Classes */
.d-none { display: none !important; }
.mt-2 { margin-top: 16px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 22px; }
.align-items-start { align-items: flex-start; }
.align-items-center { align-items: center; }

/* -------------- RESPONSIVE DESIGN -------------- */
@media (max-width: 1200px) {
  .container { max-width: 960px; }
}
@media (max-width: 980px) {
  .container { max-width: 700px; }
}
@media (max-width: 900px) {
  .main-navigation { gap: 8px; }
  .footer-contact { gap: 12px; }
}
@media (max-width: 768px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
  .main-navigation {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
    margin: 10px 7px 10px auto;
  }
  footer .container {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .hero {
    padding: 35px 0 30px 0;
    min-height: 180px;
  }
  .card-container, .content-grid, .feature-grid, .blog-summary-list, .project-list {
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
  }
  .feature-item,
  .blog-summary-list .text-section,
  .project-list .text-section {
    min-width: 0;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
  .testimonial-card { max-width: 100%; }
  .section, section {
    margin-bottom: 38px;
    padding: 27px 10px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .content-wrapper {
    padding: 0;
    gap: 14px;
  }
}
@media (max-width: 600px) {
  .footer-contact { flex-direction: column; gap: 10px; }
  .footer-logo { margin-top: 12px; }
  h1 {
    font-size: 1.55rem;
    margin-bottom: 10px;
  }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1.04rem; }
  .hero {
    padding: 18px 0 14px 0;
  }
  .mobile-menu {
    padding-top: 9vh;
  }
  .cookie-modal { width: 94vw; padding: 19px 10px 12px 10px; font-size: 0.97rem; }
}

/* -------------- MICRO-INTERACTIONS/ANIMATIONS -------------- */
p, a, button, .cta-primary, .cta-secondary, .feature-item, .card, .testimonial-card {
  transition: box-shadow 0.22s, background 0.22s, color 0.18s, border 0.18s, transform 0.16s;
}
a.cta-primary:active, a.cta-secondary:active, button:active {
  transform: scale(.99);
}

/* -------------- ACCESSIBILITY -------------- */
:focus-visible {
  outline: 2px solid #a3b7f3;
  outline-offset: 2px;
}

/* ------------------ Z-INDEX LAYERING ----------------- */
header { z-index: 60; position: sticky; }
.mobile-menu { z-index: 200; }
.cookie-banner { z-index: 1000; }
.cookie-modal { z-index: 1010; }

/* --------- Ensure NO overlaps and proper white space --------- */
section, .section, .card, .testimonial-card, .feature-item, .footer-nav > *, .footer-contact > * {
  margin-bottom: 20px;
}
section:last-child,
.card:last-child,
.testimonial-card:last-child,
.feature-item:last-child {
  margin-bottom: 0 !important;
}

/* --------- Hide mobile menu by default, show on mobile --------- */
@media (min-width: 769px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
  .main-navigation {
    display: flex !important;
  }
}
