/* =========================
   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;
  outline: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  background: transparent;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-size: 16px;
  background: #F2F6F9;
  color: #0E2237;
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #0E2237;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #48A827;
}
ul, ol {
  list-style: none;
}
strong { font-weight: bold; }

/* ==============
   FONTS IMPORT
   ============== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,400italic,700&display=swap');

/* =========================
   VINTAGE RETRO COLORS
   ========================= */
:root {
  --brand-primary: #0E2237;
  --brand-secondary: #48A827;
  --brand-accent: #F2F6F9;
  --retro-yellow: #F7C873;
  --retro-red: #B43A29;
  --retro-olive: #C1B28E;
  --retro-blue: #2B6777;
  --retro-brown: #876445;
  --retro-cream: #FFF7E6;
  --retro-orange: #E8936C;
}

/* =========================
   TYPOGRAPHY
   ========================= */
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--brand-primary);
  background: var(--retro-cream);
}
h1, .hero h1 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  letter-spacing: -2px;
  color: var(--retro-blue);
  margin-bottom: 16px;
  text-shadow: 2px 2px 0 var(--retro-yellow);
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -1px;
  color: var(--retro-red);
  margin-bottom: 16px;
  text-shadow: 1px 1px 0 var(--retro-cream);
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--retro-brown);
  margin-bottom: 12px;
}
p, li, address {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--brand-primary);
}
address {
  font-style: normal;
}

/* Typography scale w/ retro contrast */
h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}

/* ============================
   LAYOUT CONTAINERS & SPACING
   ============================ */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section,
.hero,
.cta,
.about,
.values,
.services,
.technologies,
.expertise,
.process,
.contact,
.project_overview,
.impact,
.blog_list,
.thank_you {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--retro-cream);
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(134, 100, 69, 0.07);
}

/* Content Grids & Cards (Flex only) */
.feature_grid,
.technology-highlights,
.benefits_grid,
.benefit_descriptions,
.expertise_grid,
.project_list,
.case_studies,
.blog_teasers {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.feature_grid > div,
.technology-highlights > div,
.benefits_grid > div,
.benefit_descriptions > div,
.expertise_grid > div,
.project_list > div,
.case_studies > div,
.blog_teasers > article {
  background: var(--brand-accent);
  border: 2px solid var(--retro-yellow);
  box-shadow: 3px 5px 0 0 var(--retro-brown);
  border-radius: 12px;
  padding: 28px 22px 22px 22px;
  flex: 1 1 270px;
  min-width: 235px;
  max-width: 360px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s, border 0.24s;
}
.feature_grid > div:hover,
.technology-highlights > div:hover,
.benefits_grid > div:hover,
.benefit_descriptions > div:hover,
.expertise_grid > div:hover,
.project_list > div:hover,
.case_studies > div:hover,
.blog_teasers > article:hover {
  box-shadow: 0px 12px 28px -3px var(--retro-brown);
  border: 2px solid var(--retro-red);
}

.services-list,
.detailed_service_list,
.technology_list,
.values ul,
.step_list {
  margin: 0;
  padding: 0 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.services-list li strong,
.detailed_service_list li strong,
.technology_list li strong,
.values ul li strong {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brand-secondary);
}

.step_list {
  list-style: decimal inside;
  padding-left: 1.8em;
}

/* Testimonial Cards */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  flex: 1 1 280px;
  min-width: 240px;
  background: #fffaf4;
  border: 2.5px dashed var(--retro-yellow);
  border-radius: 12px;
  box-shadow: 2px 6px 0 0 var(--brand-primary), 0 1px 10px rgba(14,34,55,0.06);
  margin-bottom: 20px;
}
.testimonial-card p {
  color: #24190f;
  font-size: 1.12rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.testimonial-card span {
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--retro-red);
  background: var(--retro-yellow);
  border-radius: 6px;
  padding: 2px 10px;
}

/* Misc Content Grids */
.values ul,
.technology_list,
.detailed_service_list {
  gap: 13px;
}

/* Address & Footer */
footer {
  background: var(--retro-blue);
  color: var(--retro-cream);
  padding: 40px 0 12px 0;
  border-top: 8px double var(--retro-yellow);
}
footer nav {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
footer nav a {
  color: var(--retro-yellow);
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 1px;
  font-weight: 700;
  background: none;
  border-radius: 7px;
  padding: 4px 14px;
  transition: background 0.2s, color 0.2s;
}
footer nav a:hover,
footer nav a:focus {
  background: var(--retro-yellow);
  color: var(--retro-blue);
}
footer address {
  margin-top: 14px;
  font-size: 0.97rem;
  text-align: center;
  color: var(--retro-cream);
  font-family: 'Roboto', Arial, sans-serif;
}
footer address a {
  color: var(--retro-yellow);
  text-decoration: underline;
}
footer address strong {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fffdd0;
}

/* =========================
   HEADER AND NAVIGATION
   ========================= */
header {
  background: var(--brand-accent);
  border-bottom: 5px solid var(--retro-yellow);
  padding: 0;
  position: relative;
  box-shadow: 0 2px 16px 0 rgba(135, 100, 69, 0.04);
  z-index: 20;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: center;
  padding: 14px 0 10px 0;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.5px;
  padding: 7px 16px;
  color: var(--brand-primary);
  border-radius: 8px;
  transition: background 0.13s, color 0.18s;
}
header nav a.cta-primary {
  background: var(--retro-red);
  color: #fff;
  font-weight: bold;
  border-radius: 16px;
  box-shadow: 2px 3px 0 0 var(--retro-yellow);
  font-size: 1.09rem;
  letter-spacing: 1px;
  border: 2px solid var(--retro-yellow);
}
header nav a.cta-primary:hover, header nav a.cta-primary:focus {
  background: var(--retro-blue);
  color: var(--retro-yellow);
  border: 2px solid var(--retro-red);
}
header nav a:hover, header nav a:focus:not(.cta-primary) {
  background: var(--retro-yellow);
  color: var(--retro-red);
}
header nav img {
  height: 44px;
  margin-right: 12px;
}

.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 104;
  background: var(--retro-yellow);
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  width: 52px;
  height: 52px;
  color: var(--retro-blue);
  box-shadow: 1px 3px 0 0 var(--retro-blue);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--retro-red);
  color: #fff;
  box-shadow: 1px 5px 0 var(--retro-brown);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--retro-olive);
  box-shadow: 3px 0 32px 0 var(--retro-blue);
  z-index: 1100;
  transform: translateX(-100vw);
  transition: transform 0.4s cubic-bezier(.57,.14,.47,1.17);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 36px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--retro-red);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 2.2rem;
  position: absolute;
  top: 14px; right: 20px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 1101;
  box-shadow: 0 2px 9px rgba(44,26,13,0.10);
  transition: background 0.1s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--retro-yellow);
  color: var(--retro-red);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 19px;
  align-items: flex-start;
  padding: 62px 36px 30px 36px;
}
.mobile-nav a {
  font-size: 1.18rem;
  color: var(--retro-blue);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  background: none;
  padding: 13px 0 11px 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--retro-red);
  border-bottom: 2px solid var(--retro-red);
  background: none;
}

@media (max-width: 1020px) {
  .container {
    max-width: 98vw;
    padding: 0 9px;
  }
}

@media (max-width: 900px) {
  .feature_grid, .technology-highlights, .benefits_grid, .benefit_descriptions, .expertise_grid, .project_list, .case_studies, .blog_teasers {
    gap: 18px;
    justify-content: center;
  }
}

@media (max-width: 820px) {
  .content-wrapper {
    gap: 22px;
  }
}

/* MOBILE NAVIGATION TOGGLE */
@media (max-width: 860px) {
  header nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 640px) {
  h1, .hero h1 { font-size: 2rem; }
  h2 { font-size: 1.33rem; }
  .container { padding: 0 4px; }
  .section, .hero, .cta, .about, .values, .services, .technologies, .expertise, .process, .contact, .project_overview, .impact, .blog_list, .thank_you {
    padding: 19px 4px 24px 4px;
    margin-bottom: 35px;
    border-radius: 11px;
  }
}

/* HERO SECTION */
.hero {
  background: var(--retro-blue);
  color: var(--retro-cream);
  border-radius: 20px;
  box-shadow: 0 12px 36px -6px var(--retro-brown);
  margin-bottom: 60px;
  padding: 60px 20px 40px 20px;
  position: relative;
  overflow: hidden;
}
.hero h1 {
  color: var(--retro-yellow);
  text-shadow: 3px 2px 0 var(--retro-brown);
}
.hero p {
  color: var(--retro-cream);
  font-size: 1.16rem;
  margin-bottom: 24px;
}
.hero .cta-primary {
  box-shadow: 3px 4px var(--retro-yellow);
  font-size: 1.16rem;
}

/* CTA PRIMARY BUTTON */
.cta-primary {
  display: inline-block;
  background: var(--retro-yellow);
  color: var(--retro-blue);
  border: 2.5px solid var(--retro-red);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  letter-spacing: 1.1px;
  font-weight: 900;
  border-radius: 17px;
  padding: 13px 34px 13px 34px;
  margin-top: 16px;
  margin-bottom: 6px;
  box-shadow: 2px 3px 0 0 var(--retro-brown);
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.18s, color 0.18s, border 0.17s;
  text-shadow: 1px 1px 0 #fff7ee;
  position: relative;
  z-index: 2;
  outline: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--retro-red);
  color: #fff;
  border: 2.5px solid var(--brand-secondary);
  box-shadow: 2px 7px 0 0 var(--retro-yellow);
}

/* SECTION PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap:24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--retro-cream);
  border: 2px solid var(--retro-yellow);
  box-shadow: 2px 4px 0 0 var(--retro-blue);
  border-radius: 11px;
  padding: 21px 22px;
  transition: box-shadow 0.2s, border 0.22s;
}
.card:hover {
  box-shadow: 0 7px 28px -4px var(--retro-brown);
  border: 2px solid var(--retro-red);
}
.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 { /* already above for testimonial card markup */ }
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Blog tags */
.topic-tag {
  background: var(--retro-yellow);
  color: var(--retro-red);
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.91em;
  padding: 0.2em 0.7em;
  margin-left: 8px;
  position: relative;
  top: -1px;
}

/* Lists & Details spacing */
.text-section,
.direct_contact_info,
.map_embed {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.direct_contact_info p,
.map_embed p {
  display: flex;
  align-items: center;
  gap: 8px;
}

.certifications {
  margin-top: 18px;
  font-size: 1.08em;
  color: var(--retro-blue);
  background: var(--retro-yellow);
  border-radius: 7px;
  padding: 8px 18px;
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
}
.certifications img {
  height: 22px;
  margin: 0 8px 0 0;
  vertical-align: middle;
}

/* Cookie Banner & Modal */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--retro-yellow);
  color: var(--retro-blue);
  border-top: 5px double var(--retro-brown);
  box-shadow: 0 -3px 24px 0 var(--retro-brown);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9999;
  padding: 20px 18px 20px 22px;
  gap: 23px;
  font-family: 'Montserrat', Arial, sans-serif;
  animation: bannerIn 0.6s ease;
}
@keyframes bannerIn {
  0% { transform: translateY(100%); opacity:0; }
  100% { transform: translateY(0); opacity:1; }
}
.cookie-banner__text {
  flex: 1 1 320px;
  font-size: 1.02rem;
  color: var(--retro-blue);
}
.cookie-banner__actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.cookie-btn {
  background: #fff;
  color: var(--retro-red);
  border: 2px solid var(--retro-red);
  border-radius: 13px;
  padding: 10px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, border 0.17s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--retro-red);
  color: #fff;
}
.cookie-btn.settings {
  background: var(--retro-blue);
  color: var(--retro-yellow);
  border: 2px solid var(--brand-secondary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--retro-yellow);
  color: var(--retro-red);
}

/* Cookie Modal */
.cookie-modal-backdrop {
  display: none;
  position: fixed;
  left: 0; top: 0; width:100vw; height:100vh;
  background: rgba(14,34,55,0.27);
  z-index: 11010;
  align-items: center;
  justify-content: center;
}
.cookie-modal-backdrop.open {
  display: flex;
}
.cookie-modal {
  background: #fffaf4;
  color: var(--retro-blue);
  border: 4px solid var(--retro-yellow);
  border-radius: 17px;
  box-shadow: 0 0 64px -4px var(--retro-brown);
  padding: 40px 36px 30px 36px;
  width: 96vw;
  max-width: 410px;
  z-index: 11011;
  animation: modalIn 0.42s cubic-bezier(.48,.79,.56,1.13);
}
@keyframes modalIn {
  0% { transform: translateY(40px) scale(.95); opacity:0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.33rem;
  color: var(--retro-red);
  margin-bottom: 19px;
  font-weight: 900;
  text-shadow: none;
}
.cookie-modal ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 18px;
  padding: 0;
}
.cookie-modal label {
  font-size: 1.03rem;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
}
.cookie-modal input[type="checkbox"][disabled] {
  accent-color: var(--retro-blue);
  background: #bbb;
  pointer-events: none;
}
.cookie-category {
  font-weight: 700;
  color: var(--retro-blue);
}
.cookie-modal .cookie-btn {
  margin-top: 12px;
  background: var(--retro-yellow);
  color: var(--retro-red);
  border-radius: 9px;
  border: 2px solid var(--retro-red);
}
.cookie-modal .cookie-btn:hover {
  background: var(--retro-red);
  color: #fff;
}

/* ===========================
   RESPONSIVE - MOBILE FIRST!
   =========================== */
@media (max-width: 1110px) {
  .feature_grid > div, .technology-highlights > div, .benefits_grid > div, .benefit_descriptions > div, .expertise_grid > div, .project_list > div, .case_studies > div, .blog_teasers > article {
    min-width: 200px;
  }
}
@media (max-width: 899px) {
  .feature_grid {
    flex-direction: column;
    gap: 28px;
  }
  .technology-highlights,
  .benefits_grid,
  .benefit_descriptions,
  .expertise_grid,
  .project_list,
  .case_studies,
  .blog_teasers {
    flex-direction: column;
    gap: 22px;
  }
  .testimonials {flex-direction: column; gap: 20px;}
}
@media (max-width: 700px) {
  .blog_teasers > article,
  .feature_grid > div,
  .technology-highlights > div,
  .benefits_grid > div,
  .benefit_descriptions > div,
  .expertise_grid > div, .project_list > div, .case_studies > div {
    max-width: 100%;
    min-width: 0;
    padding: 17px 9px 18px 14px;
    font-size: 1em;
  }
  .testimonial-card{padding: 15px 9px;}
}
@media (max-width: 768px) {
  .text-image-section,
  .content-grid,
  .direct_contact_info,
  .map_embed {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
  }
  .container {
    padding: 0 5px;
  }
  .content-wrapper {
    gap: 14px;
    padding: 0;
  }
  .section, .hero, .cta,
  .about, .values, .services, .technologies, .expertise, .process, .contact,
  .project_overview, .impact, .blog_list, .thank_you {
    margin-bottom: 27px;
    padding: 15px 2px 12px 2px;
    border-radius: 7px;
  }
}

/* ===============================
   ANIMATIONS & MICRO-INTERACTIONS
   =============================== */
.cta-primary, .card, .testimonial-card, .feature_grid > div, .technology-highlights > div, .benefits_grid > div, .expertise_grid > div, .case_studies > div, .blog_teasers > article {
  transition: box-shadow 0.19s, border 0.18s, background 0.17s, color 0.14s;
}

.cta-primary:active {
  box-shadow: none;
  transform: translateY(1px);
}

.card:active,
.feature_grid > div:active,
.technology-highlights > div:active,
.benefits_grid > div:active,
.benefit_descriptions > div:active,
.expertise_grid > div:active,
.case_studies > div:active,
.blog_teasers > article:active {
  box-shadow: none !important;
  transform: translateY(2px);
}

.modal-open { overflow: hidden; }

/* ===================
   SCROLLBAR RETRO SKIN
   =================== */
html {
  scrollbar-color: var(--retro-yellow) var(--retro-brown);
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width:10px;
  background: var(--retro-cream);
}
::-webkit-scrollbar-thumb {
  background: var(--retro-yellow);
  border-radius: 9px;
  border: 2px solid var(--retro-brown);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--retro-red);
}

/* == End of CSS ==