/* ===================================================================
   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, 
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0; padding: 0; border: 0;
  font: inherit; vertical-align: baseline;
  box-sizing: border-box;
}
html { line-height: 1.4; font-size: 16px; }
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  min-height: 100vh;
  background: #F3EFE8;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  color: #283249;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg { display: inline-block; max-width: 100%; height: auto; border: 0; }
a { color: #283249; text-decoration: none; transition: color 0.2s; }
a:focus { outline: 2px solid #B39B6D; outline-offset: 2px; }
ul, ol { padding-left: 1.2em; }
strong { font-weight: 600; }
hr { border: none; border-top: 1px solid #e0e5ee; margin: 32px 0; }

/* ===================================================================
   BRAND TYPOGRAPHY
=================================================================== */
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:400,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lato:400,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #283249;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.4rem; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: 1.7rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 16px; }
h4 { font-size: 1.1rem; margin-bottom: 12px; }

p, li, span, blockquote {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #283249;
  line-height: 1.7;
}
.subheadline { font-size: 1.12rem; color: #283249; margin-bottom: 24px; }

blockquote {
  border-left: 4px solid #B39B6D;
  padding: 16px 24px;
  margin: 16px 0 32px 0;
  color: #283249;
  background: #F8F7F4;
  font-style: italic;
  font-size: 1.1em;
}

/* ===================================================================
   CONTAINERS & LAYOUT
=================================================================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.header-flex {
  display: flex; flex-direction: row;
  align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.content-wrapper {
  margin: 0 auto; max-width: 850px;
  display: flex; flex-direction: column; gap: 16px;
}
.section,
main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(40,50,73,0.08);
  margin-bottom: 20px;
  padding: 24px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
  min-width: 260px;
  flex: 1 1 280px;
}
.card:hover {
  box-shadow: 0 6px 16px rgba(40,50,73,0.15);
  transform: translateY(-2px) scale(1.02);
}
.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;
  background: #fff;
  color: #283249;
  box-shadow: 0 2px 10px rgba(40,50,73,0.12);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 540px;
  font-size: 1.07em;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card p {
  color: #283249;
}
.testimonial-card span {
  font-weight: 600;
  font-size: 1em;
  color: #B39B6D;
}
.testimonial-card:hover {
  box-shadow: 0 6px 16px rgba(40,50,73,0.16);
  transform: translateY(-2px) scale(1.01);
}
.feature-grid {
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between;
}
.feature-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 200px;
  min-width: 220px;
  background: #fff;
  border-radius: 10px;
  padding: 24px 20px;
  box-shadow: 0 1px 7px rgba(40,50,73,0.07);
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 22px rgba(40,50,73,0.15);
  transform: translateY(-2px) scale(1.01);
}
.feature-grid img { width: 38px; height: 38px; margin-bottom: 10px; }

.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}
.more-link {
  color: #283249;
  text-decoration: underline;
  font-weight: 500;
  font-size: 1em;
  transition: color 0.18s;
}
.more-link:hover { color: #B39B6D; }

ul, ol {
  margin-bottom: 20px;
}
li + li { margin-top: 8px; }

/* ===================================================================
   HERO AREA
=================================================================== */
.hero {
  background: linear-gradient(104deg, #F3EFE8 62%, #e3e6ef 100%);
  padding-top: 56px;
  padding-bottom: 56px;
  margin-bottom: 48px;
}
.hero .content-wrapper {
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.35rem;
  color: #283249;
}
.hero .cta-btn {
  margin-top: 22px;
}

/* ===================================================================
   BUTTONS & LINKS
=================================================================== */
.cta-btn {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  background: #283249;
  color: #fff;
  border: none;
  padding: 13px 32px;
  font-size: 1.08rem;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(40,50,73,0.08);
  cursor: pointer;
  display: inline-block;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
  margin-bottom: 4px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #B39B6D;
  color: #283249;
  box-shadow: 0 6px 16px rgba(40,50,73,0.15);
  outline: none;
}
nav .cta-btn {
  margin-left: 24px;
}

/* ===================================================================
   HEADER NAVIGATION
=================================================================== */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(40,50,73,0.07);
  position: relative;
  z-index: 50;
}
header img { max-height: 48px; }
nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
nav a {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #283249;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 4px;
  transition: color 0.14s, background 0.15s;
}
nav a:hover, nav a:focus {
  color: #B39B6D;
  background: #F3EFE8;
}

/* ================================================================
   MOBILE NAVIGATION & HAMBURGER MENU
================================================================ */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  border: none;
  font-size: 2rem;
  color: #283249;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 8px;
  transition: background 0.19s, color 0.19s;
  box-shadow: 0 1px 7px rgba(40,50,73,0.08);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F3EFE8;
  color: #B39B6D;
}
.mobile-menu {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #F3EFE8;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.33s cubic-bezier(0.7,0,0.3,1), opacity 0.23s;
  box-shadow: 0 8px 44px 0 rgba(40,50,73,0.23);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.3rem;
  color: #283249;
  padding: 20px 30px 10px 16px;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 10;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #B39B6D;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin: 36px 0 0 32px;
}
.mobile-nav a {
  font-size: 1.14rem;
  color: #283249;
  font-weight: 500;
  padding: 13px 0 13px 0;
  border-bottom: 1px solid #e1e1e4;
  transition: color 0.14s, background 0.18s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #B39B6D;
  background: #ede6de;
}

@media (max-width: 1020px) {
  nav {
    gap: 12px;
  }
  nav .cta-btn {
    margin-left: 12px;
  }
}
@media (max-width: 860px) {
  .container { max-width: 98vw; }
}
@media (max-width: 768px) {
  .container { padding-left: 10px; padding-right: 10px; }
  .header-flex {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 580px) {
  .header-flex { padding: 10px 0 6px 0; }
  header img { max-height: 40px; }
}

/* ================================================================
   MAIN CONTENT & FLEX LAYOUTS
================================================================ */
@media (max-width: 1020px) {
  .feature-grid, .card-container, .content-grid {
    gap: 12px;
  }
}
@media (max-width: 920px) {
  .content-wrapper { max-width: 98vw; }
  .feature-grid, .card-container, .content-grid { flex-direction: column; gap: 18px; }
  .testimonial-card, .card, .feature-grid > div { min-width: 0; }
}
@media (max-width: 768px) {
  .hero { padding-top: 36px; padding-bottom: 36px; }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .feature-grid > div, .card { min-width: unset; width: 100%; }
  .section, main > section {
    margin-bottom: 33px;
    padding: 22px 8px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.48rem; }
  h2 { font-size: 1.14rem; }
  .hero { padding-top: 19px; padding-bottom: 28px; }
  .feature-grid img { width: 32px; height: 32px; }
}
@media (max-width: 520px) {
  .testimonial-card, .card { padding: 12px 7px; min-width: unset; }
}

.text-image-section {
  flex-direction: row;
  align-items: center;
  gap: 30px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* ===================================================================
   FOOTER
=================================================================== */
footer {
  background: #283249;
  color: #fff;
  padding: 30px 0 20px;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
footer nav {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
}
footer nav a {
  color: #fff;
  font-size: 0.97em;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: 500;
  background: none;
  border: none;
  transition: background 0.15s, color 0.13s;
}
footer nav a:hover, footer nav a:focus {
  background: #B39B6D;
  color: #283249;
}
footer span {
  color: #fff;
  opacity: 0.75;
  font-size: 0.92em;
}
@media (max-width: 600px) {
  footer nav { flex-direction: column; gap: 6px; align-items: center; }
}

/* ===================================================================
   COOKIE CONSENT BANNER & MODAL
=================================================================== */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 18px;
  background: #fff;
  color: #283249;
  border: 1px solid #ddd;
  box-shadow: 0 6px 30px rgba(40,50,73,0.11);
  border-radius: 14px;
  z-index: 2400;
  padding: 19px 22px 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  align-items: flex-start;
  max-width: 410px;
  min-width: 0;
  animation: cookie-slide-in 0.43s cubic-bezier(0.3,0.7,0.2,1);
}
@keyframes cookie-slide-in {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner p { font-size: 1em; }
.cookie-banner-buttons {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}
.cookie-banner .cookie-btn {
  background: #283249;
  color: #fff;
  padding: 9px 20px;
  border-radius: 6px;
  border: none;
  font-size: 1em;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0;
  transition: background 0.18s, color 0.18s, box-shadow 0.17s;
}
.cookie-banner .cookie-btn.secondary {
  background: #B39B6D;
  color: #fff;
}
.cookie-banner .cookie-btn.settings {
  background: #fff;
  color: #283249;
  border: 1px solid #B39B6D;
  font-weight: 500;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #283249;
  color: #fff;
}
.cookie-banner .cookie-btn.secondary:hover, .cookie-banner .cookie-btn.secondary:focus {
  background: #283249;
  color: #fff;
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: #F3EFE8;
  color: #283249;
}

/* Cookie Settings Modal */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(40,50,73,0.29);
  z-index: 2401;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cookie-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #283249;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(40,50,73,0.17);
  padding: 34px 28px 22px 28px;
  min-width: 285px; max-width: 94vw;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 19px;
  z-index: 3001;
  animation: modal-in 0.35s cubic-bezier(0.4,0.7,0.2,1);
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal .modal-close {
  background: none; border: none;
  color: #283249; font-size: 2rem;
  position: absolute; right: 24px; top: 16px;
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  color: #B39B6D;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 10px;
}
.cookie-category.essential label {
  opacity: 0.72;
}
.cookie-category-toggle {
  margin-left: auto;
}
.cookie-category label {
  font-weight: 500;
  font-size: 1.02em;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 39px;
  height: 22px;
  vertical-align: middle;
}
.toggle-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.toggle-slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ddd;
  border-radius: 22px;
  transition: background 0.19s;
}
.toggle-switch input:checked + .toggle-slider {
  background: #283249;
}
.toggle-slider:before {
  position: absolute;
  content: '';
  left: 3px; top: 2.5px;
  width: 17px; height: 17px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.19s;
  box-shadow: 0 2px 6px rgba(40,50,73,0.13);
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(16px);
}

.cookie-modal-buttons {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.cookie-modal .cookie-btn {
  min-width: 0;
}

@media (max-width: 640px) {
  .cookie-banner { max-width: 99vw; left: 2vw; right: 2vw; padding: 13px 7px 13px 14px; }
  .cookie-modal { padding: 22px 10px 18px 13px; font-size: 0.97em; }
}

/* ===================================================================
   UTILITIES & EFFECTS
=================================================================== */
.shadow-1 { box-shadow: 0 2px 8px rgba(40,50,73,0.09); }
.shadow-2 { box-shadow: 0 6px 28px rgba(40,50,73,0.14); }
.rounded-8 { border-radius: 8px; }
.rounded-12 { border-radius: 12px; }
.bkg-accent { background: #F3EFE8; }
.bkg-primary { background: #283249; color: #fff; }
.bkg-secondary { background: #B39B6D; color: #fff; }

/* ===================================================================
   ACCESSIBILITY
=================================================================== */
:focus-visible { outline: 2px solid #B39B6D; outline-offset: 3px; }

/* ===================================================================
   MISCELLANEOUS / SPACING
=================================================================== */
.section { margin-bottom: 60px; padding: 40px 20px; }
.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; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* No grid, no columns, flexbox only everywhere. */
