/* ===================== 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, 
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; }
*, *:before, *:after { box-sizing: inherit; }
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background-color: #F2F4F6;
  color: #222;
  font-family: 'Roboto', Georgia, 'Times New Roman', serif;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.02em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol { list-style: none; padding-left: 0; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea {
  font-family: inherit;
  font-size: 1em;
  line-height: 1.2;
  background: none;
  border: none;
  outline: none;
}

/* ===================== BRAND - VARIABLES (w/ fallback) ===================== */
:root {
  --brand-primary: #20416D;
  --brand-secondary: #DF9528;
  --brand-accent: #F2F4F6;
  --brand-text: #222;
  --brand-muted: #f6f2eb;
  --brand-shadow: rgba(32,65,109,0.07);
  --font-display: 'Montserrat', Georgia, 'Times New Roman', serif;
  --font-body: 'Roboto', Georgia, 'Times New Roman', serif;
}

/* ============ TYPOGRAPHY (Elegant Serif & Modern) ============ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display), serif;
  color: var(--brand-primary);
  font-weight: 600;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; line-height: 1.16; margin-bottom: 20px; }
h2 { font-size: 2rem; line-height: 1.24; margin-bottom: 16px; }
h3 { font-size: 1.5rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.15rem; margin-bottom: 8px; }
p, li, ul, ol {
  font-family: var(--font-body), serif;
  color: #222;
  font-size: 1rem;
  margin-bottom: 12px;
}
strong { font-weight: 600; }

em {font-style: italic; color: var(--brand-secondary);}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.15rem; }
}

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

/* ========== SECTIONS & SPACING ========== */
section {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3px 24px var(--brand-shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  section {
    border-radius: 10px;
    padding: 28px 10px;
    margin-bottom: 36px;
  }
}

/* ========= HEADER & NAVIGATION ========== */
header {
  background: #fff;
  border-bottom: 2px solid #ece7dd;
  box-shadow: 0 3px 18px 0 var(--brand-shadow);
}
header .container {
  min-height: 74px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
header img {
  height: 48px;
  width: auto;
  padding: 6px 0;
  margin-right: 24px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display), serif;
  font-size: 1rem;
  color: var(--brand-primary);
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.22s, color 0.15s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: var(--brand-secondary);
  color: #fff;
}
header .btn-primary {
  margin-left: 24px;
}

@media (max-width: 1024px) {
  header nav {
    gap: 18px;
  }
  header img {
    height: 40px;
  }
}
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  header .btn-primary {
    display: none;
  }
}

/* ========== MOBILE BURGER MENU ========== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  right: 20px;
  top: 18px;
  z-index: 1150;
  font-size: 2.2rem;
  background: var(--brand-primary);
  color: #fff;
  border-radius: 7px;
  width: 46px;
  height: 46px;
  justify-content: center;
  align-items: center;
  border: none;
  box-shadow: 0 1px 8px rgba(32,65,109,0.13);
  transition: background 0.18s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--brand-secondary);
  color: #20416D;
}
@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  z-index: 2000;
  transform: translateX(-100vw);
  transition: transform .4s cubic-bezier(.55,0,.2,1);
  box-shadow: 0px 0px 80px 8px rgba(32,65,109,0.2);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 20px 18px 0 0;
  background: none;
  font-size: 2rem;
  color: var(--brand-primary);
  border-radius: 4px;
  width: 44px; height: 44px;
  display: flex;
  justify-content: center; align-items: center;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--brand-secondary);
  color: #fff;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 22px;
  align-items: flex-start;
}
.mobile-nav a {
  display: block;
  font-family: var(--font-display), serif;
  color: var(--brand-primary);
  font-size: 1.18rem;
  padding: 18px 32px 18px 32px;
  border-radius: 7px;
  font-weight: 500;
  transition: background 0.22s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-secondary);
  color: #fff;
}
.mobile-menu {
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.open {
  visibility: visible;
  pointer-events: all;
}

/* Prevent scroll on open mobile menu */
body.mobile-menu-open {
  overflow: hidden;
}

/* ========== MAIN BUTTON STYLES ========== */
.btn, .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  padding: 14px 36px;
  font-family: var(--font-display), serif;
  background: var(--brand-primary);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 16px 0 var(--brand-shadow);
  cursor: pointer;
  margin-top: 10px;
  text-align: center;
  letter-spacing: 0.02em;
  transition: background 0.20s, color 0.16s, box-shadow 0.18s;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  box-shadow: 0 4px 30px 0 var(--brand-shadow);
}

@media (max-width: 400px) {
  .btn, .btn-primary {
    padding: 12px 16px;
    font-size: 0.98rem;
  }
}

/* ==== LIST STYLES ==== */
ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
ul li img {
  height: 28px;
  width: 28px;
  margin-top: 3px;
}

/* ==== FLEXBOX LAYOUT REQUIREMENTS ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 18px 0 var(--brand-shadow);
  padding: 30px 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.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;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--brand-muted);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px var(--brand-shadow);
  border: 1.5px solid #ede0c5;
}
.testimonial-card p {
  color: #242424;
  font-style: italic;
  font-size: 1.07rem;
}
.testimonial-card span {
  color: var(--brand-primary);
  font-family: var(--font-display), serif;
  font-size: 1rem;
  font-weight: 500;
  align-self: flex-end;
}
.testimonial-card div {
  font-size: 1.2rem;
  color: #ECC15E;
  letter-spacing: 2px;
}

@media (max-width: 768px) {
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
  .content-grid, .text-image-section, .card-container {
    flex-direction: column;
    gap: 14px;
  }
}

/* ============= GENERAL CARD LAYOUTS ============= */
.card {
  box-shadow: 0 3px 18px var(--brand-shadow);
  border: 1.5px solid #ece7dd;
  background: #fff;
  transition: box-shadow 0.22s, border-color 0.17s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 7px 38px rgba(32,65,109,0.12);
  border-color: var(--brand-secondary);
}

/* ============= WHITE SPACE AND SPACING SYSTEM ============= */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 28px 10px;
  }
}

/* ============= FOOTER STYLES ============= */
footer {
  width: 100%;
  background: #fff;
  border-top: 2px solid #ece7dd;
  padding: 28px 0 12px;
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
}
footer nav a {
  font-family: var(--font-body), serif;
  color: var(--brand-primary);
  font-size: 0.97rem;
  border-radius: 4px;
  padding: 4px 10px;
  transition: background 0.14s, color 0.14s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--brand-secondary);
  color: #fff;
}
footer p {
  font-size: 0.95rem;
  color: #868686;
  text-align: center;
}

@media (max-width: 600px) {
  footer nav {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}

/* ================ COOKIE CONSENT BANNER & MODAL ================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 2px solid var(--brand-secondary);
  box-shadow: 0 -3px 40px 0 var(--brand-shadow);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 14px 20px 14px;
  font-family: var(--font-body), serif;
  font-size: 1rem;
  color: #262626;
  gap: 28px;
  transition: transform 0.32s cubic-bezier(.5,0,.1,1), opacity 0.22s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hidden {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner-content {
  flex: 1 1 0px;
  max-width: 580px;
}
.cookie-banner-buttons {
  display: flex;
  gap: 18px;
  align-items: center;
}
.cookie-btn,
.cookie-btn-primary {
  padding: 9px 18px;
  border-radius: 18px;
  border: 1.5px solid var(--brand-primary);
  font-family: var(--font-body), serif;
  font-size: 1rem;
  font-weight: 500;
  background: none;
  cursor: pointer;
  margin-left: 0;
  margin-top: 0;
  transition: background 0.18s, color 0.18s, border 0.14s;
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: var(--brand-accent);
  border-color: var(--brand-secondary);
}
.cookie-btn-primary {
  background: var(--brand-primary);
  color: #fff;
  border: 1.5px solid var(--brand-primary);
  font-weight: 600;
}
.cookie-btn-primary:hover, .cookie-btn-primary:focus {
  background: var(--brand-secondary);
  border-color: var(--brand-secondary);
  color: var(--brand-primary);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(32,65,109,0.25);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.22s;
}
.cookie-modal.hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  color: #223145;
  border-radius: 18px;
  box-shadow: 0 6px 48px 0 var(--brand-shadow);
  padding: 36px 30px 28px 30px;
  min-width: 330px;
  max-width: 92vw;
  min-height: 120px;
  font-family: var(--font-body), serif;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  right: 16px; top: 14px;
  background: none;
  border: none;
  color: var(--brand-primary);
  font-size: 1.42rem;
  cursor: pointer;
  border-radius: 3px;
  padding: 3px 6px;
  transition: background 0.12s, color 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--brand-accent);
  color: var(--brand-secondary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}
.cookie-category-toggle {
  width: 38px;
  height: 22px;
  border-radius: 14px;
  background: #e6e6ed;
  position: relative;
  cursor: pointer;
  transition: background 0.14s;
  vertical-align: middle;
}
.cookie-category-toggle.enabled { background: var(--brand-secondary); }
.cookie-category-toggle.disabled { background: #eaeae9; }
.cookie-category-toggle:before {
  content: "";
  display: block;
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(32,65,109,0.10);
  transition: left 0.17s;
}
.cookie-category-toggle.enabled:before { left: 19px; }
.cookie-category-label {
  font-size: 1.04rem;
  min-width: 120px;
  font-weight: 500;
  color: var(--brand-primary);
}
.cookie-category-desc {
  font-size: 0.95rem;
  color: #534f4a;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    padding: 16px 8px 16px 8px;
    text-align: left;
  }
  .cookie-modal-content {
    padding: 23px 8px 18px 10px;
  }
}

/* =========== INTERACTIVE ELEMENTS & MICROINTERACTIONS ============ */
a:not(.btn):not(.btn-primary):not(.cookie-btn):not(.cookie-btn-primary) {
  color: var(--brand-secondary);
  text-decoration: underline;
  transition: color 0.17s;
}
a:not(.btn):not(.btn-primary):not(.cookie-btn):not(.cookie-btn-primary):hover, 
a:not(.btn):not(.btn-primary):not(.cookie-btn):not(.cookie-btn-primary):focus {
  color: var(--brand-primary);
  text-decoration: none;
}

input, textarea, select {
  background: #fff;
  border: 1.5px solid #e4e4de;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1em;
  margin-bottom: 16px;
  box-shadow: none;
  transition: border 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-secondary);
}

/* =========== RESPONSIVE ADJUSTMENTS =========== */
@media (max-width: 600px) {
  h1, h2, h3 {
    text-align: left;
  }
  .container, .content-wrapper, .content-grid, .text-image-section {
    padding-left: 0;
    padding-right: 0;
  }
}
@media (max-width: 420px) {
  h1 { font-size: 1.23rem; }
  h2 { font-size: 1rem; }
}

/* =========== ANIMATIONS =========== */
.card, section, .testimonial-card, .cookie-modal-content {
  transition: box-shadow 0.22s, border 0.13s, background 0.18s, transform 0.14s;
}
.card:hover, .testimonial-card:hover, section:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 8px 40px rgba(32,65,109,0.13);
}

.btn, .btn-primary, .cookie-btn, .cookie-btn-primary, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border 0.14s;
}

/* =========== OVERRIDES FOR ELEGANT_CLASSIC LOOK =========== */
body, p, li, ul, ol {
  font-family: var(--font-body), georgia, 'Times New Roman', serif;
  color: #25221e;
}
h1, h2, h3, h4 {
  font-family: var(--font-display), Georgia, 'Times New Roman', serif;
  font-variant-ligatures: discretionary-ligatures;
}
section, .card, .testimonial-card {
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 14px var(--brand-shadow);
}

/* ===================== UTILITY CLASSES ===================== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

/* ============ ACCESSIBILITY (Extra contrast for testimonials) ============ */
.testimonial-card, .testimonial-card p, .testimonial-card span {
  color: #23211f;
}

/* ============= DIALOG/BACKDROP Z-INDEX ============= */
.cookie-modal { z-index: 4000; }
.cookie-banner { z-index: 3000; }
.mobile-menu { z-index: 2000; }
header { z-index: 1000; }

/* =============== END OF CSS =============== */
