/* === CSS RESET & BASE === */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Montserrat', 'Times New Roman', Times, serif;
  background-color: #E3E2DF;
  color: #274046;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
a {
  color: #274046;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B4B8AB;
}
ul, ol {
  list-style-position: inside;
  margin-bottom: 1.5em;
  padding-left: 0;
}
li {
  margin-bottom: 0.6em;
}
strong {
  font-weight: 600;
}
::-webkit-input-placeholder { color: #B4B8AB; }
::-moz-placeholder { color: #B4B8AB; }
:-ms-input-placeholder { color: #B4B8AB; }
::placeholder { color: #B4B8AB; }

/* === TYPOGRAPHY === */
h1 {
  font-size: 2.7rem;
  font-family: 'Montserrat', serif;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.7em;
  letter-spacing: 0.01em;
}
h2 {
  font-size: 2rem;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  line-height: 1.18;
  margin-bottom: 0.5em;
}
h3 {
  font-size: 1.25rem;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  margin-bottom: 0.4em;
}
h4, h5, h6 {
  font-family: 'Montserrat', serif;
  font-weight: 500;
}
p {
  margin-bottom: 1.2em;
  font-family: 'Montserrat', serif;
  color: #3d4442;
}
.text-section p {
  font-size: 1.03rem;
}


/* === LAYOUT & CONTAINERS === */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}


/* === NAVIGATION === */
header {
  background: #fff;
  border-bottom: 1.5px solid #E3E2DF;
  padding: 0;
  box-shadow: 0 2px 8px rgba(39,64,70,0.04);
  position: relative;
  z-index: 40;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 14px 0 10px 0;
}
header nav a {
  font-family: 'Montserrat', serif;
  font-weight: 500;
  color: #274046;
  font-size: 1rem;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background .2s, color .2s;
}
header nav a:hover,
header nav a:focus {
  background: #E3E2DF;
  color: #274046;
}
header nav .cta-primary {
  background: #274046;
  color: #fff;
  padding: 8px 22px;
  border-radius: 24px;
  font-weight: 700;
  box-shadow: 0 4px 12px 0 rgba(39,64,70,.08);
  transition: background 0.25s, box-shadow 0.3s;
  margin-left: auto;
}
header nav .cta-primary:hover,
header nav .cta-primary:focus {
  background: #B4B8AB;
  color: #274046;
  box-shadow: 0 6px 20px 0 rgba(39,64,70,0.15);
}
header nav img {
  height: 38px;
  margin-right: 6px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #274046;
  margin-left: auto;
  cursor: pointer;
  padding: 7px 12px;
  z-index: 110;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #B4B8AB;
  color: #B4B8AB;
}
.mobile-menu {
  display: none;
}
.mobile-menu.active {
  display: flex;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(227,226,223,0.98);
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  z-index: 1200;
  transform: translateX(0);
  transition: transform .4s cubic-bezier(.7,0,.3,1);
}
.mobile-menu .mobile-menu-close {
  margin-left: auto;
  font-size: 2rem;
  background: none;
  border: none;
  color: #274046;
  padding: 17px 22px 10px 0;
  cursor: pointer;
  align-self: flex-end;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 21px;
  padding: 12px 32px 30px 36px;
  margin-top: 15px;
}
.mobile-nav a {
  font-family: 'Montserrat', serif;
  color: #274046;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  border-radius: 8px;
  padding: 7px 12px;
  transition: background .2s, color .2s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #B4B8AB;
  color: #fff;
}

@media (max-width: 990px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu {
    display: none;
  }
}
@media (max-width: 990px) {
  .mobile-menu.active {
    display: flex;
    animation: mobilenav-slide-in 0.35s cubic-bezier(.7,0,.3,1);
  }
  @keyframes mobilenav-slide-in {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(0); }
  }
  @keyframes mobilenav-slide-out {
    0% { transform: translateX(0); }
    100% { transform: translateX(100vw); }
  }
}

/* === FOOTER === */
footer {
  background: #fff;
  border-top: 1.5px solid #E3E2DF;
  text-align: center;
  padding: 36px 0 22px 0;
  font-size: 1rem;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-bottom: 6px;
}
footer nav a {
  color: #274046;
  font-weight: 500;
  font-size: 1rem;
  margin: 0 6px;
  padding: 3px 7px;
  border-radius: 5px;
  transition: background .2s;
}
footer nav a:hover,
footer nav a:focus {
  background: #B4B8AB;
  color: #fff;
}
footer p {
  font-size: 0.98rem;
  color: #555;
  margin-top: 7px;
  font-family: 'Montserrat', serif;
}

/* === FLEXBOX LAYOUT PATTERNS === */
.section {  /* already included above */
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px 0 rgba(39,64,70,0.09);
  padding: 32px 26px;
  flex: 1 1 330px;
  min-width: 270px;
  transition: box-shadow .24s, transform .24s;
}
.card:hover {
  box-shadow: 0 10px 26px 0 rgba(39,64,70,0.15);
  transform: translateY(-6px);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 11px 0 rgba(39,64,70,0.11);
  margin-bottom: 20px;
  min-width: 250px;
  transition: box-shadow .18s, border-color .2s;
  border: 1px solid #E3E2DF;
}
.testimonial-card:hover {
  box-shadow: 0 6px 22px 0 rgba(39,64,70,0.15);
  border-color: #B4B8AB;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  padding: 32px 20px;
  border-radius: 13px;
  box-shadow: 0 2px 12px 0 rgba(39,64,70,0.08);
  margin-bottom: 20px;
  min-width: 230px;
  flex: 1 1 250px;
  border: 1px solid #E3E2DF;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.feature-item:hover {
  border-color: #B4B8AB;
  box-shadow: 0 8px 28px 0 rgba(39,64,70,0.12);
  transform: translateY(-5px);
}
.feature-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 0.4em;
}
.feature-price {
  color: #274046;
  font-weight: 600;
  font-size: 1.06rem;
  background: #E3E2DF;
  border-radius: 22px;
  padding: 5px 15px;
  margin-top: 6px;
}

/* === Blog, Inspiration, Projects, Misc Cards === */
.blog-teaser, .inspiration-block, .project-summary, .color-palette-sample, .contact-details-block {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px 0 rgba(39,64,70,0.09);
  padding: 24px 18px;
  margin-bottom: 20px;
  border-left: 5px solid #B4B8AB;
  transition: box-shadow .18s, border-color .2s;
}
.blog-teaser:hover, .inspiration-block:hover, .project-summary:hover, .color-palette-sample:hover {
  border-color: #274046;
  box-shadow: 0 6px 22px rgba(39,64,70,0.12);
}

.color-palette-sample {
  font-size: 1.01rem;
  color: #274046;
  background: #E3E2DF;
  border-left-color: #274046;
}

/* === BUTTONS & LINKS === */
.cta-primary,
.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #274046;
  color: #fff !important;
  font-family: 'Montserrat', serif;
  font-weight: 700;
  font-size: 1.13rem;
  border: none;
  border-radius: 24px;
  padding: 12px 32px;
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(39,64,70,0.09);
  cursor: pointer;
  transition: background .21s, color .18s, box-shadow .22s, transform .15s;
  text-decoration: none;
  outline: none;
}
.cta-primary:hover, .cta-primary:focus, .cta-link:hover, .cta-link:focus {
  background: #B4B8AB;
  color: #274046 !important;
  box-shadow: 0 6px 20px rgba(39,64,70,0.16);
  transform: translateY(-3px);
}
.cta-link {
  background: transparent;
  color: #274046 !important;
  font-weight: 600;
  border: 1.7px solid #274046;
  padding: 11px 30px;
  margin-top: 18px;
}
.cta-link:hover, .cta-link:focus {
  border-color: #B4B8AB;
  background: #B4B8AB;
  color: #fff !important;
}

/* === MISC UTILITIES === */
.mt-16 { margin-top: 16px; }
.mb-24 { margin-bottom: 24px; }

/* === RESPONSIVE DESIGN (mobile first) === */
@media (max-width: 1200px) {
  .container {
    max-width: 950px;
  }
}
@media (max-width: 990px) {
  .container {
    max-width: 94vw;
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .container { padding: 0 5px; }
  .content-wrapper, .text-section {
    gap: 14px;
  }
  .section {
    padding: 28px 5px;
    margin-bottom: 36px;
  }
  .card-container, .feature-grid, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card, .feature-item, .blog-teaser, .inspiration-block, .project-summary, .color-palette-sample {
    padding: 20px 10px;
    min-width: 170px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer nav {
    flex-direction: column;
    gap: 9px;
  }
}

/* === CUSTOM CLASSES FOR FLEX CONTAINERS === */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
@media (max-width: 990px) {
  .feature-grid {
    gap: 18px;
  }
}

/* === INTERACTIVE STYLES === */
.testimonial-card div {
  font-size: 1.25rem;
  color: #B4B8AB;
  font-family: 'Montserrat', serif;
  margin: 0;
  font-weight: 600;
}
.testimonial-card p {
  color: #274046;
  font-style: italic;
  margin-bottom: 0.5em;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #888;
  font-family: 'Montserrat', serif;
}

/* === COOKIE CONSENT BANNER === */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 -2px 16px rgba(39,64,70,0.14);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 18px 20px 18px;
  z-index: 1700;
  transition: transform .42s;
  gap: 20px;
  font-family: 'Montserrat', serif;
  font-size: 1.07rem;
  color: #274046;
}
.cookie-consent-banner.hide {
  transform: translateY(150%);
}
.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}
.cookie-btn {
  background: #274046;
  color: #fff;
  border: none;
  border-radius: 21px;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 22px;
  cursor: pointer;
  box-shadow: 0 1px 7px 0 rgba(39,64,70,0.06);
  transition: background .18s, color .18s, box-shadow .20s;
  margin: 0 6px;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #B4B8AB;
  color: #274046;
  box-shadow: 0 2px 16px rgba(39,64,70,0.16);
}
.cookie-settings-btn {
  background: #fff;
  color: #274046;
  border: 1.7px solid #B4B8AB;
  font-weight: 500;
  box-shadow: none;
  padding: 8px 20px;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #B4B8AB;
  color: #fff;
}

/* === COOKIE MODAL === */
.cookie-modal {
  position: fixed;
  z-index: 1800;
  left: 0; right: 0; top: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(39,64,70,0.30);
  animation: cookieModalFadeIn .35s cubic-bezier(.7,0,.3,1);
}
@keyframes cookieModalFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1;}
}
.cookie-modal-content {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(39,64,70,0.22);
  max-width: 95vw;
  width: 420px;
  padding: 40px 28px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 21px;
  position: relative;
}
.cookie-modal-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  margin-right: 8px;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #B4B8AB;
  border-radius: 24px;
  transition: background .2s;
}
.cookie-switch input:checked + .cookie-switch-slider {
  background: #274046;
}
.cookie-switch-slider:before {
  content: "";
  position: absolute;
  left: 4px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform .22s;
}
.cookie-switch input:checked + .cookie-switch-slider:before {
  transform: translateX(18px);
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 17px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #B4B8AB;
  cursor: pointer;
  transition: color .2s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #274046;
}

/* === ADDITIONAL UTILITIES AND MICRO-INTERACTIONS === */
hr {
  border: none;
  border-top: 2px solid #E3E2DF;
  margin: 32px 0;
}
section {
  background: none;
}

/* DECO dashed line for classic touch */
.deco-dash {
  border: none;
  border-top: 1.5px dashed #B4B8AB;
  margin: 24px 0;
}

/* === SELECTION COLORS === */
::selection {
  background: #B4B8AB;
  color: #fff;
}

/* === ALL VISUAL HIERARCHY & SPACING === */
.container, .content-wrapper, .card-container, .feature-grid, .content-grid, .testimonial-card, .feature-item {
  /* Spacing adjustments via flex patterns above */
}

/* === PRINT STYLES (hidden elements) === */
@media print {
  .mobile-menu,
  .mobile-menu-toggle,
  .cookie-consent-banner,
  .cookie-modal {
    display: none !important;
  }
  header, footer {
    box-shadow: none !important;
    border: none !important;
  }
}

/* === END === */
