/* ---------------------------
   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, menu, ol, ul, li,
fieldset, form, label, legend, textarea,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
main, 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; }
*, *:before, *:after { box-sizing: inherit; }
body { background: #F1FAEE; color: #1D3557; line-height: 1.5; font-family: 'Roboto', Arial, sans-serif; }
ul,ol { list-style: none; margin: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

/* ---------------------------
   BRAND VARIABLES
----------------------------*/
:root {
  --color-primary: #1D3557;
  --color-secondary: #F1FAEE;
  --color-accent: #457B9D;
  --color-dark: #11213A;
  --color-white: #fff;
  --color-black: #11151c;
  --color-grey-bg: #F7FBFE;
  --color-card: #fff;
  --color-border: #D1E2ED;
  --color-success: #38ad6e;
  --color-warning: #ffbe3a;
  --color-error: #e94941;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* Fallbacks */
body {
  font-family: var(--font-body, 'Roboto', Arial, sans-serif);
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display, 'Montserrat', Arial, sans-serif); font-weight: 700; }

/* ---------------------------
   TYPOGRAPHY
----------------------------*/
h1 { font-size: 2.6rem; letter-spacing: -1px; margin-bottom: 24px; line-height: 1.12; }
h2 { font-size: 2rem; margin-bottom: 20px; line-height: 1.18; }
h3 { font-size: 1.375rem; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.5px; }
h4 { font-size: 1.125rem; font-weight: bold; margin-bottom: 8px; }
p, ul, ol, li { font-size: 1.1rem; line-height: 1.65; color: #1D3557; }
strong { font-weight: 700; }
.section > .container > h2 { text-align: center; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.125rem; }
}

/* ---------------------------
   LAYOUT & SPACING PATTERNS
----------------------------*/
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-card);
  border-radius: 18px;
  box-shadow: 0 3px 18px 2px rgba(34,52,102,0.13);
  padding: 32px 28px;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.card:hover {
  box-shadow: 0 8px 28px 4px rgba(32,87,157,0.18);
  transform: translateY(-4px) scale(1.02);
  z-index: 2;
}
.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(--color-white);
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(34,53,87,0.07);
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 550px;
  border: 2px solid var(--color-border);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  align-items: flex-start;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  margin: 0 0 12px 0;
}

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  align-items: stretch;
}

.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.text-section {
  flex: 1 1 340px;
  min-width: 300px;
}
.map-placeholder {
  background: #dde8f3;
  color: #48637a;
  border-radius: 14px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  margin-top: 12px;
  padding: 10px 8px;
}

@media (max-width: 1100px) {
  .container {
    max-width: 97vw;
    padding-left: 8px; padding-right: 8px;
  }
}
@media (max-width: 768px) {
  .container { max-width: 100vw; padding: 0 2vw; }
  .content-wrapper,.feature-grid,.testimonial-grid,.testimonial-slider, .card-container {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .text-image-section { flex-direction: column; gap: 18px; }
  .text-section, .card, .feature-item, .testimonial-card { min-width: 0; }
}


/* ---------------------------
   HEADER & NAVIGATION
----------------------------*/
header {
  background: var(--color-white);
  border-bottom: 1.5px solid var(--color-border);
  margin-bottom: 0;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 18px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  padding: 8px 0;
  letter-spacing: 0.02em;
  transition: color 0.16s;
  color: var(--color-primary);
  border-bottom: 2.5px solid transparent;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-accent);
  border-bottom: 2.5px solid var(--color-accent);
}

.cta-btn {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.09rem;
  padding: 12px 32px;
  border-radius: 32px;
  box-shadow: 0 3px 16px 0 rgba(69,123,157,0.10);
  transition: background 0.17s, color 0.14s, transform .13s;
  letter-spacing: 0.05em;
  margin-left: 18px;
  position: relative;
  border: none;
  cursor: pointer;
}
.cta-btn:hover,.cta-btn:focus {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 22px 0 rgba(28,53,87,0.14);
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--color-primary);
  cursor: pointer;
  margin-left: 16px;
  padding: 6px 10px;
  z-index: 1210;
  transition: background 0.1s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover{
  background: var(--color-grey-bg);
  color: var(--color-accent);
  border-radius: 6px;
}

/* Mobile Navigation */
.mobile-menu {
  position: fixed;
  z-index: 2100;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(29,53,87,0.96);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(.61,.16,.21,1), opacity 0.2s;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.3rem;
  color: var(--color-white);
  background: none;
  border: none;
  margin: 22px 28px 0 0;
  cursor: pointer;
  transition: color 0.14s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  margin: 48px 0 0 34px;
}
.mobile-nav a {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  padding: 10px 0;
  margin-bottom: 0;
  transition: color 0.16s;
  letter-spacing: 0.04em;
  border-left: 5px solid transparent;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  border-left: 5px solid var(--color-accent);
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  padding-left: 10px;
}
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .cta-btn { margin-left: 0; }
  .mobile-menu-toggle { display: inline-block; }
}
@media (max-width: 700px) {
  .header .container { padding-top: 4px; padding-bottom: 4px; }
  .cta-btn { padding: 9px 20px; font-size: 1rem; }
  .mobile-nav { margin-top: 40px; }
}

/* ---------------------------
   HERO & SECTION BASE STYLES
----------------------------*/
section {
  width: 100%;
  margin: 0 0 60px 0;
  padding: 0;
  background: transparent;
}
section .container {
  padding-top: 42px;
  padding-bottom: 42px;
}
section .container > h2 {
  margin-bottom: 32px;
  font-size: 2rem;
  font-family: var(--font-display);
}

/* ---------------------------
   FEATURE / SERVICE CARDS
----------------------------*/
.feature-grid > div, .feature-grid .feature-item {
  flex: 1 1 240px;
  min-width: 230px;
  max-width: 350px;
  background: var(--color-card);
  border-radius: 18px;
  box-shadow: 0 3px 15px 0 rgba(34,52,120,0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 22px 28px 22px;
  margin-bottom: 0;
  transition: box-shadow 0.17s, transform 0.15s;
}
.feature-grid > div:hover {
  box-shadow: 0 7px 24px 0 rgba(69,123,157,0.18);
  transform: translateY(-2px) scale(1.018);
  z-index: 2;
}
.feature-grid img {
  width: 54px; height: 54px;
  margin-bottom: 12px;
  object-fit: contain;
}
.feature-grid h3 {
  font-size: 1.18rem;
  color: var(--color-primary);
  margin-bottom: 11px;
}
.feature-grid p {
  margin-bottom: 12px;
  font-size: 1.025rem;
  text-align: center;
}
.feature-grid span {
  font-size: 1.01rem;
  font-weight:600;
  color: var(--color-accent);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

@media (max-width: 1024px) {
  .feature-grid > div { min-width: 170px; }
  .feature-grid img { width: 40px; height: 40px; }
}
@media (max-width: 680px) {
  .feature-grid > div { min-width: 0; max-width: 100%; width: 100%; }
}


/* ---------------------------
   TESTIMONIALS
----------------------------*/
.testimonial-card {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(41,64,127,0.08);
  border: 2.2px solid var(--color-accent);
  color: #1D3557;
  font-size: 1.05rem;
  position: relative;
  margin-bottom: 20px;
}
.testimonial-card p {
  font-size: 1.07rem;
  color: #162030;
  font-style: italic;
  margin-bottom: 7px;
}
.testimonial-card strong {
  font-size: .97rem;
  color: var(--color-accent);
  font-weight: 700;
}

@media (max-width: 600px) {
  .testimonial-card {
    padding: 14px;
  }
  .testimonial-slider, .testimonial-grid {
    gap: 14px;
  }
}

/* ---------------------------
   LINKS & BUTTONS
----------------------------*/
a {
  color: var(--color-accent);
  transition: color 0.16s, box-shadow 0.12s;
}
a:focus { outline: 2px dashed var(--color-accent); outline-offset: 2px; }
a:hover { color: var(--color-primary); text-decoration: underline; }
.cta-btn {
  box-shadow: 0 2px 12px 1px rgba(45,70,120,.10);
  border: none;
  outline: none;
}
.cta-btn:focus { outline: 2.5px solid var(--color-accent); outline-offset: 3px; }

/* Secondary / ghost buttons */
.button-secondary {
  display: inline-block;
  border: 2px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  font-family: var(--font-display);
  padding: 10px 28px;
  border-radius: 28px;
  font-weight: 700;
  transition: background 0.14s, color 0.16s, border 0.15s;
}
.button-secondary:hover, .button-secondary:focus {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-accent);
}

/* ---------------------------
   LISTS, ULs, OLs
----------------------------*/
ul, ol { margin: 0 0 1em 0; padding: 0; }
.text-section ul, .content-wrapper ul, .text-section ol {
  margin-left: 0;
  padding-left: 0;
}
.text-section ul li, .content-wrapper ul li {
  position: relative;
  margin-bottom: 0.45em;
  padding-left: 1.5em;
  color: #1D3557;
}
.text-section ul li:before {
  content: '•';
  color: var(--color-accent);
  font-size: 1.25em;
  font-weight: 900;
  position: absolute;
  left: 0; top:0;
  line-height: 1.25em;
}
.text-section ul li strong { color: var(--color-primary); }

/* For checklists */
.text-section ul li:has(strong:contains('✓')), .content-wrapper ul li:has(strong:contains('✓')) {
  color: var(--color-success);
}

/* ---------------------------
   FORMS (if any are added)
----------------------------*/
input, textarea, select {
  padding: 11px 14px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1.6px solid var(--color-border);
  background: #fff;
  margin-bottom: 15px;
  color: var(--color-primary);
  width: 100%;
  margin-top: 5px;
  transition: border 0.11s, box-shadow 0.13s;
}
input:focus, textarea:focus, select:focus {
  outline: 2.5px solid var(--color-accent);
  border-color: var(--color-accent);
}
button, .cta-btn { cursor: pointer; }

/* ---------------------------
   FAQ / ACCORDION (static in code)
----------------------------*/
.text-section h3 { margin-top: 36px; }
.text-section h3:first-of-type { margin-top: 0; }
.text-section p, .card p, .feature-grid p {
  color: #1D3557;
}

/* ---------------------------
   FOOTER
----------------------------*/
footer {
  width: 100%;
  background: #1D3557;
  padding: 40px 0 26px 0;
  color: #fff;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  transition: color 0.17s;
  opacity: 0.88;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
  opacity: 1;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  justify-content: center;
}
.footer-brand img { width: 45px; height: 45px; }
.footer-brand span { font-size: 1.08rem; color: #fff; opacity: 0.86; }
@media (max-width: 600px) {
  footer .container { gap: 10px; }
  .footer-brand { gap: 8px; }
  .footer-brand img { width:30px; height:30px; }
  .footer-nav { gap: 8px; font-size:0.92rem; }
}

/* ---------------------------
   COOKIE CONSENT BANNER
----------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 22899;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 14px 20px 14px;
  background: linear-gradient(to top, #fff 85%, #F1FAEE 100%);
  box-shadow: 0 -2px 18px 2px rgba(29,53,87,0.16);
  min-height: 70px;
  gap: 24px;
  opacity: 1; /* Fallback, set to 0/1 with open/close logic */
  transition: opacity 0.23s cubic-bezier(.52,.08,.18,.99), transform 0.29s;
  transform: translateY(0);
  font-family: var(--font-body);
  font-size: 1.04rem;
}
.cookie-banner.hide {
  opacity: 0; pointer-events: none;
  transform: translateY(100px);
}
.cookie-banner__text {
  flex: 2 1 400px;
  max-width: 580px;
  color: #1D3557;
  font-size: 1.08rem;
}
.cookie-banner__actions {
  flex: 1 1 240px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}
.cookie-btn {
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 28px;
  padding: 8px 26px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-left: 7px;
  transition: background 0.17s, color 0.13s, transform 0.12s;
  cursor: pointer;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.026);
}
.cookie-btn--secondary {
  background: #fff;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.cookie-btn--secondary:hover,.cookie-btn--secondary:focus {
  background: var(--color-grey-bg);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
@media (max-width: 900px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    font-size: 1rem;
  }
  .cookie-banner__actions{ justify-content:center; }
}
@media (max-width: 520px) {
  .cookie-banner {
    font-size: 0.97rem;
    padding: 17px 5px 10px 5px;
  }
  .cookie-banner__actions { flex-direction: column; gap: 9px; } 
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 22900;
  top:0; left:0;
  width:100vw; height:100vh;
  background: rgba(29,53,87,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.24s cubic-bezier(.52,.08,.24,.99);
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  min-width: 328px; max-width: 94vw;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 16px;
  box-shadow: 0 8px 50px 3px rgba(29,53,87,0.23);
  padding: 32px 26px 20px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.4s cubic-bezier(.63,.03,.25,1);
}
@keyframes modalIn {
  0% { opacity: 0; transform: translateY(45px) scale(.96); }
  100% { opacity: 1; transform: none; }
}
.cookie-modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}
.cookie-modal-categories {
  margin: 10px 0 22px 0;
  display: flex;
  flex-direction:column;
  gap:17px;
}
.cookie-modal-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #DEE8F1;
  font-size: 1.05rem;
}
.cookie-modal-category span {
  font-weight:700;
  color: var(--color-accent);
}
.cookie-modal-category .cookie-switch {
  display: inline-flex;
  align-items:center;
}
.cookie-switch input[type="checkbox"] {
  appearance: none;
  display: inline-block;
  width: 38px; height: 19px;
  background: #dde8f3;
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background 0.16s;
}
.cookie-switch input[type="checkbox"]:checked {
  background: var(--color-accent);
}
.cookie-switch input[type="checkbox"]:disabled {
  background: #B6D2E2;
  cursor: not-allowed;
}
.cookie-switch input[type="checkbox"]:after {
  content: '';
  position: absolute;
  top: 2.2px; left: 2.5px;
  width: 15px; height: 15px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.17s, background 0.12s;
  box-shadow: 0 2px 7px rgba(69,123,157,.15);
}
.cookie-switch input[type="checkbox"]:checked:after {
  transform: translateX(18px);
  background: var(--color-primary);
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 11px;
}
.cookie-modal-close {
  position: absolute;
  right: 19px; top: 16px;
  font-size: 2.1rem;
  color: var(--color-accent);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.16s;
  z-index: 2;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { color: var(--color-primary); }
@media (max-width:500px) {
  .cookie-modal{ padding: 18px 5px 16px 8px; min-width: 0; }
  .cookie-modal-title { font-size: 1.13rem; }
}

/* ---------------------------
   UTILITY, ANIMATIONS
----------------------------*/
.fade-in {
  opacity:0; animation: fadeIn .7s forwards; }
@keyframes fadeIn { 100% { opacity:1; } }
.slide-in-y {
  transform: translateY(30px); opacity: 0;
  animation: slideInY .5s .05s forwards;
}
@keyframes slideInY { to { opacity:1; transform:none; } }

/* Geometric highlight shapes (for "modern_bold" accent) */
.modern-blob {
  position: absolute; z-index: 0;
  background: var(--color-accent);
  opacity: 0.08;
  border-radius: 40% 80% 65% 40%/60% 40% 80% 45%;
  width: 180px; height: 140px;
  top: -18px; right: -40px;
  pointer-events: none;
}
.card .modern-blob { right: -25px; top: -14px; width: 94px; height: 60px; }

/* ---------------------------
   MISC OVERRIDES
----------------------------*/
::-webkit-input-placeholder { color: #AAC2DB; }
::-moz-placeholder { color: #AAC2DB; }
:-ms-input-placeholder { color: #AAC2DB; }
::placeholder { color: #AAC2DB; }

/* Hide default focus outlines for mouse users, keep for keyboard */
:focus:not(:focus-visible) { outline: none; }

/* Make sure scrollbars aren't intrusive */
body {
  scrollbar-color: #457B9D #F1FAEE;
  scrollbar-width: thin;
}

/* ------ Brand accent underline for H2 headings ------ */
h2 {
  position: relative;
  display: inline-block;
  z-index: 1;
}
h2:after {
  content: "";
  display: block;
  height: 4px;
  width: 34px;
  border-radius: 4px;
  background: var(--color-accent);
  margin-top: 7px;
}

/* Ensure adequate spacing between all content cards and sections */
.card, .feature-grid > div, .testimonial-card, .content-wrapper > * {
  margin-bottom: 20px;
}

/* Prevent unwanted overlapping by enforcing min-widths and gaps */
.content-wrapper > * {
  min-width: 0;
}

/* ---------------------------
   PRINT OPTIMIZATION
----------------------------*/
@media print {
  header, footer, .cookie-banner, .cookie-modal-overlay, .mobile-menu { display:none !important; }
  body { background: #fff !important; color: #000 !important; }
  .container, .section { box-shadow: none !important; background: none !important; }
}
