/* CSS RESET & FONT FACE */
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; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #F4F8FB;
  color: #15304D;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #1B866E;
  text-decoration: none;
  transition: color 0.22s;
}
a:hover, a:focus {
  color: #15304D;
  text-decoration: underline;
}
ul, ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 6px;
}

/* FONT-FACE (assume available from webfonts) */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500|Roboto:400,500,700&display=swap');

/* VARIABLES (fallbacks provided) */
:root {
  --primary: #15304D;
  --secondary: #1B866E;
  --accent: #F4F8FB;
  --pastel-lilac: #E6EAFB;
  --pastel-aqua: #D1FAF2;
  --pastel-mint: #DFF7EB;
  --pastel-pink: #FCE7F3;
  --pastel-yellow: #FEF9E7;
  --white: #fff;
  --text-dark: #18304E;
  --text-light: #517185;
  --shadow: 0 8px 20px rgba(24, 48, 77, 0.07);
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.28s cubic-bezier(.47,1.64,.41,.8);
  --box-gap: 24px;
}

/* LAYOUT CONTAINER */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 0;
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .content-wrapper {
    gap: 16px;
  }
}

/* HEADER */
header {
  background: var(--accent, #F4F8FB);
  position: relative;
  z-index: 50;
  box-shadow: 0 2px 6px rgba(24, 48, 77, 0.03);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 16px 16px;
}
header img[alt="SoftTrek Digital Drive"] {
  height: 44px;
  margin-right: 20px;
}
.main-nav {
  display: flex;
  gap: 16px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: var(--text-dark, #18304E);
  font-size: 16px;
  letter-spacing: 0.01em;
  padding: 4px 0;
  position: relative;
  transition: color 0.22s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary, #1B866E);
}
.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  background: linear-gradient(90deg, #D1FAF2 0%, #E6EAFB 100%);
  color: var(--primary, #15304D);
  border: none;
  outline: none;
  border-radius: var(--radius, 16px);
  padding: 12px 32px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
  margin-left: 20px;
  margin-right: 16px;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--pastel-mint, #DFF7EB);
  color: var(--secondary, #1B866E);
  box-shadow: 0 8px 36px rgba(34, 118, 112, .07);
}
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  color: var(--primary, #15304D);
  border: none;
  cursor: pointer;
  z-index: 102;
  margin-left: 10px;
  margin-right: 4px;
}
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    /* Hide on mobile in header, show elsewhere */
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(220,229,243,0.97);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.47,1.64,.41,.8);
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.5rem;
  color: var(--secondary, #1B866E);
  margin: 24px 32px 0 0;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 1204;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--primary, #15304D);
}
.mobile-nav {
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  font-size: 1.22rem;
}
.mobile-nav a {
  color: var(--primary, #15304D);
  padding: 11px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  width: 90vw;
  text-align: left;
  border-radius: var(--radius-sm, 8px);
  transition: background 0.15s, color 0.16s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-mint,#DFF7EB);
  color: var(--secondary, #1B866E);
}
@media (min-width: 993px) {
  .mobile-menu, .mobile-nav, .mobile-menu-close, .mobile-menu-toggle {
    display: none !important;
  }
}

/* SECTIONS & SPACING - CRITICAL FLEX/GAP LAYOUTS  */
section {
  background: transparent;
  width: 100%;
  border-radius: var(--radius, 16px);
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: var(--radius, 16px);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  min-width: 260px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--pastel-lilac, #E6EAFB);
  border-radius: var(--radius-lg, 24px);
  box-shadow: var(--shadow);
  max-width: 420px;
  min-width: 260px;
  margin-bottom: 20px;
}
.testimonial-card p {
  font-size: 1.09rem;
  color: var(--primary, #15304D);
  letter-spacing: 0.01em;
  line-height: 1.7;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--secondary, #1B866E);
  font-family: 'Montserrat', Arial, sans-serif;
  margin-top: 6px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--white);
  border-radius: var(--radius, 16px);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  margin-bottom: 20px;
}
/* Additional grids and lists */
.feature-grid, .service-list, .team-bios, .case-study-list, .resources-list, .blog-post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  width: 100%;
}
.feature-grid>div, .service-list>div, .team-bios>div, .case-study-list>div, .resources-list>div, .blog-post-list>div {
  background: var(--white);
  border-radius: var(--radius-sm, 8px);
  padding: 24px 20px;
  box-shadow: 0 4px 8px rgba(24, 48, 77, 0.06);
  min-width: 260px;
  flex: 1 1 275px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.22s;
}
.feature-grid>div:hover, .service-list>div:hover, .team-bios>div:hover, .case-study-list>div:hover, .resources-list>div:hover, .blog-post-list>div:hover {
  box-shadow: 0 8px 32px rgba(34, 118, 112, 0.10);
  transform: translateY(-6px) scale(1.01);
}
/* Testimonials slider */
.testimonials-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  width: 100%;
  margin-bottom: 16px;
}
.client-logos {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.client-logos img {
  height: 44px;
  opacity: 0.85;
  filter: grayscale(0.2);
}

/* Cards and Lists */
ul.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  list-style: none;
  margin-bottom: 20px;
}
ul.service-list>li {
  background: var(--white);
  border-radius: var(--radius-sm, 8px);
  box-shadow: 0 4px 8px rgba(24, 48, 77, 0.07);
  padding: 22px 18px;
  flex: 1 1 275px;
  margin-bottom: 20px;
  font-size: 1rem;
  transition: box-shadow 0.15s, transform 0.18s;
}
ul.service-list>li:hover {
  box-shadow: 0 8px 32px rgba(27, 134, 110, 0.09);
  transform: translateY(-3px);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary, #15304D);
  letter-spacing: 0.01em;
  font-weight: 700;
  margin-bottom: 8px;
}
h1 {
  font-size: 2.8rem;
  line-height: 1.13;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.32rem;
  weight: 600;
  margin-bottom: 8px;
}
h4 { font-size: 1.05rem; }
.subheadline {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--text-light, #517185);
  font-size: 1.18rem;
  line-height: 1.7;
  margin-bottom: 18px;
  font-weight: 400;
}
p, .text-section p {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--text-dark, #18304E);
  line-height: 1.7;
  margin-bottom: 16px;
}
.text-section {
  width: 100%;
  margin-bottom: 8px;
  padding: 0 0 8px 0;
}

/* Buttons & Links */
button, .cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  outline: none;
  border: none;
}
button:active, .cta-btn:active {
  transform: scale(0.98);
}

/* Categories Filter */
.categories-filter {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  font-size: 0.99rem;
}
.categories-filter a {
  padding: 4px 13px;
  background: var(--pastel-pink, #FCE7F3);
  border-radius: 99px;
  color: var(--secondary, #1B866E);
  font-weight: 500;
  margin-right: 2px;
  transition: background 0.18s, color 0.18s;
}
.categories-filter a:hover, .categories-filter a:focus {
  background: var(--pastel-aqua, #D1FAF2);
  color: var(--primary, #15304D);
}

/* Map Placeholder (Contact) */
.location-map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--pastel-yellow, #FEF9E7);
  color: var(--text-light,#517185);
  border-radius: var(--radius-sm,8px);
  font-size: 1.01rem;
  margin-top: 10px;
}

/* Footer  ------------------------------------*/
footer {
  background: #f7faff;
  border-top: 1px solid #e2e7f1;
  padding: 0 0 0 0;
  margin-top: 64px;
}
footer .container {
  padding: 16px 16px 12px 16px;
}
footer .content-wrapper {
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--secondary, #1B866E);
  font-weight: 500;
  font-size: 1rem;
}
.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 6px;
}
.footer-contact > img {
  height: 34px;
  margin-right: 8px;
}
.footer-contact div {
  font-size: 0.99rem;
  color: var(--text-light, #517185);
  line-height: 1.6;
}
.footer-contact img[alt$="Icon"] {
  height: 18px;
  width: 18px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
}
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a img {
  height: 30px;
  transition: filter 0.18s, opacity 0.16s;
  opacity: .83;
}
.footer-social a:hover img, .footer-social a:focus img {
  filter: brightness(0.88) saturate(1.7);
  opacity: 1;
}
.footer-copy {
  color: #adb5c6;
  font-size: 0.97rem;
  padding-top: 4px;
  font-family: 'Roboto', Arial, sans-serif;
}
@media (max-width:768px) {
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 6px;
  }
  .footer-social {
    margin-top: 8px;
  }
}

/* Responsive Flexbox Adjustments (Tablet/Mobile) */
@media (max-width: 992px) {
  .feature-grid, .service-list, .team-bios, .case-study-list, .resources-list, .blog-post-list {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .feature-grid, .service-list, .team-bios, .case-study-list, .resources-list, .blog-post-list {
    flex-direction: column;
    gap: 12px;
  }
  .feature-grid > div, .service-list > div, .team-bios > div, .case-study-list > div, .resources-list>div, .blog-post-list > div {
    min-width: 0;
    width: 100%;
    margin-bottom: 12px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 12px;
  }
  .testimonial-card {
    min-width: 0;
    width: 100%;
    margin-bottom: 14px;
  }
  .client-logos {
    gap: 14px;
  }
  .section { padding: 32px 8px; margin-bottom: 38px; }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* Cookie Consent Banner --------------------------*/
#cookie-banner {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: 16px;
  max-width: 540px;
  margin: 0 auto;
  background: var(--pastel-lilac, #E6EAFB);
  box-shadow: 0 8px 36px rgba(27,134,110,0.11);
  z-index: 3000;
  border-radius: var(--radius-lg, 24px);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 1;
  transition: bottom 0.4s, opacity 0.3s;
}
#cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
}
#cookie-banner .cookie-buttons {
  display: flex;
  gap: 12px;
}
#cookie-banner button {
  border-radius: var(--radius-sm,8px);
  border: none;
  padding: 7px 20px;
  background: var(--pastel-mint,#DFF7EB);
  color: var(--secondary,#1B866E);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  margin: 0;
  cursor: pointer;
  box-shadow: 0 3px 18px rgba(34,118,112,.07);
  transition: background 0.15s, color 0.15s;
}
#cookie-banner button.accept {
  background: var(--secondary,#1B866E);
  color: var(--white,#fff);
}
#cookie-banner button:hover, #cookie-banner button:focus {
  background: var(--pastel-aqua,#D1FAF2);
  color: var(--primary,#15304D);
}
#cookie-banner button.settings {
  background: var(--pastel-yellow,#FEF9E7);
  color: #786c08;
}
@media (max-width: 576px) {
  #cookie-banner {
    flex-direction: column;
    padding: 17px 10px;
    gap: 12px;
    max-width: 97vw;
  }
}

/* Cookie Modal ----------------------------*/
#cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 4300;
  background: rgba(27,134,110,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.30s;
}
#cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
}
#cookie-modal .cookie-modal-content {
  background: var(--white);
  box-shadow: 0 18px 40px rgba(27,134,110,0.16);
  padding: 40px 32px 28px;
  border-radius: var(--radius-lg,24px);
  max-width: 420px;
  width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
#cookie-modal h2 {
  font-size: 1.34rem;
  margin-bottom: 6px;
  color: var(--secondary,#1B866E);
}
#cookie-modal .cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary, #15304D);
  cursor: pointer;
  transition: color 0.18s;
}
#cookie-modal .cookie-modal-close:hover {
  color: var(--secondary, #1B866E);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.cookie-category label {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--primary, #15304D);
  font-weight: 500;
  font-size: 1.03rem;
  cursor: pointer;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--secondary,#1B866E);
  width: 19px;
  height: 19px;
}
.cookie-category .essential {
  color: var(--secondary,#1B866E);
  font-weight: 700;
  font-size: 1.07rem;
}
#cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}
#cookie-modal .cookie-modal-actions button {
  border-radius: var(--radius-sm,8px);
  border: none;
  padding: 8px 19px;
  background: var(--secondary,#1B866E);
  color: var(--white,#fff);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 3px 15px rgba(27,134,110,.07);
  transition: background 0.16s, color 0.16s;
}
#cookie-modal .cookie-modal-actions button.reject {
  background: var(--pastel-mint,#DFF7EB);
  color: var(--secondary,#1B866E);
}
#cookie-modal .cookie-modal-actions button.settings {
  background: var(--pastel-yellow,#FEF9E7);
  color: #786c08;
}
#cookie-modal .cookie-modal-actions button:hover, 
#cookie-modal .cookie-modal-actions button:focus {
  background: var(--pastel-aqua,#D1FAF2);
  color: var(--primary,#15304D);
}

/* Animations --- micro-interactions */
.cta-btn, .card, .feature-grid>div, .testimonial-card,
footer .footer-social a img {
  transition: box-shadow 0.22s, transform 0.18s, background 0.14s, color 0.18s;
}
.cta-btn:focus {
  outline: 2px dashed var(--secondary,#1B866E);
  outline-offset: 2px;
}
.card:active, .feature-grid>div:active, 
.testimonial-card:active {
  transform: scale(.99);
  box-shadow: 0 4px 10px rgba(27,134,110,0.08);
}

/* Utility Classes ---------------------------------*/
.text-center { text-align: center !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.flex { display: flex; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-20 { gap: 20px; }

/* Hide visually only */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* END */