/* ================================
   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, menu, 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, 
main, 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;
  font-size: 16px;
  scroll-behavior: smooth;
  background: #F2F3F7;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F2F3F7;
  color: #25313C;
  line-height: 1.5;
  letter-spacing: 0.01em;
  min-height: 100vh;
  min-width: 320px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #779961;
  text-decoration: none;
  transition: color .2s;
}

a:hover, a:focus {
  color: #25313C;
  text-decoration: underline;
}

ul, ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

li {
  margin-bottom: 8px;
}

strong {
  font-weight: 700;
}

/* ================================
   CUSTOM FONTS (Webfonts Fallbacks)
================================== */
@import url('https://fonts.googleapis.com/css?family=Nunito+Sans:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

:root {
  --brand-primary: #25313C;
  --brand-secondary: #779961;
  --brand-accent: #F2F3F7;
  --neutral-100: #fff;
  --neutral-800: #18212A;
  --text-primary: #25313C;
  --text-secondary: #526174;
  --shadow-main: 0 4px 24px rgba(37,49,60, 0.08);
  --radius-card: 16px;
  --radius-btn: 8px;
  --transition: 0.22s cubic-bezier(.7,.1,.25,1.0);
  --border-hr: 1px solid #E0E4EA;
}

/* ================================
   TYPOGRAPHY
================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Nunito Sans', 'Roboto', Arial, sans-serif;
  font-weight: 900;
  color: var(--brand-primary);
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  line-height: 1.15;
  text-rendering: geometricPrecision;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  font-weight: 700;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 700;
}
p {
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-size: 1.02rem;
}

/* ================================
   GEOMETRIC/STRUCTURED CONTAINERS
================================== */
.container {
  width: 100%;
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--neutral-100);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-main);
}

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

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 12px;
}

.feature-grid, .project-highlight-list, .faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.feature-grid > div, .project-highlight-list > .text-section, .faq-list > .text-section {
  flex: 1 1 240px;
  min-width: 240px;
  background: var(--brand-accent);
  border-radius: var(--radius-card);
  padding: 28px 20px 20px 20px;
  box-shadow: var(--shadow-main);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  position: relative;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--neutral-100);
  box-shadow: var(--shadow-main);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.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;
}

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

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--brand-accent);
  box-shadow: var(--shadow-main);
  border-radius: var(--radius-card);
  padding: 28px 28px 20px 28px;
  margin-bottom: 20px;
  position: relative;
  border-left: 6px solid var(--brand-secondary);
}
.testimonial-card p {
  color: #222a36;
  font-size: 1.08rem;
  margin-bottom: 8px;
  font-style: italic;
}
.testimonial-card span {
  color: var(--brand-primary);
  font-size: 0.99rem;
  font-weight: 500;
  align-self: flex-end;
}
.testimonial-card .star-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 6px;
}

.contact-short-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--brand-primary);
  margin: 10px 0 0 0;
}
.contact-short-info img {
  margin-right: 6px;
  width: 22px;
}

.service-list li {
  margin-bottom: 24px;
  background: var(--brand-accent);
  border-radius: var(--radius-card);
  padding: 20px 18px 18px 18px;
  box-shadow: var(--shadow-main);
  list-style-type: none;
}

/* ================================
   HEADER, NAV & MOBILE MENU
================================== */
header {
  width: 100%;
  background: var(--brand-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 18px rgba(37, 49, 60, 0.06);
}

header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 0;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}

header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-family: 'Nunito Sans', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  padding: 8px 10px;
  border-radius: 4px;
  transition: color 0.15s, background 0.18s;
}
header nav a.cta-btn {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  margin-left: 8px;
  padding: 8px 22px;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  box-shadow: 0 1px 4px rgba(119,153,97,0.14);
  transition: background .17s, color .17s, box-shadow .2s;
}
header nav a.cta-btn:hover, header nav a.cta-btn:focus {
  background: #89A575;
  color: #fff;
  box-shadow: 0 3px 9px rgba(119,153,97,0.16);
}
header nav a:hover, header nav a:active, header nav a:focus {
  color: var(--brand-secondary);
  background: #223039;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  color: var(--brand-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 10px;
  margin-left: 16px;
  border-radius: 6px;
  transition: background .19s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: rgba(119,153,97,0.08);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #25313C;
  z-index: 1900;
  transform: translateX(-100%);
  transition: transform 0.37s cubic-bezier(.7,.1,.25,1.0);
  box-shadow: 2px 0 18px 0 rgba(37,49,60,0.08);
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  margin: 18px 24px 12px 0;
  transition: color .15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--brand-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  padding: 36px 34px 0 34px;
}
.mobile-nav a {
  font-family: 'Nunito Sans', 'Roboto', Arial, sans-serif;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  padding: 8px 0;
  border-radius: 6px;
  transition: background .18s, color .14s;
}
.mobile-nav a:active,
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: var(--brand-secondary);
  background: rgba(119,153,97,0.05);
}

@media (max-width: 1020px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}
@media (min-width: 1021px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ================================
   BUTTONS & LINKS
================================== */
.cta-btn {
  display: inline-flex;
  align-items: center;
  background: var(--brand-secondary);
  color: var(--brand-primary);
  font-family: 'Nunito Sans', 'Roboto', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  text-transform: none;
  padding: 13px 30px;
  border-radius: var(--radius-btn);
  border: none;
  box-shadow: 0 1px 7px rgba(119,153,97,0.16);
  cursor: pointer;
  transition: background .17s, color .17s, box-shadow .22s, transform .12s;
  margin-top: 6px;
  gap: 8px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #293C24;
  color: var(--neutral-100);
  transform: translateY(-2px) scale(1.021);
  box-shadow: 0 6px 22px rgba(119,153,97,0.19);
  text-decoration: none;
}

button {
  font: inherit;
  padding: 10px 20px;
  background: var(--brand-secondary);
  color: var(--brand-primary);
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: background .15s, color .16s, box-shadow .15s;
}
button:focus,
button:hover {
  background: #293C24;
  color: var(--neutral-100);
  outline: none;
}

/* ================================
   FOOTER
================================== */
footer {
  background: var(--brand-primary);
  padding: 40px 0 24px 0;
  color: #fff;
  margin-top: 40px;
}
footer .container {
  align-items: flex-end;
}
footer .content-wrapper {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
footer nav a {
  color: #FFF;
  font-family: 'Nunito Sans', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  transition: color .15s;
  margin: 0 4px;
}
footer nav a:hover {
  color: var(--brand-secondary);
}
footer .contact-short-info span {
  color: #B1C2D4;
  font-size: 0.99rem;
}
footer .logo-mark img {
  width: 56px;
}

/* ================================
   COOKIE CONSENT BANNER
================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary);
  color: #FFF;
  padding: 20px 16px;
  z-index: 3000;
  box-shadow: 0 -2px 18px rgba(37,49,60,0.08);
  gap: 20px;
  font-size: 1rem;
  transition: transform .24s cubic-bezier(.7,.1,.25,1) 0.03s, opacity .22s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-left: 34px;
}
.cookie-btn {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  border: none;
  padding: 9px 22px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-family: 'Nunito Sans', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  box-shadow: 0 1px 3px rgba(119,153,97,0.05);
  margin-left: 0;
  transition: background .18s, color .18s, box-shadow .14s;
}
.cookie-btn.reject {
  background: #A45A54;
  color: #fff;
}
.cookie-btn.settings {
  background: var(--brand-accent);
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-secondary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--neutral-800);
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #e1eede;
  color: var(--brand-secondary);
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(37,49,60, 0.50);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3001;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal__window {
  background: var(--neutral-100);
  border-radius: var(--radius-card);
  box-shadow: 0 6px 40px rgba(37,49,60,0.19);
  max-width: 420px;
  width: 94vw;
  padding: 36px 24px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal__close {
  position: absolute;
  top: 10px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 1.9rem;
  color: var(--brand-primary);
  cursor: pointer;
  line-height: 1;
}
.cookie-modal__title {
  font-family: 'Nunito Sans', 'Roboto', Arial, sans-serif;
  font-size: 1.23rem;
  font-weight: 900;
  margin-bottom: 6px;
  color: var(--brand-primary);
}
.cookie-modal__cat {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cookie-modal__cat label {
  font-size: 1rem;
  color: var(--brand-primary);
}
.cookie-modal__cat.switch input {
  accent-color: var(--brand-secondary);
  width: 38px;
  height: 22px;
}
.cookie-modal__cat .desc {
  font-size: 0.97rem;
  color: #526174;
  font-weight: 400;
}
.cookie-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

/* ================================
   RESPONSIVE DESIGN (MOBILE FIRST)
================================== */
@media (max-width: 990px) {
  .container {
    max-width: 100vw;
    padding-left: 10px;
    padding-right: 10px;
  }
  .section {
    padding: 24px 10px;
  }
  .feature-grid, .project-highlight-list, .faq-list {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  .container, .section, .content-grid, .contact-short-info {
    flex-direction: column !important;
    gap: 18px !important;
  }
  .feature-grid, .project-highlight-list, .faq-list {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div, .project-highlight-list > .text-section, .faq-list > .text-section {
    min-width: unset;
  }
  .content-wrapper {
    gap: 18px;
  }
  .testimonial-card {
    padding: 20px 14px 14px 14px;
  }
  .card {
    padding: 12px;
  }
  .service-list li {
    padding: 12px 8px 10px 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  header .container, footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 19px;
  }
  footer .content-wrapper {
    gap: 18px;
  }
  .mobile-menu {
    font-size: 1.09rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 10px 15px 10px;
    font-size: 0.97rem;
  }
  .cookie-banner__buttons {
    gap: 7px;
    margin-left: 0;
  }
  .cookie-modal__window {
    padding: 20px 7px 19px 7px;
    max-width: 98vw;
    min-width: 0;
  }
}

/* ================================
   MISCELLANEOUS/UTILITY & MICROINTERACTIONS
================================== */
hr {
  border: var(--border-hr);
  margin: 38px 0 28px 0;
}

/* subtle geometric accent shapes */
.section:before {
  content: '';
  position: absolute;
  top: -20px; left: -20px;
  width: 54px; height: 54px;
  background: var(--brand-accent);
  border-radius: 16% 37% 41% 30%;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
  display: block;
}
.section {
  position: relative;
  z-index: 1;
  overflow: visible;
}

/* focus visible for accessibility */
:focus-visible {
  outline: 2.5px solid var(--brand-secondary);
  outline-offset: 1.5px;
}

/* Micro hover/active for cards */
.card,
.feature-grid > div,
.service-list li,
.testimonial-card {
  transition: box-shadow .25s, transform .15s;
}
.card:hover, .card:focus,
.feature-grid > div:hover, .feature-grid > div:focus,
.service-list li:hover, .service-list li:focus,
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 7px 30px rgba(37,49,60,0.14);
  transform: translateY(-4px) scale(1.014);
}

/* Star rating icon color fix for testimonials */
.star-rating img[alt*="Stern"] {
  width: 22px;
  height: 22px;
  filter: grayscale(0%);
}

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

/* ================================
   PRINT STYLING
================================== */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal, footer, .cta-btn, button { display: none !important; }
  main, .container, section, .content-wrapper { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  * { box-shadow: none !important; text-shadow: none !important; }
}
