/* ========================================================== */
/* CSS RESET & NORMALIZATION */
/* ========================================================== */
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: #F8F6F2;
  color: #283E53;
}
ul, ol {
  margin-left: 22px;
}
a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
button {
  cursor: pointer;
}

/* ========================================================== */
/* BRAND TYPOGRAPHY & GLOBALS */
/* ========================================================== */
:root {
  --color-primary: #283E53;
  --color-secondary: #D4B680;
  --color-accent: #F8F6F2;
  --color-text: #283E53;
  --color-bg: #F8F6F2;
  --color-shadow: rgba(40,62,83,0.07);
  --ff-display: 'Montserrat', Arial, sans-serif;
  --ff-body: 'Roboto', Arial, Helvetica, sans-serif;
}
body {
  font-family: var(--ff-body);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  min-width: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }
h4 { font-size: 1.15rem; margin-bottom: 10px; }
p, ul, ol {
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 14px;
  line-height: 1.6;
}
strong { font-weight: 600; }
small { font-size: 0.95em; color: #748097; }

/* ========================================================== */
/* LAYOUT + CONTAINERS */
/* ========================================================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 22px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
/* Spacing for multiple sections stacks nicely */
main section:not(:last-child) {
  margin-bottom: 60px;
}

/* ========================================================== */
/* FLEXBOX LAYOUT PATTERNS */
/* ========================================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 32px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 260px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 24px var(--color-shadow);
  transform: translateY(-4px);
}
.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;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 2px 8px var(--color-shadow);
  margin-bottom: 24px;
  min-width: 240px;
  max-width: 640px;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px var(--color-shadow);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.project-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 10px var(--color-shadow);
  padding: 28px 22px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.article-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.article-list article {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 24px 20px;
  flex: 1 1 290px;
  min-width: 260px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.article-list article:hover {
  box-shadow: 0 6px 22px var(--color-shadow);
  transform: translateY(-2px);
}
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}
.category-tag, .category-tags span {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-weight: 500;
  border-radius: 12px;
  padding: 4px 16px;
  font-size: 0.96em;
  letter-spacing: 0.02em;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.map-snippet {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 7px var(--color-shadow);
  font-size: 1em;
  color: #424B5A;
  margin-top: 12px;
}

/* ========================================================== */
/* HEADER, NAVIGATION & BRANDING */
/* ========================================================== */
header {
  width: 100%;
  background: var(--color-bg);
  border-bottom: 1px solid #ededed;
  position: relative;
  z-index: 100;
  padding-top: 8px;
  padding-bottom: 8px;
  margin-bottom: 0;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
nav a img {
  height: 38px;
  margin-right: 32px;
  vertical-align: middle;
}
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
}
nav ul li a {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s, color 0.18s;
}
nav ul li a:hover, nav ul li a:focus {
  border-bottom: 2px solid var(--color-secondary);
  color: var(--color-secondary);
}
.cta-primary {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 10px 34px;
  border-radius: 28px;
  box-shadow: 0 2px 10px var(--color-shadow);
  letter-spacing: 0.01em;
  transition: background 0.18s, color 0.16s, box-shadow 0.15s;
  border: none;
  margin-left: 30px;
  outline: none;
  position: relative;
  z-index: 2;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* ---------------------------------------------------------- */
/* MOBILE NAVIGATION (BURGER MENU) */
/* ---------------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 20px;
  font-size: 2rem;
  background: none;
  color: var(--color-primary);
  border: none;
  z-index: 201;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  transition: background 0.15s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #F3F2ED;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(248,246,242, 0.98);
  z-index: 300;
  transform: translateX(-100vw);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.78, 0.03, 0.38, 0.98);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2.2rem;
  color: var(--color-primary);
  background: none;
  border: none;
  z-index: 310;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  text-align: center;
  line-height: 44px;
  transition: background 0.17s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #ededed;
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  width: 100%;
  margin-top: 90px;
  padding-left: 40px;
}
.mobile-nav a {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  color: var(--color-primary);
  padding: 12px 0;
  text-align: left;
  min-width: 220px;
  width: 100%;
  border-radius: 8px;
  transition: background 0.14s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E5DDC6;
  color: var(--color-secondary);
}

/* ================================================ */
/* MAIN CONTENT AREAS & TYPOGRAPHY */
/* ================================================ */
main {
  min-height: 62vh;
}
section .container {
  padding-top: 0;
  padding-bottom: 0;
}
section {
  background: none;
  border-radius: 0;
}

/* -------------------------------------------------- */
/* FORMS & SEARCHBAR (BLOG) */
/* -------------------------------------------------- */
.search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 1px 7px var(--color-shadow);
  padding: 6px 16px;
  margin-bottom: 16px;
  width: 100%;
  max-width: 350px;
}
.search-bar input[type="text"] {
  flex: 1;
  border: none;
  font-size: 1em;
  background: none;
  outline: none;
  padding: 8px 0;
  color: var(--color-primary);
}
.email-signup {
  background: #fff;
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 1px 8px var(--color-shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 380px;
}
.email-signup form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
}
.email-signup input[type="email"] {
  flex: 1 1 0;
  padding: 8px 12px;
  border-radius: 22px;
  border: 1px solid #e9e6e3;
  font-size: 1em;
  background: #F8F6F2;
  color: var(--color-primary);
}
.email-signup button[type="submit"] {
  background: var(--color-secondary);
  color: #fff;
  font-family: var(--ff-display);
  border-radius: 22px;
  padding: 8px 24px;
  font-size: 1em;
  font-weight: 600;
  border: none;
  transition: background 0.16s, color 0.16s;
}
.email-signup button[type="submit"]:hover, 
.email-signup button[type="submit"]:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
}

/* ========================================================== */
/* FOOTER STYLES */
/* ========================================================== */
footer {
  margin-top: 60px;
  padding: 32px 0 20px 0;
  background: #fff;
  border-top: 1px solid #ededed;
  width: 100%;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  color: #748097;
  font-size: 1em;
  min-height: 130px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 1em;
}
footer nav a {
  color: #748097;
  font-weight: 500;
  transition: color 0.15s;
  font-family: var(--ff-display);
  text-decoration: none;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-secondary);
}
footer img {
  height: 34px;
  margin-bottom: 8px;
}
footer p {
  color: #748097;
  font-size: 1em;
  line-height: 1.5;
}
footer small {
  color: #B8BABF;
  font-size: 0.97em;
}

/* ========================================================== */
/* COOKIE CONSENT BANNER & MODAL */
/* ========================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 800;
  background: #fff;
  padding: 20px 18px;
  box-shadow: 0 -3px 24px var(--color-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 1rem;
  border-radius: 16px 16px 0 0;
  animation: cookie-slide-in 0.8s cubic-bezier(0.55,0.22,0.23,1) forwards;
}
@keyframes cookie-slide-in {
  0% { transform: translateY(120%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-banner-msg {
  color: var(--color-primary);
  font-size: 1em;
  max-width: 540px;
  line-height: 1.6;
}
.cookie-banner-actions {
  display: flex;
  gap: 13px;
}
.cookie-btn {
  font-family: var(--ff-display);
  font-weight: 600;
  border-radius: 22px;
  border: none;
  box-shadow: 0 1px 7px var(--color-shadow);
  padding: 8px 22px;
  font-size: 1em;
  letter-spacing: 0.005em;
  background: var(--color-secondary);
  color: #fff;
  transition: background 0.14s, color 0.14s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
}
.cookie-btn.reject {
  background: #eee9df;
  color: var(--color-primary);
  border: 1px solid #dfdbd6;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #DFDBD6;
  color: var(--color-primary);
}
.cookie-btn.settings {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid #CBD3DE;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #F3F1EB;
}

/* Cookie modal popup */
.cookie-modal {
  position: fixed;
  left: 50%;
  bottom: 38vh;
  transform: translate(-50%, 12vh) scale(0.98);
  min-width: 296px;
  max-width: 95vw;
  background: #fff;
  border-radius: 19px;
  box-shadow: 0 8px 40px rgba(40,62,83, .15);
  z-index: 900;
  padding: 34px 28px 18px 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.27s, transform 0.27s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,0) scale(1);
}
.cookie-modal-title {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 13px;
}
.cookie-modal-section {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 18px;
}
.cookie-modal-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #EEE;
  font-size: 1em;
}
.cookie-modal-category:last-child {
  border-bottom: none;
}
.cookie-modal .cookie-toggle-switch {
  width: 32px;
  height: 18px;
  border-radius: 14px;
  background: #e5e2d5;
  position: relative;
  transition: background 0.16s;
  display: inline-block;
}
.cookie-modal .cookie-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .cookie-toggle-slider {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  background: #D4B680;
  border-radius: 50%;
  transition: transform 0.18s, background 0.17s;
}
.cookie-modal .cookie-toggle-switch input:checked + .cookie-toggle-slider {
  transform: translateX(12px);
  background: var(--color-primary);
}
.cookie-modal .cookie-toggle-switch[aria-disabled="true"] {
  background: #dedede;
}
.cookie-modal .cookie-toggle-switch[aria-disabled="true"] .cookie-toggle-slider {
  background: #bbb;
}
.cookie-modal-footer {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 24px;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #bbb;
  font-size: 1.7rem;
  position: absolute;
  top: 16px;
  right: 18px;
  cursor: pointer;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  line-height: 32px;
  transition: background 0.13s, color 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #F0EEE9;
  color: #8D8371;
}

/* ========================================================== */
/* INTERACTIVE ELEMENTS & MICRO-INTERACTIONS */
/* ========================================================== */
a, .cta-primary, button, .cookie-btn {
  transition: background 0.16s, color 0.13s, border 0.14s, box-shadow 0.2s, transform 0.12s;
}
.card, .project-card, .testimonial-card, .article-list article {
  transition: box-shadow 0.19s, transform 0.15s;
}
.card:active, .project-card:active, .testimonial-card:active {
  transform: translateY(2px) scale(0.988);
}

/* ========================================================== */
/* RESPONSIVE DESIGN - MOBILE FIRST APPROACH                */
/* ========================================================== */
@media (max-width: 1180px) {
  .container { max-width: 96vw; }
  .content-wrapper { padding: 0; }
}
@media (max-width: 980px) {
  nav ul { gap: 16px; }
  .card, .project-card, .testimonial-card {
    padding-left: 16px; padding-right: 16px;
  }
  .card {
    min-width: 190px;
  }
}
@media (max-width: 900px) {
  nav ul { display: none; }
  .cta-primary { display: none; }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  header .container { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.32rem; }
  .container { padding: 0 11px; }
  .section { padding: 26px 4vw; margin-bottom: 30px; }
  .card-container, .content-grid, .article-list, .category-tags {
    gap: 14px;
  }
  .card, .project-card, .testimonial-card, .article-list article {
    min-width: 90vw;
    max-width: 100vw;
    padding: 18px 10px;
    margin-bottom: 18px;
  }
  .card-container, .content-grid, .category-tags, .article-list {
    flex-direction: column;
    gap: 12px;
  }
  .content-wrapper {
    gap: 12px;
  }
  footer .container { padding: 0 11px; }
}
@media (max-width: 550px) {
  html { font-size: 15px; }
  .cookie-banner { flex-direction: column; gap: 14px; align-items: flex-start; }
  .cookie-banner .cookie-banner-msg { max-width: 98vw; }
}

/* Small devices for burger trigger */
@media (max-width: 600px) {
  h1 { font-size: 1.35rem; }
  nav a img { height: 31px; }
  header .container { min-height: 56px; }
}

/* Utility: Hide scroll on open menu */
body.mobile-menu-open {
  overflow: hidden;
}
