/* ----------------------
   CSS RESET & BASELINE
-----------------------*/
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #23405a;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ----------------------
   TYPOGRAPHY & COLOR
-----------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #23405a;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.4rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.1rem; margin-bottom: 8px; }
p, ul, ol { margin-bottom: 16px; }
strong, b { font-weight: 700; }
a {
  color: #23405a;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #8ba88a;
}

.subheadline {
  font-size: 1.1rem;
  color: #23405a;
  opacity: 0.85;
  font-weight: 400;
}

/* Body background and color scheme for brand minimalism */
body {
  background: #fffaf3;
  color: #23405a;
}

/* ----------------------
   CONTAINER LAYOUTS
-----------------------*/
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(35, 64, 90, 0.04);
}

/* FLEX LAYOUTS & MANDATORY GAPS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(35,64,90,0.08);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 300px;
  min-width: 250px;
  transition: box-shadow 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 24px rgba(35, 64, 90, 0.12);
}

.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;
  background: #fff;
  border: 1px solid #e2e6e8;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(35, 64, 90, 0.08);
  padding: 20px;
  margin-bottom: 20px;
  color: #23405a;
  font-size: 1.1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* UTILITIES & REPETITIVE ELEMENTS */
ul, ol {
  padding-left: 24px;
}
ul.advantage-list, .faq-list {
  list-style: disc inside none;
  margin-bottom: 24px;
}
li {
  margin-bottom: 12px;
}

/* Feature grid (cards with icons and text) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 12px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(35, 64, 90, 0.06);
  padding: 24px 18px 18px 18px;
  flex: 1 1 220px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.18s;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 24px rgba(35,64,90,0.13);
}
.feature-grid img {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
}

/* Project summary (projects.html) */
.project-summaries {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.project-highlight {
  flex: 1 1 280px;
  min-width: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(35,64,90,0.07);
  padding: 28px 20px 20px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* FAQ & FAQ Items */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #f2f2f7;
  box-shadow: 0 1px 6px rgba(35, 64, 90, 0.05);
  padding: 18px 18px 12px 18px;
  font-size: 1.02em;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.googlemap-snippet {
  margin: 14px 0 0 0;
  border-radius: 12px;
  overflow: hidden;
  max-width: 420px;
  box-shadow: 0 2px 14px rgba(35, 64, 90, 0.09);
}

/* ----------------------
      HEADER & NAV
-----------------------*/
header {
  background: #fff;
  border-bottom: 1px solid #e4e6ea;
  padding: 0;
}
header .container {
  padding-top: 18px;
  padding-bottom: 18px;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
nav > a img {
  height: 40px;
  width: auto;
  margin-right: 28px;
  display: block;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
}
nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.02em;
  color: #23405a;
  opacity: 0.92;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.2s, color 0.18s;
}
nav ul li a:hover, nav ul li a:focus {
  background: #8ba88a11;
  color: #8ba88a;
}
nav .cta {
  margin-left: 32px;
}

/* ----------------------
    CTA BUTTONS
-----------------------*/
.cta {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 9px;
  font-size: 1.06em;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: background 0.2s, color 0.17s, box-shadow 0.2s, border 0.2s;
  text-align: center;
  outline: none;
  box-shadow: 0 1px 5px rgba(35,64,90,0.03);
}
.cta.primary {
  background: #23405a;
  color: #fff;
  border: none;
}
.cta.primary:hover, .cta.primary:focus {
  background: #8ba88a;
  color: #23405a;
  box-shadow: 0 3px 16px rgba(35,64,90,0.10);
}
.cta.secondary {
  background: #8ba88a;
  color: #fff;
  border: none;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #23405a;
  color: #fff;
  box-shadow: 0 3px 16px rgba(35,64,90,0.10);
}

button, input[type="button"], input[type="submit"] {
  font-family: inherit;
}

/* ----------------------
    HERO SECTION
-----------------------*/
.hero {
  display: flex;
  align-items: center;
  background: #fffaf3;
  min-height: 380px;
  padding: 60px 0 32px 0;
  margin-bottom: 0;
}
.hero .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 0;
  padding-bottom: 0;
}
.hero .content-wrapper {
  max-width: 650px;
  padding: 0 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ----------------------
      FORMS (if any)
-----------------------*/
input, textarea, select {
  font-family: inherit;
  font-size: 1em;
  padding: 10px 13px;
  border-radius: 6px;
  border: 1px solid #e2e6e8;
  background: #fff;
  margin-bottom: 14px;
  transition: border 0.2s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #8ba88a;
}
label {
  font-size: 1em;
  margin-bottom: 5px;
  display: block;
  color: #23405a;
}

/* Highlighted sections, e.g. cookie banner */
.highlight {
  background: #8ba88a18;
  border-left: 5px solid #8ba88a;
  padding: 12px 22px;
  margin: 24px 0;
  border-radius: 8px;
}

/* ----------------------
      FOOTER
-----------------------*/
footer {
  background: #fff;
  border-top: 1px solid #e4e6ea;
  color: #23405a;
  font-size: 0.97em;
  margin-top: 60px;
}
footer .container {
  padding-top: 32px;
  padding-bottom: 24px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
footer nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
footer nav ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer nav ul li a {
  color: #23405a;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.94em;
  opacity: 0.82;
  padding: 2px 0;
}
footer nav ul li a:hover {
  color: #8ba88a;
  opacity: 1;
}
footer img {
  max-width: 120px;
}
footer ul {
  list-style: none;
  padding-left: 0;
}
footer ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}

/* ----------------------
MOBILE MENU HAMBURGER
-----------------------*/
.mobile-menu-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1200;
  width: 46px;
  height: 46px;
  background: #23405a;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.7em;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(35, 64, 90, 0.11);
  transition: background 0.2s, color 0.17s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #8ba88a;
  color: #23405a;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(35, 64, 90, 0.92);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(0.73,0,0.21,1);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  margin: 24px 0 10px 24px;
  cursor: pointer;
  align-self: flex-start;
  z-index: 1600;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: #8ba88a; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 30px 0 0 34px;
  width: 80vw;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  padding: 12px 8px;
  border-radius: 7px;
  width: 100%;
  transition: background 0.13s, color 0.13s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #8ba88a;
  color: #23405a;
}
@media (max-width: 950px) {
  nav ul { display: none; }
  nav .cta { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (max-width: 950px) {
  header nav { justify-content: flex-start; gap: 16px; }
}

/* Extra: Don't scroll page when mobile menu is open (to be handled by JS, style as needed) */
body.menu-open {
  overflow: hidden;
}

/* ----------------------
   COOKIE BANNER/MODAL
-----------------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: #23405a;
  border-top: 1px solid #e2e6e8;
  box-shadow: 0 -2px 14px rgba(35,64,90,0.06);
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2000;
  gap: 20px;
  animation: cookie-slidein 0.9s cubic-bezier(0.5,0,0.3,1);
}
@keyframes cookie-slidein {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  font-size: 1em;
  max-width: 660px;
  text-align: center;
}
.cookie-banner__actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.cookie-banner__actions .btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 9px 22px;
  border-radius: 7px;
  border: none;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.13s, color 0.13s, box-shadow 0.18s;
}
.cookie-banner__actions .btn.accept {
  background: #23405a;
  color: #fff;
}
.cookie-banner__actions .btn.accept:hover { background: #8ba88a; color: #23405a; }
.cookie-banner__actions .btn.reject {
  background: #e2e6e8;
  color: #23405a;
}
.cookie-banner__actions .btn.reject:hover {
  background: #8ba88a33;
}
.cookie-banner__actions .btn.settings {
  background: #fffaf3;
  color: #23405a;
  border: 1px solid #e2e6e8;
}
.cookie-banner__actions .btn.settings:hover {
  background: #8ba88a18;
}

/* Cookie banner close btn for modal */
.cookie-modal__close {
  background: none;
  border: none;
  position: absolute;
  top: 18px; right: 18px;
  color: #23405a;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2500;
}
.cookie-modal__close:hover, .cookie-modal__close:focus { color: #8ba88a; }

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2100;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(35,64,90,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: #fff;
  color: #23405a;
  max-width: 420px;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 4px 32px rgba(35,64,90,0.16);
  padding: 34px 32px 24px 32px;
  position: relative;
  animation: cookie-modal-in 0.36s cubic-bezier(.6,0,.2,1);
}
@keyframes cookie-modal-in {
  from { transform: translateY(48px); opacity:0; } to { transform: translateY(0); opacity:1; }
}
.cookie-modal h3 {
  font-size: 1.22rem; margin-bottom: 10px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 16px 0 20px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.05em;
}
.cookie-category input[type="checkbox"] {
  width: 22px; height: 22px;
  accent-color: #8ba88a;
  margin-right: 4px;
}
.cookie-category.essential input[type="checkbox"] {
  accent-color: #d3d3d3;
}
.cookie-category.essential label {
  color: #8ba88a;
  font-weight: 600;
}
.cookie-modal-actions {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ----------------------
    MICRO-INTERACTIONS
-----------------------*/
.card, .feature-grid > div, .project-highlight, .faq-item, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover, .feature-grid > div:hover, .project-highlight:hover, .faq-item:hover {
  box-shadow: 0 6px 34px rgba(35,64,90,0.14);
  transform: translateY(-4px) scale(1.012);
}
.cta, .btn {
  transition: background 0.19s, color 0.2s, box-shadow 0.2s, border 0.17s;
}
.cta:active, .btn:active {
  transform: scale(0.97);
}

/* ----------------------
    RESPONSIVENESS
-----------------------*/
@media (max-width: 1100px) {
  .container { max-width: 920px; }
  .hero { padding: 36px 0 24px 0; }
}
@media (max-width: 800px) {
  .container { max-width: 95vw; }
  .content-wrapper { gap: 22px; }
  .feature-grid { gap: 16px; }
  .project-summaries { gap: 14px; }
  .feature-grid > div, .project-highlight, .card { min-width: 150px; padding: 18px 10px 10px 10px; }
  .faq-item { font-size: 0.97rem; }
}
@media (max-width: 650px) {
  h1 { font-size: 1.64rem; }
  h2 { font-size: 1.28rem; }
  .section { margin-bottom: 28px; padding: 18px 7vw; }
  .hero .container, .container { padding: 0 4vw; }
  .content-wrapper { gap: 14px; }
  .feature-grid, .project-summaries { flex-direction: column; }
  .feature-grid > div, .project-highlight, .card { min-width: 0; width: 100%; }
  .text-image-section, .content-grid { flex-direction: column; gap: 20px; }
  .testimonial-card { flex-direction: column; gap: 10px; }
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 500px) {
  .hero { min-height: unset; padding: 30px 0 12px 0; }
  .section { padding: 9vw 2vw; }
  .cookie-modal { padding: 18px 7vw 18px 7vw; }
  .cookie-banner { gap: 12px; padding: 14px 2vw 10px 2vw; }
  .cookie-banner__actions .btn { padding: 9px 10vw; font-size: 1em; }
  .mobile-nav { margin-left: 10vw; width: 75vw; }
}

/* ----------------------
    LIGHT OVERRIDES FOR CARDS
-----------------------*/
.card, .card-container > * {
  background: #fff;
  color: #23405a;
}
.card a, .feature-grid > div a {
  color: #23405a;
  text-decoration: underline dotted #8ba88a50;
  transition: color 0.18s;
}
.card a:hover, .feature-grid > div a:hover {
  color: #8ba88a;
}

/* ----------------------
     UTILITIES
-----------------------*/
.hide {
  display: none !important;
}

/* END */
