/* ============================
   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, 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; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { background: none; border: 0; cursor: pointer; font: inherit; }
:focus { outline: 2px dotted #70401B; outline-offset: 2px; }

/* ============================
     VINTAGE RETRO COLOR PALETTE & BRAND BASE
============================ */
:root {
  /* Brand & Retro Palette */
  --primary: #146450;
  --secondary: #F9F6ED;
  --accent: #b68949;
  --retro-cream: #FFF8E7;
  --retro-mint: #B3C7A6;
  --retro-brown: #70401B;
  --retro-orange: #E39053;
  --retro-green: #A9CF7A;
  --retro-yellow: #F4D35E;
  --retro-border: #E8DFCA;
  --retro-shadow: rgba(55,40,5,0.08);
  --text-dark: #432C13;
  --text-medium: #70401B;
  --white: #fff;
}

body {
  background: var(--secondary);
  color: var(--text-dark);
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  letter-spacing: 0.01em;
  min-height: 100vh;
  transition: background 0.3s;
}

/* Typography Scale */
h1, .h1 {
  font-family: 'Montserrat', 'Arial Rounded MT', Arial, sans-serif;
  font-size: 2.4rem;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1.2;
  font-weight: 700;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  color: var(--retro-brown);
  font-weight: 600;
  margin-bottom: 10px;
}
h4, .h4 {
  font-size: 1.1rem;
  font-weight: 600;
}
p, ul li, ol li {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 12px;
}
strong { color: var(--primary); font-weight: 700; }

/* Decor: classic patterns as subtle backgrounds */
.hero, section.hero {
  /* Subtle paper texture for vintage touch (SVG or PNG if available) */
  background: var(--retro-cream);
  background-image: repeating-linear-gradient(135deg, transparent, transparent 19px, rgba(245,224,189,0.10) 20px, transparent 30px);
  border-bottom: 3px solid var(--retro-border);
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--retro-cream);
  border-radius: 18px;
  box-shadow: 0 3px 16px var(--retro-shadow);
  border: 1.5px solid var(--retro-border);
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

/* ============================
       HEADER & NAVIGATION
============================ */
header {
  background: var(--retro-yellow);
  border-bottom: 3px solid var(--retro-border);
  box-shadow: 0 6px 14px -10px var(--retro-brown);
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
}
nav > a img {
  height: 48px;
  width: auto;
  filter: grayscale(0.2) brightness(0.96) sepia(0.15);
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-left: 28px;
  margin-right: auto;
}
nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--retro-brown);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 7px 17px;
  border-radius: 22px;
  transition: background 0.18s, color 0.18s;
  border: 1.5px solid transparent;
}
nav ul li a:hover,
nav ul li a:focus {
  background: var(--retro-mint);
  color: var(--primary);
  border-color: var(--primary);
}
nav .cta-btn {
  margin-left: 24px;
}

/* CTA Button Styling */
.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--primary);
  color: var(--retro-cream);
  font-size: 1.09rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 99px;
  border: 2.5px solid var(--accent);
  padding: 12px 33px;
  box-shadow: 0 2px 4px var(--retro-shadow);
  cursor: pointer;
  transition: background 0.22s, color 0.2s, box-shadow 0.22s;
  outline: 0;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--retro-orange);
  color: var(--retro-brown);
  box-shadow: 0 5px 24px var(--retro-shadow);
}

/* ----- Mobile Menu Navigation ------ */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 12px;
  z-index: 102;
  font-size: 2.2rem;
  color: var(--primary);
  background: var(--retro-yellow);
  border-radius: 12px;
  padding: 6px 14px;
  border: 2px solid var(--primary);
  transition: background 0.2s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--retro-orange);
  color: var(--retro-brown);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: var(--retro-yellow);
  box-shadow: 0 12px 34px 0 rgba(68, 47, 15, 0.17);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.77,.2,.05,1.0);
  padding: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  margin: 20px 20px 0 20px;
  font-size: 2.5rem;
  color: var(--retro-brown);
  align-self: flex-end;
  background: var(--retro-cream);
  border-radius: 10px;
  padding: 6px 16px;
  border: 2px solid var(--primary);
  transition: background 0.2s;
  z-index: 10;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--retro-orange);
  color: var(--white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 2px;
  margin: 32px 20px 0 18px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 15px 20px;
  color: var(--retro-brown);
  border-bottom: 1px solid var(--retro-border);
  background: var(--retro-cream);
  border-radius: 13px;
  margin-bottom: 6px;
  transition: background .15s, color .15s;
  min-width: 120px;
  min-height: 42px;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: var(--retro-mint);
  color: var(--primary);
}

@media (max-width: 1024px) {
  nav ul {
    gap: 10px;
    margin-left: 10px;
  }
  nav .cta-btn {
    margin-left: 10px;
    padding: 11px 18px;
  }
}

@media (max-width: 900px) {
  header .container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  nav { flex-wrap: wrap; gap: 16px; }
}
@media (max-width: 768px) {
  nav ul, nav .cta-btn { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

/* ============================
      FLEXBOX CONTAINER PATTERNS
============================ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--retro-cream);
  border-radius: 14px;
  box-shadow: 0 2px 10px var(--retro-shadow);
  border: 1px solid var(--retro-border);
  padding: 24px;
  min-width: 245px;
  max-width: 350px;
}
.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;
  background: var(--retro-mint);
  border-left: 5px solid var(--accent);
  border-radius: 13px;
  box-shadow: 0 2px 12px var(--retro-shadow);
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--text-dark);
}
.testimonial-card strong {
  color: var(--primary);
  font-weight: 800;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* FAQ, benefit, solution lists */
.faq-list,
.tips-list,
.benefit-list,
.metrics,
.funding,
.innovation,
.resource-links,
.solution-grid,
.project-highlights {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-bottom: 18px;
}

.tech-grid ul {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 32px;
}
.footer-links {
  display: flex;
  flex-direction: row;
  gap: 34px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  min-width: 220px;
}
.footer-contact {
  min-width: 220px;
}

@media (max-width: 900px) {
  .footer-layout {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .section { padding: 28px 8px; }
  .content-wrapper, .footer-layout, .card-container, .content-grid,
  .text-image-section, .footer-links {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }
  .tech-grid ul { flex-direction: column; gap: 12px; }
  .testimonial-card { font-size: 1rem; padding: 16px; }
}

/* Lists with icons */
ul li img {
  width: 28px; height: 28px; vertical-align: middle; margin-right: 8px; filter: sepia(0.2) saturate(1.2);
}
ul li span { margin-left: 12px; font-weight: bold; color: var(--retro-orange); }

/* ============================
         CONTENT CARDS
============================ */
.card {
  background: var(--retro-cream);
  border: 1px solid var(--retro-border);
  border-radius: 14px;
  box-shadow: 0 2px 12px var(--retro-shadow);
  padding: 18px 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 4px 34px var(--retro-shadow), 0 1px 8px var(--accent);
  transform: translateY(-3px) scale(1.03);
  z-index: 1;
}

/* ============================
         FOOTER
============================ */
footer {
  background: var(--primary);
  color: var(--retro-cream);
  padding: 44px 0 24px 0;
  font-size: 1rem;
  margin-top: 40px;
  border-top: 3px solid var(--accent);
}
footer h3 {
  color: var(--retro-yellow);
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 6px;
  font-weight: 700;
}
footer nav a {
  display: block;
  color: var(--retro-cream);
  padding: 5px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  opacity: 0.91;
  transition: color 0.18s;
}
footer nav a:focus, footer nav a:hover { color: var(--retro-yellow); opacity: 1; }
footer .footer-brand img { height: 42px; margin-bottom: 10px; }
footer .footer-brand p { color: #fff; font-size: 0.97rem; margin-bottom: 0; opacity: 0.85; }
footer .footer-contact p, footer .footer-contact a { color: #fff; opacity: 0.9; font-size: 1rem; }
footer .footer-contact a { text-decoration: underline; }


/* ============================
         BUTTONS & LINKS
============================ */
a, button {
  transition: color 0.18s, background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
button, .btn, input[type="submit"] {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 8px;
  font-size: 1rem;
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--primary);
  padding: 10px 22px;
  box-shadow: 0 1px 8px var(--retro-shadow);
  margin-right: 11px;
}
button:hover, button:focus, .btn:hover, .btn:focus, input[type="submit"]:hover, input[type="submit"]:focus {
  background: var(--retro-orange);
  color: var(--retro-brown);
  border-color: var(--retro-brown);
}

/* ============================
     MICRO-INTERACTIONS
============================ */
.card, .cta-btn, .testimonial-card, .btn, .mobile-menu, .mobile-menu-toggle, .mobile-menu-close {
  transition: box-shadow 0.2s, background 0.22s, transform 0.18s, color 0.18s;
}

/* ============================
   COOKIE CONSENT BANNER & MODAL
============================ */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20000;
  width: 100%;
  background: var(--retro-brown);
  color: var(--retro-cream);
  font-size: 1.025rem;
  box-shadow: 0 -2px 16px var(--retro-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 58px;
  padding: 18px 18px 18px 24px;
  flex-wrap: wrap;
  animation: banner-fade-in 0.65s cubic-bezier(.39,.575,.565,1.000);
}
@keyframes banner-fade-in {
  0% { opacity: 0; transform: translateY(35px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-consent-banner p {
  color: var(--retro-cream);
  opacity: 0.94;
  margin-bottom: 0;
  font-size: 0.99rem;
}
.cookie-consent-banner .cookie-btn {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 6px;
  padding: 7px 17px;
  background: var(--accent);
  color: var(--retro-cream);
  margin-right: 7px;
  font-weight: 600;
  box-shadow: 0 1px 7px var(--retro-shadow);
  transition: background 0.19s, color 0.15s;
}
.cookie-consent-banner .cookie-btn.settings {
  background: var(--retro-orange);
  color: var(--primary);
  margin-right: 0;
}
.cookie-consent-banner .cookie-btn:hover, .cookie-btn:focus {
  background: var(--retro-yellow);
  color: var(--retro-brown);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 30000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(51,34,13,0.29);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fade 0.35s cubic-bezier(.39,.575,.565,1.000);
}
@keyframes modal-fade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: var(--retro-cream);
  color: var(--text-dark);
  border-radius: 16px;
  box-shadow: 0 2px 28px var(--retro-shadow);
  max-width: 425px;
  padding: 28px 27px 19px 27px;
  border: 2px solid var(--retro-border);
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: modal-pop 0.21s cubic-bezier(.43,.195,.53,1.3) 1;
}
@keyframes modal-pop {
  0% { transform: scale(0.82); opacity: 0.0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 { color: var(--primary); font-size: 1.25rem; margin-bottom: 4px; }
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--retro-brown);
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: var(--retro-mint);
  border-radius: 11px;
  position: relative;
  outline: none;
  cursor: pointer;
  vertical-align: middle;
  transition: background 0.13s;
}
.cookie-toggle:checked {
  background: var(--accent);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.17s, background 0.16s;
}
.cookie-toggle:checked:before {
  transform: translateX(16px);
  background: var(--retro-yellow);
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 13px;
  margin-top: 8px;
}
.cookie-modal .btn {
  padding: 8px 18px;
  border-radius: 6px;
  border: 0;
}
.cookie-modal .btn.settings {
  background: var(--retro-orange);
  color: var(--primary);
}
.cookie-modal .btn.cancel {
  background: var(--retro-mint);
  color: var(--retro-brown);
}

@media (max-width: 520px) {
  .cookie-modal { padding: 11px 8px 8px 8px; width: 96vw; font-size: 0.96rem; }
  .cookie-modal .cookie-actions { flex-direction: column; gap: 7px; }
  .cookie-consent-banner {
    flex-direction: column;
    gap: 9px;
    align-items: flex-start;
    padding: 11px 7px 11px 10px;
    font-size: 0.97rem;
  }
}

/* ============================
         RETRO-NOSTALGIA EXTRAS
============================ */
.hero {
  padding: 54px 0 40px 0;
  border-radius: 0 0 28px 28px;
  background-repeat: repeat;
  box-shadow: 0 4px 30px -10px var(--retro-shadow);
  margin-bottom: 30px;
  text-align: left;
}
.hero h1, .hero p { max-width: 640px; }
.hero p { font-size: 1.19rem; color: var(--retro-brown); margin-bottom: 23px; opacity: 0.93; }
.hero .cta-btn { margin-top: 12px; }

.section h2 {
  font-size: 1.47rem;
  margin-bottom: 13px;
  border-bottom: 2.5px dashed var(--retro-orange);
  display: inline-block;
  padding-bottom: 5px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}

.text-section, .local-team, .service-area {
  background: var(--retro-mint);
  border-radius: 13px;
  padding: 20px 14px;
  margin-bottom: 16px;
  box-shadow: 0 1px 8px var(--retro-shadow);
}
.service-area {
  font-size: 1.04rem;
  color: var(--text-medium);
  margin-top: 9px;
  background: var(--retro-cream);
  border-left: 4.5px solid var(--accent);
}

@media (max-width: 692px) {
  .hero { padding: 30px 0 20px 0; border-radius: 0 0 18px 18px; }
  .hero h1 { font-size: 1.32rem; }
  .hero p { font-size: 1.03rem; }
}

/* ============================
     SPACING, GAPS, ALIGNMENT
============================ */
.section { margin-bottom: 60px; padding: 40px 20px; }
.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; }

/* MINIMUM MARGINS */
section, .section, .card, .testimonial-card, .feature-item, .faq-list, .benefit-list, .metrics, .solution-grid, .funding, .innovation, .resource-links, .project-highlights {
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: stretch; gap: 16px; }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 12px;
  }
  .feature-item { gap: 8px; }
  .section { margin-bottom: 32px; padding: 18px 6px; }
}

/* ============================
   SPECIFIC COMPONENTS/CLASSES
============================ */
.local-team { background: var(--retro-mint); border-left: 5px solid var(--accent); }
.metrics ul, .benefit-list ul, .solution-grid ul, .tips-list ul, .funding ul, .innovation ul, .resource-links ul, .project-highlights ul {
  padding-left: 18px;
  list-style: disc inside;
}

.text-section h3, .benefit-list h3, .metrics h3, .funding h3, .innovation h3, .resource-links h3, .project-highlights h3 {
  font-size: 1.14rem;
  color: var(--primary);
  margin-top: 8px;
  margin-bottom: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
}


/* ============================
     PRINT SUPPORT (clean)
============================ */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-consent-banner, .cookie-modal-overlay, .cta-btn, .btn { display: none !important; }
  header, footer { background: #fff !important; color: #222 !important; }
  .section, .hero, .testimonial-card { box-shadow: none !important; }
}
