/* LeGiF Grega Minimalist Flexbox CSS – Mobile First, No Grid, Modern & Clean */

/* === RESET & NORMALIZE === */
html {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: #fff;
  color: #1D3557;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}
img, svg {
  max-width: 100%;
  display: block;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #1D3557;
  margin-bottom: 12px;
  line-height: 1.15;
}
h1 { font-size: 2.25rem; margin-bottom: 18px; }
h2 { font-size: 1.5rem; margin-bottom: 14px; }
h3 { font-size: 1.125rem; margin-bottom: 10px; }
p, ul, ol {
  color: #344966;
  margin-bottom: 16px;
}
ul, ol { padding-left: 20px; }
a {
  color: #457B9D;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #1D3557;
  outline: none;
}
strong { color: #1D3557; font-weight: 700; }

/* ==== BASE LAYOUT CONTAINERS ==== */
.container {
  width: 100%;
  max-width: 1072px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(26, 43, 84, 0.05);
}

/* ==== HEADER & NAV ==== */
header {
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 12px rgba(26, 43, 84, 0.07);
  position: sticky; top: 0; z-index: 50;
}
header .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  display: flex;
  align-items: center;
  padding: 8px 0;
}
.main-nav {
  display: none;
  flex-direction: row;
  gap: 20px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 6px 10px;
  border-radius: 6px;
  color: #344966;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F2F2F2;
  color: #1D3557;
}
.cta-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #fff;
  background: #1D3557;
  border: none;
  padding: 10px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(30,60,84,.04);
  cursor: pointer;
  transition: background .18s, box-shadow .2s, transform .1s;
  display: inline-block;
  margin-left: 0;
  letter-spacing: 0.04em;
}
.cta-btn:hover, .cta-btn:focus {
  background: #457B9D;
  box-shadow: 0 4px 24px rgba(29,53,87,.09);
  transform: translateY(-2px) scale(1.03);
}
/* hamburger menu button */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1D3557;
  color: #fff;
  font-size: 2rem;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(29,53,87,0.11);
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.14s, transform .14s;
  z-index: 101;
  outline: none;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #457B9D;
  transform: scale(1.10);
}

/* hide main nav on mobile, show burger */
@media (min-width: 1024px) {
  .main-nav {
    display: flex;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* ==== MOBILE MENU OVERLAY ==== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(29,53,87, .96);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 34px 24px 24px 24px;
  z-index: 999;
  transform: translateX(-100%);
  transition: transform .36s cubic-bezier(.86,0,.07,1);
  box-shadow: 0 3px 60px rgba(30,60,84,0.25);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  color: #fff;
  background: none;
  border: none;
  font-size: 2.1rem;
  position: absolute;
  top: 13px;
  right: 18px;
  cursor: pointer;
  z-index: 1000;
  transition: color .11s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F2F2F2;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 30px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 14px 0 12px 0;
  border-radius: 8px;
  transition: background .12s, color .12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #457B9D;
  color: #F2F2F2;
}
@media (max-width: 1023px) {
  .main-nav, .cta-btn {
    display: none !important;
  }
}

/* === HERO SECTION === */
.hero {
  width: 100%;
  background: #F2F2F2;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 6px 30px rgba(30,60,84,.05);
  margin-bottom: 50px;
  padding: 46px 0 36px 0;
  display: flex;
  align-items: center;
}
.hero .container {
  align-items: flex-start;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 8px;
  padding-left: 0;
  padding-right: 0;
}
.hero h1 {
  font-size: 2.4rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  color: #1D3557;
  margin-bottom: 8px;
  margin-top: 0;
}
.subheadline {
  font-size: 1.13rem;
  color: #344966;
  margin-bottom: 16px;
  font-weight: 400;
}
.hero .cta-btn {
  margin-top: 16px;
}

/* === FLEX PATTERNS & CARD LAYOUTS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(29,53,87,0.07);
  padding: 28px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  min-width: 284px;
  flex: 1 1 284px;
  position: relative;
  transition: box-shadow .17s, transform .13s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 36px rgba(29,53,87,0.10);
  transform: translateY(-3px) scale(1.01);
}
.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 {
  background: #F2F2F2;
  color: #1D3557;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(29,53,87,0.07);
  font-size: 1.04rem;
  transition: box-shadow .13s, transform .13s;
}
.testimonial-card p {
  color: #1D3557;
  font-size: 1.04rem;
  margin-bottom: 4px;
}
.testimonial-card span {
  display: block;
  color: #457B9D;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 0.97em;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 7px 22px rgba(29,53,87,.13);
  transform: translateY(-2px);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(30,60,84,0.045);
  padding: 19px 20px;
  margin-bottom: 20px;
}

/* ==== TEXT SECTION === */
.text-section {
  margin-bottom: 12px;
}
.text-section img {
  vertical-align: middle;
  margin-right: 7px;
  width: 19px;
  height: 19px;
}
.text-section p {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: #344966;
}
.text-section a {
  text-decoration: underline;
}

/* ==== SPECIAL CONTENT ARRANGEMENTS === */
ul li, ol li {
  margin-bottom: 10px;
}
ul li:last-child, ol li:last-child {
  margin-bottom: 0;
}

/* ======= FOOTER ======= */
footer {
  background: #F2F2F2;
  margin-top: 80px;
  padding: 30px 0 22px 0;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -2px 18px rgba(29,53,87,0.09);
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  margin-bottom: 10px;
}
.footer-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #344966;
  font-size: 0.98em;
  letter-spacing: 0.02em;
  padding: 5px 6px;
  border-radius: 6px;
  transition: background .13s, color .13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #1D3557;
  color: #fff;
}
.footer-brand img {
  width: 43px;
  height: auto;
}
.footer-contact {
  color: #1D3557;
  font-size: .97em;
  text-align: center;
}
.footer-contact span {
  margin: 0 4px;
}

/* ====== COOKIE CONSENT BANNER ====== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  color: #1D3557;
  box-shadow: 0 -6px 32px rgba(29,53,87,0.12);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 32px 18px 20px 18px;
  z-index: 9980;
  transition: transform .3s;
  border-radius: 22px 22px 0 0;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner.show {
  transform: translateY(0);
}
.cookie-banner h4 {
  font-size: 1rem;
  margin-bottom: 9px;
  color: #1D3557;
}
.cookie-banner p {
  margin-bottom: 10px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 9px 24px;
  margin-left: 0;
  cursor: pointer;
  background: #F2F2F2;
  color: #1D3557;
  box-shadow: 0 2px 9px rgba(29,53,87,.04);
  transition: background .13s, color .13s, transform .10s;
}
.cookie-btn.accept {
  background: #1D3557;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #457B9D;
}
.cookie-btn.reject {
  background: #F2F2F2;
  color: #1D3557;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #dbe5ef;
}
.cookie-btn.settings {
  background: #457B9D;
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #1D3557;
}

/* = COOKIE SETTINGS MODAL = */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(29,53,87, 0.33);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  pointer-events: all;
  transition: opacity .26s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-box {
  background: #fff;
  color: #1D3557;
  border-radius: 16px;
  box-shadow: 0 6px 48px rgba(29,53,87,0.21);
  padding: 32px 26px 20px 26px;
  min-width: 312px;
  max-width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: fadeInScale .3s cubic-bezier(.62,.03,.54,1.19);
}
@keyframes fadeInScale {
  from {transform: scale(.93) translateY(20px); opacity: 0;}
  to {transform: scale(1) translateY(0); opacity: 1;}
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 15px;
  background: none;
  border: none;
  color: #1D3557;
  font-size: 1.8rem;
  cursor: pointer;
  transition: color .11s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #457B9D;
}
.cookie-modal-title {
  font-size: 1.18rem;
  font-family: 'Montserrat';
  font-weight: 700;
  margin-bottom: 12px;
  color: #1D3557;
}
.cookie-modal-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 10px;
}
.cookie-switch {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.cookie-switch label {
  cursor: pointer;
  font-size: 1rem;
  color: #1D3557;
}
.cookie-switch input[type="checkbox"] {
  accent-color: #457B9D;
  width: 20px; height: 20px;
}
.cookie-switch .essential {
  color: #8c99ad;
  font-size: .98em;
  font-style: italic;
}
/* Only custom switches for visual effect */

/* ==== RESPONSIVENESS ==== */
@media (max-width: 768px) {
  .container, .content-wrapper {
    padding-left: 10px;
    padding-right: 10px;
    gap: 14px;
  }
  .section {
    padding: 28px 7px;
    margin-bottom: 32px;
  }
  .hero {
    padding: 36px 0 19px 0;
    border-radius: 0 0 12px 12px;
  }
  .hero h1 {
    font-size: 1.65rem;
  }
  .subheadline {
    font-size: 0.97rem;
  }
  .footer-contact, .footer-nav {
    font-size: 0.92em;
  }
}
@media (max-width: 600px) {
  .container {
    padding-left: 0;
    padding-right: 0;
  }
  .web-logo, .footer-brand img {
    width: 32px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 3px;
    align-items: flex-start;
  }
}
@media (max-width: 900px) {
  .text-image-section, .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .card {
    min-width: 94vw;
    padding: 19px 12px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* ====== FOCUS & ACCESSIBILITY ====== */
:focus {
  outline: 2px solid #457B9D;
  outline-offset: 2px;
  z-index: 2;
}
button:focus,
input:focus,
.cta-btn:focus,
.cookie-btn:focus,
.mobile-menu-close:focus {
  outline: 2px solid #457B9D;
  outline-offset: 2px;
}

/* ====== MISC: OTHER CLASSES, MICRO-ANIMATIONS ====== */
::-webkit-scrollbar {
  width: 9px;
  background: #F2F2F2;
}
::-webkit-scrollbar-thumb {
  background: #d9e4ef;
  border-radius: 12px;
}

button {
  font-family: inherit;
  font-size: 1em;
  cursor: pointer;
}

hr {
  border: none;
  border-top: 1px solid #F2F2F2;
  margin: 16px 0;
}

/* ======= PRINT OPTIMIZATION ======= */
@media print {
  header, footer, .cookie-banner, .cookie-modal {
    display: none !important;
  }
  main { background: #fff !important; }
  body { color: #000 !important; }
}

/* ======= OVERRIDES FOR BRAND PERSONALITY ======= */
h1, h2, h3, h4 {
  letter-spacing: -0.03em;
}
.body, p, ul, ol {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* === END OF CSS FILE === */