/* ==== 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,
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;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #FFFFFF;
  color: #22334A;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.7;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #A43E1B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #22334A;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}
input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
}
::-webkit-input-placeholder { color: #787878; }
::-moz-placeholder { color: #787878; }
:-ms-input-placeholder { color: #787878; }
::placeholder { color: #787878; }


/* ==== BRAND VARIABLES ==== */
:root {
  --color-primary: #22334A;
  --color-secondary: #EADFB4;
  --color-accent: #A43E1B;
  --color-accent-dark: #8A2F08;
  --color-background: #FFFFFF;
  --color-muted: #F7F6F2;
  --color-shadow: rgba(34, 51, 74, 0.07);
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}


/* ==== TYPOGRAPHY & HEADINGS ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.18;
}
h1 {
  font-size: 2.75rem; /* 44px */
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;    /* 32px */
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem; /* 20px */
  margin-bottom: 12px;
}
h4 {
  font-size: 1.125rem; /* 18px */
}

p, ul, ol, li, span {
  font-family: var(--font-body);
  color: var(--color-primary);
  font-size: 1rem;
  line-height: 1.7;
}
.text-section p {
  font-size: 1.125rem;
  margin-bottom: 20px;
}

strong {
  color: var(--color-accent);
  font-weight: bold;
}


/* ==== BASICS & LAYOUT ==== */
.container {
  width: 100%;
  max-width: 1160px;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ==== SPACING & SECTIONS ==== */
section {
  width: 100%;
  background: var(--color-background);
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-background);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 28px 24px;
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 24px var(--color-shadow);
  transform: translateY(-3px);
}
.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;
  background: var(--color-muted);
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--color-shadow);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.14s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(34,51,74,0.13);
  transform: scale(1.013);
}
.testimonial-card p {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.5;
}
.testimonial-card span {
  font-family: var(--font-body);
  color: var(--color-accent);
  font-size: 0.98rem;
  margin-left: 14px;
}

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

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

/* ========================================
   ==== FLEXBOX NAVIGATION & HEADER   =====
   ======================================== */
header {
  background: var(--color-background);
  border-bottom: 1px solid #ececec;
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
header nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 8px 6px;
  border-radius: 3px;
  transition: background 0.16s, color 0.16s;
}
header nav a:hover, header nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}
header a.btn-primary {
  margin-left: 20px;
}
header img[src*="logo"] {
  height: 42px;
  width: auto;
}
.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 2rem;
  cursor: pointer;
  display: none;
  padding: 8px 10px;
  border-radius: 4px;
  transition: background 0.15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: var(--color-accent-dark);
}

/* =====================================
   ==== MOBILE MENU & OVERLAY =====
   ===================================== */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,51,74,0.84);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.71,0,.21,1), opacity 0.26s;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.25rem;
  margin: 32px 24px 20px auto;
  cursor: pointer;
  z-index: 10001;
  padding: 6px 10px;
  transition: background 0.17s;
  border-radius: 4px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin: 30px 0 0 32px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.18rem;
  font-family: var(--font-display);
  padding: 14px 6px;
  border-radius: 3px;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent-dark);
}


/* =======================================
   ==== BUTTONS ====  Elegant Classic  ====
   ======================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.13rem;
  border-radius: 30px;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 34px;
  border: none;
  box-shadow: 0 2px 10px var(--color-shadow);
  cursor: pointer;
  letter-spacing: 0.02em;
  margin-top: 12px;
  margin-bottom: 8px;
  transition: background 0.18s, box-shadow 0.13s, color 0.18s, transform 0.12s;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 6px 24px var(--color-shadow);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  border-radius: 26px;
  border: 2px solid var(--color-accent);
  background: #fff;
  color: var(--color-accent);
  padding: 10px 24px;
  margin-top: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  box-shadow: 0 1px 4px var(--color-shadow);
  transition: background 0.18s, color 0.22s, box-shadow 0.13s,border 0.11s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px var(--color-shadow);
}

/* ==== LISTS, ICONS, and FEATURES ==== */
ul li, .feature-item li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  font-size: 1.08rem;
  margin-bottom: 14px;
}
ul li img,
.feature-item img {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  flex-shrink: 0;
  filter: grayscale(30%) contrast(0.8) brightness(0.92);
}


/* ==== FOOTER ==== */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 40px 0 12px 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  gap: 24px;
}
footer nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px 36px;
  margin-bottom: 14px;
}
footer nav a {
  color: #ede9d3;
  font-family: var(--font-body);
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-accent);
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 0.98rem;
}
.footer-contact span {
  color: #ede9d3;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-contact img {
  width: 20px; height: 20px;
  filter: grayscale(20%) brightness(1.1);
}
.footer-branding {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 1.04rem;
}
.footer-branding img {
  width: 32px; height: 32px;
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: var(--color-muted);
  border-top: 1px solid #dedec9;
  box-shadow: 0 -2px 12px rgba(34,51,74,0.09);
  padding: 24px 20px 24px 20px;
  z-index: 19999;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.28s, transform 0.22s;
  font-family: var(--font-body);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner p {
  flex: 1 1 auto;
  max-width: 680px;
  color: var(--color-primary);
  font-size: 1rem;
  margin-bottom: 0;
}
.cookie-banner .cookie-controls {
  display: flex;
  flex-direction: row;
  gap: 16px;
  flex-shrink: 0;
}
.cookie-banner button {
  font-family: var(--font-body);
  padding: 8px 18px;
  border-radius: 24px;
  border: none;
  font-size: 1rem;
  margin: 0;
  cursor: pointer;
  transition: background 0.16s,color 0.15s;
}
#cookie-accept {
  background: var(--color-primary);
  color: #fff;
  border: none;
}
#cookie-accept:hover, #cookie-accept:focus {
  background: var(--color-accent);
}
#cookie-reject {
  background: #fff;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
#cookie-reject:hover, #cookie-reject:focus {
  background: var(--color-secondary);
}
#cookie-settings {
  background: none;
  color: var(--color-accent);
  border: none;
  text-decoration: underline;
  padding: 8px 3px;
}
#cookie-settings:hover,#cookie-settings:focus {
  color: var(--color-accent-dark);
  background: var(--color-secondary);
}

/* ==== COOKIE MODAL ==== */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 20000;
  left:0; right:0; top:0; bottom:0;
  background: rgba(34,51,74,0.32);
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 430px;
  width: 95%;
  padding: 36px 28px 24px 28px;
  box-shadow: 0 8px 32px rgba(34,51,74,0.20);
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: box-shadow 0.16s;
}
.cookie-modal h2 {
  color: var(--color-primary);
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  margin-bottom: 10px;
}
.cookie-switch {
  appearance: none;
  width: 38px; height: 20px;
  background: #ddd;
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-switch:checked {
  background: var(--color-accent);
}
.cookie-switch:disabled {
  background: #e3dcc4;
  cursor: not-allowed;
}
.cookie-switch::-webkit-slider-thumb {
  appearance: none;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  border: 1px solid #ccc;
  position: absolute;
  top: 1px;
  left: 1px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: left 0.15s;
}
.cookie-switch:checked::-webkit-slider-thumb {
  left: 19px;
  border-color: var(--color-accent);
}
/* Firefox */
.cookie-switch::after {
  content: '';
  display: block;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1px; left: 1px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border: 1px solid #ccc;
  transition: left 0.15s, border 0.13s;
}
.cookie-switch:checked::after {
  left: 19px;
  border: 1px solid var(--color-accent);
}
.cookie-switch:disabled::after {
  border: 1px solid #e3dcc4;
  background: #f6f1e5;
}
.cookie-modal .modal-buttons {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  justify-content: flex-end;
}
.cookie-modal .modal-buttons button {
  min-width: 92px;
  padding: 8px 18px;
}


/* ==== FORMS, FAQ ==== */
main ul {
  margin-bottom: 18px;
  padding-left: 0px;
}
main ul li, main ol li {
  margin-bottom: 14px;
}


/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 1024px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
    max-width: 100%;
  }
}
@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    gap: 10px;
  }
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.08rem; }
  section, .section { padding: 32px 6px; }
  .section { margin-bottom: 34px; }
  .container { padding: 0 6px; }
  .content-wrapper { gap: 20px; }
  .testimonial-card {
    flex-direction: column;
    gap: 9px;
    padding: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .footer-contact, .footer-branding {
    flex-direction: column;
    gap: 7px;
    align-items: flex-start;
  }
  header .container {
    flex-direction: row;
    align-items: center;
    padding: 15px 7px;
    gap: 2px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  a.btn-primary {
    margin-left: 0;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding: 18px 7px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.09rem; }
  p, li, span { font-size: 0.99rem; }
  .card, .testimonial-card { padding: 10px 7px; }
  .btn-primary, .btn-secondary { padding: 8px 16px; font-size: 0.97rem; }
}


/* ==== MICRO-INTERACTIONS ==== */
nav a, .btn-primary, .btn-secondary, .mobile-menu-toggle, .footer-contact span, .cookie-banner button {
  outline: none;
}
nav a:focus-visible, .btn-primary:focus-visible, .btn-secondary:focus-visible, .mobile-menu-toggle:focus-visible, .cookie-banner button:focus-visible {
  box-shadow: 0 0 0 2px var(--color-accent);
  outline: none;
}
::-webkit-scrollbar {
  width: 8px; height: 8px;
  background: #F7F6F2;
}
::-webkit-scrollbar-thumb {
  background: #ebe7d9;
  border-radius: 8px;
}


/* === Z-INDEX SAFE AREAS === */
header, .mobile-menu, .cookie-banner, .cookie-modal-overlay { z-index: 9999; }

/* === Hide elements visually but keep for screenreaders === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
