/* =========================================================
   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;
  font-size: 16px;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #1C3956;
  background: #F5F7FA;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a { 
  color: #1C3956; 
  text-decoration: none; 
  transition: color 0.2s ease;
}
a:hover, a:focus {
  color: #F5C542;
  outline: none;
}

/* =========================================================
   BRAND TYPOGRAPHY
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Open+Sans:wght@400;600&display=swap');

h1, h2, h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: 0.025em;
  color: #1C3956;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 24px;
  text-transform: uppercase;
}

h2 {
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 20px;
  text-transform: uppercase;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 12px;
  text-transform: uppercase;
}

p, ul, ol, blockquote, cite, address {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #1C3956;
  font-size: 1rem;
  margin-bottom: 18px;
}

ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
  padding-left: 22px;
}

ul li, ol li {
  margin-bottom: 8px;
}

strong { font-weight: 700; }
blockquote {
  border-left: 5px solid #F5C542;
  padding-left: 16px;
  font-style: italic;
  background: #fffbe7;
  color: #1C3956;
}
cite {
  display: block;
  font-size: 1rem;
  margin-top: 10px;
  font-style: normal;
  color: #1C3956;
}

/* =========================================================
   CONTAINER & LAYOUT
========================================================= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0px;
}

main {
  margin-top: 24px;
  margin-bottom: 40px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 4px 14px 0 rgba(28,57,86,0.06);
}

/* =========================================================
   HEADER STYLES (Structured, Geometric)
========================================================= */
header {
  background: #fff;
  border-bottom: 3px solid #F5C542;
  box-shadow: 0 2px 6px 0 rgba(28,57,86,0.06);
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 16px;
  padding-bottom: 16px;
  min-height: 64px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 4px;
  position: relative;
  transition: color 0.18s cubic-bezier(.4,0,.2,1);
}

.main-nav a:hover, .main-nav a:focus {
  color: #F5C542;
}

header img {
  height: 38px;
  width: auto;
}

/* =========================================================
   PRIMARY BUTTONS & CALL-TO-ACTIONS
========================================================= */
.btn-primary {
  background: #1C3956;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  border-radius: 12px;
  padding: 12px 36px;
  font-size: 1rem;
  cursor: pointer;
  letter-spacing: 0.058em;
  box-shadow: 0 2px 12px 0 rgba(28,57,86,0.06);
  transition: background 0.3s, transform 0.18s, box-shadow 0.18s;
  display: inline-block;
}

.btn-primary:hover, .btn-primary:focus {
  background: #F5C542;
  color: #1C3956;
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 4px 18px 0 rgba(28,57,86,0.11);
}

.btn-secondary {
  background: #F5C542;
  color: #1C3956;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 12px 36px;
  font-size: 1rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 12px 0 rgba(28,57,86,0.04);
  transition: background 0.3s, color 0.14s, box-shadow 0.15s;
  display: inline-block;
}

.btn-secondary:hover, .btn-secondary:focus {
  background: #1C3956;
  color: #fff;
}

/* =========================================================
   FLEXBOX SPACING PATTERNS (GEOMETRIC/STRUCTURED) 
========================================================= */
.feature-grid, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}

.card-container {
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px 0 rgba(28,57,86,0.06);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  min-width: 270px;
  flex: 1 1 270px;
  transition: box-shadow 0.2s, transform 0.22s;
}

.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(28,57,86,0.13);
  transform: translateY(-4px) scale(1.01);
}

.content-grid {
  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;
  margin-bottom: 20px;
  background: #F5F7FA;
  border-left: 7px solid #F5C542;
  border-radius: 14px;
  box-shadow: 0 1px 6px 0 rgba(28,57,86,0.04);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 15px;
  flex: 1 1 200px;
  min-width: 190px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(28,57,86,0.055);
  padding: 30px 20px;
  transition: box-shadow 0.2s, transform 0.18s;
}

.feature-item:hover {
  box-shadow: 0 5px 22px 0 rgba(28,57,86,0.13);
  transform: translateY(-3px) scale(1.012);
}

/* Utility for minimal spacing */
.mb-20 { margin-bottom: 20px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mt-24 { margin-top: 24px !important; }

/* For elements like .contact-info-block that aren't cards */
.contact-info-block {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 10px 0 rgba(28,57,86,0.06);
  padding: 26px 22px;
  margin-bottom: 20px;
}

/* =========================================================
   HERO SECTION
========================================================= */
.hero {
  background: linear-gradient(120deg, #F5F7FA 68%, #F5C542 100%);
  min-height: 240px;
  border-radius: 0 0 36px 36px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  box-shadow: 0 7px 16px 0 rgba(28,57,86,0.07);
  position: relative;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 240px;
}

.hero h1 {
  color: #1C3956;
}
.hero p {
  font-size: 1.18rem;
  color: #334966;
  margin-bottom: 26px;
}

.hero .btn-primary {
  margin-top: 4px;
}

/* =========================================================
   FOOTER
========================================================= */
footer {
  background: #1C3956;
  color: #fff;
  padding: 34px 0 34px 0;
  border-radius: 34px 34px 0 0;
  box-shadow: 0 -4px 16px 0 rgba(28,57,86,0.06);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-nav a {
  color: #F5C542;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  transition: color 0.17s;
}
.footer-nav a:hover {
  color: #fff;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}
.footer-contact img {
  height: 34px;
  margin-bottom: 6px;
}
.footer-contact a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  transition: color 0.14s;
}
.footer-contact a:hover {
  color: #F5C542;
}
.footer-contact address {
  font-style: normal;
  color: #F5C542;
  font-size: 1rem;
}
.footer-contact p {
  color: #F5C542;
  font-size: 0.98rem;
}

/* =========================================================
   MOBILE BURGER MENU
========================================================= */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #1C3956;
  cursor: pointer;
  display: none;
  transition: color 0.18s;
  padding: 4px 12px;
  border-radius: 7px;
  z-index: 51;
}

.mobile-menu-toggle:focus {
  background: #F5C542;
  color: #1C3956;
  outline: none;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(28, 57, 86, 0.96);
  color: #fff;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  opacity: 0;
  transition: transform 0.33s cubic-bezier(.77,0,.18,1), opacity 0.2s;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: #F5C542;
  font-size: 2.4rem;
  align-self: flex-end;
  margin: 24px 26px 14px 0;
  cursor: pointer;
  border-radius: 7px;
  padding: 4px 11px;
  transition: background 0.15s, color 0.17s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #F5C542;
  color: #1C3956;
  outline: none;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  align-items: flex-start;
  margin-left: 44px;
}

.mobile-nav a {
  color: #fff;
  font-size: 1.35rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 8px 0;
  border-radius: 7px;
  transition: background 0.17s, color 0.12s;
  min-width: 150px;
  display: inline-block;
}

.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F5C542;
  color: #1C3956;
}

/* Show/hide logic for nav: mobile first */
@media (max-width: 1100px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 1101px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Prevent scroll when mobile menu open (set in JavaScript) */
body.menu-open {
  overflow: hidden;
}

/* =========================================================
   COOKIE CONSENT BANNER + COOKIE SETTINGS MODAL
========================================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: #1C3956;
  box-shadow: 0 -2px 14px 0 rgba(28,57,86,0.13);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  gap: 15px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  border-top: 3px solid #F5C542;
  animation: cookieBannerIn 0.5s ease-out;
}
@keyframes cookieBannerIn {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.cookie-banner-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 26px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  text-transform: uppercase;
}
.cookie-btn.accept {
  background: #1C3956;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #F5C542;
  color: #1C3956;
}
.cookie-btn.reject {
  background: #F5F7FA;
  color: #1C3956;
  border: 1px solid #1C3956;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #F5C542;
  color: #1C3956;
  border-color: #1C3956;
}
.cookie-btn.settings {
  background: #fff;
  color: #1C3956;
  border: 1.5px solid #F5C542;
  margin-left: 5px;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #F5C542;
  color: #1C3956;
}

/* ----- Cookie Modal Overlay & Dialog ----- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 5100;
  background: rgba(28,57,86,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  width: 100%;
  max-width: 410px;
  background: #fff;
  border-radius: 22px;
  padding: 36px 26px;
  box-shadow: 0 12px 42px 0 rgba(28,57,86,0.16);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  position: relative;
  animation: modalIn 0.4s cubic-bezier(.55,.02,.57,1);
}
@keyframes modalIn {
  0% { transform: scale(0.88) translateY(100px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  right: 12px;
  top: 13px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #1C3956;
  cursor: pointer;
  padding: 0 5px;
  border-radius: 7px;
  transition: background 0.14s, color 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #F5C542;
  color: #fff;
  outline: none;
}
.cookie-modal h2 {
  font-size: 1.4rem;
  color: #1C3956;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 9px 0;
  font-size: 1.05rem;
  border-bottom: 1px solid #F5F7FA;
}
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}
.cookie-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #F5F7FA;
  border: 1px solid #1C3956;
  border-radius: 14px;
  transition: background 0.2s;
}
.cookie-switch input:checked + .cookie-slider {
  background: #F5C542;
  border-color: #F5C542;
}
.cookie-slider:before {
  position: absolute;
  content: '';
  height: 16px; width: 16px;
  left: 3px; bottom: 2.2px;
  background: #fff;
  border: 1.2px solid #1C3956;
  border-radius: 50%;
  transition: transform 0.2s;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(15px);
  border-color: #F5C542;
}
.cookie-category label {
  font-weight: 600;
  min-width: 140px;
}
.cookie-buttons {
  display: flex; gap: 17px; margin-top: 5px;
}

/* Essential cookies always enabled */
.cookie-category.essential label::after {
  content: " (Always Enabled)";
  color: #F5C542;
  font-size: 0.93em;
  font-weight: 600;
}
.cookie-category.essential .cookie-switch {
  opacity: 0.6;
  pointer-events: none;
}

@media (max-width: 600px) {
  .cookie-modal {
    padding: 23px 10px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* =========================================================
   GENERAL RESPONSIVE ADJUSTMENTS
========================================================= */
@media (max-width: 1100px) {
  .container {
    max-width: 95vw;
    padding-left: 15px;
    padding-right: 15px;
  }
  .feature-grid, .card-container, .content-grid {
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .footer-contact {
    align-items: flex-start;
  }
  .feature-grid, .card-container, .content-grid {
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 9px;
    padding-right: 9px;
  }
  .hero {
    min-height: 120px;
    border-radius: 0 0 18px 18px;
    margin-bottom: 32px;
  }
  .content-wrapper {
    gap: 9px;
    padding: 0;
  }
  .section {
    margin-bottom: 32px;
    padding: 22px 7vw;
    border-radius: 15px;
  }
  .card, .feature-item {
    padding: 17px 10px;
    border-radius: 10px;
    min-width: 110px !important;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 11px;
    border-radius: 7px;
  }
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.175rem; }
  h3 { font-size: 1rem; }
  .main-nav {
    display: none !important;  /* Always hide on mobile */
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 75px;
    border-radius: 0 0 11px 11px;
  }
  .section, .card, .feature-item {
    padding-left: 4vw;
    padding-right: 4vw;
  }
  .testimonial-card, .contact-info-block {
    padding-left: 4vw;
    padding-right: 4vw;
  }
  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
}

/* =========================================================
   GEOMETRIC STRUCTURED VISUALS
========================================================= */
/* Geometric divider for visual style */
.section:not(:last-child)::after {
  content: "";
  display: block;
  width: 44px;
  height: 5px;
  background: #F5C542;
  border-radius: 2.5px;
  margin: 34px 0 0 0;
}

/* Buttons, icon shapes etc. */
.btn-primary, .btn-secondary, .feature-item, .card {
  /* Structured, subtle geometric box-shadows */
  box-shadow: 0 2px 10px 0 rgba(28,57,86,0.05);
}

/* Accessibility & focus */
:focus {
  outline: 2px solid #F5C542;
  outline-offset: 2px;
}

/* =========================================================
   PRINT STYLES (minimal)
========================================================= */
@media print {
  header, .main-nav, .mobile-menu, .btn-primary, .btn-secondary, footer, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  .section, .container, main { box-shadow: none !important; background: #fff !important; }
}
