/* ============================================================
   === CSS RESET & BASE NORMALIZATION =========================
   ============================================================ */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  background: #F8F9FA;
  color: #233755;
  min-height: 100vh;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color .2s;
}
a:focus {
  outline: 2px solid #E8C547;
  outline-offset: 2px;
  border-radius: 2px;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font: inherit;
  border: none;
  background: none;
  color: inherit;
}
button:focus, input:focus, textarea:focus {
  outline: 2px solid #E8C547;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============================================================
   === BRAND COLORS & CUSTOM PROPERTIES ======================
   ============================================================ */
:root {
  --primary: #233755;
  --secondary: #ADB5BD;
  --accent: #E8C547;
  --neutral-bg: #F8F9FA;
  --card-bg: #fff;
  --divider: #E9ECEF;
  --shadow: 0 2px 16px rgba(35,55,85,0.08);
  --radius: 14px;
  --base-gap: 20px;
  --primary-font: 'Montserrat', Arial, Helvetica, sans-serif;
  --body-font: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ============================================================
   === CORRECT TYPOGRAPHY HIERARCHY ==========================
   ============================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--primary-font);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 18px;
  line-height: 1.14;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1.2;
}
h3 {
  font-size: 1.33rem;
  margin-bottom: 11px;
}
h4, h5, h6 {
  font-size: 1.08rem;
}
p, li, ul, ol {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #263241;
}
strong {
  color: var(--primary);
  font-weight: 600;
}
small {
  font-size: .94rem;
  color: var(--secondary);
}

/* ============================================================
   === LAYOUT CONTAINERS & FLEX SPACING ======================
   ============================================================ */
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--base-gap);
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 230px;
  flex: 1 1 220px;
}
.card:last-child {
  margin-bottom: 0;
}
.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: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  min-width: 230px;
  flex: 1 1 220px;
}
.testimonial-card:last-child {
  margin-bottom: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.brand-values ul,
.content-wrapper ul {
  margin-left: 20px;
}
.brand-values li,
.content-wrapper li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 16px;
}
.brand-values li::before,
.content-wrapper ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--secondary);
  border-radius: 50%;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

/* ============================================================
   === HEADER & MAIN NAVIGATION ==============================
   ============================================================ */
header {
  background: var(--card-bg);
  box-shadow: 0 2px 12px rgba(35,55,85,0.04);
}
header .container {
  flex-direction: row;
  align-items: center;
  min-height: 72px;
  justify-content: space-between;
  gap: 9px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1 1 auto;
}
header nav > a img {
  height: 46px;
  width: auto;
}
header nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
}
header nav ul li {
  display: flex;
}
header nav ul li a {
  font-family: var(--primary-font);
  color: var(--primary);
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 5px;
  font-size: 1.05rem;
  transition: background .17s, color .17s;
}
header nav ul li a:hover,
header nav ul li a:focus {
  background: var(--accent);
  color: var(--primary);
}
header .cta.primary {
  margin-left: 21px;
}
.mobile-menu-toggle {
  display: block;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  margin-left: auto;
  z-index: 102;
  padding: 5px 14px;
  transition: background .18s;
  border-radius: 8px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--divider);
}

/* Hide burger on desktop, show on mobile */
@media (min-width: 1000px) {
  .mobile-menu-toggle {
    display: none;
  }
}
@media (max-width: 999px) {
  header nav ul,
  header .cta.primary {
    display: none !important;
  }
}

/* ============================================================
   === MOBILE MENU (OFF CANVAS NAV) ==========================
   ============================================================ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35,55,85,0.90);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s;
  will-change: opacity;
}
.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.4rem;
  color: #fff;
  background: none;
  border: none;
  align-self: flex-end;
  margin: 20px 24px 0 0;
  cursor: pointer;
  z-index: 2;
  transition: color .14s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px 34px;
  align-items: flex-start;
  margin-top: 34px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--primary-font);
  font-size: 1.35rem;
  padding: 11px 9px;
  border-radius: 6px;
  transition: background .13s, color .13s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}
@media (max-width: 480px) {
  .mobile-nav {
    padding: 24px 13px;
    gap: 19px;
  }
}

/* Slide in from the right (translateX) */
.mobile-menu {
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.65,.02,.22,.99), opacity .22s;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
}

/* ============================================================
   === CTA & BUTTONS =========================================
   ============================================================ */
.cta, .btn, button, input[type=submit], .cta.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-family: var(--primary-font);
  font-size: 1.08rem;
  font-weight: 600;
  padding: 10px 32px;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(35,55,85,0.07);
  transition: background .17s, color .17s, box-shadow .19s, transform .17s;
  outline: none;
  cursor: pointer;
  border: none;
  min-height: 46px;
  position: relative;
  gap: 7px;
  margin-bottom: 10px;
}
.cta:focus, .btn:focus, button:focus, input[type=submit]:focus {
  background: var(--accent);
  color: var(--primary);
}
.cta.primary, .btn.primary {
  background: var(--accent);
  color: var(--primary);
}
.cta:hover, .btn:hover, .cta.primary:hover, .btn.primary:hover, .cta:focus, .btn:focus {
  background: #fffbe7;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(35,55,85,0.14);
  transform: translateY(-2px) scale(1.03);
}

/* Text links in content */
.content-wrapper a:not(.cta):not(.btn), .text-section a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
  transition: color .16s;
}
.content-wrapper a:not(.cta):not(.btn):hover {
  color: var(--accent);
}

/* ============================================================
   === HERO & KEY SECTIONS ===================================
   ============================================================ */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
@media (max-width: 768px) {
  .section {
    padding: 26px 7px;
  }
}

/* Offer listing */
.content-wrapper > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: flex-start;
}
.content-wrapper > ul > li {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: 13px;
  padding: 28px 21px 19px 21px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 215px;
  flex: 1 1 220px;
  gap: 10px;
}
.content-wrapper > ul > li img {
  width: 38px; height: 38px; margin-bottom: 8px;
}

@media (max-width: 1023px) {
  .content-wrapper > ul {
    flex-direction: column;
    gap: 18px;
  }
}

/* == Blog == */
.blog-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.blog-list article {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 22px 18px;
  min-width: 210px;
  max-width: 340px;
  flex: 1 1 210px;
  transition: box-shadow .17s, transform .14s;
  cursor: pointer;
}
.blog-list article:hover {
  box-shadow: 0 5px 25px rgba(35,55,85,0.13);
  transform: translateY(-2px) scale(1.03);
}
.categories-filter {
  margin-bottom: 15px;
  font-size: 1.03rem;
  color: var(--secondary);
  display: flex;
  gap: 7px;
  align-items: center;
}
.categories-filter a {
  color: var(--accent);
  font-weight: 600;
}
.categories-filter a:hover {
  color: var(--primary);
}
.popular-articles ul {
  margin-left: 19px;
}
.popular-articles li {
  margin-bottom: 7px;
}

/* = FAQ Links (Contact page) = */
.faq-links {
  display: flex;
  gap: 12px;
  margin: 9px 0 18px 0;
  font-size: 1rem;
  font-family: var(--body-font);
  color: var(--primary);
}
.faq-links a {
  text-decoration: underline;
  color: var(--accent);
  font-weight: 600;
}
.faq-links a:hover {
  color: var(--primary);
}

/* == Contact Details == */
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 23px 54px;
  margin-bottom: 21px;
  align-items: center;
}
.contact-details > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  color: var(--primary);
  font-size: 1.04rem;
}
.contact-details img {
  width: 26px; height: 26px; opacity: .88; filter: grayscale(1);
}
@media (max-width: 650px) {
  .contact-details {
    flex-direction: column;
    gap: 19px;
    align-items: flex-start;
  }
}

/* ============================================================
   === TESTIMONIALS ==========================================
   ============================================================ */
.testimonial-card {
  color: #263241;
  border-left: 6px solid var(--accent);
  background: #fff;
  font-style: italic;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  transition: box-shadow .16s;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  box-shadow: 0 6px 22px rgba(35,55,85,0.15);
}
.testimonial-details {
  font-size: 1rem;
  font-style: normal;
  color: var(--secondary);
  margin-left: 20px;
}
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
}

/* ============================================================
   === FOOTER ================================================
   ============================================================ */
footer {
  background: #F5F6F8;
  border-top: 1px solid var(--divider);
  padding: 36px 0 15px 0;
  color: var(--primary);
  font-size: 1rem;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 28px 55px;
  justify-content: space-between;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
footer .social-media-links {
  display: flex;
  align-items: center;
  gap: 12px;
}
footer .social-media-links a img {
  width: 29px; height: 29px; filter: grayscale(1); opacity: .69;
  transition: filter .19s, opacity .13s;
}
footer .social-media-links a:hover img,
footer .social-media-links a:focus img {
  filter: none; opacity: 1;
}
footer .legal-disclaimer {
  font-size: .92rem;
  margin-top: 18px;
  color: var(--secondary);
  flex-basis: 100%;
}
@media (max-width: 950px) {
  footer .container {
    flex-direction: column;
    gap: 11px;
    align-items: flex-start;
  }
}

/* ============================================================
   === RESPONSIVE DESIGN =====================================
   ============================================================ */
@media (max-width: 1150px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 768px) {
  .content-grid, .card-container, .brand-values ul, .content-wrapper > ul { flex-direction: column; }
  .content-wrapper, .text-image-section {
    gap: 14px;
    padding-left: 0;
    padding-right: 0;
  }
  .content-wrapper > ul {
    gap: 12px;
  }
  .testimonial-card,
  .card {
    min-width: 0;
  }
  .contact-details {
    flex-direction: column;
    gap: 13px;
  }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1.08rem; }
  .section { margin-bottom: 37px; padding: 20px 3px; }
}
@media (max-width: 530px) {
  html { font-size: 15px; }
  .container {
    padding: 0 3vw;
  }
  .section { padding: 13px 2px; }
}

/* =========== MODAL/OVERLAY FIXES =========== */
body.mobile-menu-open, body.cookie-modal-open {
  overflow: hidden;
}

/* ============================================================
   === COOKIE CONSENT BANNER & MODAL =========================
   ============================================================ */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3200;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 -2px 30px rgba(35,55,85,0.08);
  border-top: 2px solid var(--accent);
  padding: 22px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 23px;
  transition: transform .34s ease, opacity .34s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(110%);
}
.cookie-consent-banner .cookie-text {
  flex: 1 1 auto;
  font-size: 1.08rem;
  color: #233755;
}
.cookie-consent-banner button, .cookie-consent-banner .cookie-button {
  margin-right: 9px;
  margin-bottom: 0;
  padding: 9px 21px;
  min-height: 38px;
  font-size: 1rem;
  border-radius: 8px;
  box-shadow: none;
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  border: none;
  transition: background .12s, color .12s;
}
.cookie-consent-banner .cookie-button.settings {
  background: var(--primary);
  color: #fff;
}
.cookie-consent-banner .cookie-button.reject {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-consent-banner button:hover,
.cookie-consent-banner .cookie-button:hover,
.cookie-consent-banner button:focus,
.cookie-consent-banner .cookie-button:focus {
  background: #fffbe7;
  color: var(--primary);
}

@media (max-width: 650px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: .98rem;
    padding: 15px 8px;
  }
  .cookie-consent-banner .cookie-text {
    font-size: .97rem;
  }
}

/* ============ COOKIE SETTINGS MODAL ===============*/
.cookie-modal {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 3500;
  background: rgba(35,55,85,0.84);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity .28s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-dialog {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 38px rgba(35,55,85,0.18);
  max-width: 410px;
  width: 92vw;
  padding: 32px 24px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 23px;
  position: relative;
  align-items: stretch;
}
.cookie-modal-dialog h3 {
  font-size: 1.28rem;
  margin-bottom: 0px;
  font-family: var(--primary-font);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--divider);
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category .desc {
  font-size: .98rem;
  color: var(--secondary);
}
.cookie-toggle {
  min-width: 46px;
  height: 28px;
  background: var(--divider);
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  border: none;
  transition: background .13s;
}
.cookie-toggle.enabled {
  background: var(--accent);
}
.cookie-toggle.disabled {
  background: var(--divider);
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: left .18s cubic-bezier(.65,.02,.22,.99), background .13s;
  box-shadow: 0 2px 5px rgba(35,55,85,0.14);
}
.cookie-toggle.enabled::before {
  left: 22px;
  background: var(--primary);
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 2.1rem;
  color: var(--secondary);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 12;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 21px;
}
.cookie-modal-actions button {
  padding: 9px 22px;
  min-height: 36px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 600;
  border-radius: 7px;
}
.cookie-modal-actions button:last-child {
  background: var(--primary);
  color: #fff;
}
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus {
  background: #fffbe7;
  color: var(--primary);
}
@media (max-width: 480px) {
  .cookie-modal-dialog {
    max-width: 96vw;
    padding: 20px 6px 14px 6px;
  }
}

/* ========== Misc Utility ========== */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center; }
.hide { display: none !important; }

/* =============================================== */
/* Decorative shadow for .card etc (optional)      */
/* =============================================== */
.card, .card-container > div, .content-wrapper > ul > li, .blog-list article {
  transition: box-shadow .16s, transform .15s;
}
.card:hover,
.card:focus,
.card-container > div:hover,
.card-container > div:focus {
  box-shadow: 0 8px 30px rgba(35,55,85,0.16);
  transform: translateY(-2px) scale(1.015);
}

/* =============================================== */
/* Fields, Forms (minimal for now)                 */
/* =============================================== */
input, textarea, select {
  background: #fff;
  border: 1px solid var(--divider);
  padding: 11px 15px;
  border-radius: 8px;
  color: var(--primary);
  font-size: 1rem;
  transition: border .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
}

/************************************************************
   GLOBAL:
   - NO display: grid or grid-* or columns/column-* or break-inside!
   - ALL responsive, flexbox only!
   - Proper visual hierarchy, smooth transitions, elegant spacing
************************************************************/
