/* --- RESET & BASE STYLES --- */

html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F5F5F0;
  color: #1A2233;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
a {
  color: #CA9E47;
  text-decoration: none;
  transition: color 0.25s;
  font-weight: 600;
}
a:hover,
a:focus {
  color: #1A2233;
}
ul, ol {
  margin: 0 0 16px 28px;
  padding: 0;
}
li {
  margin-bottom: 8px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 0.01em;
  color: #1A2233;
  line-height: 1.15;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 24px;
  text-transform: uppercase;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}
h3 {
  font-size: 1.375rem;
  color: #CA9E47;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
}
.lead {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 24px;
  color: #333;
}
strong {
  color: #CA9E47;
  font-weight: bold;
}

/* --- CONTAINERS & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 3px 20px rgba(26,34,51,.07), 0 1.5px 4px rgba(202,158,71,0.06);
}

/* --- FLEX UTILITY --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 5px 28px rgba(26,34,51,0.09);
  padding: 28px 24px;
  min-width: 240px;
  flex: 1 1 260px;
  transition: box-shadow .25s, transform .18s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 7px 36px rgba(26,34,51,0.17),0 3px 11px rgba(202,158,71,0.13);
  transform: translateY(-3px) scale(1.025);
  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: #F5F5F0;
  border-left: 7px solid #CA9E47;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(26,34,51,0.08);
  flex: 1 1 340px;
}
.testimonial-card blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1A2233;
  margin: 0;
  border: none;
  background: none;
}
.testimonial-card span {
  color: #656565;
  font-size: 0.98rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-left: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(26,34,51,0.06);
  padding: 20px 14px;
}


/* --- HEADER & NAVBAR --- */
header {
  background: #1A2233;
  padding: 0;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 16px 20px 8px 20px;
  min-height: 68px;
}
header nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .02em;
  transition: color .18s;
  position: relative;
  padding: 7px 5px;
  border-radius: 6px;
}
header nav a img {
  height: 36px;
  width: auto;
}
header nav a:hover, header nav a:focus {
  background: #CA9E47;
  color: #1A2233;
}

/* MOBILE MENU BUTTON */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #CA9E47;
  font-size: 2rem;
  margin-left: auto;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 9px;
  transition: background .22s;
  z-index: 1021;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #CA9E47;
}

/* --- MOBILE MENU --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #1A2233;
  z-index: 2200;
  transition: transform .32s cubic-bezier(.63,.09,.41,.99);
  transform: translateX(100%);
}
.mobile-menu.open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 30px 22px 10px 0;
  background: none;
  border: none;
  color: #F5F5F0;
  font-size: 2.4rem;
  cursor: pointer;
  z-index: 2222;
  padding: 5px 25px;
  border-radius: 50%;
  transition: background .16s;
}
.mobile-menu-close:focus {
  background: #CA9E47;
  outline: none;
  color: #1A2233;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 0 38px;
}
.mobile-nav a {
  color: #F5F5F0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 13px 4px;
  border-radius: 8px;
  transition: background .17s, color .17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #1A2233;
  background: #CA9E47;
}
.mobile-menu {
  overflow-y: auto;
}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.13rem;
  letter-spacing: 0.01em;
  background: #CA9E47;
  color: #1A2233;
  border: none;
  border-radius: 16px;
  padding: 14px 34px;
  margin-top: 16px;
  cursor: pointer;
  transition: box-shadow .18s, background .25s, color .19s, transform .1s;
  box-shadow: 0 4px 18px rgba(202,158,71,0.18);
  text-transform: uppercase;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #1A2233;
  color: #fff;
  box-shadow: 0 7px 32px rgba(202,158,71,0.21);
  transform: translateY(-1px) scale(1.04);
  outline: none;
}

/* --- FEATURE ICONS --- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 20px;
  margin-bottom: 8px;
}
.features-grid > div {
  flex: 1 1 230px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(26,34,51,0.08);
  padding: 26px 18px 20px 18px;
  transition: box-shadow .22s, transform .17s;
  margin-bottom: 0;
}
.features-grid > div:hover,
.features-grid > div:focus-within {
  box-shadow: 0 5px 23px rgba(202,158,71,0.13),0 3px 8px rgba(26,34,51,0.07);
  transform: scale(1.033);
  z-index: 2;
}
.features-grid img {
  height: 36px;
  margin-bottom: 14px;
  filter: none;
}

/* --- FOOTER --- */
footer {
  background: #1A2233;
  color: #F5F5F0;
  padding: 42px 0 22px 0;
  width: 100%;
}
.footer-menu, .footer-social, .footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.footer-menu {
  justify-content: flex-start;
  gap: 18px;
}
.footer-menu a {
  color: #CA9E47;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.0rem;
  font-weight: 700;
  padding: 6px 5px;
  border-radius: 6px;
}
.footer-menu a:hover,
.footer-menu a:focus {
  background: #CA9E47;
  color: #1A2233;
}
.footer-brand img {
  height: 36px;
  margin-right: 11px;
}
.footer-brand span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #ccc6ba;
  letter-spacing: 0.01em;
}
.footer-social img {
  height: 28px;
  opacity: 0.82;
  transition: opacity .16s, transform .13s;
  border-radius: 7px;
  background: #fff;
  padding: 5px;
}
.footer-social img:hover,
.footer-social img:focus {
  opacity: 1;
  transform: scale(1.13);
  background: #CA9E47;
}

/* --- FORM ELEMENTS (if any) --- */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 12px 14px;
  border: 2px solid #CA9E47;
  border-radius: 13px;
  background: #fff;
  margin-bottom: 18px;
  color: #1A2233;
  transition: border-color .18s;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #1A2233;
  outline: none;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 5000;
  background: #1A2233;
  color: #fff;
  width: 100%;
  box-shadow: 0 0 16px #0002;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 32px 24px 17px;
  animation: slideUpBanner .5s cubic-bezier(.53,.12,.72,.84);
}
@keyframes slideUpBanner {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-banner-text {
  color: #fff;
  font-size: 1rem;
  max-width: 780px;
  flex: 1 1;
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-btn {
  border: none;
  border-radius: 11px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 22px;
  transition: background .18s, color .18s, transform .13s;
}
.cookie-btn.accept {
  background: #CA9E47;
  color: #1A2233;
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: #fff;
  color: #1A2233;
}
.cookie-btn.reject {
  background: #fff;
  color: #CA9E47;
  border: 2px solid #CA9E47;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #CA9E47;
  color: #fff;
}
.cookie-btn.settings {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: #CA9E47;
  color: #1A2233;
  border-color: #CA9E47;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(26,34,51,0.63);
  z-index: 8000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeInModal .3s;
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes fadeInModal {
  from {opacity: 0;} to {opacity: 1;}
}
.cookie-modal {
  background: #fff;
  color: #1A2233;
  max-width: 96vw;
  min-width: 290px;
  width: 410px;
  border-radius: 25px;
  box-shadow: 0 12px 43px rgba(26,34,51,0.23);
  padding: 38px 30px 24px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  animation: modalPop .23s cubic-bezier(.5,.04,.7,1.16);
}
@keyframes modalPop {
  from {transform: scale(.78); opacity: 0;} to {transform: scale(1); opacity: 1;}
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 22px;
  border: none;
  background: none;
  font-size: 1.7rem;
  color: #1A2233;
  cursor: pointer;
  border-radius: 50%;
  padding: 3px 11px;
  transition: background .17s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: #eee;
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: #1A2233;
  margin-bottom: 6px;
}
.cookie-modal label {
  font-size: 1rem;
  font-weight: 600;
  color: #CA9E47;
  margin-right: 8px;
}
.cookie-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  background: #cccaca;
  border-radius: 14px;
  position: relative;
  border: none;
  cursor: pointer;
  appearance: none;
  transition: background .17s;
  outline: none !important;
}
.cookie-toggle:checked {
  background: #CA9E47;
}
.cookie-toggle::after {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .18s;
  box-shadow: 0 1px 6px #bbb;
}
.cookie-toggle:checked::after {
  transform: translateX(16px);
}
.cookie-modal .category-desc {
  font-size: .96rem;
  color: #333;
}
.cookie-modal .modal-btns {
  display: flex;
  gap: 16px;
  margin-top: 22px;
  justify-content: flex-end;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1100px) {
  .container {
    padding-left: 13px; padding-right: 13px;
  }
  .footer-brand span {
    font-size: 0.92rem;
  }
}
@media (max-width: 900px) {
  .features-grid {
    gap: 22px;
  }
  .card-container {
    gap: 17px;
  }
  .footer-social img {
    height: 24px;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 {font-size:2.1rem;} h2 {font-size:1.55rem;}
  .section {padding: 28px 8px; margin-bottom: 38px; border-radius: 18px;}
  .features-grid {
    flex-direction: column;
    gap: 18px;
  }
  .features-grid > div {min-width: 0;}
  .card-container {
    flex-direction: column;
    gap: 14px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-menu {
    gap: 8px;
  }
  .content-wrapper {
    gap: 14px;
    padding-bottom: 12px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
@media (max-width: 600px) {
  html {font-size: 14px;}
  .container {padding: 0 5px;}
  .section {padding: 17px 2px; margin-bottom: 18px;}
  .testimonial-card {
    padding: 16px 9px;
    border-radius: 13px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 15px 8px 15px 8px;
  }
}

/* --- MISCELLANEOUS --- */
::-webkit-scrollbar {
  width: 8px;
  background: #F5F5F0;
}
::-webkit-scrollbar-thumb {
  background: #CA9E47;
  border-radius: 7px;
}

/* ---- GEOMETRIC/DECORATIVE ELEMENTS (Example accents) ---- */
.section {
  position: relative;
  overflow: visible;
}
.section::before {
  content: '';
  position: absolute;
  right: -45px; top: -25px;
  width: 92px; height: 92px;
  background: #CA9E47;
  opacity: .09;
  border-radius: 39% 61% 33% 67% / 60% 32% 68% 40%;
  z-index: 0;
  pointer-events: none;
}
.section:nth-child(2n)::before {
  left: -32px; right: auto; top: 70%;
  width: 64px; height: 64px;
  background: #1A2233;
  opacity: .08;
}

/* --- CUSTOM CLASSES FROM HTML --- */
.text-section {
  margin-top: 7px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1rem;
}

.blockquote,
blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09em;
  font-weight: 600;
  color: #1A2233;
  margin-bottom: 12px;
  background: transparent;
  border: none;
}

/* --- VISUAL HIERARCHY & SPACING --- */
.section + .section {
  margin-top: 0;
}
main > section:last-child {
  margin-bottom: 0;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- ACCESSIBILITY FOCUS RING --- */
a:focus, button:focus,
input:focus, .btn-primary:focus,
.cookie-btn:focus, .mobile-menu-close:focus, .cookie-modal-close:focus {
  outline: 2px solid #CA9E47;
  outline-offset: 1px;
}

/* --- OVERRIDES FOR DEMO/STRICT ONLY: NO GRID, NO ABSOLUTE FOR CARDS --- */
/** FORBIDDEN LAYOUTS REMOVED, FLEXBOX ONLY **/
