/* 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, 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F4F2ED;
  color: #20343A;
  font-family: 'Open Sans', 'Georgia', serif;
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 100%; height: auto; display: block;
}
a {
  color: #20343A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #8CBAA9;
  outline: none;
}
ul, ol {
  margin-left: 24px;
}
strong {
  font-weight: 700;
}
p {
  margin-bottom: 16px;
}

/* Typography - Elegant Classic */
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #20343A;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
  line-height: 1.15;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.subheadline {
  font-family: 'Open Sans', 'Georgia', serif;
  font-size: 1.15rem;
  color: #32504E;
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Container & Layout */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

/* Sections */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 18px rgba(32,52,58,0.04);
  transition: box-shadow 0.2s;
}

/* Hero Section */
.hero {
  background: #ebe9e2;
  padding: 64px 0 40px 0;
  margin-bottom: 40px;
  min-height: 320px;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.hero h1,
.hero .subheadline {
  max-width: 720px;
}

/* Navigation */
header {
  background: #fff;
  border-bottom: 1px solid #E5E1D9;
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px 16px 20px;
}
header img {
  height: 42px;
  margin-right: 24px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
header nav a {
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 500;
  font-size: 1rem;
  color: #20343A;
  letter-spacing: 0.01em;
}
header nav a:hover,
header nav a:focus {
  color: #8CBAA9;
}
.cta-primary {
  background: #20343A;
  color: #fff;
  border: none;
  border-radius: 36px;
  padding: 10px 28px;
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(32,52,58,0.04);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  margin-left: 9px;
  text-align: center;
}
.cta-primary:hover, .cta-primary:focus {
  background: #8CBAA9;
  color: #20343A;
}
.cta-secondary {
  background: #F4F2ED;
  color: #20343A;
  border: 1px solid #20343A;
  border-radius: 36px;
  padding: 9px 28px;
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  margin-top: 14px;
  text-align: center;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #8CBAA9;
  color: #fff;
  border-color: #8CBAA9;
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  padding: 4px 10px;
  cursor: pointer;
  color: #20343A;
  transition: color 0.2s;
  z-index: 80;
}
.mobile-menu-toggle:focus {
  color: #8CBAA9;
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(32,52,58,0.97);
  transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(0.55, 0, 0.1, 1);
  z-index: 160;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 26px;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 200;
  transition: color 0.2s;
}
.mobile-menu-close:focus {
  color: #8CBAA9;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 84px 32px 32px 32px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.3rem;
  font-family: 'Montserrat', 'Georgia', serif;
  letter-spacing: 0.02em;
  font-weight: 500;
  padding: 9px 0;
  border-bottom: 1px solid rgba(244,242,237,0.08);
  transition: color 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #8CBAA9;
}

/* Main & Section Structure */
main {
  min-height: 60vh;
  margin-top: 0;
  margin-bottom: 0;
}
section {
  width: 100%;
  margin-bottom: 40px;
}

/* Footer */
footer {
  background: #20343A;
  color: #fff;
  padding: 36px 0 22px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 42px;
}
footer img {
  height: 48px;
  margin-bottom: 24px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
footer nav a {
  color: #F4F2ED;
  font-size: 1rem;
  font-family: 'Montserrat', 'Georgia', serif;
  letter-spacing: 0.01em;
  transition: color 0.18s;
}
footer nav a:hover,
footer nav a:focus {
  color: #8CBAA9;
}
.footer-contact {
  font-size: 1rem;
  color: #E0DFD3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.footer-contact img {
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
  display: inline-block;
}
.footer-contact a {
  color: #8CBAA9;
  text-decoration: underline;
  font-style: italic;
}
.footer-copy {
  font-size: 0.95rem;
  color: #B7B2A7;
  flex-basis: 100%;
  margin-top: 16px;
  text-align: center;
}

/* Feature Grids (cards, feature list) */
.feature-grid, .service-list, .faq-list, .team-list, .blog-summary-list, .step-diagram {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.feature-grid > div, .service-list > div, .faq-list > div, .team-list > div, .blog-summary-list > article, .step-diagram > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(32,52,58,0.07);
  padding: 28px 24px 20px 24px;
  flex: 1 1 280px;
  min-width: 240px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-grid > div:hover,
.service-list > div:hover,
.faq-list > div:hover,
.team-list > div:hover,
.blog-summary-list > article:hover,
.step-diagram > div:hover {
  box-shadow: 0 5px 22px rgba(32,52,58,0.13);
  transform: translateY(-2px) scale(1.01);
}
.feature-grid img,
.feature-grid svg,
.team-list img {
  height: 36px;
  margin-bottom: 3px;
}

.step-diagram > div {
  border-left: 3px solid #8CBAA9;
}
.step-diagram > div:first-child {
  border-left: 3px solid #20343A;
}

.team-list > div {
  min-width: 210px;
  flex: 1 1 360px;
}

.blog-summary-list > article {
  min-width: 190px;
  cursor: pointer;
}
.blog-summary-list a {
  font-size: 1rem;
  color: #8CBAA9;
  font-weight: 700;
  text-decoration: underline;
  margin-top: 12px;
  display: inline-block;
  transition: color 0.2s;
}
.blog-summary-list a:hover { color: #20343A; }

.project-highlight {
  background: #8CBAA9;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 18px rgba(32,52,58,0.07);
  padding: 24px 24px;
  margin-bottom: 20px;
}
.project-highlight h3 { color: #20343A; margin-bottom: 10px; }
.project-highlight p { color: #fff; }

.text-section {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.text-section ul {
  list-style: disc inside;
  margin-bottom: 12px;
}
.text-section li {
  margin-bottom: 5px;
  font-size: 1rem;
}
.legal-text {
  font-size: 1rem;
  color: #20343A;
  background: #f8f8f5;
  padding: 24px 22px;
  margin-bottom: 18px;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(32,52,58,0.04);
  line-height: 1.67;
}

.contact-note {
  background: #8CBAA9;
  color: #fff;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.97rem;
  margin-top: 14px;
}

/* Testimonials */
.testimonial-card {
  background: #faf9f7;
  color: #20343A;
  border-left: 4px solid #8CBAA9;
  border-radius: 10px;
  box-shadow: 0 2px 9px rgba(32,52,58,0.07);
  margin-bottom: 20px;
  padding: 20px 28px 22px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
  font-style: italic;
  min-height: 84px;
  font-size: 1.07rem;
}
.testimonial-card:hover {
  box-shadow: 0 2px 18px rgba(32,52,58,0.17);
  background: #fff;
  transform: translateY(-2px) scale(1.01);
}
.testimonial-card span {
  font-size: 1rem;
  color: #8CBAA9;
  font-family: 'Montserrat', serif;
  margin-left: auto;
  font-style: normal;
  font-weight: 600;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #20343A;
  color: #fff;
  padding: 18px 20px 18px 20px;
  z-index: 9999;
  box-shadow: 0 -2px 16px rgba(32,52,58,0.09);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: 'Open Sans', 'Georgia', serif;
  font-size: 0.98rem;
  animation: slideUpBanner 0.7s cubic-bezier(.6,.2,.44,1.1);
}
@keyframes slideUpBanner {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btn {
  border: none;
  border-radius: 24px;
  padding: 7px 18px;
  margin-left: 8px;
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.cookie-banner .accept-btn {
  background: #8CBAA9;
  color: #20343A;
  margin-left: 0;
}
.cookie-banner .accept-btn:hover {
  background: #F4F2ED;
  color: #20343A;
}
.cookie-banner .reject-btn {
  background: transparent;
  color: #fff;
  border: 1.5px solid #8CBAA9;
}
.cookie-banner .reject-btn:hover {
  background: #8CBAA9;
  color: #20343A;
}
.cookie-banner .settings-btn {
  background: #F4F2ED;
  color: #20343A;
}
.cookie-banner .settings-btn:hover {
  background: #8CBAA9;
  color: #fff;
}

/* Cookie Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 10010;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(32,52,58, 0.48);
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.6s cubic-bezier(.8,.2,.44,1.1);
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #F4F2ED;
  color: #20343A;
  border-radius: 12px;
  padding: 36px 26px;
  min-width: 92vw;
  max-width: 420px;
  box-shadow: 0 12px 48px rgba(32,52,58,0.27);
  position: relative;
  z-index: 10011;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1rem;
}
.cookie-modal h2 {
  margin-bottom: 8px;
  font-size: 1.28rem;
  font-weight: 700;
  color: #20343A;
}
.cookie-modal .modal-close {
  background: none; border: none; font-size: 2rem;
  color: #20343A;
  position: absolute; top: 16px; right: 18px;
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-modal .modal-close:hover,
.cookie-modal .modal-close:focus {
  color: #8CBAA9;
  outline: none;
}
.cookie-categories {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-category .category-label {
  color: #20343A;
  font-weight: 600;
}
.cookie-toggle {
  appearance: none;
  width: 40px;
  height: 22px;
  background: #e1e4e5;
  border-radius: 16px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-toggle:checked {
  background: #8CBAA9;
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 100%;
  transition: left 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.cookie-toggle:checked:before {
  left: 21px;
}
.cookie-category input[disabled], .cookie-category input[disabled] + label {
  opacity: 0.65;
  cursor: not-allowed;
}
.cookie-modal .modal-actions {
  display: flex; gap: 8px; margin-top: 20px;
}
.cookie-modal .modal-actions button {
  border: none;
  border-radius: 24px;
  padding: 8px 22px;
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.cookie-modal .accept-btn { background: #8CBAA9; color: #20343A; }
.cookie-modal .accept-btn:hover { background: #20343A; color: #fff; }
.cookie-modal .reject-btn { background: transparent; color: #20343A; border: 1.5px solid #8CBAA9; }
.cookie-modal .reject-btn:hover { background: #8CBAA9; color: #fff; }

/* Responsive: Mobile-first, elegant classic */
@media (max-width: 1050px) {
  .container { max-width: 96vw; }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 10px 13px 10px;
  }
  header nav {
    display: none;
  }
  .cta-primary {
    margin-left: 0;
    margin-right: 8px;
    padding: 10px 19px;
    font-size: 1rem;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 12px; right: 14px;
    z-index: 81;
  }
  .content-wrapper {
    gap: 16px;
  }
  .hero { padding: 46px 0 28px 0; }
  .hero .container { gap: 12px; }
  .feature-grid, .service-list, .faq-list, .team-list, .blog-summary-list, .step-diagram {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .service-list > div, .faq-list > div, .team-list > div, .blog-summary-list > article, .step-diagram > div {
    min-width: 0;
    padding: 19px 13px 16px 13px;
    font-size: 1rem;
  }
  .testimonial-card, .project-highlight {
    padding: 16px 13px 17px 13px;
  }
  .footer-contact {
    margin-bottom: 9px;
  }
  .footer-copy {
    margin-top: 12px;
    font-size: 0.91rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.96rem;
    gap: 16px;
  }
  .cookie-modal {
    min-width: 98vw; max-width: 98vw;
    padding: 26px 12px;
    font-size: 0.98rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.14rem; }
  h3 { font-size: 1rem; }
  .section { padding: 23px 6px; }
  .container { padding: 0 5px; }
  .content-wrapper { gap: 10px; }
  .cookie-modal { padding: 13px 4px; font-size: 0.94rem; }
  .footer-contact { font-size: 0.95rem; }
}

/* Utility classes for patterns */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; align-items: flex-start; gap: 14px; }
}
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Visual hierarchy spacing */
.section + .section,
.section + section,
section + .section {
  margin-top: 24px;
}
.card + .card, .feature-grid > div + div, .service-list > div + div { margin-left: 0; margin-top: 20px; }

/* Remove number input arrows for cookie toggles */
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none; margin: 0; }

/* Misc */
::-webkit-input-placeholder { color: #AEAEAE; }
::-moz-placeholder { color: #AEAEAE; }
:-ms-input-placeholder { color: #AEAEAE; }
::placeholder { color: #AEAEAE; }

/* Custom scrollbar */
body::-webkit-scrollbar { width: 9px; background: #F4F2ED; }
body::-webkit-scrollbar-thumb { background: #8CBAA9; border-radius: 3px; }

/* Accessibility: focus states */
a:focus, button:focus, .cta-primary:focus, .cta-secondary:focus, .cookie-btn:focus {
  outline: 2px solid #8CBAA9 !important;
  outline-offset: 3px;
}

/* Elegant subtle animation for buttons */
button, .cta-primary, .cta-secondary {
  transition: box-shadow 0.15s, transform 0.15s;
  will-change: transform;
}
button:hover, .cta-primary:hover, .cta-secondary:hover {
  box-shadow: 0 5px 20px rgba(32,52,58,0.11);
  transform: translateY(-1px) scale(1.02);
}

/* Hide visually (for JS when closing menu/banner etc.) */
[hidden] {
  display: none !important;
}
