/* =============================
   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;
  scroll-behavior: smooth;
  background: #FCFCFB;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #24272B;
  background: #FCFCFB;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
a {
  color: #B8894A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #24272B;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.5em;
}

/* =============================
   TYPOGRAPHY & BRAND
============================== */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #24272B;
}
h1 {
  font-size: 2.7rem;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -1px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #B8894A;
}
.subtitle {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  color: #555;
  margin-bottom: 28px;
  font-weight: 500;
}
p, li {
  font-size: 1rem;
  color: #363a41;
}
strong {
  font-weight: 700;
  color: #B8894A;
}
.text-section h3 {
  font-size: 1.08rem;
  color: #B8894A;
  margin-bottom: 6px;
  margin-top: 22px;
}

/* VISUAL HIERARCHY */
main h1, main h2, main h3 {
  text-shadow: 1px 1px 0 rgba(200,137,74,0.05);
}

/* =============================
   LAYOUT SYSTEM
============================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}

.section {
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 20px 0 rgba(36,39,43,0.10), 0 2px 4px 0 rgba(184,137,74,0.08);
}

/* Feature Cards */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > div {
  flex: 1 1 240px;
  background: #FFFDF3;
  border-radius: 16px;
  padding: 26px 22px 22px 22px;
  box-shadow: 0 2px 10px 0 rgba(36,39,43,0.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: transform 0.22s cubic-bezier(.4,2,.3,1), box-shadow 0.22s;
  position: relative;
  margin-bottom: 20px;
}
.feature-grid > div:hover {
  transform: translateY(-7px) scale(1.025);
  box-shadow: 0 8px 28px 0 rgba(36,39,43,0.18), 0 2px 4px 0 rgba(184,137,74,0.13);
  z-index: 2;
}
.feature-grid img {
  width: 44px;
  height: auto;
  margin-bottom: 10px;
}
.feature-grid h3 {
  color: #3D56F0;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

/* Card Containers */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FFFDF3;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(36,39,43,0.13);
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-direction: column;
}

/* =============================
   HEADER & NAVIGATION
============================== */
header {
  background: #24272B;
  color: #fff;
  padding: 0;
  width: 100%;
  box-shadow: 0 4px 12px 0 rgba(36,39,43,0.13);
  z-index: 99;
  position: sticky;
  top: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  gap: 16px;
}
header img {
  height: 46px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
.main-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  position: relative;
}
.main-nav a:after {
  content: '';
  display: block;
  width: 0;
  height: 2.5px;
  background: #B8894A;
  margin-top: 2px;
  border-radius: 2.5px;
  transition: width 0.20s;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 100%;
}
.main-nav a:hover, .main-nav a:focus {
  color: #CDC6B5;
}

.cta.primary {
  background: #B8894A;
  color: #fff;
  border-radius: 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 12px 32px;
  font-size: 1.08rem;
  text-shadow: none;
  box-shadow: 0 2px 9px 0 rgba(184,137,74,0.12);
  border: none;
  margin-left: 22px;
  transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
  cursor: pointer;
  display: inline-block;
}
.cta.primary:hover, .cta.primary:focus {
  background: #3D56F0;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 18px 0 rgba(61,86,240,0.17);
}

.cta {
  display: inline-block;
  background: #3D56F0;
  color: #fff;
  border-radius: 28px;
  font-weight: 600;
  padding: 11px 26px;
  font-size: 1rem;
  box-shadow: 0 2px 6px 0 rgba(61,86,240,0.10);
  margin-top: 14px;
  margin-bottom: 8px;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s, transform 0.18s;
  border: none;
}
.cta:hover, .cta:focus {
  background: #B8894A;
  color: #fff;
  box-shadow: 0 7px 15px 0 rgba(184,137,74,0.16);
  transform: scale(1.045);
}

header .mobile-menu-toggle {
  background: #3D56F0;
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 999px;
  padding: 4px 14px;
  margin-left: 18px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: none;
  z-index: 101;
}
header .mobile-menu-toggle:hover, header .mobile-menu-toggle:focus {
  background: #B8894A;
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,39,43,0.97);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(.7,1.8,.4,1), opacity 0.32s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: #B8894A;
  color: #fff;
  font-size: 2.2rem;
  border-radius: 50%;
  align-self: flex-end;
  margin: 26px 30px 10px 0;
  border: none;
  padding: 2px 16px 2px 16px;
  transition: background 0.18s;
  cursor: pointer;
  z-index: 2020;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #3D56F0;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  padding: 14px 36px 0 36px;
  margin-top: 28px;
}
.mobile-nav a {
  color: #FFF;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 8px 0;
  display: block;
  width: 100%;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s, padding 0.2s;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: #3D56F0;
  color: #fff;
  padding-left: 10px;
}

/* Hide main-nav + CTA on mobile */
@media (max-width: 1023px) {
  .main-nav,
  .cta.primary {
    display: none;
  }
  header .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 767px) {
  header .container {
    padding: 8px 10px;
  }
  header img {
    height: 38px;
  }
}

/* =============================
   MAIN CONTENT & FLEX LAYOUTS
============================== */
main {
  padding: 0 0 60px 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
section {
  padding: 40px 20px;
  border-radius: 22px;
}

.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;
  margin-bottom: 30px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section ul {
  margin-bottom: 12px;
  margin-top: 8px;
}
.text-section li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 3px;
  margin-bottom: 8px;
  font-size: 1rem;
}
.text-section img {
  width: 22px;
  height: 22px;
}

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

/* ================================
   TESTIMONIALS
================================= */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: #FAFAFC;
  border-radius: 18px;
  box-shadow: 0 3px 12px 0 rgba(61,86,240,0.09);
  margin-bottom: 20px;
  min-width: 0;
  max-width: 600px;
  transition: box-shadow 0.18s, transform 0.18s;
  border-left: 7px solid #3D56F0;
}
.testimonial-card:hover {
  box-shadow: 0 10px 26px 0 rgba(36,39,43,0.14), 0 2px 8px 0 rgba(61,86,240,0.08);
  transform: scale(1.017);
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #24272B;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  margin-bottom: 6px;
}
.testimonial-meta {
  font-size: 0.98rem;
  color: #888;
  font-style: normal;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}

/* =============================
   FOOTER STYLES
============================== */
footer {
  width: 100%;
  background: #24272B;
  color: #fff;
  padding: 44px 0 22px 0;
  margin-top: 60px;
}
.footer-nav {
  display: flex;
  gap: 25px;
  margin-bottom: 20px;
}
.footer-nav a {
  color: #CDC6B5;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
}
.footer-contact {
  font-size: 0.95rem;
  color: #CDC6B5;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
}
.footer-contact p {
  color: #fff;
}

/* =============================
   COOKIES CONSENT BANNER
============================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #3D56F0;
  color: #fff;
  z-index: 3000;
  box-shadow: 0 -4px 18px 0 rgba(36,39,43,0.12);
  padding: 22px 20px 22px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  font-size: 1rem;
  transition: transform 0.30s cubic-bezier(.7,1.8,.4,1), opacity 0.2s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 17px;
  margin-left: auto;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 24px;
  padding: 8px 22px;
  margin: 0 4px;
  border: none;
  cursor: pointer;
  background: #fff;
  color: #3D56F0;
  transition: background 0.18s, color 0.18s, transform 0.19s;
}
.cookie-banner button#accept-cookies {
  background: #B8894A;
  color: #fff;
  margin-left: 4px;
}
.cookie-banner button#accept-cookies:hover, .cookie-banner button#accept-cookies:focus {
  background: #24272B;
  color: #fff;
  transform: scale(1.05);
}
.cookie-banner button#reject-cookies {
  background: #fff;
  color: #24272B;
}
.cookie-banner button#reject-cookies:hover, .cookie-banner button#reject-cookies:focus {
  background: #CDC6B5;
  color: #3D56F0;
  transform: scale(1.05);
}
.cookie-banner button#cookie-settings {
  background: #3D56F0;
  color: #fff;
  border: 2px solid #fff;
}
.cookie-banner button#cookie-settings:hover, .cookie-banner button#cookie-settings:focus {
  background: #B8894A;
  color: #fff;
  border-color: #B8894A;
  transform: scale(1.05);
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36,39,43,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  padding: 38px 22px 28px 22px;
  border-radius: 18px;
  min-width: 320px;
  max-width: 430px;
  color: #24272B;
  box-shadow: 0 8px 30px 0 rgba(61,86,240,0.25);
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeInUp 0.32s cubic-bezier(.7,1.8,.4,1);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(35px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-modal h2 {
  color: #24272B;
  font-size: 1.28rem;
  margin-bottom: 6px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-category label {
  font-weight: 600;
  color: #24272B;
}
.cookie-category input[type="checkbox"] {
  width: 21px;
  height: 21px;
}
.cookie-essential {
  color: #3D56F0;
  font-weight: 700;
  margin-left: 9px;
  font-size: 0.97rem;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: flex-end;
}
.cookie-modal button {
  padding: 8px 22px;
  border-radius: 24px;
  border: none;
  background: #B8894A;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.19s;
}
.cookie-modal button.secondary {
  background: #CDC6B5;
  color: #24272B;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: #3D56F0;
}

/* =============================
   RESPONSIVE
============================== */
@media (max-width: 1200px) {
  .container {
    max-width: 99vw;
    padding-left: 6vw;
    padding-right: 6vw;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 100vw;
    padding-left: 2vw;
    padding-right: 2vw;
  }
  .feature-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2.10rem;
  }
  h2 {
    font-size: 1.33rem;
  }
  .header .container {
    padding: 8px 9px;
  }
  .section, section {
    padding: 28px 7px;
  }
  .content-wrapper {
    gap: 15px;
  }
  .feature-grid > div, .card {
    padding: 17px 10px 10px 10px;
    min-width: 0;
  }
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    min-width: 0;
    max-width: 100%;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 14px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.96rem;
    padding: 17px 12px 17px 12px;
  }
  .cookie-banner .cookie-buttons {
    margin-left: 0;
    gap: 10px;
  }
}
@media (max-width: 600px) {
  h1, h2 {
    font-size: 1.13rem;
  }
  main {
    gap: 15px;
  }
  .container {
    padding: 0 7px;
  }
  .footer-contact {
    font-size: 0.93rem;
    gap: 4px;
  }
}

/* FLEXBOX LAYOUT ADJUSTMENTS ON MOBILE FOR CRITICAL CLASSES */
@media (max-width: 768px) {
  .content-grid,
  .card-container,
  .feature-grid,
  .text-image-section,
  .testimonial-card,
  .feature-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
  }
}

@media (max-width: 520px) {
  .footer-nav {
    flex-direction: column;
    gap: 7px;
    margin-bottom: 13px;
  }
}

/* =============================
   VIBRANT ENERGETIC DESIGN EXTRAS
============================== */
/* Electric energetic color blocks for accents */
.feature-grid > div {
  border-left: 6px solid #3D56F0;
  border-right: 3px solid #B8894A;
}
.card {
  border-left: 4px solid #B8894A;
}
.section, section {
  border-bottom: 5px solid #CDC6B5;
}

/* Buttons bounce subtly on click */
.cta:active, .cta.primary:active {
  transform: scale(0.98);
}

/* Micro-interactions for links and elements */
a, .main-nav a, .footer-nav a, .mobile-nav a {
  outline: none;
  transition: color 0.17s, background 0.17s;
}
a:focus-visible, .main-nav a:focus-visible, .mobile-nav a:focus-visible {
  outline: 2px solid #3D56F0;
  outline-offset: 2px;
}

/* Extra vibrant highlight for active/selected nav link (if needed) */
.main-nav a.active, .mobile-nav a.active {
  color: #B8894A !important;
}

/* =============================
   ENSURE ADEQUATE SPACING
============================== */
.content-grid > *, .feature-grid > *, .card-container > *, .testimonial-card, .card {
  margin-bottom: 20px;
}

/* Last element margin fix */
.content-wrapper > *:last-child, .feature-grid > *:last-child, .card-container > *:last-child {
  margin-bottom: 0;
}

/* =============================
   SCROLLBAR STYLES (OPTIONAL)
============================== */
::-webkit-scrollbar {
  width: 9px;
  background: #F0F0EF;
}
::-webkit-scrollbar-thumb {
  background: #CDC6B5;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B8894A;
}

/* =============================
   AUTOFILL & INPUT COLOR FIX
============================== */
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px #f0f0ed inset;
  box-shadow: 0 0 0px 1000px #f0f0ed inset;
  -webkit-text-fill-color: #24272B;
}

/* =============================
   PRINT ADJUSTMENTS
============================== */
@media print {
  .mobile-menu, .cookie-banner, .cookie-modal-overlay, header, footer {
    display: none !important;
  }
  .container, section, .section {
    box-shadow: none !important;
    border: none !important;
    background: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}
