/* ========= 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, 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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #20334D;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

/* ====== BRAND TYPOGRAPHY ====== */
h1,
h2,
h3,
h4 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #20334D;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1rem; }
}

p, li, blockquote, dd, dt {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #20334D;
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
  color: #20334D;
}

/* Subtle accent for secondary marks */
blockquote {
  font-size: 1.1rem;
  color: #20334D;
  border-left: 3px solid #7CA77D;
  margin-left: 0;
  margin-right: 0;
  padding-left: 20px;
  font-style: italic;
  background: #F8F4EF;
}

/* ======= LAYOUT CONTAINERS ======= */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
@media (max-width: 768px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 rgba(32, 51, 77, 0.04);
}
@media (max-width: 768px) {
  .section {
    padding: 24px 4px;
    margin-bottom: 36px;
    border-radius: 10px;
  }
}

/* ===== FLEXBOX PATTERNS ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px 0 rgba(32, 51, 77, 0.06);
  padding: 24px;
  flex: 1 1 240px;
  min-width: 240px;
  transition: box-shadow .2s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(32, 51, 77, 0.11);
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F8F4EF;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(32,51,77,0.09);
  margin-bottom: 20px;
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 600px;
  color: #20334D;
}
.testimonial-card blockquote {
  border: none;
  padding-left: 0;
  background: transparent;
  color: #20334D;
}
.testimonial-card p {
  margin-bottom: 0;
  color: #20334D;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* ======= ADDITIONAL LAYOUTS PER PAGE ======= */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.team-member {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(32,51,77,0.07);
  padding: 24px 18px;
  flex: 1 1 240px;
  min-width: 220px;
  margin-bottom: 20px;
  transition: box-shadow .2s;
}
.team-member:hover {
  box-shadow: 0 8px 28px 0 rgba(32, 51, 77, 0.12);
}

.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.service-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(32,51,77,0.06);
  padding: 22px 16px;
  flex: 1 1 220px;
  min-width: 210px;
  text-align: left;
  transition: box-shadow .2s;
}
.service-item img {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
}
.service-item:hover {
  box-shadow: 0 8px 30px 0 rgba(32, 51, 77, 0.12);
}

.case-studies {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.project-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(32,51,77,0.07);
  padding: 22px 18px;
  margin-bottom: 20px;
  flex: 1 1 320px;
  min-width: 240px;
  transition: box-shadow .2s;
}
.project-card:hover {
  box-shadow: 0 8px 28px 0 rgba(32, 51, 77, 0.12);
}

.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 18px;
}
.blog-teaser {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(32,51,77,0.06);
  padding: 20px 12px;
  flex: 1 1 200px;
  min-width: 180px;
  transition: box-shadow .2s;
  margin-bottom: 20px;
}
.blog-teaser:hover {
  box-shadow: 0 8px 18px 0 rgba(32, 51, 77, 0.1);
}

.next-steps {
  margin-top: 18px;
  margin-bottom: 20px;
}
.next-steps ul {
  padding-left: 20px;
  list-style: disc;
  color: #20334D;
}

@media (max-width: 900px) {
  .team-grid,
  .card-container,
  .case-studies,
  .service-grid,
  .blog-list,
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/* ===== Header ===== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 1px 12px 0 rgba(32, 51, 77, 0.07);
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 32px;
}
header img {
  height: 48px;
  margin-right: 30px;
}
nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #20334D;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 8px 4px 8px 4px;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
header nav a:hover, header nav a:focus {
  background: #F8F4EF;
  color: #7CA77D;
}

.cta-btn {
  background: #7CA77D;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  outline: none;
  padding: 13px 32px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(32, 51, 77, 0.07);
  transition: background .17s, color .2s, box-shadow .2s;
  margin-left: 18px;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: #20334D;
  color: #fff;
  box-shadow: 0 6px 16px rgba(32, 51, 77, 0.12);
}

@media (max-width: 1000px) {
  header .container {
    gap: 12px;
    flex-wrap: wrap;
  }
  nav { gap: 10px; }
  .cta-btn { margin-left: 8px; }
}

/* ======= FOOTER ======= */
footer {
  background: #F8F4EF;
  width: 100%;
  padding: 40px 0 24px 0;
  border-top: 1px solid #ebe6df;
  color: #20334D;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
footer nav a {
  color: #20334D;
  font-size: .98rem;
  margin-bottom: 2px;
  border-radius: 4px;
  padding: 3px 0 3px 0;
  transition: color .2s, background .2s;
}
footer nav a:hover,
footer nav a:focus {
  color: #7CA77D;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-contact p {
  color: #20334D;
  font-size: .98rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
footer img[src*='logo-mark'] {
  height: 38px;
  margin-bottom: 8px;
}
footer p {
  margin-bottom: 0;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 16px;
  z-index: 2010;
  background: #fff;
  color: #20334D;
  border-radius: 8px;
  padding: 13px 17px 13px 14px;
  font-size: 2rem;
  border: 1px solid #EEE;
  box-shadow: 0 2px 8px rgba(32,51,77,0.09);
  transition: background .17s, color .19s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #F8F4EF;
  outline: none;
  color: #7CA77D;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: #fff;
  box-shadow: 0 6px 30px 0 rgba(32,51,77,0.18);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.76,.16,0,1);
  padding: 35px 24px 18px 24px;
  min-width: 240px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.3rem;
  color: #20334D;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 7px 13px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background .13s, color .18s;
  z-index: 4000;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #F8F4EF;
  color: #7CA77D;
  outline: none;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  align-items: flex-start;
  margin-top: 16px;
}
.mobile-nav a {
  color: #20334D;
  padding: 12px 0;
  font-size: 1.08rem;
  font-family: 'Montserrat', Arial, sans-serif;
  width: 100%;
  border-radius: 6px;
  transition: background .19s, color .18s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #F8F4EF;
  color: #7CA77D;
}

@media (max-width: 900px) {
  header nav,
  header .cta-btn { display: none; }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ========== COOKIE CONSENT BANNER ========= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3050;
  background: #20334D;
  color: #fff;
  width: 100%;
  box-shadow: 0 -3px 28px 0 rgba(32,51,77,.11);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 10px 20px 10px;
  flex-wrap: wrap;
  gap: 18px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner-text {
  color: #fff;
  margin-bottom: 0;
  margin-right: 10px;
  font-size: 1.05rem;
}
.cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.cookie-btn,
.cookie-btn:visited {
  background: #7CA77D;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  padding: 10px 22px;
  transition: background .17s, color .16s, box-shadow .13s;
  box-shadow: 0 2px 7px 0 rgba(32,51,77,0.07);
  margin-right: 2px;
  cursor: pointer;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #20334D;
  color: #fff;
  outline: none;
}
.cookie-btn.settings {
  background: #F8F4EF;
  color: #20334D;
  border: 1px solid #7CA77D;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #7CA77D;
  color: #fff;
}

/* == Cookie Modal == */
.cookie-modal-overlay {
  position: fixed;
  left:0; right:0; top:0; bottom:0;
  width: 100vw; height: 100vh;
  background: rgba(32,51,77,0.19);
  z-index: 3200;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background .23s;
}
.cookie-modal-overlay.visible {
  display: flex;
}
.cookie-modal {
  background: #fff;
  color: #20334D;
  border-radius: 18px;
  box-shadow: 0 7px 36px rgba(32,51,77,0.18);
  padding: 36px 26px 26px 26px;
  min-width: 290px;
  max-width: 97vw;
  width: 410px;
  font-family: 'Roboto', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadein .32s;
  position: relative;
}
@keyframes fadein {
  from { transform: translateY(48px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  color: #20334D;
  margin-bottom: 6px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 10px 0;
}
.cookie-modal .category-label {
  font-weight: 500;
  color: #20334D;
}
.cookie-modal .cookie-switch {
  margin-left: auto;
}
.switch {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
}
.switch input { display: none; }
.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #EEE;
  border-radius: 28px;
  transition: background .19s;
}
.switch-slider:before {
  position: absolute;
  content: '';
  height: 20px; width: 20px;
  left: 2px; bottom: 2px;
  background: #7CA77D;
  border-radius: 50%;
  transition: transform .2s;
}
.switch input:checked + .switch-slider {
  background: #C4ECD1;
}
.switch input:checked + .switch-slider:before {
  transform: translateX(20px);
}
.switch input:disabled + .switch-slider {
  background: #AAC6AA;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 15px;
  background: #F8F4EF;
  color: #20334D;
  font-size: 1.3rem;
  border: none;
  border-radius: 6px;
  padding: 3px 11px;
  transition: background .16s;
  cursor: pointer;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: #7CA77D;
  color: #fff;
}

@media (max-width:600px) {
  .cookie-modal {
    width: 99vw;
    padding: 22px 7vw 16px 7vw;
    font-size: .92rem;
  }
}

/* === FORM & INTERACTIVE === */
input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 14px;
  border: 1px solid #D2D8DF;
  border-radius: 5px;
  background: #fcfcfc;
  color: #20334D;
  margin-bottom: 15px;
  outline: none;
  transition: border .15s, box-shadow .15s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #7CA77D;
  box-shadow: 0 2px 8px rgba(124,167,125,.13);
}
label {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 6px;
  display: inline-block;
}

/* ======= MISCELLANEOUS ELEMENTS ======= */
li img, p img {
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
  height: 30px;
  width: 30px;
}
dt {
  font-weight: 700;
  margin-top: 10px;
}
dd {
  margin-bottom: 8px;
  color: #20334D;
}
section ul {
  padding-left: 20px;
  margin-bottom: 0;
  list-style: disc;
  color: #20334D;
}
section ol {
  padding-left: 22px;
  margin-bottom: 0;
  list-style: decimal;
  color: #20334D;
}

/* ===== SPACING AND FLEX RULES OVERRIDES ===== */
.card:not(:last-child),
.team-member:not(:last-child),
.service-item:not(:last-child),
.project-card:not(:last-child),
.blog-teaser:not(:last-child),
.testimonial-card:not(:last-child),
.feature-item:not(:last-child) {
  margin-right: 0;
  margin-bottom: 20px;
}

.section:not(:last-child) {
  margin-bottom: 60px;
}

/* ===== TRANSITIONS, EFFECTS, AND DETAILS ===== */
.card,
.team-member,
.service-item,
.project-card,
.blog-teaser,
.cta-btn,
li,
.testimonial-card {
  transition: box-shadow .16s, background .13s, color .14s;
}

.cta-btn:active {
  background: #527A50;
}

/* Subtle focus ring for accessibility */
.cta-btn:focus, .cookie-btn:focus, .cookie-btn.settings:focus, .mobile-menu-toggle:focus { 
  outline: 2px solid #7CA77D; 
  outline-offset: 2px; 
}

/* ====== RESPONSIVE ELEMENTS ====== */
@media (max-width: 768px) {
  .card,
  .team-member,
  .service-item,
  .project-card,
  .testimonial-card,
  .blog-teaser {
    min-width: unset;
    padding: 17px 11px;
    font-size: .98rem;
  }
  .section { padding: 24px 2vw; }
  .footer-contact, footer nav { font-size: .97rem; }
}

/* Hide extra spacing for last child elements in cards/lists */
.card:last-child, .team-member:last-child, .service-item:last-child, .project-card:last-child, .blog-teaser:last-child, .testimonial-card:last-child, .feature-item:last-child {
  margin-bottom: 0;
}

/* ========== PRINT OVERRIDES ========== */
@media print {
  * { color: #000 !important; background: #fff !important; box-shadow: none !important; }
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  .section, .container { box-shadow: none !important; background: none !important; }
}

/* =================== FONT IMPORT (for reference, to be included in HTML) =================== */
/* @import url('https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap'); */
/* @import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap'); */
