/* === 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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F8F8F8;
  color: #222;
}
b *,
*::before,
*::after {
  box-sizing: inherit;
}
ul, ol {
  margin: 0 0 16px 32px;
}
a {
  color: #1E3557;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.6,.2,.3,1), background 0.2s;
}
a:hover, a:focus {
  color: #06d6a0;
  outline: none;
}
img {
  max-width: 100%;
  display: block;
}

/* === BRAND COLORS & FONTS === */
:root {
  --color-primary: #1E3557;
  --color-secondary: #6AA0A7;
  --color-accent: #F8F8F8;
  --color-electric1: #06d6a0;
  --color-electric2: #ffd166;
  --color-electric3: #ef476f;
  --color-bg-vibrant: #ffffff;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --radius: 18px;
  --shadow: 0 4px 24px 0 rgba(30,53,87,0.11),0 1.5px 3px 0 rgba(111,200,234,0.06);
}

/* === LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* === HEADER === */
header {
  width: 100%;
  background: var(--color-bg-vibrant);
  box-shadow: 0 3px 8px rgba(30,53,87,0.03);
  z-index: 1000;
  position: sticky;
  top: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header img {
  height: 52px;
  min-width: 120px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.main-nav a {
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--color-primary);
  transition: background 0.15s, color 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-electric1);
  color: #fff;
}

.cta-btn {
  background: linear-gradient(90deg, var(--color-electric3) 0%, var(--color-electric2) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 12px 32px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 2px 16px 0 rgba(239,71,111,0.14);
  transition: transform 0.14s, box-shadow 0.18s, background 0.3s;
  margin-left: 16px;
  display: inline-block;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 32px 0 rgba(255,209,102,0.16);
  background: linear-gradient(90deg, var(--color-electric1) 0%, var(--color-electric2) 100%);
}

.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 34px;
  color: var(--color-primary);
  padding: 6px 8px;
  border-radius: 8px;
  margin-left: 18px;
  display: none;
  cursor: pointer;
  transition: background 0.16s, color 0.18s;
  z-index: 3002;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-electric2);
  color: var(--color-electric3);
}

/* === MOBILE MENU OVERLAY === */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(30,53,87,0.98);
  color: #fff;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.75,.1,.47,.9);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 34px;
  background: none;
  border: none;
  color: #fff;
  margin: 24px 0 10px 24px;
  align-self: flex-start;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s, color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-electric1);
  color: var(--color-electric2);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-top: 18px;
  padding: 0 36px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 0 14px 8px;
  border-radius: 9px;
  color: #fff;
  background: none;
  transition: background 0.16s, color 0.2s;
  margin-bottom: 6px;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-electric2);
  color: var(--color-electric3);
}

/* === MAIN --- PAGE STYLES === */
main {
  min-height: 60vh;
  padding-top: 18px;
  padding-bottom: 32px;
  width: 100%;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 800;
  line-height: 1.18;
}
h1 {
  font-size: 38px;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
h2 {
  font-size: 28px;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
h3 {
  font-size: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.text-section h2, .text-section h3 {
  color: var(--color-electric3);
}
p, li {
  font-size: 16px;
  color: #2e2e2e;
  font-family: var(--font-body);
  margin-bottom: 10px;
}
p {
  max-width: 800px;
  margin-bottom: 14px;
}
ul {
  margin-left: 26px;
  margin-bottom: 18px;
  font-size: 16px;
}
ol {
  margin-left: 28px;
  margin-bottom: 18px;
  font-size: 16px;
}
strong {
  font-weight: 800;
  color: var(--color-primary);
}

/* === FLEXBOX PATTERNS & CONTENT CARDS === */
.card-container, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
  margin-bottom: 12px;
}
.card, .feature-item {
  background: var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 20px;
  margin-bottom: 20px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: calc(260px - 24px);
  gap: 15px;
  transition: transform 0.18s, box-shadow 0.18s, background 0.28s;
}
.card:hover, .feature-item:hover {
  transform: translateY(-6px) scale(1.025);
  background: #fffbe8;
  box-shadow: 0 6px 30px 0 rgba(255,209,102,0.13);
}
.feature-item img, .card img {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
}
.feature-item h3 {
  color: var(--color-electric1);
  font-size: 19px;
  font-weight: bold;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.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;
  margin-bottom: 28px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(106,160,167,0.10);
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-size: 17px;
  color: #181818;
  min-width: 260px;
  max-width: 580px;
  position: relative;
  border-left: 7px solid var(--color-electric3);
}
.testimonial-card p {
  color: #181818;
  font-size: 17px;
  margin-bottom: 0;
  font-style: italic;
}
.testimonial-card span {
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 15px;
  margin-left: 12px;
}

/* --- Spacing for cards/sections as required --- */
section > .container,
footer > .container {
  padding-right: 0;
  padding-left: 0;
}

/* === FOOTER === */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 42px 0 24px 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.footer-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  margin-right: 10px;
  opacity: 0.88;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.15s, color 0.19s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-electric1);
  color: #1E3557;
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.footer-contact img {
  height: 18px;
  width: 18px;
  margin-right: 7px;
  vertical-align: middle;
}
.footer-contact span {
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  opacity: 0.94;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* === CONTACT PAGE SPECIAL === */
.contact-note {
  padding: 12px 18px;
  background: #fff9e1;
  border-left: 6px solid var(--color-electric2);
  color: #1e3557;
  border-radius: 8px;
  font-size: 15px;
  margin-top: 10px;
  margin-bottom: 10px;
  font-family: var(--font-body);
}
.map-embed {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.map-embed img {
  width: 36px;
  height: 36px;
}

/* === TABLE, LI, OL STYLES === */
ul li, ol li {
  padding-left: 6px;
  margin-bottom: 5px;
}
ul li strong, ol li strong {
  color: var(--color-electric3);
}

/* === HERO + CTA EFFECTS === */
.content-wrapper > .cta-btn, section .cta-btn {
  margin-top: 12px;
  align-self: flex-start;
}

/* === COOKIES BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 0 20px 0 rgba(30,53,87,0.2);
  color: #222;
  z-index: 5000;
  padding: 22px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  animation: cookieBannerIn 0.7s cubic-bezier(.65,.25,.5,1) 1;
}
@keyframes cookieBannerIn {
  0% { transform: translateY(60px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0 0 6px 0;
  color: #181818;
  font-size: 15px;
}
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 4px;
}
.cookie-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(27,53,87,0.07);
  transition: background 0.17s, color 0.18s, transform 0.14s;
}
.cookie-btn.accept {
  background: var(--color-electric1);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-electric3);
  color: #fff;
}
.cookie-btn.reject {
  background: var(--color-electric3);
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--color-electric2);
  color: #222;
}
.cookie-btn.settings {
  background: #fff;
  color: var(--color-electric2);
  border: 2px solid var(--color-electric2);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-electric2);
  color: #fff;
}

/* === COOKIES MODAL PREFERENCES === */
.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 94%;
  max-width: 390px;
  transform: translate(-50%,-50%) scale(1);
  background: #fff;
  box-shadow: 0 8px 32px 0 rgba(30,53,87,0.10);
  z-index: 6000;
  border-radius: 16px;
  padding: 36px 22px 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 1;
  animation: cookieModalIn 0.6s cubic-bezier(.65,.25,.5,1);
}
@keyframes cookieModalIn {
  0% { opacity: 0; transform: translate(-50%,-38%) scale(.94); }
  100% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal h3 {
  color: var(--color-primary);
  font-size: 21px;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.cookie-category label {
  font-family: var(--font-body);
  font-size: 16px;
  color: #222;
  margin-bottom: 0;
}
.cookie-toggle {
  appearance: none;
  width: 42px;
  height: 22px;
  border-radius: 22px;
  background: #cfd3dc;
  transition: background 0.2s;
  outline: none;
  position: relative;
}
.cookie-toggle:checked {
  background: var(--color-electric1);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.2s;
}
.cookie-toggle:checked:before {
  left: 23px;
}
.cookie-category .toggle-label.disabled {
  color: #999;
}
.cookie-modal .cookie-btn {
  margin-top: 16px;
}
.cookie-modal-close {
  position: absolute;
  top: 11px;
  right: 16px;
  font-size: 27px;
  background: none;
  border: none;
  color: #1e3557;
  font-weight: bold;
  cursor: pointer;
  padding: 2px 7px;
  border-radius: 8px;
  transition: background 0.18s, color 0.15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #f5e5f0;
  color: var(--color-electric3);
}

/* === ANIMATIONS === */
.cta-btn,
.card, .feature-item, .testimonial-card,
.mobile-menu, .mobile-nav a, .cookie-banner, .cookie-modal {
  transition: 
    transform 0.18s cubic-bezier(.6,.2,.3,1), 
    box-shadow 0.22s, 
    background 0.25s, 
    color 0.19s;
}

/* === MEDIA QUERIES: RESPONSIVE LAYOUT === */
@media (max-width: 1140px) {
  .container {
    max-width: 98vw;
    padding-left: 8px;
    padding-right: 8px;
  }
}
@media (max-width: 990px) {
  .main-nav {
    gap: 10px;
  }
  .hero-section h1 {
    font-size: 32px;
  }
}
@media (max-width: 900px) {
  .feature-item, .card {
    min-width: 220px;
    padding: 22px 14px;
  }
  .testimonial-card {
    max-width: 99vw;
    min-width: 200px;
  }
}
@media (max-width: 850px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .cta-btn {
    font-size: 16px;
    padding: 12px 22px;
    margin-left: 10px;
  }
}
@media (max-width: 768px) {
  main {
    padding-top: 6px;
    padding-bottom: 18px;
  }
  section {
    padding: 29px 6px 29px 6px;
    margin-bottom: 38px;
  }
  .feature-grid, .card-container, .content-grid {
    gap: 13px;
  }
  .feature-item, .card {
    min-width: 140px;
    padding: 15px 10px;
  }
  h1 {
    font-size: 27px;
  }
  h2 {
    font-size: 20px;
  }
  h3 {
    font-size: 16px;
  }
  .text-image-section,
  .content-wrapper,
  .footer-contact {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
  }
  .testimonial-card {
    flex-direction: column;
    padding: 13px;
    gap: 10px;
    font-size: 15px;
    max-width: 100vw;
  }
}
@media (max-width: 620px) {
  .container {
    padding-left: 2px;
    padding-right: 2px;
  }
  section {
    padding: 12px 2px 20px 2px;
    margin-bottom: 21px;
  }
  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 13px;
  }
}
@media (max-width: 520px) {
  header .container,
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  header img {
    height: 36px;
    min-width: 86px;
  }
  .cta-btn {
    padding: 10px 12px;
    font-size: 14px;
    margin-left: 0;
    margin-bottom: 9px;
  }
  .mobile-menu-close {
    font-size: 28px;
  }
  .mobile-nav a {
    font-size: 16px;
    padding: 12px 4px;
  }
}

/* === UTILITIES === */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 7px !important; }
.mb-2 { margin-bottom: 15px !important; }
.mb-3 { margin-bottom: 26px !important; }
.gap-0 { gap: 0 !important; }
.gap-1 { gap: 7px !important; }
.gap-2 { gap: 13px !important; }
.gap-3 { gap: 25px !important; }

/* === Z-INDICES === */
header { z-index: 1000; }
.mobile-menu { z-index: 3000; }
.cookie-banner { z-index: 5000; }
.cookie-modal { z-index: 6000; }

/* === ACCESSIBILITY: FOCUS VISIBLE === */
a, button, .cta-btn, .mobile-menu-toggle, .mobile-menu-close, .cookie-btn, .cookie-modal-close {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--color-electric3);
  outline-offset: 2px;
}

/* === PRINT OVERRIDE (hide non-content for print) === */
@media print {
  header, .mobile-menu, .cta-btn, .cookie-banner, .cookie-modal, footer {
    display: none !important;
  }
  section, main {
    background: #fff !important;
    box-shadow: none !important;
    color: #000 !important;
    margin: 0 !important; padding: 0 !important;
  }
}
