/* --- 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;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  background: #fff;
  color: #1b1b1e;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #F5F5F0;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #29313A;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4,.2,.2,1);
}
a:hover, a:focus {
  color: #1b1b1e;
  text-decoration: underline;
}
button, .btn-primary, .btn-secondary {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  transition: all 0.2s cubic-bezier(.4,.2,.2,1);
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 1.5em;
}
ul li, ol li {
  margin-bottom: .5em;
  padding-left: .1em;
  list-style-type: disc;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #17181a;
  margin-bottom: 0.7em;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.3rem;
  line-height: 1.12;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.6rem;
  line-height: 1.15;
  margin-bottom: 15px;
}
h3 {
  font-size: 1.2rem;
  line-height: 1.15;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.08rem;
  margin-bottom: 7px;
}
p, blockquote {
  margin-bottom: 18px;
  color: #29313A;
}
blockquote {
  border-left: 3px solid #8696A8;
  padding: 0.6em 1em;
  font-style: italic;
  margin-bottom: 12px;
  background: #fff;
  color: #212127;
}
strong {
  color: #000;
  font-weight: bold;
}

/* --- TYPOGRAPHY SCALE --- */
@media (min-width: 640px) {
  h1 {font-size: 2.8rem;}
  h2 {font-size: 2rem;}
  h3 {font-size: 1.32rem;}
  h4 {font-size: 1.08rem;}
}
@media (min-width: 1100px) {
  h1 {font-size: 3.2rem;}
  h2 {font-size: 2.4rem;}
  h3 {font-size: 1.5rem;}
  p {font-size: 18px;}
}

/* --- LAYOUT CONTAINERS --- */
.container {
  max-width: 1120px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 0px;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 2px 18px rgba(32,32,32,0.055);
  border-bottom: 1px solid #E5E5E3;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  padding-bottom: 15px;
  gap: 0;
}
header img {
  height: 46px;
  width: auto;
}
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
header nav a {
  color: #29313A;
  font-family: 'Montserrat';
  font-weight: 500;
  margin-right: 0;
  font-size: 1rem;
  letter-spacing:0px;
  position: relative;
}
header nav a:after {
  content: "";
  display: block;
  width: 0%;
  height: 2px;
  background: #29313A;
  transition: width .22s;
  position: absolute;
  left: 0;
  bottom: -2px;
}
header nav a:hover:after,
header nav a:focus:after {
  width: 100%;
}
.btn-primary {
  background: #29313A;
  color: #fff;
  border-radius: 32px;
  padding: 10px 32px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 2px 16px rgba(41,49,58,0.06);
  margin-left: 16px;
  transition: background .18s;
  border: none;
  outline: none;
  position: relative;
}
.btn-primary:hover, .btn-primary:focus {
  background: #17181a;
  color: #fff;
  box-shadow: 0 6px 22px rgba(41,49,58,0.09);
  transform: translateY(-2px) scale(1.035);
}
.btn-secondary {
  background: #fff;
  color: #29313A;
  border-radius: 28px;
  padding: 10px 32px;
  font-size: 1rem;
  font-weight: 600;
  border: 1.5px solid #29313A;
  margin-left: 0px;
  transition: background .18s, color .18s;
  position: relative;
  text-align: center;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #29313A;
  color: #fff;
  border-color: #29313A;
  transform: translateY(-1px) scale(1.03);
}

/* Hamburger menu */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  font-size: 2.2rem;
  background: #29313A;
  color: #fff;
  border-radius: 50%;
  border: none;
  transition: background .17s;
  z-index: 1002;
  margin-left: 12px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #17181a;
}

/* Hide burger on desktop */
@media (min-width: 1100px) {
  .mobile-menu-toggle {
    display: none;
  }
}
nav {
  display: flex;
}

/* Hide nav on mobile, show burger */
@media (max-width: 1099px) {
  header nav {
    display: none;
  }
}
@media (min-width: 1100px) {
  .btn-primary {
    margin-left: 36px;
  }
}

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu {
  position: fixed;
  z-index: 1200;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(29,31,34,0.97);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(100%);
  transition: transform .33s cubic-bezier(.61,.01,.57,1.06);
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0%);
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.4rem;
  color: #fff;
  background: none;
  border: none;
  margin: 22px 0 10px 22px;
  align-self: flex-start;
  cursor: pointer;
  transition: color .18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #8696A8;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin: 30px 0 0 32px;
  gap: 24px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.32rem;
  font-weight: 600;
  padding: 12px 8px 12px 0;
  border-radius: 0;
  transition: color 0.18s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #8696A8;
  background: none;
}
@media (min-width: 1100px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- MAIN & SECTIONS LAYOUT --- */
main {
  min-height: 56vh;
  background: #F5F5F0;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (min-width: 850px) {
  section {
    padding: 68px 0px 68px 0px;
  }
}

.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: 20px;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 16px;
  box-shadow: 0 4px 28px rgba(41,49,58,0.07);
  background: #fff;
  padding: 32px 28px;
  min-width: 220px;
  transition: box-shadow .16s, transform .14s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 36px rgba(41,49,58,0.13);
  transform: translateY(-3px) scale(1.01);
}
@media (max-width: 600px) {
  .card {
    padding: 18px 10px;
  }
  .card-container {
    gap: 12px;
  }
}

/* --- SPECIAL CARDS / COMPONENTS --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: stretch;
  justify-content: flex-start;
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 18px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  color: #29313A;
  border-radius: 14px;
  box-shadow: 0 2px 18px rgba(41,49,58,0.04);
  padding: 22px 24px;
  min-width: 210px;
  max-width: 320px;
  flex: 1 1 220px;
  transition: box-shadow .16s, transform .14s;
}
.feature-item img {
  height: 36px;
  width: 36px;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 6px 26px rgba(41,49,58,0.12);
  transform: translateY(-2px) scale(1.02);
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.service-item {
  flex: 1 1 240px;
  border-radius: 12px;
  background: #fff;
  padding: 20px 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 14px rgba(41,49,58,0.05);
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: box-shadow .17s;
}
.service-item:hover, .service-item:focus-within {
  box-shadow: 0 6px 18px rgba(41,49,58,0.11);
}
@media (max-width: 900px) {
  .service-list {
    gap: 14px;
  }
  .service-item {
    padding: 13px 9px;
  }
}

.project-summary, .article-summary, .team-bio {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(41,49,58,0.045);
  padding: 20px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.project-summary ul, .article-summary ul, .team-bio ul {
  margin-bottom: 0;
}

.categories-overview {
  margin: 24px 0 0 0;
  padding: 14px 24px;
  background: #f8f8f6;
  border-radius: 12px;
  color: #434347;
  font-size: 1.05rem;
}
.categories-overview ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 7px 0 0 0;
  list-style: none;
}
.categories-overview li {
  padding: 3px 7px;
  border-radius: 5px;
  background: #eaeae7;
  font-size: 0.99rem;
}

.map-placeholder {
  background: #E5E5E3;
  border-radius: 12px;
  padding: 18px 12px;
  color: #212127;
  margin-top: 18px;
  font-style: italic;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 32px;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 22px 0 rgba(29,31,35,0.10);
  min-width: 230px;
  max-width: 570px;
  border-left: 4px solid #29313A;
  color: #1b1b1e;
}
.testimonial-card blockquote {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #212127;
}
.testimonial-card span {
  font-size: 1rem;
  color: #8696A8;
  margin-top: 0;
  align-self: flex-end;
}
.testimonial-summary {
  margin-top: 30px;
  font-size: 1.22rem;
  color: #29313A;
  font-weight: bold;
}
@media (max-width: 600px) {
  .testimonial-card {
    padding: 16px 9px;
  }
}

/* --- FOOTER --- */
footer {
  background: #29313A;
  color: #fff;
  padding: 46px 0 19px 0;
  box-shadow: 0 -1px 18px rgba(41,49,58,0.06);
}
footer .container {
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.footer-logo {
  margin-bottom: 18px;
}
.footer-logo img {
  width: 56px;
  height: auto;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
footer nav a {
  color: #fff;
  opacity: 0.88;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.01rem;
  transition: opacity .15s, color .15s;
}
footer nav a:hover, footer nav a:focus {
  color: #8696A8;
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #E5E5E3;
  font-size: .98rem;
  margin: 20px 0;
}
.footer-contact img {
  height: 16px;
  width: 16px;
  vertical-align: middle;
  margin-right: 6px;
  opacity: 0.72;
}
footer small {
  color: #C9CCD3;
  font-size: .96rem;
  margin-top: 14px;
  display: block;
}
@media (max-width: 700px) {
  footer .container {
    gap: 14px;
  }
  .footer-contact {
    gap: 4px;
    font-size: .94rem;
  }
  .footer-logo img {
    width: 44px;
  }
}

/* --- SPACING AND ELEMENT MARGINS --- */
section, .card, .content-wrapper, .feature-item, .service-item, .testimonial-card, .project-summary, .team-bio, .article-summary {
  margin-bottom: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* --- MODALS & BANNERS (COOKIE CONSENT) --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #212127;
  color: #fff;
  padding: 26px 14px 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2000;
  box-shadow: 0 -2px 24px rgba(29,31,34,0.15);
  font-size: 1rem;
  gap: 14px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .33s cubic-bezier(.55,.26,.75,1), transform .33s cubic-bezier(.82,.33,.44,1);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
.cookie-banner-buttons {
  margin-top: 4px;
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.btn-cookie {
  background: #fff;
  color: #29313A;
  border-radius: 30px;
  padding: 10px 32px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  border: 1.5px solid #29313A;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(98,98,98,0.06);
  margin-left: 0px;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-cookie.accept {
  background: #29313A;
  color: #fff;
  border-color: #29313A;
}
.btn-cookie.accept:hover, .btn-cookie.accept:focus {
  background: #17181a;
  color: #fff;
}
.btn-cookie.reject {
  background: #fff;
  color: #29313A;
  border-color: #29313A;
}
.btn-cookie.reject:hover, .btn-cookie.reject:focus {
  background: #29313A;
  color: #fff;
}
.btn-cookie.settings {
  background: #fff;
  color: #8696A8;
  border-color: #8696A8;
}
.btn-cookie.settings:hover {
  background: #8696A8;
  color: #fff;
  border-color: #8696A8;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  z-index: 2200;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(41, 49, 58, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s cubic-bezier(.55,.09,.83,1);
}
.cookie-modal.active {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal-content {
  background: #fff;
  color: #17181a;
  border-radius: 18px;
  padding: 34px 34px 28px 34px;
  max-width: 420px;
  width: 95%;
  box-shadow: 0 10px 42px rgba(29, 31, 35, 0.20);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  transition: transform .3s cubic-bezier(.79,.23,.44,1);
  transform: translateY(35px) scale(.97);
}
.cookie-modal.active .cookie-modal-content {
  transform: translateY(0) scale(1);
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 22px;
  background: none;
  border: none;
  color: #29313A;
  font-size: 1.7rem;
  cursor: pointer;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category-label {
  font-weight: 500;
  color: #1b1b1e;
}
.cookie-category-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 12px;
  background: #E5E5E3;
  border: none;
  transition: background 0.16s;
  position: relative;
}
.cookie-category-toggle:checked {
  background: #29313A;
}
.cookie-category-toggle:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(29,31,34,0.035);
  transition: left 0.16s;
}
.cookie-category-toggle:checked:before {
  left: 19px;
}
.cookie-category-desc {
  color: #969699;
  font-size: .96rem;
  font-style: italic;
}

/* --- ANIMATIONS / MICRO-INTERACTIONS --- */
.card, .feature-item, .testimonial-card, .service-item, .project-summary, .article-summary, .team-bio {
  transition: box-shadow .20s cubic-bezier(.9,.14,.36,1), transform .18s cubic-bezier(.7,.2,.3,1);
}
.btn-primary, .btn-secondary, .btn-cookie {
  transition: background .13s, color .13s, box-shadow .14s, transform .21s;
}

/* --- RESPONSIVE: MOBILE FIRST --- */
@media (min-width: 780px) {
  .container {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
  }
  .content-wrapper {
    flex: 1 1 0;
    max-width: 700px;
  }
}
@media (max-width: 750px) {
  section, .section {
    padding: 28px 8px;
  }
}
@media (max-width: 600px) {
  h1 {
    font-size: 1.3rem;
  }
}

/* --- MISC: UTILITY CLASSES & IMPROVED CONTRAST --- */
.bg-light {
  background: #fff;
}
.bg-dark {
  background: #29313A;
  color: #fff;
}
.text-dark {
  color: #1b1b1e !important;
}
.text-light {
  color: #fff !important;
}

/* Margin below hero to avoid mobile sticky elements */
section:first-of-type {
  margin-top: 6px;
}

/* Hide default focus for mouse, visible focus for keyboard */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px solid #8696A8;
  outline-offset: 2px;
}

/* --- END: ALL SECTIONS, CARDS, NAV, COOKIE BANNER MOBILE/RESPONSIVE --- */