/* --- 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;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #263649;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased; 
  -moz-osx-font-smoothing: grayscale;
}
a {
  text-decoration: none;
  color: #263649;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #7B614C;
  outline-offset: 2px;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: #263649;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.1;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}
p, ul, ol, li, span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #263649;
  margin-bottom: 8px;
}
.subtitle {
  font-size: 1.25rem;
  color: #7B614C;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}
strong {
  font-weight: 700;
  color: #263649;
}

/* --- CONTAINER --- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

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

/* --- SECTIONS/SPACING LAYOUTS MANDATORY --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 16px 0 rgba(38,54,73,0.06);
}

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

.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(38,54,73,0.05);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 24px;
  flex: 1 1 320px;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(38,54,73,0.13);
  z-index: 2;
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #F2ECE5;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(38,54,73,0.07);
  max-width: 530px;
}
.testimonial-card p {
  font-size: 1.125rem;
  color: #263649;
  font-weight: 600;
  margin-bottom: 0;
}
.testimonial-card span {
  font-size: 1rem;
  color: #7B614C;
  font-style: italic;
  font-weight: 600;
}

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

/* --- GRIDS AND FLEX-LAYOUTS --- */
.feature-grid, .usp-grid, .blog-preview, .article-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
}
.feature-grid li, .usp-grid li, .blog-preview li, .article-grid li {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(38,54,73,0.06);
  padding: 28px 24px 22px 24px;
  flex: 1 1 260px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s, transform 0.22s;
}
.feature-grid li:hover, .usp-grid li:hover, .article-grid li:hover, .blog-preview li:hover {
  box-shadow: 0 8px 36px 0 rgba(38,54,73,0.13);
  transform: translateY(-6px) scale(1.03);
  z-index: 1;
}
.feature-grid img, .usp-grid img {
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
}
.blog-preview li, .article-grid li {
  background: #F2ECE5;
}

/* --- CTA BUTTONS --- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  background: #263649;
  color: #fff;
  border: none;
  border-radius: 40px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 18px 0 rgba(38,54,73,0.12);
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 10px;
  transition: background 0.22s, box-shadow 0.18s, transform 0.12s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #7B614C;
  color: #fff;
  box-shadow: 0 8px 32px 0 rgba(123,97,76,0.12);
  transform: translateY(-2px) scale(1.02);
}

/* --- HEADER --- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(38,54,73,0.08);
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  margin-bottom: 30px;
  z-index: 20;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #263649;
  font-size: 1rem;
  padding: 9px 20px;
  border-radius: 30px;
  transition: background 0.14s, color 0.18s;
  position: relative;
}
header nav a:hover, header nav a.active {
  background: #F2ECE5;
  color: #7B614C;
}

header .cta-btn {
  margin-left: 15px;
  margin-right: 0;
}

/* --- MOBILE MENU - HAMBURGER --- */
.mobile-menu-toggle {
  display: none;
  background: #263649;
  color: #fff;
  font-size: 2rem;
  padding: 6px 16px;
  border-radius: 8px;
  margin-left: auto;
  transition: background 0.16s;
  z-index: 1002;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #7B614C;
  color: #fff;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 100vh;
  background: #263649;
  color: #fff;
  z-index: 1001;
  transform: translateX(-110%);
  transition: transform 0.35s cubic-bezier(.77,0,.175,1);
  box-shadow: 8px 0 40px 0 rgba(38,54,73,0.22);
  padding: 36px 28px 0 28px;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: none;
  color: #fff;
  padding: 6px 14px;
  margin-bottom: 22px;
  border-radius: 6px;
  transition: background 0.16s;
  z-index: 1003;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #7B614C;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 12px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.15rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  padding: 10px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #7B614C;
  color: #fff;
}

/* --- HERO SECTIONS --- */
section:first-of-type {
  background: #263649;
  color: #fff;
  box-shadow: 0 8px 40px 0 rgba(38,54,73,0.14);
}
section:first-of-type h1,
section:first-of-type h2 {
  color: #fff;
}
section:first-of-type p, section:first-of-type .subtitle {
  color: #F2ECE5;
}
section:first-of-type .cta-btn {
  background: #7B614C;
  color: #fff;
}
section:first-of-type .cta-btn:hover, section:first-of-type .cta-btn:focus {
  background: #F2ECE5;
  color: #263649;
}

/* --- SEARCH BAR & FILTERS (blog) --- */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.search-bar input[type="text"] {
  font-size: 1rem;
  padding: 12px 20px;
  border-radius: 28px;
  border: 2px solid #263649;
  outline: none;
  color: #263649;
  width: 220px;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.search-bar input[type="text"]:focus {
  border-color: #7B614C;
  box-shadow: 0 4px 12px rgba(38,54,73,0.08);
}
.categories-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
  font-family: 'Montserrat', sans-serif;
}
.categories-filter span {
  background: #F2ECE5;
  color: #263649;
  border-radius: 18px;
  padding: 6px 18px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
}
.categories-filter span:hover, .categories-filter span.selected {
  background: #7B614C;
  color: #fff;
}

/* --- NEWSLETTER SIGNUP (blog) --- */
.newsletter-signup {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 16px;
}

/* --- CONTACT BLOCK --- */
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 17px;
  background: #F2ECE5;
  padding: 30px 18px;
  border-radius: 18px;
  margin-bottom: 20px;
  min-width: 230px;
}
.contact-block div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.07rem;
  color: #263649;
}
.contact-message {
  margin-left: 12px;
  font-size: 1rem;
  color: #263649;
  background: #fff;
  border-radius: 12px;
  padding: 24px 18px;
  flex: 1 1 220px;
  box-shadow: 0 2px 8px rgba(38,54,73,0.05);
}

/* --- BLOG & ARTICLE GRID --- */
.article-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.article-grid li {
  flex: 1 1 300px;
  min-width: 250px;
}

/* --- FOOTER --- */
footer {
  background: #263649;
  color: #fff;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  margin-top: 60px;
  padding: 36px 0 8px 0;
  z-index: 8;
  box-shadow: 0 -4px 40px 0 rgba(38,54,73,0.13);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  justify-content: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 4px;
}
footer nav a {
  color: #F2ECE5;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.95;
  padding: 4px 12px;
  border-radius: 8px;
  transition: background 0.13s, color 0.14s;
}
footer nav a:hover, footer nav a:focus {
  background: #7B614C;
  color: #fff;
}
.footer-contact {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  color: #F2ECE5;
  margin-bottom: 8px;
}
.footer-contact img {
  width: 22px;
  height: 22px;
}
.footer-branding {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  color: #F2ECE5;
  opacity: 0.82;
}
.footer-branding img {
  width: 38px;
  height: 38px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #263649;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  z-index: 1200;
  padding: 28px 20px 22px 20px;
  box-shadow: 0 -6px 32px 0 rgba(38,54,73,0.23);
  transition: transform 0.34s cubic-bezier(.77,0,.175,1), opacity 0.3s;
}
.cookie-banner.hide {
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-message {
  font-size: 1.08rem;
  font-weight: 500;
  color: #fff;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  transition: background 0.16s, color 0.13s, box-shadow 0.18s;
}
.cookie-btn.accept {
  background: #7B614C;
  color: #fff;
}
.cookie-btn.accept:hover,.cookie-btn.accept:focus {
  background: #F2ECE5;
  color: #263649;
  box-shadow: 0 4px 14px rgba(38,54,73,0.12);
}
.cookie-btn.reject {
  background: #fff;
  color: #263649;
  border: 2px solid #7B614C;
}
.cookie-btn.reject:hover,.cookie-btn.reject:focus {
  background: #7B614C;
  color: #fff;
}
.cookie-btn.settings {
  background: #263649;
  border: 2px solid #F2ECE5;
  color: #F2ECE5;
}
.cookie-btn.settings:hover,.cookie-btn.settings:focus {
  background: #F2ECE5;
  color: #263649;
}

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal {
  position: fixed;
  left: 0; right: 0;top: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(38,54,73,0.40);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.24s;
}
.cookie-modal.hide {
  pointer-events: none;
  opacity: 0;
}
.cookie-modal-dialog {
  background: #fff;
  color: #263649;
  border-radius: 24px;
  box-shadow: 0 16px 44px rgba(38,54,73,0.19);
  padding: 42px 28px 32px 28px;
  max-width: 430px;
  width: 85vw;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  animation: cookie-fadein 0.45s cubic-bezier(.77,0,.175,1);
}
@keyframes cookie-fadein {
  0%{ opacity: 0; transform: scale(0.92) translateY(32px); }
  100%{ opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 1.7rem;
  color: #263649;
  background: none;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background 0.18s;
}
.cookie-modal-close:hover,.cookie-modal-close:focus {
  background: #F2ECE5;
}
.cookie-modal-title {
  font-size: 1.27rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: #263649;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 12px;
  border-radius: 14px;
  background: #F2ECE5;
}
.cookie-category input[type='checkbox'], .cookie-category input[type='radio'] {
  width: 22px; height: 22px;
  accent-color: #7B614C;
  cursor: pointer;
}
.cookie-category label {
  font-weight: 600;
}
.cookie-category .locked {
  color: #999;
  margin-left: 6px;
  font-size: 0.93rem;
}
.cookie-modal .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 12px;
  justify-content: flex-end;
}

/* --- MEDIA QUERIES (RESPONSIVE) --- */
@media (max-width: 1100px) {
  .container { max-width: 95vw; }
  header .container { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .container { max-width: 100vw; }
  section { padding: 35px 8px; }
  .card, .feature-grid li, .usp-grid li, .blog-preview li, .article-grid li {
    min-width: 180px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .footer-contact { flex-direction: column; gap: 10px; }
}
@media (max-width: 768px) {
  h1 {font-size: 2rem;}
  h2 {font-size: 1.35rem;}
  section {padding: 24px 4px; margin-bottom: 46px;}
  .container {
    padding-left: 4px;
    padding-right: 4px;
  }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px; padding-bottom: 12px;
  }
  header nav { display: none; }
  header .cta-btn { display: none; }
  .mobile-menu-toggle {
    display: inline-block;
    margin-left: 0;
  }
  .feature-grid, .usp-grid, .blog-preview, .article-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {max-width: 99vw;}
  .text-image-section { flex-direction: column !important; gap: 20px; }
  .content-grid { flex-direction: column; gap: 18px; }
  .newsletter-signup { flex-direction: column; gap: 8px; }
}
@media (max-width:530px) {
  h1 { font-size:1.38rem; }
  h2 { font-size:1.07rem; }
  .cta-btn, .cookie-btn { font-size:0.98rem; padding:10px 18px;}
  .container, section { padding-left:2px; padding-right:2px; }
  .contact-block, .contact-message { padding: 14px 8px; }
}

/* --- UTILITIES --- */
.bg-primary { background: #263649 !important; color: #fff !important; }
.bg-accent { background: #F2ECE5 !important; }
.text-secondary { color: #7B614C !important; }
.text-accent { color: #F2ECE5 !important; }

/* --- MICRO-INTERACTIONS --- */
.card, .feature-grid li, .usp-grid li, .blog-preview li, .article-grid li {
  transition: box-shadow 0.18s, transform 0.16s;
}
.cta-btn, .cookie-btn {
  transition: background 0.17s, box-shadow 0.12s, color 0.13s, transform 0.10s;
}
.cta-btn:active, .cookie-btn:active {
  transform: scale(0.97);
}
input, select, textarea {
  transition: border 0.16s, box-shadow 0.17s;
}

/* --- GEOMETRIC SHAPES/DECOR --- */
section {
  position: relative;
}
section:after {
  content: '';
  display: block;
  position: absolute;
  right: 18px;
  top: 16px;
  width: 40px;
  height: 40px;
  border-radius: 16px;
  background: rgba(123,97,76,0.10);
  z-index: 0;
  pointer-events: none;
}
section:first-of-type:after { display: none; }

/* --- FOCUS STATES --- */
.card:focus-within,
.feature-grid li:focus-within,
.usp-grid li:focus-within,
.article-grid li:focus-within {
  outline: 2px solid #7B614C;
  outline-offset: 3px;
}

/* --- MINIMUM SPACING FOR CARDS/SECTIONS --- */
section + section, .card + .card, .testimonial-card + .testimonial-card {
  margin-top: 24px;
}
.feature-grid li + li, .usp-grid li + li, .article-grid li + li {
  margin-left: 0 !important;
}

/* --- HIDE GEOMETRIC ON MOBILE --- */
@media (max-width: 600px) {
  section:after { display: none; }
}

/* --- END --- */
