/* ===================== 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,
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 {
  font-family: 'Roboto', 'Times New Roman', Times, serif;
  background: #f7f7f5;
  color: #232326;
  font-size: 1rem;
  line-height: 1.68;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #243752;
  text-decoration: none;
  transition: color 0.18s;
}
a:focus {
  outline: 2px solid #FFD44B;
  outline-offset: 2px;
}
strong, b {
  font-weight: 700;
}
ul, ol {
  list-style: disc inside;
  margin-left: 0;
  padding-left: 1.2em;
}

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Georgia', serif;
  color: #243752;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.15;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}
h3 {
  font-size: 1.44rem;
  margin-bottom: 16px;
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}
p {
  margin-bottom: 16px;
}
.text-section ul, .text-section ol {
  margin-bottom: 20px;
  padding-left: 1.3em;
}

/* ===================== CONTAINER & SECTION ===================== */
.container {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 24px 0 rgba(36,55,82,0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  font-size: 1.1rem;
  color: #31313c;
  margin-bottom: 10px;
}

/* ===================== HEADER & NAVIGATION ===================== */
header {
  background: #243752;
  color: #fff;
  width: 100%;
  padding: 0;
  box-shadow: 0 2px 12px 0 rgba(36,55,82,0.08);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 28px;
}
header img {
  height: 40px;
  width: auto;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
header nav a {
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1.06rem;
  color: #fff;
  font-weight: 500;
  padding: 4px 0;
  position: relative;
  transition: color 0.16s;
}
header nav a:hover {
  color: #FFD44B;
}
.cta-btn {
  display: inline-block;
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1.1rem;
  font-weight: 600;
  background: #FFD44B;
  color: #232326;
  padding: 11px 32px;
  border-radius: 32px;
  border: none;
  box-shadow: 0 1px 10px 0 rgba(36,55,82,0.07);
  letter-spacing: 0.02em;
  cursor: pointer;
  margin-left: 24px;
  transition: background 0.13s, box-shadow 0.18s, color 0.18s;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: #243752;
  color: #FFD44B;
  box-shadow: 0 3px 14px 0 rgba(255,212,75,0.13);
}

/* MOBILE BURGER MENU BUTTON */
.mobile-menu-toggle {
  display: none;
  background: #FFD44B;
  color: #243752;
  border: none;
  border-radius: 7px;
  font-size: 2rem;
  padding: 7px 16px 7px 14px;
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1005;
  box-shadow: 0 2px 6px 0 rgba(36,55,82,0.07);
  cursor: pointer;
  line-height: 1; 
  transition: background 0.15s, color 0.18s, box-shadow 0.16s;
}
.mobile-menu-toggle:focus {
  background: #243752;
  color: #FFD44B;
  outline: 2px solid #FFD44B;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  max-width: 420px;
  height: 100vh;
  background: #243752;
  box-shadow: -2px 0 30px 0 rgba(36, 55, 82, 0.19);
  transform: translateX(102vw);
  transition: transform 0.35s cubic-bezier(.87,.04,.31,.89);
  z-index: 2000;
  padding: 0 0 32px 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: -2px 0 28px 0 rgba(36, 55, 82, 0.27);
}
.mobile-menu-close {
  font-size: 2rem;
  color: #FFD44B;
  background: transparent;
  border: none;
  align-self: flex-end;
  margin: 20px 24px 10px 0;
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu-close:focus {
  color: #fff;
  outline: 2px solid #FFD44B;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 34px;
  margin-top: 10px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1.22rem;
  padding: 9px 2px;
  border-radius: 6px;
  transition: color 0.13s, background 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFD44B;
  color: #243752;
}
@media (max-width: 1030px) {
  header .container nav {
    gap: 14px;
  }
  .cta-btn {
    margin-left: 8px;
    padding: 10px 18px;
    font-size: 1rem;
  }
}
@media (max-width: 940px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 8px 18px 12px;
  }
  header nav {
    flex-wrap: wrap;
    gap: 12px;
  }
}
@media (max-width: 768px) {
  header .container nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ===================== LAYOUT FLEXBOX PATTERNS ===================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 1px 8px 0 rgba(36,55,82,0.08);
  padding: 24px 20px;
  position: relative;
  transition: box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  min-width: 240px;
  flex: 1 1 320px;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(36,55,82,0.17);
  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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f3f7fc;
  border-radius: 13px;
  box-shadow: 0 1px 12px 0 rgba(36,55,82,0.11);
  margin-bottom: 20px;
  color: #1a1a1a;
  max-width: 640px;
  font-size: 1.08rem;
}
.testimonial-card p {
  margin: 0 0 0 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}
@media (max-width: 900px) {
  .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .card {
    min-width: 0;
    flex: 1 1 100%;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 35px;
    padding: 22px 8px;
    border-radius: 12px;
  }
  .container {
    padding: 0 5px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    padding: 13px 10px;
    font-size: 0.98rem;
  }
}

/* ===================== FOOTER ===================== */
footer {
  background: #243752;
  color: #fff;
  font-size: 1rem;
  padding: 0;
  width: 100%;
  margin-top: 80px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 28px;
  padding: 32px 20px 18px 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}
footer img {
  height: 32px;
  margin-bottom: 20px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer nav a {
  color: #FFD44B;
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1rem;
  transition: color 0.13s;
}
footer nav a:hover {
  color: #fff;
}
footer .text-section {
  font-size: 1rem;
  color: #eaeaea;
  margin-bottom: 0;
  margin-top: 8px;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
    padding: 22px 8px 16px 12px;
  }
  footer img {
    margin-bottom: 12px;
  }
}

/* ===================== BUTTONS, INTERACTIVES ===================== */
button, .cta-btn {
  font-family: 'Montserrat', 'Georgia', serif;
}
button {
  border: none;
  background: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.13s, color 0.15s;
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===================== COOKIE CONSENT BANNER ===================== */
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 16px;
  z-index: 2100;
  background: #fff;
  color: #243752;
  border-radius: 13px;
  box-shadow: 0 3px 28px 0 rgba(36,55,82,0.16);
  padding: 22px 18px 18px 28px;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s, transform 0.3s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px);
}
.cookie-banner__text {
  font-size: 1.05rem;
  color: #243752;
  margin-bottom: 8px;
}
.cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-top: 6px;
}
.cookie-btn {
  font-family: 'Montserrat', 'Georgia', serif;
  border: none;
  border-radius: 28px;
  padding: 9px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: #FFD44B;
  color: #243752;
  transition: background 0.15s, color 0.17s, box-shadow 0.16s;
  box-shadow: 0 2px 7px 0 rgba(36,55,82,0.08);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #243752;
  color: #FFD44B;
}
.cookie-btn.outline {
  background: #fff;
  color: #243752;
  border: 2px solid #FFD44B;
}
.cookie-btn.outline:hover, .cookie-btn.outline:focus {
  background: #FFD44B;
  color: #243752;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,55,82,0.5);
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.29s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: #232326;
  border-radius: 18px;
  box-shadow: 0 6px 50px 0 rgba(36,55,82,0.15);
  padding: 38px 34px 28px 34px;
  max-width: 95vw;
  width: 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal h3 {
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1.4rem;
  color: #243752;
  margin-bottom: 5px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 17px;
  background: #f3f7fc;
  border-radius: 9px;
  padding: 10px 19px;
  margin-bottom: 10px;
}
.cookie-category b {
  font-weight: 700;
  color: #243752;
}
.cookie-switch {
  position: relative;
  width: 48px;
  height: 24px;
  display: inline-block;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ccc;
  border-radius: 24px;
  transition: background 0.2s;
}
.cookie-switch input:checked + .cookie-slider {
  background: #FFD44B;
}
.cookie-slider:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 2px;
  width: 19px;
  height: 19px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.19s;
  box-shadow: 0 2px 4px 0 rgba(36,55,82,0.08);
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(23px);
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 15px;
  right: 24px;
  font-size: 1.5rem;
  color: #243752;
  background: none;
  border: none;
  cursor: pointer;
}
@media (max-width: 540px) {
  .cookie-modal {
    width: 92vw;
    padding: 18px 7vw 18px 7vw;
    border-radius: 10px;
  }
}
@media (max-width: 480px) {
  .cookie-banner {
    left: 0;
    right: 0;
    padding: 17px 5vw 16px 6vw;
  }
}

/* ===================== ANIMATIONS & MICRO-INTERACTIONS ===================== */
.section, .card, .testimonial-card, .feature-item {
  transition: box-shadow 0.19s, background 0.18s, border 0.12s;
}
a, .cta-btn, button, .cookie-btn {
  transition: color 0.13s, background 0.15s, box-shadow 0.18s, border 0.11s;
}
.card:hover, .section:hover {
  box-shadow: 0 8px 30px 0 rgba(36,55,82,0.13);
}
.mobile-menu {
  will-change: transform;
}
.mobile-menu.open {
  animation: menu-slide-in 0.33s cubic-bezier(.87,.04,.31,.89);
}
@keyframes menu-slide-in {
  from {transform: translateX(102vw);}
  to {transform: translateX(0);}
}
@keyframes menu-slide-out {
  from {transform: translateX(0);}
  to {transform: translateX(102vw);}
}

/* ===================== CUSTOM DECORATIVE DETAILS (ELEGANT CLASSIC) ===================== */
.section {
  border: 1px solid #E5E6EC;
  box-shadow: 0 1px 18px 0 rgba(36,55,82,0.06);
  background: #fffdfb;
}
.card {
  border: 1px solid #e5e6ec;
}
.testimonial-card {
  border: 1px solid #dee2e7;
  background: #f9f9fb;
}

/* ===================== RESPONSIVE FONT SIZES ===================== */
@media (max-width: 540px) {
  body {
    font-size: 15px;
  }
  h1 {
    font-size: 2.11rem;
  }
  h2 {
    font-size: 1.38rem;
  }
  h3 {
    font-size: 1.13rem;
  }
}

/* ===================== MISCELLANEOUS ===================== */
::-webkit-input-placeholder { color: #b2b4bb; }
::-moz-placeholder { color: #b2b4bb; }
:-ms-input-placeholder { color: #b2b4bb; }
::placeholder { color: #b2b4bb; }

/* Hide scrollbars (mobile menu etc.), but keep scrollability */
.mobile-menu::-webkit-scrollbar { width: 0; background: transparent; }
.mobile-menu { scrollbar-width: none; }

/* Prevent image overflow */
img { max-width: 100%; height: auto; }

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

/* ===================== UTILITIES ===================== */
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.mb-36 { margin-bottom: 36px; }
.pb-12 { padding-bottom: 12px; }
.flex-row {
  display: flex;
  flex-direction: row;
}
.flex-col {
  display: flex;
  flex-direction: column;
}
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }

/* ===================== END ===================== */
