/* ===================
   CSS RESET & BASE
=================== */
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;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F6EDEA;
  color: #23242A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #23242A;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
  font-weight: 500;
}
a:focus, a:hover {
  color: #A6ADB8;
  outline: none;
}
ul, ol {
  padding-left: 1.3em;
  margin-bottom: 1.2em;
}
li {
  margin-bottom: 0.6em;
}
strong {
  font-weight: 700;
}

/* ===================
    TYPOGRAPHY
=================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #23242A;
  font-weight: 700;
  letter-spacing: 0.011em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.6rem;
  line-height: 1.1;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem;
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
p {
  color: #23242A;
  margin-bottom: 14px;
  font-size: 1rem;
  line-height: 1.7;
}

/* ===================
    CONTAINERS & LAYOUT
=================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.text-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 14px 0 rgba(166,173,184,0.09);
  padding: 36px 28px;
  margin-bottom: 28px;
}

/* Section spacing & alignment patterns */
.section {
  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: 14px;
  box-shadow: 0 3px 18px 0 rgba(35,36,42,0.06);
  padding: 28px 22px;
  transition: box-shadow 0.2s cubic-bezier(.4,0,.2,1);
  min-width: 250px;
}
.card:hover,
.card:focus {
  box-shadow: 0 6px 28px 0 rgba(35,36,42,0.13);
}
.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: #fff;
  border-left: 5px solid #A6ADB8;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 2px 18px 0 rgba(35,36,42,0.07);
  font-size: 1.08rem;
  margin-bottom: 22px;
  max-width: 750px;
  transition: box-shadow 0.22s cubic-bezier(.4,0,.2,1);
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px 0 rgba(35,36,42,0.19);
}
.testimonial-card p {
  color: #23242A;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.97em;
  color: #A6ADB8;
  letter-spacing: 0.01em;
  font-weight: 600;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* ==============
   FEATURE GRID
=============== */
.feature_grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 18px;
  margin-bottom: 10px;
}
.feature_grid > div {
  flex: 1 1 220px;
  min-width: 220px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 14px 0 rgba(35,36,42,0.05);
  padding: 28px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border-bottom: 3px solid #A6ADB8;
  transition: box-shadow 0.18s cubic-bezier(.4,0,.2,1);
}
.feature_grid > div:hover {
  box-shadow: 0 8px 30px 0 rgba(35,36,42,0.20);
}
.feature_grid img {
  height: 34px; width: 34px;
  margin-bottom: 8px;
}

/* === CTA BUTTONS === */
.cta-btn {
  display: inline-block;
  padding: 14px 38px;
  margin-top: 18px;
  font-size: 1.05rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: #23242A;
  color: #F6EDEA;
  border: none;
  border-radius: 32px 2px 32px 2px;
  box-shadow: 0 2px 20px 0 rgba(35,36,42,0.10);
  transition: background 0.18s, color 0.18s, box-shadow 0.23s;
  cursor: pointer;
  outline: none;
  text-align: center;
}
.cta-btn:focus,
.cta-btn:hover {
  background: #A6ADB8;
  color: #23242A;
  box-shadow: 0 4px 32px 0 rgba(166,173,184,0.18);
}

/* === NAVIGATION === */
header {
  background: #23242A;
  padding: 0;
  width: 100%;
  box-shadow: 0 2px 14px 0 rgba(35,36,42,0.08);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}
header img {
  height: 46px;
  width: auto;
  vertical-align: middle;
}
nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  color: #F6EDEA;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  padding: 6px 7px;
  position: relative;
  border-radius: 2px;
  transition: color 0.18s, background 0.16s;
}
header nav a:after {
  content: '';
  display: block;
  width: 0%;
  height: 2.5px;
  background: #A6ADB8;
  position: absolute;
  left: 0;
  bottom: 0;
  border-radius: 1.5px;
  transition: width 0.22s cubic-bezier(.4,0,.2,1);
}
header nav a:focus,
header nav a:hover {
  color: #A6ADB8;
  background: rgba(246,237,234, 0.09);
}
header nav a:focus:after,
header nav a:hover:after {
  width: 100%;
}

/* ============
     FOOTER
============= */
footer {
  background: #23242A;
  color: #F6EDEA;
  padding: 0;
  width: 100%;
  margin-top: 40px;
  font-size: 1rem;
}
footer .container {
  padding-top: 32px;
  padding-bottom: 28px;
}
footer .content-wrapper {
  gap: 12px;
}
footer h2 {
  color: #F6EDEA;
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}
footer nav {
  gap: 20px;
  flex-wrap: wrap;
}
footer nav a {
  color: #A6ADB8;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  margin-right: 10px;
  letter-spacing: 0.02em;
  transition: color 0.18s;
}
footer nav a:hover,
footer nav a:focus {
  color: #fff;
  text-decoration: underline;
}
footer img {
  height: 28px; width: 28px;
  margin-right: 3px;
  vertical-align: middle;
}
footer a {
  display: inline-block;
  margin-right: 12px;
}
footer p {
  color: #F6EDEA;
  margin-bottom: 7px;
  font-size: 1rem;
}

/* ===============
     TABLES
=============== */
table {
  border-collapse: collapse;
  background: #fff;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 2px 16px 0 rgba(166,173,184,0.07);
}
thead {
  background: #A6ADB8;
  color: #fff;
}
thead th {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 15px 10px;
}
tbody tr {
  border-bottom: 1px solid #F6EDEA;
}
td {
  padding: 13px 10px;
  font-size: 1.01rem;
  color: #23242A;
}
tbody tr:nth-child(even) {
  background: #F6EDEA;
}

/* ================
   LISTS STYLES
================= */
ul, ol {
  margin-bottom: 17px;
}
ul li::marker {
  color: #A6ADB8;
}
ol li {
  font-weight: 500;
}
ul li, ol li {
  padding-left: 2px;
  font-size: 1rem;
}

/* ===================
      FORMS (minimal)
=================== */
input, textarea, select {
  border: 1.5px solid #A6ADB8;
  border-radius: 7px;
  padding: 11px 13px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 14px;
  background: #fff;
  color: #23242A;
  transition: border-color 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: #23242A;
  outline: none;
}

/* ===================
   BURGER & MOBILE MENU
=================== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 19px;
  top: 19px;
  font-size: 2.2rem;
  color: #F6EDEA;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1021;
  border-radius: 8px;
  padding: 7px 13px;
  transition: background 0.14s, color 0.16s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #A6ADB8;
  color: #23242A;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #23242A;
  color: #F6EDEA;
  z-index: 1200;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 24px 0 0 0;
  transform: translateX(-100vw);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  margin-left: 18px;
  font-size: 2.4rem;
  color: #F6EDEA;
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 10px;
  transition: color 0.1s, background 0.12s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #A6ADB8;
  background: rgba(255,255,255,0.08);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 18px;
  margin-top: 18px;
  width: 100%;
}
.mobile-nav a {
  color: #F6EDEA;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  padding: 13px 0;
  border-bottom: 1.5px solid #A6ADB8;
  width: 90%;
  transition: background 0.12s, color 0.12s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: #23242A;
  background: #A6ADB8;
  border-radius: 4px;
}

/* ===============
   COOKIE BANNER
================ */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #23242A;
  color: #F6EDEA;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 16px 24px;
  gap: 16px;
  font-size: 1rem;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -2px 16px rgba(35,36,42,0.24);
  animation: bannerIn 0.45s ease-out;
}
@keyframes bannerIn {
  0% { transform: translateY(100%) scale(0.97); opacity:0; }
  70% { opacity: 1; transform: translateY(-13px) scale(1.03); }
  100% { transform: translateY(0) scale(1); opacity:1; }
}
.cookie-banner-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 18px;
  border: none;
  border-radius: 18px 2px 18px 2px;
  background: #A6ADB8;
  color: #23242A;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  margin-right: 4px;
}
.cookie-btn:focus,
.cookie-btn:hover {
  background: #F6EDEA;
  color: #23242A;
}
.cookie-btn.reject {
  background: #F6EDEA;
  color: #23242A;
}
.cookie-btn.reject:focus,
.cookie-btn.reject:hover {
  background: #A6ADB8;
  color: #23242A;
}
/* COOKIE SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  z-index: 9990;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(35,36,42,0.68);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.28s;
  animation: modalIn 0.36s;
}
@keyframes modalIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  color: #23242A;
  padding: 38px 30px 30px 30px;
  border-radius: 18px 6px 18px 6px;
  box-shadow: 0 6px 48px 0 rgba(35,36,42,0.27);
  min-width: 320px;
  max-width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 26px;
  font-size: 1.08rem;
}
.cookie-modal-content h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #A6ADB8;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
}
.cookie-toggle {
  width: 45px;
  height: 25px;
  position: relative;
  display: inline-block;
}
.cookie-toggle input {display:none;}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #A6ADB8;
  border-radius: 25px;
  transition: background 0.2s;
}
.cookie-toggle input:checked + .cookie-slider {
  background: #23242A;
}
.cookie-slider:before {
  content: "";
  position: absolute;
  width: 23px;
  height: 23px;
  left: 1px;
  bottom: 1px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 2px 4px rgba(35,36,42,0.08);
}
.cookie-toggle input:checked + .cookie-slider:before {
  transform: translateX(20px);
  background: #F6EDEA;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
@media (max-width: 540px) {
  .cookie-modal-content {
    padding: 18px 8px 15px 12px;
    font-size: 0.99rem;
  }
  .cookie-modal-actions { gap: 7px; }
}

/* ================
   MEDIA QUERIES
================= */
@media (max-width: 1200px) {
  .container { max-width: 98vw; }
  .feature_grid { gap: 20px; }
}
@media (max-width: 990px) {
  header .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
}
@media (max-width: 900px) {
  .feature_grid { gap: 14px; }
  .card-container, .content-grid, .feature_grid {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  /* Mobile-first approach */
  .container { padding-left: 10px; padding-right: 10px; }
  .content-wrapper, .content-grid,
  .card-container, .feature_grid {
    flex-direction: column;
    gap: 20px;
  }
  .section {
    padding: 30px 7px;
    margin-bottom: 35px;
  }
  .card, .testimonial-card, .feature_grid > div {
    padding: 17px 12px;
    min-width: 0;
  }
  .text-image-section { flex-direction: column; gap: 20px; }
  nav, header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .cta-btn {
    padding: 12px 28px;
    font-size: 0.97rem;
  }
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.08rem; }
  footer .content-wrapper {
    gap: 19px;
    padding-left: 0; padding-right: 0;
  }
  .testimonial-card { max-width: 100vw; }
}
@media (max-width: 420px) {
  .cta-btn { width: 100%; text-align: center; padding: 12px 0; }
  .section { padding: 16px 2px; margin-bottom: 22px; }
}
/* Extra: hide desktop nav on mobile, show burger (js toggled class still controls menu open state) */
@media (max-width: 900px) {
  header nav { display: none !important; }
  .mobile-menu-toggle { display: block; }
}

/* =============
   ANIMATIONS
============== */
.cta-btn,
.cookie-btn {
  transition: box-shadow 0.17s, background 0.19s, color 0.14s;
}
.card, .feature_grid > div {
  transition: box-shadow 0.2s cubic-bezier(.4,0,.2,1);
}

/* =============
   MISC/UTILITY
============== */
::-webkit-input-placeholder { color: #A6ADB8; opacity: 1; }
::-moz-placeholder { color: #A6ADB8; opacity: 1; }
:-ms-input-placeholder { color: #A6ADB8; opacity: 1; }
::placeholder { color: #A6ADB8; opacity: 1; }

[hidden] { display:none !important; }

hr {
  border: none;
  border-top: 2px solid #A6ADB8;
  margin: 32px 0 24px 0;
}

/* ======= GEOMETRIC STRUCTURED DETAILS ======= */
.text-section, .card, .feature_grid > div, .testimonial-card {
  border-radius: 18px 4px 18px 4px;
  border: 1.8px solid #A6ADB8;
  box-shadow: 0 2px 22px 0 rgba(35,36,42,0.045);
}
.feature_grid > div {
  border-bottom: 4px solid #A6ADB8;
  border-radius: 6px 22px 12px 10px;
}
.cta-btn,
.cookie-btn {
  border-radius: 32px 4px 32px 4px;
}
.content-wrapper,
.section,
.card-container,
.card,
.content-grid,
.text-image-section,
.testimonial-card,
.feature-item {
  /* Flexbox already used as specified */
}

/* =============
   VISUAL HIERARCHY
============== */
h1, h2 { text-transform: none; }
h3 { text-transform: none; color: #23242A; }
.cta-btn, .mobile-nav a { text-transform: uppercase; }

/* Accessibility: focus outline */
:focus-visible {
  outline: 2.5px solid #A6ADB8;
  outline-offset: 3px;
}

/* ===============
   Z-INDEX FIXES
================ */
.mobile-menu { z-index: 1200; }
.mobile-menu-toggle { z-index: 1021; }
.cookie-banner { z-index: 9000; }
.cookie-modal { z-index: 9990; }

/* =====================================
   NO grid nor columns present anywhere!
====================================== */
