/* RESET & BASE STYLES */
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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F8F5F2;
  color: #243352;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
a {
  color: #243352;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.5,.2,.2,1);
}
a:hover,
a:focus {
  color: #b06a13;
}
ul, ol {
  margin: 16px 0 16px 24px;
  padding-left: 18px;
}
li {
  margin-bottom: 8px;
}
strong {
  font-weight: 600;
  color: #243352;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #243352;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; line-height: 1.16; }
h2 { font-size: 2rem;   line-height: 1.18; }
h3 { font-size: 1.25rem;   line-height: 1.25; }
h4 { font-size: 1.1rem;   line-height: 1.3; }

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

p {
  color: #243352;
  line-height: 1.7;
  margin-bottom: 16px;
}
.text-section p:last-child, .content-wrapper p:last-child {margin-bottom: 0;}

button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  cursor: pointer;
}
*:focus {
  outline: 2px solid #b06a13;
  outline-offset: 3px;
}

/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(36,51,82,0.07);
  padding: 24px 16px;
  min-width: 230px;
  flex: 1 1 220px;
  transition: box-shadow 0.2s;
}
.feature-item:hover {
  box-shadow: 0 6px 28px 0 rgba(36,51,82,0.13);
  transform: translateY(-2px);
}
.feature-item img {
  height: 44px;
  width: 44px;
  margin-bottom: 4px;
}
.feature-item h3 {
  font-size: 1.09rem;
  margin-bottom: 4px;
  color: #243352;
}
.feature-item p {
  color: #243352;
  font-size: 1rem;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(36,51,82,0.07);
  margin-bottom: 20px;
  flex: 1 1 260px;
  padding: 28px 18px;
  transition: box-shadow 0.23s;
}
.card:hover {
  box-shadow: 0 6px 28px 0 rgba(36,51,82,0.13);
  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;
}
@media (max-width: 970px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F8F5F2;
  border-left: 5px solid #243352;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px 0 rgba(36,51,82,0.08);
  flex-direction: column;
}
.testimonial-card p {
  color: #243352;
  font-size: 1rem;
}
.testimonial-card strong {
  color: #243352;
  font-weight: 700;
}
.star-rating {
  color: #D48416;
  letter-spacing: 2px;
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-top: 6px;
}

/* BUTTONS */
.cta-button, .nav-cta, .cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: #243352;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 12px;
  display: inline-block;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 8px 0 rgba(36,51,82,0.10);
  cursor: pointer;
  transition: background 0.16s, box-shadow 0.23s, color 0.16s, transform 0.16s;
  outline: none;
}
.cta-button:focus,
.nav-cta:focus,
.cookie-btn:focus {
  box-shadow: 0 0 0 2px #b06a13;
}
.cta-button:hover,
.nav-cta:hover,
.cookie-btn:hover {
  background: #b06a13;
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 20px 0 rgba(180,106,19,0.19);
}
.nav-cta {
  margin-left: 20px;
  background: #D48416;
  color: #fff;
}
.nav-cta:hover { background: #243352; color: #fff; }

/* HEADER NAVIGATION */
header {
  background: #243352;
  width: 100%;
  box-shadow: 0 2px 10px 0 rgba(36,51,82,0.10);
  position: relative;
  z-index: 99;
}
.main-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 0 24px;
  height: 76px;
}
.main-navigation a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 6px 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.36;
  transition: color 0.18s;
}
.main-navigation a:hover {
  color: #b06a13;
}
.main-navigation img {
  height: 40px;
  width: auto;
  margin-right: 18px;
  display: inline;
}
@media (max-width: 1050px) {
  .main-navigation {
    gap: 7px;
    padding: 0 11px;
  }
}
@media (max-width: 900px) {
  .main-navigation {
    font-size: 0.97rem;
    gap: 4px;
  }
}
@media (max-width: 850px) {
  .main-navigation a {
    font-size: 0.95rem;
  }
}
@media (max-width: 768px) {
  .main-navigation {display:none;}
  .main-navigation img {margin: 0;}
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 14px;
  right: 18px;
  background: #243352;
  color: #fff;
  border-radius: 4px;
  border: none;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  z-index: 101;
  justify-content: center;
  align-items: center;
  transition: background 0.21s, color 0.18s;
}
.mobile-menu-toggle:focus {
  background: #b06a13;
  color: #fff;
}
.mobile-menu-toggle:hover {
  background: #b06a13;
  color: #fff;
}
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 80vw;
  max-width: 440px;
  background: #243352;
  box-shadow: -2px 0 20px 0 rgba(36,51,82,0.22);
  z-index: 150;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.71,0.22,0.25,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 25px 22px 0 0;
  font-size: 2rem;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.19s;
  z-index: 201;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #b06a13;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 36px 32px 16px 32px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.13rem;
  padding:14px 6px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.18s, color 0.2s;
  min-width: 150px;
}
.mobile-nav a:hover {
  background: #b06a13;
  color: #fff;
}
@media (max-width: 510px) {
  .mobile-menu {
    width: 97vw;
    max-width: 97vw;
  }
  .mobile-nav {padding:24px 12px 8px 12px;}
}

/* MAIN & SECTION SPACING */
main {
  margin-top: 0;
  padding-bottom: 55px;
}
section {
  width: 100%;
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  section {
    margin-bottom: 38px;
    padding: 30px 6px;
  }
  .content-wrapper, .text-section {
    gap: 14px;
    padding: 0;
  }
}

/* CARDS & CONTENT BLOCKS */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* FOOTER */
footer {
  background: #243352;
  color: #fff;
  margin-top: 30px;
  width: 100%;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 40px 24px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 16px;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-right: 8px;
  margin-bottom: 4px;
  padding: 4px 1px;
  transition: color 0.17s;
}
.footer-nav a:hover { color: #b06a13; }
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.97rem;
  color: #E6E9F4;
  letter-spacing: 0.005em;
}
.footer-info a {
  color: #D48416;
  font-weight: 500;
  transition: color 0.18s;
}
.footer-info a:hover {
  color: #fff;
}
@media (max-width: 700px) {
  footer .container {padding: 27px 9px;}
  .footer-nav {gap: 8px;}
  .footer-info {font-size: 0.95rem; gap:2px;}
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: #243352;
  box-shadow: 0 -2px 16px 0 rgba(36,51,82,0.07);
  z-index: 2999;
  padding: 22px 24px 22px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  animation: cookie-banner-in 0.5s cubic-bezier(0.7,0.18,0.24,1);
}
@keyframes cookie-banner-in {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-text {
  flex: 1 1 280px;
  font-size: 1rem;
  margin-right: 20px;
  min-width: 160px;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.cookie-btn {
  background: #243352;
  color: #fff;
  border-radius: 5px;
  border: none;
  padding: 10px 23px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  margin-top: 0;
  transition: background 0.16s, color 0.16s, box-shadow 0.24s;
  cursor: pointer;
}
.cookie-btn.secondary {
  background: #fff;
  color: #243352;
  border: 1px solid #b06a13;
}
.cookie-btn.secondary:hover {
  background: #b06a13;
  color: #fff;
}
.cookie-btn.settings {
  background: #D48416;
  color: #fff;
}
.cookie-btn.settings:hover { background: #243352; }

/* COOKIE MODAL */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0;
  right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,51,82,0.20);
  z-index: 3200;
  justify-content: center;
  align-items: center;
}
.cookie-modal.open {
  display: flex;
  animation: cookie-modal-in 0.24s cubic-bezier(0.65,0.2,0.3,1);
}
@keyframes cookie-modal-in {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 12px;
  min-width: 320px;
  max-width: 94vw;
  min-height: 180px;
  padding: 32px 26px 26px 26px;
  box-shadow: 0 8px 42px 0 rgba(36,51,82,0.19);
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 3210;
  position: relative;
  animation: modal-popup-in 0.26s cubic-bezier(0.65,0.2,0.3,1);
}
@keyframes modal-popup-in {
  0% { transform: scale(0.93); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal-content .modal-title {
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  margin-bottom: 18px;
}
.cookie-modal-content .category {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 8px 0;
}
.cookie-modal-content .category label {
  font-size: 1rem;
  color: #243352;
}
.cookie-modal-content .category input[type="checkbox"] {
  width: 22px;
  height: 22px;
}
.cookie-modal-content .category input[disabled] {
  accent-color: #e0e4ea;
  cursor: default;
}
.cookie-modal-content .modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}
.cookie-modal-content .close-modal {
  position: absolute;
  right: 22px;
  top: 22px;
  background: transparent;
  color: #b06a13;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
}

/* LEGAL PAGES (privacy, GDPR, etc.) */
.legal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(36,51,82,0.07);
  padding: 34px 22px 30px 22px;
  color: #243352;
  font-size: 1rem;
  margin-bottom: 16px;
}
.legal h1, .legal h2 { color: #243352; }
.legal a { color: #b06a13; }
.legal a:hover { color: #243352; }

/* FORM STYLES (if forms present) */
input, textarea, select {
  font-family: inherit;
  background: #fff;
  color: #243352;
  border: 1px solid #b1bdd7;
  border-radius: 5px;
  padding: 10px 13px;
  font-size: 1.06rem;
  margin-bottom: 14px;
  width: 100%;
  transition: border 0.17s, box-shadow 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: #b06a13;
  box-shadow: 0 0 0 2px #b06a1329;
}
label { font-weight: 500; display: block; margin-bottom: 6px; color: #243352; }

/* MISC */
::-webkit-input-placeholder { color: #9aa1ac; }
::-moz-placeholder { color: #9aa1ac; }
:-ms-input-placeholder { color: #9aa1ac; }
::placeholder { color: #9aa1ac; opacity: 1; }

/* RESPONSIVE DESIGN */
@media (max-width: 1100px) {
  .container { max-width: 950px; }
}
@media (max-width: 800px) {
  .features-grid, .card-container, .content-grid {
    gap: 12px;
  }
  .feature-item, .card {
    min-width: 160px;
    padding: 15px 8px;
  }
}
@media (max-width: 700px) {
  .container { padding: 0 6px; }
}
@media (max-width: 530px) {
  .features-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .feature-item, .card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 12px 6px;
  }
}

/* UTILITIES */
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mb-1 { margin-bottom: 8px !important; }
.pt-2 { padding-top: 16px !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }

/* MICRO-INTERACTIONS & TRANSITIONS */
.card, .feature-item, .testimonial-card, .cta-button, .nav-cta, .cookie-btn {
  transition: box-shadow 0.19s, background 0.17s, color 0.18s, transform 0.15s;
}

/* SELECTION COLOR */
::selection {
  background: #b06a13;
  color: #fff;
}

/* Hide desktop navigation when mobile menu is open */
@media (max-width: 768px) {
  .main-navigation.open { display: none!important; }
  body.menu-open {
    overflow: hidden;
    position: relative;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 13px;
    padding: 18px 7px;
    text-align: center;
  }
}

/* SPACING BETWEEN CARDS/SECTIONS (MANDATORY) */
.card,
.feature-item,
.testimonial-card,
.section, section,
.card-container > *,
.features-grid > *,
.content-grid > * {
  margin-bottom: 20px;
}

/* Prevent overlap */
.card, .feature-item, .testimonial-card, .section, section {
  min-width: 0;
  z-index: 1;
}

/* Z-INDEX LAYERS */
header, .mobile-menu, .cookie-banner, .cookie-modal { z-index: 2999; }

/* END */