/* ===== 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.55;
  background: #F4F6F8;
  color: #253746;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }
img, svg { max-width: 100%; height: auto; display: block; }

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

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  background: #F4F6F8;
  color: #253746;
}
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #253746;
  line-height: 1.15;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.32rem;
  margin-bottom: 10px;
}
h4, h5 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
p, ul, ol, li {
  font-size: 1rem;
  margin-bottom: 14px;
  color: #39485c;
}
strong, b { font-weight: 600; }

/* ===== CONTAINERS & LAYOUTS ===== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px 0 rgba(37,55,70,0.06);
}

/* ===== HEADER MAIN NAVIGATION ===== */
header {
  width: 100%;
  background: #253746;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 74px;
  position: relative;
  box-shadow: 0 2px 10px rgba(37,55,70,0.06);
  z-index: 101;
}
header > a img {
  height: 42px;
  margin-right: 30px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1 1 auto;
}
.main-nav a {
  color: #F4F6F8;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-bottom 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #6CA643;
  border-bottom: 2px solid #6CA643;
  background: none;
}
.cta-primary {
  background: #6CA643;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 28px;
  padding: 10px 28px;
  margin-left: 24px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(108,166,67,0.08);
  transition: background 0.15s, box-shadow 0.15s, transform 0.12s;
}
.cta-primary:hover,
.cta-primary:focus {
  background: #558833;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 16px 0 rgba(108,166,67,0.16);
}
.cta-secondary {
  display: inline-block;
  background: transparent;
  color: #253746;
  border: 2px solid #6CA643;
  border-radius: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 10px 23px;
  margin-top: 20px;
  font-size: 1rem;
  transition: background 0.15s, color 0.15s;
}
.cta-secondary:hover,
.cta-secondary:focus {
  background: #6CA643;
  color: #fff;
}

button {
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}

/* ====== MOBILE NAVIGATION ====== */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  color: #F4F6F8;
  border: none;
  margin-left: 24px;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  color: #6CA643;
  outline: 2px solid #6CA643;
}
.mobile-menu {
  display: none; /* Shown on mobile via JS+media */
  position: fixed;
  z-index: 9990;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(37,55,70,0.97);
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.47,1.64,.41,.8);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 28px;
  padding-left: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.25rem;
  color: #6CA643;
  background: none;
  border: none;
  margin: 16px 24px 0 0;
  padding: 0;
  cursor: pointer;
  z-index: 9995;
  transition: color 0.18s;
}
.mobile-menu-close:focus {
  color: #fff;
  outline: 2px solid #F4F6F8;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 48px 0 0 32px;
  width: 80%;
}
.mobile-nav a {
  color: #F4F6F8;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 8px 0;
  transition: color 0.2s;
  border-bottom: 1px solid rgba(244,246,248,0.07);
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #6CA643;
}

/* ========== HERO SECTION ========== */
.hero {
  background: linear-gradient(90deg, #253746 60%, #6CA643 135%), #253746;
  color: #fff;
  padding: 60px 0 58px 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero .content-wrapper {
  max-width: 650px;
  gap: 18px;
}
.hero h1 {
  color: #fff;
  font-size: 2.9rem;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.hero p {
  color: #F4F6F8;
  font-size: 1.28rem;
  margin-bottom: 24px;
}
.hero .cta-primary {
  margin: 0;
  box-shadow: 0 2px 8px 0 rgba(244,246,248,0.12);
}

/* === FLEXBOX PATTERNS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px 0 rgba(41,66,94,0.04);
  padding: 24px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 6px 24px 0 rgba(41,66,94,0.15);
  transform: translateY(-4px) scale(1.02);
}
.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: #F6FAF2;
  border-radius: 14px;
  box-shadow: 0 1px 10px 0 rgba(37,55,70,0.05);
  margin-bottom: 24px;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #253746;
  margin: 0 0 4px 0;
  line-height: 1.5;
}
.testimonial-card span {
  color: #6CA643;
  font-size: 1.01rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 12px;
  padding: 24px 22px;
  box-shadow: 0 1px 8px 0 rgba(37,55,70,0.04);
  transition: box-shadow 0.16s, background 0.12s;
}
.feature-item img {
  height: 40px;
  margin-bottom: 5px;
}
.feature-item h3 {
  margin-bottom: 6px;
  font-size: 1.18rem;
}
.feature-item:hover,
.feature-item:focus-within {
  background: #F4F6F8;
  box-shadow: 0 4px 16px 0 rgba(37,55,70,0.12);
}

/* ====== FEATURES OVERVIEW GRID ====== */
.feature-grid, .service-cards, .industry-grid, .values-list, .news-feed, .event-listings, .project-listings, .project-snippets {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item, .service-card, .industry-grid > div, .values-list > div, .project-snippet, .project-highlights, .event-item {
  flex: 1 1 240px;
  min-width: 240px;
  max-width: 300px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 20px;
  padding: 26px 22px;
  gap: 13px;
  box-shadow: 0 1px 8px 0 rgba(37,55,70,0.04);
  transition: box-shadow 0.16s, background 0.12s;
}
.service-card img {
  height: 40px;
}
.service-card:hover,
.service-card:focus-within {
  background: #F4F6F8;
  box-shadow: 0 4px 16px 0 rgba(37,55,70,0.12);
}

/**** INDUSTRY LISTS ****/
.industry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 8px;
  margin-bottom: 0;
}
.industry-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.03rem;
  color: #253746;
  background: #EAEDF0;
  border-radius: 18px;
  padding: 9px 19px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.industry-list img {
  height: 26px;
}

/* === ABOUT PAGE - TEAM/VALUE CARDS === */
.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.values-list > div {
  background: #fff;
  border-radius: 14px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  box-shadow: 0 1px 8px 0 rgba(37,55,70,0.03);
}
.values-list img {
  height: 36px;
}

/**** PROJECTS LISTINGS ****/
.project-listings {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 26px;
}
.project-highlights {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(37,55,70,0.04);
  padding: 22px 20px;
  flex: 1 1 310px;
  min-width: 250px;
  transition: box-shadow 0.16s, background 0.12s;
}
.project-highlights:hover,
.project-highlights:focus-within {
  background: #F4F6F8;
  box-shadow: 0 4px 16px 0 rgba(37,55,70,0.10);
}
.project-stats {
  margin-top: 22px;
  margin-bottom: 10px;
}
.project-stats ul li {
  margin-bottom: 7px;
  font-size: 1.07rem;
  color: #5b6b7d;
}

/**** NEWS SECTION ****/
.news-feed {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.news-feed article {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 1px 8px 0 rgba(37,55,70,0.04);
  padding: 22px 20px;
  flex: 1 1 300px;
  min-width: 230px;
  transition: box-shadow 0.14s, background 0.1s;
}
.news-feed article:hover {
  background: #f7f9fc;
  box-shadow: 0 2px 14px 0 rgba(37,55,70,0.10);
}

/**** EVENTS SECTION ****/
.event-listings {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 16px;
}
.event-item {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 1px 8px 0 rgba(37,55,70,0.03);
  padding: 22px 20px;
  flex: 1 1 300px;
  min-width: 230px;
}

/* ====== LEGAL PAGE SHARED ====== */
.legal {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(37,55,70,0.06);
}
.legal h1 {
  font-size: 2.1rem;
}
.legal h2 {
  font-size: 1.4rem;
  margin-top: 26px;
  margin-bottom: 14px;
}
.legal ul li {
  margin-left: 22px;
  list-style: inside disc;
  padding-left: 7px;
}

/**** GENERIC SECTION SPACING ****/
section {
  margin-bottom: 60px;
  padding: 40px 0;
}

/**** Misc Cards, Snippets, Attributions ****/
.project-snippet {
  background: #f7f9fa;
  border-radius: 11px;
  box-shadow: 0 1px 6px 0 rgba(108,166,67,0.05);
  padding: 20px 18px;
  margin-bottom: 12px;
  flex: 1 1 220px;
  min-width: 180px;
}

/**** List Decorations ****/
ul.benefits-list li {
  margin-bottom: 11px;
  background: #EAEDF0;
  border-radius: 11px;
  padding: 8px 14px;
  font-size: 1.01rem;
  color: #253746;
  font-family: 'Roboto', Arial, sans-serif;
}

/**** Contact and About Sections ****/
.contact-details,
.opening-hours,
.map {
  background: #f6faff;
  border-radius: 12px;
  padding: 20px 16px;
  margin-bottom: 22px;
  box-shadow: 0 1px 6px 0 rgba(37,55,70,0.04);
}
.contact-details img,
.opening-hours img {
  height: 20px;
  margin-right: 7px;
  vertical-align: -4px;
}

/* ====== FOOTER ====== */
footer {
  background: #253746;
  color: #F4F6F8;
  padding: 40px 0 24px 0;
  box-shadow: 0 -2px 10px rgba(37,55,70,0.06);
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
}
.footer-nav a {
  color: #F4F6F8;
  font-size: 1.06rem;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.19s, color 0.19s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #6CA643;
  border-bottom: 2px solid #6CA643;
}
.footer-contact {
  text-align: center;
  font-size: 0.95rem;
}
.footer-contact p {
  color: #bfd2e0;
  margin: 4px 0;
}
.footer-contact img {
  height: 18px;
  vertical-align: -3px;
  margin-right: 4px;
}

/* ====== THANK YOU, CTA SECTION ====== */
.thank-you .cta-primary {
  margin-top: 23px;
}
.cta-section {
  background: #F6FAF2;
  border-radius: 14px;
  box-shadow: 0 1px 8px 0 rgba(108,166,67,0.03);
}

/* ====== COOKIE CONSENT BANNER ====== */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #253746;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 22px 16px 18px 16px;
  z-index: 2048;
  box-shadow: 0 -3px 16px 0 rgba(37,55,70,0.16);
  transition: transform 0.44s cubic-bezier(.66,.7,.66,1.4);
}
#cookie-banner[hidden] {
  transform: translateY(105%);
}
#cookie-banner p {
  color: #fff;
  font-size: 0.98rem;
  text-align: center;
}
#cookie-banner .cookie-btn-group {
  display: flex;
  gap: 13px;
  margin-top: 7px;
}
#cookie-banner button {
  border: none;
  border-radius: 23px;
  font-size: 1.01rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 8px 22px;
  margin: 0 2px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
#cookie-banner .cookie-accept {
  background: #6CA643;
  color: #fff;
}
#cookie-banner .cookie-accept:hover {
  background: #558833;
}
#cookie-banner .cookie-reject {
  background: #f4f6f8;
  color: #253746;
  border: 1.5px solid #253746;
}
#cookie-banner .cookie-reject:hover {
  background: #bfcedb;
}
#cookie-banner .cookie-settings {
  background: #fff;
  color: #6CA643;
  border: 1.5px solid #6CA643;
}
#cookie-banner .cookie-settings:hover {
  background: #e7f5d9;
}

/* ====== COOKIE SETTINGS MODAL ====== */
#cookie-modal {
  display: none;
  position: fixed;
  z-index: 4000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(37,55,70,0.69);
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
#cookie-modal.open {
  display: flex;
  animation: cookieModalFadein 0.32s cubic-bezier(.47,1.64,.41,.8);
}
@keyframes cookieModalFadein {
  from { opacity: 0; } to { opacity: 1; }
}
#cookie-modal .modal-content {
  background: #fff;
  color: #253746;
  border-radius: 18px;
  min-width: 330px;
  max-width: 98vw;
  box-shadow: 0 4px 24px rgba(37,55,70,0.32);
  padding: 34px 28px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  position: relative;
}
#cookie-modal h2 {
  color: #253746;
  font-size: 1.4rem;
  margin-bottom: 7px;
}
#cookie-modal .modal-close {
  position: absolute;
  top: 19px;
  right: 19px;
  font-size: 1.5rem;
  color: #6CA643;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 12;
}
#cookie-modal .category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #EBEFF3;
}
#cookie-modal .category:last-child {
  border-bottom: none;
}
#cookie-modal .category label {
  font-weight: 500;
  font-size: 1.02rem;
  color: #253746;
}
#cookie-modal .category input[type=checkbox] {
  accent-color: #6CA643;
  width: 18px;
  height: 18px;
}
#cookie-modal .category input[type=checkbox][disabled] {
  opacity: 0.55;
}
#cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
#cookie-modal .modal-actions button {
  font-size: 1.01rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 8px 22px;
  border-radius: 23px;
  border: none;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
#cookie-modal .modal-actions .cookie-accept {
  background: #6CA643;
  color: #fff;
}
#cookie-modal .modal-actions .cookie-reject {
  background: #f4f6f8;
  color: #253746;
  border: 1.5px solid #253746;
}
#cookie-modal .modal-actions .cookie-accept:hover {
  background: #558833;
}
#cookie-modal .modal-actions .cookie-reject:hover {
  background: #bfd2e0;
}

/**** FLEX RESPONSIVE: MOBILE FIRST ****/
@media (max-width: 1024px) {
  .container { max-width: 98vw; }
  .feature-item, .service-card, .industry-grid > div, .project-highlights, .values-list > div { min-width: 170px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 13px; }
  .footer-nav { gap: 13px; }
  .feature-grid, .service-cards, .industry-grid, .project-listings, .values-list, .news-feed, .event-listings {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  .content-wrapper, .hero .content-wrapper {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  header {
    padding: 0 13px;
    height: 64px;
  }
  .main-nav {
    display: none;
  }
  .main-nav.hide { display: none !important; }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .cta-primary { margin-left: 12px; }
  .container { padding: 0 10px; }

  .feature-grid, .service-cards, .industry-grid, .values-list, .news-feed, .event-listings, .project-listings {
    flex-direction: column;
    gap: 16px;
  }
  .feature-item, .service-card, .industry-grid > div, .values-list > div, .event-item, .project-highlights {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 9px;
  }
}
@media (max-width: 640px) {
  html { font-size: 90%; }
  h1 { font-size: 1.73rem; }
  h2 { font-size: 1.37rem; }
  .section, .legal {
    padding: 26px 7px;
    border-radius: 8px;
  }
  .footer-nav, .footer-contact {
    font-size: 0.93rem;
  }
  .hero {
    padding: 35px 0;
  }
}
@media (max-width: 480px) {
  header { height: 52px; padding: 0 3px; }
  .cta-primary, .cta-secondary {
    font-size: 0.98rem;
    padding: 8px 14px;
  }
  .footer-nav, .footer-contact { font-size: 0.85rem; }
}
@media (max-width: 640px) {
  .text-image-section { flex-direction: column; gap: 18px; }
}

/* === TRANSITIONS & MICRO-INTERACTIONS === */
a, button, .cta-primary, .cta-secondary, .card, .feature-item,
.service-card, .footer-nav a, .main-nav a, .mobile-nav a, .project-highlights {
  transition: all 0.17s cubic-bezier(.44,1.1,.47,1);
}
/**** CARD HOVER SHADOWS ****/
.card:focus-within, .feature-item:focus-within, .service-card:focus-within, .project-highlights:focus-within {
  outline: 2.5px solid #6CA643;
  outline-offset: 1.5px;
}

/* === FORM ELEMENTS (if any) === */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  padding: 11px;
  border: 1.5px solid #bfcedb;
  border-radius: 6px;
  font-size: 1rem;
  background: #f7f9fb;
  color: #253746;
  margin-bottom: 14px;
  width: 100%;
  transition: border 0.14s, box-shadow 0.13s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #6CA643;
  box-shadow: 0 2px 8px 0 rgba(108,166,67,0.08);
}

/* ====== GENERAL UTILITIES ====== */
.mt-2 { margin-top: 12px; }
.mb-2 { margin-bottom: 12px; }
.text-center { text-align: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }

/* ========== END ========== */
