/* ===================================================================
   CSS Reset & Normalize (minimal, compatible)
   =================================================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote {
  margin: 0;
  padding: 0;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img, svg {
  max-width: 100%;
  display: block;
  height: auto;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #fff;
  color: #222;
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
}

/* ===================================================================
   Root Variables for Brand Colors (with fallbacks)
   =================================================================== */
:root {
  --color-primary: #245B74;
  --color-secondary: #41A66D;
  --color-accent: #FFF8F0;
  --color-bg: #fff;
  --color-card: #f8fafb;
  --color-border: #e7e7ea;
  --color-text: #222;
  --color-text-secondary: #606060;
  --color-neutral-100: #f5f5f5;
  --color-neutral-200: #ededed;
  --color-overlay: rgba(36, 91, 116, 0.08);
  --shadow-low: 0 2px 8px rgba(36,91,116,0.08);
  --shadow-medium: 0 4px 24px rgba(36,91,116,0.13);
  --radius: 12px;
}

/* ===================================================================
   Typography (Montserrat for display, Open Sans for body)
   =================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600&display=swap');

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 {
  font-size: 2.4rem;
}
h2 {
  font-size: 1.7rem;
}
h3 {
  font-size: 1.15rem;
}
@media (min-width: 600px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.4rem; }
}
p, ul, ol, li {
  font-size: 1rem;
  color: var(--color-text-secondary);
}
p + p, p + ul, ul + p, ul + ul {
  margin-top: 14px;
}
strong {
  color: var(--color-primary);
  font-weight: 600;
}

/* Link and Button Styles (minimalist, with brand colors) */
a {
  color: var(--color-primary);
  transition: color 0.18s;
}
a:hover,
a:focus {
  color: var(--color-secondary);
  text-decoration: underline;
}

.cta-btn {
  display: inline-block;
  background: var(--color-secondary);
  color: #fff;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-low);
  border: 1px solid var(--color-secondary);
  transition: background 0.23s, color 0.23s, transform 0.18s, box-shadow 0.2s;
  margin-top: 20px;
  margin-bottom: 0;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px) scale(1.035);
  box-shadow: var(--shadow-medium);
}

/* ===================================================================
   Layout Containers (Container, Section, Content Wrapper)
   =================================================================== */
.container {
  width: 100%;
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
@media (min-width: 800px) {
  section {
    padding: 48px 0 48px 0;
  }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  align-items: flex-start;
  gap: 16px;
}

/* ===================================================================
   Flex Utility Classes (Mandatory Patterns)
   =================================================================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 10px;
}
.feature-grid > div {
  flex: 1 1 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-low);
  padding: 26px 22px 20px 22px;
  min-width: 200px;
  transition: transform 0.17s, box-shadow 0.16s;
}
.feature-grid > div:hover {
  transform: translateY(-3px) scale(1.035);
  box-shadow: var(--shadow-medium);
}

/* Card Container (generic cards) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow-low);
  margin-bottom: 20px;
  flex: 1 1 280px;
  position: relative;
  transition: box-shadow 0.2s, border-color 0.18s;
}
.card:hover {
  box-shadow: var(--shadow-medium);
  border-color: var(--color-secondary);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .feature-grid,
  .card-container,
  .content-grid,
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}

/* Testimonial Card (Distinct, with proper contrast) */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-low);
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--color-text);
  transition: box-shadow 0.16s;
  max-width: 640px;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-medium);
}
.testimonial-card p {
  margin-bottom: 8px;
  color: var(--color-primary);
  font-size: 1.05rem;
  font-family: 'Open Sans', Arial, sans-serif;
}
.testimonial-card div {
  font-size: 0.97rem;
  color: var(--color-text-secondary);
}

/* Feature Item Flex Pattern */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===================================================================
   Header (Brand Logo, Desktop Nav, Mobile Nav Trigger)
   =================================================================== */
header {
  background: #fff;
  box-shadow: 0 1px 14px rgba(36,91,116,0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 74px;
}
header a img {
  max-height: 44px;
  width: auto;
}
header nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
header nav a {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 7px 7px;
  border-radius: 6px;
  transition: background 0.16s, color 0.16s;
}
header nav a:hover, header nav a:focus {
  color: var(--color-secondary);
  background: var(--color-accent);
  outline: none;
}
header .cta-btn {
  margin-left: 8px;
  margin-right: 0;
  padding: 10px 24px;
  font-size: 1rem;
  box-shadow: none;
}

/* Mobile Menu Toggle (Burger) */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 8px;
  padding: 5px 10px;
  margin-left: 10px;
  border: 1px solid var(--color-border);
  transition: background 0.2s, color 0.2s, box-shadow 0.23s;
  z-index: 110;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: #fff;
  outline: 2px solid var(--color-primary);
}

@media (max-width: 1000px) {
  header nav,
  header .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ===================================================================
   Mobile Menu Overlay (Full Screen)
   =================================================================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(255,255,255,0.98);
  z-index: 120;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.66,.01,.41,1.01);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 8px 36px rgba(36,91,116,0.18);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  color: var(--color-primary);
  margin: 24px 24px 10px 0;
  padding: 0 4px;
  background: transparent;
  border-radius: 7px;
  border: 1px solid transparent;
  transition: background 0.14s, color 0.16s, border 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary);
  color: #fff;
  border: 1px solid var(--color-primary);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 7px;
  align-items: flex-start;
  padding: 0 40px 32px 40px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 14px 0 10px 0;
  transition: color 0.18s, background 0.18s;
  border-radius: 7px;
  margin-bottom: 6px;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  background: var(--color-accent);
}
@media (max-width: 500px) {
  .mobile-nav {
    padding-left: 24px;
    padding-right: 10px;
  }
}

/* ===================================================================
   Main Content (sections, forms, ul/ol)
   =================================================================== */
main {
  min-height: 60vh;
  margin-bottom: 32px;
}
section ul, section ol {
  margin-top: 13px;
  margin-left: 0;
  padding-left: 22px;
}
section ul li,
section ol li {
  margin-bottom: 11px;
  position: relative;
  font-size: 1rem;
  color: var(--color-text-secondary);
}
section ul li:before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--color-secondary);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
}
section ol {
  list-style: decimal inside;
}

/* Title spacing */
.text-section > h1, .text-section > h2 {
  margin-bottom: 8px;
}
.text-section > h2 + p {
  margin-top: 8px;
}

/* ===================================================================
   Footer
   =================================================================== */
footer {
  background: var(--color-accent);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 34px 18px;
  font-size: 1rem;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}
footer nav a {
  color: var(--color-primary);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.16s;
}
footer nav a:hover {
  color: var(--color-secondary);
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.97rem;
}
.contact-details img {
  width: 18px;
  height: 18px;
  margin-right: 7px;
  vertical-align: sub;
  display: inline-block;
}
.footer-branding {
  flex: 1 1 100%;
  margin-top: 28px;
  text-align: right;
  color: var(--color-text-secondary);
  font-size: 0.97rem;
  letter-spacing: 0.01em;
}
@media (max-width: 700px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 10px;
  }
  .footer-branding {
    text-align: left;
    margin-top: 10px;
  }
}

/* ===================================================================
   Responsive Utilities
   =================================================================== */
@media (max-width: 1000px) {
  .container {
    max-width: 97vw;
  }
}
@media (max-width: 800px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.3rem; }
  .feature-grid > div, .card {
    padding: 20px 13px;
  }
}
@media (max-width: 600px) {
  section {
    padding: 30px 6px;
  }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.08rem; }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* ===================================================================
   Micro-interactions & Transitions
   =================================================================== */
section, .card, .feature-grid > div, .testimonial-card {
  transition: box-shadow 0.15s, background 0.17s, border 0.14s, transform 0.16s;
}

/* ===================================================================
   Cookie Consent Banner (Fixed Bottom)
   =================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: var(--color-bg);
  padding: 22px 24px;
  box-shadow: 0 -2px 14px rgba(36,91,116,0.06);
  border-top: 1px solid var(--color-border);
  gap: 24px;
  font-size: 1rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s, transform 0.36s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner__text {
  flex: 1 1 auto;
  color: var(--color-text);
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
}
.cookie-btn, .cookie-settings-btn {
  padding: 10px 22px;
  font-size: 1rem;
  border-radius: 8px;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  border: 1px solid var(--color-secondary);
  transition: background 0.18s, color 0.18s, border 0.18s;
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--color-secondary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--color-neutral-100);
}
.cookie-settings-btn {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-border);
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}

@media (max-width:600px) {
  .cookie-banner {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 11px;
    padding: 16px 7px;
  }
  .cookie-banner__actions {
    gap: 7px;
    flex-wrap: wrap;
  }
}

/* ===================================================================
   Cookie Modal (Popup)
   =================================================================== */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 220;
  background: rgba(36,91,116, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.35s;
}
.cookie-modal.hide { opacity: 0; pointer-events: none; }
.cookie-modal__dialog {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-medium);
  padding: 36px 32px 30px 32px;
  max-width: 440px;
  min-width: 280px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
  font-family: 'Open Sans', Arial, sans-serif;
  border: 1px solid var(--color-border);
}
.cookie-modal__title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.4rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 5px;
}
.cookie-modal__close {
  position: absolute;
  top: 18px; right: 16px;
  color: var(--color-primary);
  font-size: 1.4rem;
  background: transparent;
  border: none;
  border-radius: 50%;
  line-height: 1;
  padding: 3px 5px;
  cursor: pointer;
  transition: background 0.13s, color 0.18s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: var(--color-accent);
  color:var(--color-secondary);
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-category label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 18px;
  height: 18px;
}
.cookie-category input[type="checkbox"][disabled] {
  filter: grayscale(0.7) opacity(0.8);
}
.cookie-modal__desc {
  font-size: 0.97rem;
  color: var(--color-text-secondary);
}
.cookie-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 10px;
}
@media (max-width: 500px) {
  .cookie-modal__dialog { padding: 20px 8px 17px 12px;}
  .cookie-modal .cookie-modal__title { font-size: 1.08rem; }
}

/* ===================================================================
   Miscellaneous
   =================================================================== */
::-webkit-input-placeholder { color: #bcbcbc; }
::-moz-placeholder { color: #bcbcbc; }
:-ms-input-placeholder { color: #bcbcbc; }
::placeholder { color: #bcbcbc; }

hr {
  border: 0;
  border-top: 1px solid var(--color-neutral-200);
  margin: 24px 0;
}

/* Decorative subtle shadow for logo */
header a img {
  filter: drop-shadow(0 2px 4px rgba(36,91,116,0.09));
}

/* Active state for navigation links */
nav a.active, .mobile-nav a.active {
  color: var(--color-secondary);
  font-weight: 700;
  border-bottom: 2px solid var(--color-secondary);
}

/* ===================================================================
   Accessibility Focus Outlines
   =================================================================== */
a:focus-visible,
button:focus-visible,
.cta-btn:focus-visible {
  outline: 2px dashed var(--color-primary);
  outline-offset: 1.5px;
}

/* ===================================================================
   Hide elements visually only (for accessibility helpers e.g. ARIA)
   =================================================================== */
.visually-hidden {
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}

/* ===================================================================
   Custom Scrollbar (minimal, visible only on desktop)
   =================================================================== */
@media (min-width: 800px) {
  ::-webkit-scrollbar { width: 10px; background: var(--color-card); }
  ::-webkit-scrollbar-thumb { background: var(--color-neutral-200); border-radius: 5px; }
}

/* ===================================================================
   Prevent Content Overlap, Enforce Spacing
   =================================================================== */
.card, .testimonial-card, .feature-grid > div,
section, .content-wrapper, .card-container,
.content-grid, .text-image-section {
  margin-bottom: 20px;
}
section {
  margin-bottom: 60px !important;
}
.card, .testimonial-card, .feature-grid > div {
  margin-bottom: 20px !important;
}

/* ===================================================================
   Print (optional, minimalist)
   =================================================================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  section, main { padding: 0 !important; margin: 0 !important; }
  body { background: #fff !important; }
}
