/* 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;
}
/* HTML5 display-role reset */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F4F7FB;
  color: #17436F;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.02em;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
ul, ol {
  list-style: none;
}
a {
  color: #17436F;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #DE6A00;
  outline: none;
}
button {
  font-family: inherit;
  font-size: 16px;
  background: none;
  border: none;
  cursor: pointer;
}

/* BRAND TYPOGRAPHY ========================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #17436F;
  margin-bottom: 20px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  text-transform: uppercase;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
}
h3 {
  font-size: 1.4rem;
  line-height: 1.3;
}
p, li, span, label {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #17436F;
  line-height: 1.6;
}
strong {
  font-weight: 700;
  color: #17436F;
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.375rem; }
  h3 { font-size: 1.1rem; }
  body { font-size: 15px; }
}

/* STRUCTURED CONTAINER & LAYOUT ============================================= */
.container {
  width: 100%;
  max-width: 1120px;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: auto;
  margin-right: auto;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}
.text-section {
  align-items: flex-start;
  text-align: left;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(23,67,111, 0.08);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 32px;
  }
  .container {
    padding-left: 8px; padding-right: 8px;
  }
}

/* FLEXBOX GRID SYSTEMS ====================================================== */
.feature-grid, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card-container { gap: 24px; }
.card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(23,67,111, 0.10);
  margin-bottom: 20px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 260px;
  max-width: 340px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 6px 28px 0 rgba(222,106,0,0.12), 0 2px 18px 0 rgba(23,67,111, 0.12);
  transform: translateY(-6px) scale(1.024);
  z-index: 2;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .feature-grid, .card-container, .content-grid, .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F4F7FB;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(23,67,111,0.07);
  padding: 24px 18px 20px 18px;
  min-width: 220px;
  flex: 1 1 220px;
  transition: box-shadow 0.16s, border 0.2s, transform 0.16s;
  border: 2.5px solid transparent;
}
.feature-item:hover, .feature-item:focus-within {
  border-color: #DE6A00;
  box-shadow: 0 4px 24px rgba(222,106,0,0.10);
  transform: translateY(-3px) scale(1.012);
}
.feature-item img {
  width: 36px; height: 36px; object-fit: contain;
  margin-bottom: 10px;
}

.service-list,
.member-benefits,
.reason-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* NAVIGATION ================================================================ */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(23,67,111,0.06);
  padding: 0;
  margin-bottom: 0;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  height: 72px;
  position: relative;
  z-index: 100;
}
nav > a img {
  height: 38px;
}
nav > ul {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  margin: 0;
}
nav > ul li {
  margin-bottom: 0;
}
nav > ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s;
}
nav > ul li a.cta-primary {
  background: #DE6A00;
  color: #fff;
  border-radius: 10px;
  margin-left: 8px;
  box-shadow: 0 2px 8px rgba(222,106,0,0.13);
  font-weight: 700;
}
nav > ul li a.cta-primary:hover, nav > ul li a.cta-primary:focus {
  background: #17436F;
  color: #fff;
}
nav > ul li a:hover, nav > ul li a:focus {
  background: #F4F7FB;
  color: #DE6A00;
}

/* MOBILE MENU ============================================================== */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  line-height: 1;
  background: #DE6A00;
  color: #fff;
  border-radius: 8px;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  margin-left: 14px;
  z-index: 125;
  border: none;
  box-shadow: 0 2px 10px rgba(222,106,0,0.16);
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #17436F;
}
@media (max-width: 1024px) {
  nav > ul {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(23,67,111, 0.92);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  z-index: 4000;
  transform: translateX(-110%);
  transition: transform 0.35s cubic-bezier(.68,-0.55,.29,1.56);
  will-change: transform;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: #fff;
  color: #17436F;
  border-radius: 15px;
  font-size: 2.2rem;
  margin: 24px 24px 0 0;
  padding: 5px 22px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 56px;
  align-items: flex-end;
  width: 100%;
  padding-right: 52px;
}
.mobile-nav a {
  color: #fff;
  background: transparent;
  padding: 15px 28px;
  border-radius: 10px 0 0 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: right;
  transition: background 0.15s, color 0.2s, border-radius 0.19s;
  width: 89%;
  display: flex;
  justify-content: flex-end;
}
.mobile-nav a.cta-primary {
  background: #DE6A00;
  color: #fff;
  font-weight: 700;
  margin-top: 22px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #fff;
  color: #DE6A00;
  border-radius: 10px;
}

/* MAIN CONTENT & HERO ======================================================= */
main {
  margin-top: 0;
  margin-bottom: 0;
  width: 100%;
  flex: 1 0 auto;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(23,67,111, 0.08);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 768px) {
  section {
    padding: 24px 8px;
    margin-bottom: 32px;
  }
}

/* TESTIMONIAL CARD ========================================================= */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #F4F7FB;
  border-radius: 13px;
  box-shadow: 0 1px 8px rgba(23,67,111,0.07);
  margin-bottom: 24px;
  border-left: 6px solid #DE6A00;
  min-width: 240px;
  max-width: 480px;
  color: #222;
  font-size: 1.08rem;
}
.testimonial-card p {
  color: #17436F;
  font-size: 1.08rem;
  font-style: italic;
}
.testimonial-card span {
  color: #17436F;
  font-weight: 600;
  letter-spacing: 0.04em;
}
@media (max-width: 768px) {
  .testimonial-card {
    padding: 16px 10px;
    max-width: 100%;
    font-size: 1rem;
  }
}

/* CTA BUTTON STYLES ========================================================= */
.cta-primary {
  background: #DE6A00;
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  padding: 14px 38px;
  border-radius: 22px;
  box-shadow: 0 2px 10px rgba(222,106,0,0.15);
  transition: background 0.2s, box-shadow 0.22s, transform 0.15s;
  display: inline-block;
  margin-top: 10px;
  border: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: #17436F;
  color: #fff;
  box-shadow: 0 5px 24px rgba(23,67,111,0.15);
  transform: scale(1.04);
}

/* FOOTER ==================================================================== */
footer {
  background: #f9fafc;
  border-top: 3px solid #17436F;
  padding: 0 0 24px 0;
  margin-top: 32px;
  position: relative;
}
footer .container {
  padding-top: 36px;
  padding-bottom: 12px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
  margin-right: 14px;
}
.footer-menu a {
  color: #17436F;
  opacity: 0.93;
  transition: color 0.2s;
}
.footer-menu a:hover {
  color: #DE6A00;
}
.brand-info {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.brand-info img {
  height: 42px;
  width: auto;
}
.contact-info {
  font-size: 0.97rem;
  color: #17436F;
  margin-top: 6px;
  line-height: 1.6;
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}

/* MODAL OVERLAY & ANIMATION (for Cookie Modal, if present) ================== */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 67, 111, 0.82);
  z-index: 4011;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  padding: 38px 22px 28px 22px;
  max-width: 420px;
  box-shadow: 0 8px 36px rgba(23,67,111,0.19);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal h3 {
  margin-bottom: 6px;
  color: #17436F;
  font-size: 1.45rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-weight: 600;
  font-size: 1rem;
}
.cookie-toggle {
  width: 40px; height: 24px;
  background: #F4F7FB;
  border-radius: 13px;
  border: 1.5px solid #DE6A00;
  position: relative;
  transition: background 0.14s;
  margin-left: 8px;
}
.cookie-toggle input[type="checkbox"] {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}
.cookie-toggle .slider {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #DE6A00;
  position: absolute;
  top: 2.5px; left: 2px;
  transition: left 0.20s;
}
.cookie-toggle input[type="checkbox"]:checked + .slider {
  left: 20px;
  background: #17436F;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 15px;
  justify-content: flex-end;
}
.cookie-modal .modal-actions .cta-primary {
  margin-top: 0;
}
.cookie-modal .modal-actions button {
  padding: 11px 25px;
  border-radius: 14px;
  font-size: 1rem;
  background: #F4F7FB;
  border: 1.5px solid #DE6A00;
  color: #DE6A00;
  transition: background 0.12s, color 0.15s;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
.cookie-modal .modal-actions button:hover {
  background: #DE6A00;
  color: #fff;
}

/* COOKIE BANNER ============================================================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 4002;
  background: #fff;
  border-top: 3px solid #DE6A00;
  box-shadow: 0 -2px 14px rgba(23,67,111,0.08);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  padding: 21px 6vw 18px 6vw;
  font-size: 1rem;
}
.cookie-banner .cookie-banner-message {
  flex: 2 1 auto;
  color: #17436F;
}
.cookie-banner .cookie-banner-actions {
  flex: 1 0 auto;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  align-items: center;
}
.cookie-banner .cta-primary {
  padding: 9px 22px;
  font-size: 1rem;
}
.cookie-banner .cookie-settings-btn,
.cookie-banner .cookie-reject-btn {
  padding: 10px 19px;
  border-radius: 12px;
  background: #F4F7FB;
  border: 1.5px solid #17436F;
  color: #17436F;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.12s, color 0.12s;
}
.cookie-banner .cookie-settings-btn:hover,
.cookie-banner .cookie-reject-btn:hover {
  background: #17436F;
  color: #fff;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 10px 16px 10px;
  }
  .cookie-banner .cookie-banner-actions {
    flex-direction: row;
    width: 100%; gap: 10px;
  }
}

/* FORM ELEMENTS ============================================================== */
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 10px;
  padding: 10px 14px;
  border: 1.5px solid #17436F;
  background: #F4F7FB;
  transition: border 0.13s;
  outline: none;
  margin-bottom: 16px;
}
input:focus, select:focus, textarea:focus {
  border-color: #DE6A00;
  background: #fff;
}

/* GEOMETRIC DECORATIVE ELEMENTS ============================================== */
/* For brand: use subtle polygon backgrounds and accent bars for structured look   */
.section, .feature-item, .testimonial-card, .card {
  position: relative;
}
.section:before {
  content: "";
  display: block;
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: rgba(23, 67, 111, 0.09);
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
  z-index: 1;
  pointer-events: none;
  border-radius: 4px;
}
.feature-item:after {
  content: "";
  display: block;
  position: absolute;
  bottom: 8px; right: 12px;
  width: 28px; height: 18px;
  background: rgba(222, 106, 0, 0.08);
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
  z-index: 1;
  pointer-events: none;
  border-radius: 3px;
}
.testimonial-card:after {
  content: "";
  display: block;
  position: absolute;
  bottom: 3px; left: 12px;
  width: 18px; height: 18px;
  background: rgba(23,67,111,0.07);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 1;
  pointer-events: none;
  border-radius: 2px;
}
@media (max-width: 768px) {
  .section:before, .feature-item:after, .testimonial-card:after {
    display: none;
  }
}

/* UTILITY SPACING =========================================================== */
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mt-3 { margin-top: 24px !important; }
.pt-2 { padding-top: 16px !important; }
.pb-2 { padding-bottom: 16px !important; }
.gap-2 { gap: 16px !important; }
.gap-3 { gap: 24px !important; }

/* VISUAL HIERARCHY & HOVEREFFECTS =========================================== */
.feature-item,
.card, .cta-primary, .testimonial-card, .cookie-banner .cookie-settings-btn, .cookie-banner .cookie-reject-btn, .mobile-menu-toggle {
  transition: 
    background 0.20s,
    box-shadow 0.16s,
    transform 0.17s,
    color 0.18s,
    border 0.16s;
}
.feature-item:active, .card:active, .cta-primary:active, .testimonial-card:active {
  transform: scale(0.98);
}

/* FOCUS OUTLINES FOR ACCESSIBILITY =========================================== */
a:focus, button:focus, .feature-item:focus-within {
  outline: 2px solid #DE6A00;
  outline-offset: 2px;
  z-index: 2;
}

/* PRINT OPTIMIZATION ======================================================== */
@media print {
  * {
    background: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
  }
  nav, .mobile-menu, .cookie-banner, .cookie-modal-overlay, footer {
    display: none !important;
  }
}
