/* =========================================
   CSS RESET & NORMALIZE (minimal, robust)
========================================= */
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;
}
html {
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F8F6F2;
  color: #22496D;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
strong {
  font-weight: 600;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  appearance: none;
}

/* =========================================
   BRAND COLORS & TYPOGRAPHY
========================================= */
:root {
  --color-primary: #22496D;
  --color-secondary: #7DA888;
  --color-accent: #F8F6F2;
  --color-bg: #F8F6F2;
  --color-text: #22496D;
  --color-muted: #A6B2C6;
  --color-border: #E2E6EA;
  --color-white: #fff;
  --shadow-card: 0 2px 10px 0 rgba(34, 73, 109, 0.05);
  --shadow-soft: 0 1px 6px 0 rgba(34, 73, 109, 0.03);
  --radius-small: 6px;
  --radius-large: 16px;
}
@font-face {
  font-family: 'Montserrat';
  font-display: swap;
  src: local('Montserrat'), local('Montserrat-Regular');
  font-weight: 400 700;
}
@font-face {
  font-family: 'Open Sans';
  font-display: swap;
  src: local('Open Sans'), local('OpenSans-Regular');
  font-weight: 400 700;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
h4,h5,h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}

p, li, a, label, span {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  color: var(--color-text);
}
.subheadline {
  font-size: 1.15rem;
  color: var(--color-secondary);
  margin-bottom: 24px;
}

/* =========================================
   GENERAL LAYOUT CONTAINERS & SPACING
========================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

/* Gaps for card and content grids, always with flexbox */
.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(34, 73, 109, 0.10);
  transform: translateY(-3px) scale(1.02);
}
.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;
  background: var(--color-white);
  padding: 20px;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
  color: var(--color-primary);
  transition: box-shadow 0.2s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 3px 16px 0 rgba(34,73,109,0.10);
  transform: translateY(-2px);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===============================
    HEADER & NAVIGATION
=============================== */
header {
  background: var(--color-accent);
  box-shadow: 0 1px 4px 0 rgba(34,73,109,0.04);
  position: relative;
  z-index: 40;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px;
}
.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  margin-right: 32px;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-primary);
  padding: 3px 8px;
  border-radius: var(--radius-small);
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}
.primary-cta {
  margin-left: 22px;
  padding: 10px 26px;
  background: var(--color-primary);
  color: var(--color-accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-large);
  box-shadow: 0 2px 8px 0 rgba(34,73,109,0.08);
  transition: background 0.2s, color 0.2s, box-shadow 0.16s, transform 0.14s;
  outline: none;
  border: none;
}
.primary-cta:hover, .primary-cta:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 5px 22px 0 rgba(125,168,136,0.14);
  transform: translateY(-2px);
}

/* Mobile hamburger menu button */
.mobile-menu-toggle {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 105;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-accent);
  font-size: 2rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px 0 rgba(34,73,109,0.08);
  transition: background 0.18s, color 0.18s, box-shadow 0.17s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,73,109,0.98);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.34s cubic-bezier(.71,.29,.21,.89), opacity 0.25s;
}
.mobile-menu.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  color: var(--color-accent);
  font-size: 1.8rem;
  border: none;
  align-self: flex-end;
  margin: 18px 22px;
  cursor: pointer;
  padding: 8px;
  z-index: 121;
  border-radius: var(--radius-large);
  transition: background 0.16s, color 0.15s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin: 38px 0 0 38px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  color: var(--color-accent);
  padding: 10px 0 10px 4px;
  border-radius: var(--radius-small);
  min-width: 216px;
  min-height: 44px;
  transition: background 0.18s, color 0.18s, transform 0.15s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
  transform: translateX(8px);
}

/* Hide mobile nav by default on desktop */
@media (min-width: 1024px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}
@media (max-width: 1023px) {
  .main-nav, .primary-cta {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}

/* ===============================
    HERO SECTIONS
=============================== */
.hero {
  background: var(--color-accent);
  padding: 56px 0 48px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  box-shadow: 0 1px 10px 0 rgba(34, 73, 109, 0.045);
}
.hero .content-wrapper {
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.4rem;
  letter-spacing: 0.02em;
  line-height: 1.14;
}
.hero .cta-btn {
  margin-top: 24px;
}

@media (max-width: 500px) {
  .hero h1 { font-size: 1.45rem; }
  h2 { font-size: 1.1rem; }
  .hero { padding: 38px 0 28px 0; }
}

/* ===============================
    LISTS, UL/OL for Features, Services
=============================== */
.features, .feature-grid {
  width: 100%;
}
.features .content-wrapper > ul,
.features .content-wrapper > ol {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  flex-direction: row;
  padding-top: 8px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 24px;
}
.features ul li,
.features ol li,
.feature-grid li {
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-large);
  padding: 14px 22px;
  color: var(--color-primary);
  min-width: 208px;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.02rem;
  font-weight: 500;
  transition: box-shadow 0.17s, background 0.17s;
}
.features ul li:hover,
.feature-grid li:hover {
  background: var(--color-secondary);
  color: var(--color-accent);
  box-shadow: 0 4px 14px 0 rgba(34,73,109,0.07);
}

.features ol {
  counter-reset: custom;
}
.features ol li {
  position: relative;
  padding-left: 38px;
}
.features ol li::before {
  counter-increment: custom;
  content: counter(custom) '.';
  position: absolute;
  left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--color-secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}

/* ===============================
    SERVICES / COURSELIST
=============================== */
.service-list, .service ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-list li,.service ul li {
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-large);
  min-width: 230px;
  max-width: 100%;
  padding: 20px 24px 18px 24px;
  margin-bottom: 20px;
  font-weight: 500;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.15s;
}
.service-list li:hover,.service ul li:hover {
  box-shadow: 0 6px 22px 0 rgba(125,168,136,0.08);
  transform: translateY(-2px);
}
.price {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-secondary);
  font-size: 1.15rem;
  margin-top: 6px;
  font-weight: 700;
}

/* ===============================
    BUTTONS & LINKS
=============================== */
.cta-btn {
  display: inline-flex;
  align-items: center;
  background: var(--color-secondary);
  color: var(--color-white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-large);
  box-shadow: 0 2px 14px 0 rgba(125,168,136,0.11);
  border: none;
  cursor: pointer;
  margin: 14px 0 0 0;
  transition: background 0.16s, color 0.18s, transform 0.18s;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  transform: translateY(-2px) scale(1.02);
}

/* ===============================
    TESTIMONIALS / RATINGS
=============================== */
.testimonials .content-wrapper {
  gap: 18px;
}
.star-rating-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1.15rem;
  background: var(--color-accent);
  border-radius: var(--radius-large);
  padding: 8px 20px;
  box-shadow: var(--shadow-soft);
}

/* Testimonials card contrast */
.testimonials .testimonial-card,
.testimonial-card {
  background: var(--color-white);
  color: var(--color-primary);
}
.testimonial-card p {
  font-size: 1rem;
  color: var(--color-text);
}
.testimonial-card strong {
  color: var(--color-primary);
  font-size: 14px;
}

/* ===============================
    CONTACT/FOOTER OPTIONS
=============================== */
.contact-options, .mini-contact {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 26px;
  margin-bottom: 8px;
  align-items: center;
}
.contact-options li,
.mini-contact span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  min-width: 160px;
}
.contact-options a,
.mini-contact a {
  color: var(--color-primary);
  font-weight: 500;
  font-family: 'Open Sans', Arial, sans-serif;
  text-decoration: underline;
  transition: color 0.17s;
}
.contact-options a:hover,
.mini-contact a:hover { color: var(--color-secondary); }
.map-snippet {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-accent);
  border-radius: var(--radius-large);
  padding: 12px 20px;
  margin-top: 8px;
  font-size: 0.99rem;
}

/* ===============================
    FOOTER
=============================== */
footer {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 -2px 10px 0 rgba(34, 73, 109, 0.03);
}
footer .container {
  padding: 28px 20px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-bottom: 13px;
}
.footer-links a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  font-size: 0.99rem;
  opacity: 0.89;
  padding: 2px 6px;
  border-radius: var(--radius-small);
  transition: color 0.13s, background 0.16s;
}
.footer-links a:hover {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.social-icons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  margin-top: 6px;
}
.social-icons a img {
  height: 30px; width: 30px;
  filter: grayscale(0.45);
  opacity: 0.8;
  transition: opacity 0.13s, filter 0.13s;
}
.social-icons a:hover img {
  opacity: 1;
  filter: grayscale(0);
}
.footer-bottom {
  padding: 9px 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.96rem;
  text-align: center;
  background: transparent;
}

/* ===============================
    LEGAL PAGE STYLES
=============================== */
.legal .content-wrapper {
  background: var(--color-white);
  padding: 36px 24px;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-card);
  gap: 24px;
}
.legal h1,.legal h2 { margin-top: 6px; }

/* ===============================
    UTILITIES
=============================== */
.hide { display: none !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.w-100 { width: 100% !important; }
.mt-32 { margin-top: 32px !important; }
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }

/* ===============================
    RESPONSIVE DESIGN
=============================== */
@media (max-width: 1023px) {
  .container { padding: 0 14px; }
  .footer-links, .mini-contact {
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .container { max-width: 98vw; }
  header .container, .footer .container { flex-direction: column; gap: 10px; align-items: flex-start; }
  .section { margin-bottom: 38px; padding: 28px 6px; }
  .content-grid, .card-container, .card-grid, .service-list, .features .content-wrapper > ul {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .contact-options, .mini-contact {
    gap: 14px;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.22rem; }
  h2 { font-size: 1.02rem; }
  .card, .testimonial-card, .service-list li, .feature-grid li, .legal .content-wrapper {
    padding: 14px 10px;
  }
  .hero {
    padding: 24px 0 16px 0;
    min-height: 90px;
  }
  .footer-links, .mini-contact, .contact-options { gap: 10px; }
}

/* =====================================
   COOKIE CONSENT BANNER + MODAL
====================================== */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 1400;
  width: calc(100% - 32px);
  max-width: 540px;
  background: var(--color-white);
  box-shadow: 0 7px 30px 0 rgba(34,73,109,0.09);
  border-radius: var(--radius-large);
  padding: 24px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  font-size: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.36s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: all;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 12px;
}
.cookie-btn, .cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  outline: none;
  border-radius: var(--radius-large);
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.16s;
  margin-right: 0px;
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: var(--color-white);
}
.cookie-btn.accept:hover {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-btn.reject {
  background: #ececec;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}
.cookie-btn.reject:hover {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-btn.settings {
  background: var(--color-white);
  color: var(--color-secondary);
  border: 1.5px solid var(--color-secondary);
}
.cookie-btn.settings:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}

@media (max-width: 480px) {
  .cookie-banner { max-width: 98vw; padding: 14px 6px 16px 6px; font-size: 0.96rem; }
  .cookie-banner .cookie-actions { flex-direction: column; gap: 6px; }
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1450;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34,73,109,0.87);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.36s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: var(--color-white);
  border-radius: var(--radius-large);
  padding: 34px 30px 26px 30px;
  max-width: 450px;
  width: 96vw;
  box-shadow: 0 12px 44px 0 rgba(34,73,109,0.17);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  color: var(--color-primary);
  font-size: 1.45rem;
  border: none;
  border-radius: var(--radius-large);
  cursor: pointer;
  line-height: 1;
  transition: background 0.14s;
  padding: 4px 8px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: var(--color-accent);
  border-radius: var(--radius-large);
  padding: 10px 18px;
}
.cookie-category label {
  font-weight: 600;
  color: var(--color-primary);
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--color-secondary);
  border-radius: 5px;
}

/* Essential cookies always enabled */
.cookie-category.essential label {
  color: var(--color-muted);
  font-weight: 400;
}
.cookie-category.essential input[type="checkbox"] {
  accent-color: var(--color-border);
}


/* ===============================
   MICRO-INTERACTIONS
=============================== */
button, .cta-btn, .primary-cta, .cookie-btn, .cookie-menu-close, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.16s, color 0.14s, box-shadow 0.16s, transform 0.13s;
  will-change: background, color, box-shadow, transform;
}
.card, .testimonial-card, .service-list li {
  transition: box-shadow 0.23s, transform 0.19s;
}
.main-nav a, .mobile-nav a, .footer-links a {
  transition: color 0.18s, background 0.18s, transform 0.17s;
}

/* ===============================
   MISC (ACCESSIBILITY, FORMS)
=============================== */
:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1px;
}
[tabindex="0"]:focus {
  outline: 2px solid var(--color-primary);
}
::-webkit-input-placeholder { color: #A6B2C6; }
:-moz-placeholder { color: #A6B2C6; }
::-moz-placeholder { color: #A6B2C6; }
:-ms-input-placeholder { color: #A6B2C6; }

/* ===============================
   PRINT (minimal)
=============================== */
@media print {
  *, *:before, *:after { background: none !important; color: #222 !important; box-shadow: none !important; text-shadow: none !important; }
  a, a:visited { color: #222 !important; text-decoration: underline; }
  header, .mobile-menu, .cookie-banner, .cookie-modal, .footer-bottom, .social-icons { display: none !important; }
}
