/* === CSS RESET & BASE === */
html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #203864;
  background: #fcfcff;
  min-height: 100vh;
  line-height: 1.7;
  font-size: 16px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s cubic-bezier(.6,.23,.22,1);
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}
button, .cta, input[type=submit] {
  cursor: pointer;
}

/* ========== BRAND COLORS AS CSS VARIABLES ========== */
:root {
  --primary: #203864;
  --secondary: #54B3A5;
  --accent: #F7D774;
  --white: #fff;
  --light: #f5fafe;
  --neutral: #e2e8f0;
  --danger: #e34c4c;
  --success: #6ac54c;
  --shadow: rgba(32,56,100,.1);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 6px;
}

/* ==== TYPOGRAPHY - playful & dynamic ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  color: var(--secondary);
  margin-bottom: 12px;
}
.section h2, .section h1 {
  line-height: 1.12;
  position: relative;
  background: transparent;
}
strong, b {
  font-weight: 700;
  color: var(--secondary);
}
p {
  font-size: 1.08rem;
  color: #2c436d;
  margin-bottom: 14px;
}
.text-section ul, ul {
  margin-left: 1.6em;
}
.text-section ul li, ul li {
  margin-bottom: 8px;
  color: #365071;
  font-size: 1rem;
}
label {
  font-weight: 600;
  color: var(--primary);
}

/* ========== LAYOUT ========== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--light);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 16px var(--shadow);
  transition: box-shadow .3s cubic-bezier(.6,.23,.22,1);
}

/* For distinctive separation on white backgrounds */
main > section:not(:first-child) {
  margin-top: 24px;
}

/* ==== FLEXBOX CARD CONTAINERS ==== */
.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 14px var(--shadow);
  margin-bottom: 20px;
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.24s cubic-bezier(.46,.03,.52,.96), transform 0.14s cubic-bezier(.55,.06,0,.96);
}
.card:hover {
  box-shadow: 0 6px 24px rgba(32,56,100,.16);
  transform: translateY(-4px) scale(1.03) rotate(-0.5deg);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: #fffbe4;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 2px 14px var(--shadow);
  margin-bottom: 20px;
  color: #163052;
  position: relative;
  min-width: 240px;
  transition: box-shadow 0.2s;
}
.testimonial-card p {
  font-size: 1.06rem;
  color: #2c436d;
}
.testimonial-card span {
  font-weight: 600;
  color: var(--primary);
  font-size: .98em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ======= HEADER and NAV ======= */
header {
  background: var(--primary);
  color: var(--accent);
  position: relative;
  width: 100%;
  box-shadow: 0 2px 20px rgba(32,56,100,0.07);
  z-index: 99;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  gap: 20px;
}
.logo img {
  display: block;
  height: 44px;
}
.main-nav {
  display: flex;
  gap: 13px;
  align-items: center;
}
.main-nav a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.main-nav a.active,
.main-nav a:hover,
.main-nav a:focus {
  background: var(--accent);
  color: var(--primary);
  outline: none;
}
.header .cta.primary {
  margin-left: 22px;
}

/* ==== CTA BUTTONS ==== */
.cta, .card a.cta, .content-wrapper a.cta {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--radius-md);
  padding: 12px 32px;
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(255,230,0,.13);
  margin-top: 8px;
  margin-bottom: 12px;
  border: none;
  transition: background .21s cubic-bezier(.6,.23,.22,1), transform .12s;
  letter-spacing: 0.03em;
}
.cta.primary {
  background: var(--secondary);
  color: #fff;
}
.cta:hover, .cta:focus {
  background: var(--primary);
  color: var(--accent);
  transform: scale(1.07) rotate(-1deg);
  box-shadow: 0 4px 20px var(--shadow);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--accent);
  color: var(--primary);
}

/* ======= MOBILE MENU ======= */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--primary);
  font-size: 2rem;
  border-radius: var(--radius-lg);
  border: none;
  width: 48px;
  height: 48px;
  margin-left: 10px;
  align-items: center;
  justify-content: center;
  z-index: 1201;
  transition: background .2s, color .2s, box-shadow .2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 2px 10px var(--shadow);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(32,56,100,0.97);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.65,.13,.32,1.06);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 28px;
  background: var(--accent);
  color: var(--primary);
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1201;
  transition: background .2s, color .2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--primary);
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 23px;
  margin-top: 100px;
  align-items: center;
  width: 100vw;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
  background: none;
  padding: 8px 20px;
  border-radius: var(--radius-md);
  transition: background .2s, color .2s;
  display: block;
}
.mobile-nav a.active,
.mobile-nav a:focus,
.mobile-nav a:hover{
  background: var(--accent);
  color: var(--primary);
}

/* ==== RESPONSIVE NAVIGATION ==== */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ========== CARDS, LISTS, ICON CARDS ========== */
.content-wrapper ul,
.card-container ul,
.card-grid ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
}
.content-wrapper ul li, .card-container ul li,
.card-grid ul li {
  flex: 1 1 240px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 14px var(--shadow);
  padding: 24px 20px 20px 20px;
  margin-bottom: 20px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  position: relative;
  transition: box-shadow .2s, transform .13s;
  font-size: 1rem;
}
.content-wrapper ul li img {
  height: 44px;
  width: 44px;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 10px var(--shadow));
  animation: icon-pop .65s cubic-bezier(.54,.42,.21,.98) both;
}
.content-wrapper ul li strong {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  margin-bottom: 6px;
  color: var(--secondary);
}
.content-wrapper ul li:hover {
  box-shadow: 0 6px 20px rgba(32,56,100,0.14);
  transform: translateY(-2px) scale(1.04) rotate(-0.5deg);
}

@keyframes icon-pop {
  0% { opacity: 0; transform: scale(.7) rotate(-20deg); }
  70% { opacity: 1; transform: scale(1.13) rotate(3deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* ======= FORMS & INPUTS ======= */
input, textarea, select {
  font-size: 1rem;
  padding: 10px 15px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--neutral);
  background: #fff;
  color: var(--primary);
  margin-top: 6px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: border-color .2s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
}
form label {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 2px;
  display: block;
}

/* ===== PLAYFUL MICRO-INTERACTIONS ON BUTTONS ===== */
button, .cta {
  transition: background .18s, box-shadow .18s, transform .13s;
}
button:active, .cta:active {
  transform: scale(0.97) rotate(-0.5deg);
}

/* ======= FOOTER ======= */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 38px 0 22px 0;
}
footer .container {
  padding-left: 18px; padding-right: 18px;
  flex-direction: row;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-end;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
}
.footer-nav a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-md);
  padding: 6px 14px;
  transition: background .16s, color .16s;
}
.footer-nav a.active,
.footer-nav a:focus,
.footer-nav a:hover {
  background: var(--accent);
  color: var(--primary);
}
.footer-contact {
  font-size: .95rem;
  opacity: .87;
  text-align: right;
  margin-left: 8px;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff9ea;
  border-top: 5px solid var(--accent);
  box-shadow: 0 -2px 16px rgba(32,56,100,0.17);
  padding: 23px 10px 23px 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
  z-index: 1300;
  animation: slideUpBanner .66s cubic-bezier(.48,.4,.17,1.02) both;
}
@keyframes slideUpBanner {
  0% { transform: translateY(110%); opacity: 0; }
  85% { transform: translateY(-10px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner__buttons {
  display: flex;
  gap: 17px;
}
.cookie-btn {
  border: none;
  outline: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.01em;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 11px 26px;
  transition: background .18s, color .14s, box-shadow .16s, transform .08s;
  margin-right: 0;
  margin-bottom: 0;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn.reject {
  background: var(--danger);
  color: #fff;
}
.cookie-btn.settings {
  background: var(--accent);
  color: var(--primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 2px 12px var(--shadow);
}

/* === COOKIE MODAL === */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  z-index: 1350;
  background: rgba(32,56,100, .67);
  justify-content: center;
  align-items: center;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fffbed;
  border-radius: var(--radius-lg);
  max-width: 340px;
  width: 90vw;
  padding: 33px 24px 25px 24px;
  box-shadow: 0 8px 36px #20386410;
  position: relative;
  display: flex;
  flex-direction: column;
  animation: scaleFade .38s cubic-bezier(.38,.7,.33,1.3);
}
@keyframes scaleFade {
  0% { opacity: 0; transform: scale(.85); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 12px;
  color: var(--primary);
}
.cookie-modal label {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  gap: 11px;
}
.cookie-modal label input[type='checkbox'] {
  width: 20px;
  height: 20px;
  accent-color: var(--secondary);
}
.cookie-modal .modal-btns {
  margin-top: 20px;
  display: flex;
  gap: 14px;
}
.cookie-modal .modal-close {
  background: var(--danger);
  color: #fff;
  border-radius: 50%;
  width: 36px; height: 36px;
  position: absolute; right: 14px; top: 16px;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .14s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: var(--primary);
}

/* === UTILITY & SPACING CLASSES (for playful spacing) === */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 32px; }
.py-2 { padding-top: 16px; padding-bottom: 16px; }
.px-2 { padding-left: 16px; padding-right: 16px; }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-md { border-radius: var(--radius-md); }
.shadow {
  box-shadow: 0 3px 16px var(--shadow);
}

/* === ANIMATIONS (subtle playful) === */
@keyframes bounceIn {
  0%   { transform: scale(.5) rotate(-6deg); opacity: 0; }
  80%  { transform: scale(1.09) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); }
}
section, .section, .card, .testimonial-card {
  animation: bounceIn .8s cubic-bezier(.58,.3,.27,1.05) backwards;
}

/* ======= RESPONSIVE DESIGN (MOBILE FIRST) ======= */
@media (max-width: 768px) {
  .container { padding-left: 8px; padding-right: 8px; }
  .section {
    padding: 20px 5px;
    margin-bottom: 32px;
  }
  .content-wrapper, .text-section, .content-grid,
  .card-container, .card-grid {
    flex-direction: column;
    gap: 14px;
  }
  .content-wrapper ul, .card-container ul, .card-grid ul {
    flex-direction: column;
    gap: 12px;
  }
  .content-wrapper ul li, .card {
    min-width: unset;
    width: 100%;
    padding: 18px 12px 16px 12px;
  }
  header .container, footer .container {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 6px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 10px;
  }
  .footer-contact {
    text-align: left;
    margin-left: 0;
  }
  .text-image-section { flex-direction: column; gap: 14px; }
  .testimonial-card { min-width: 0; }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 19px 7px;
  }
}

/* ====== Z-INDEX GUARD ====== */
header, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
  z-index: 1000;
}
/* Make sure modal is always highest */
.cookie-modal-overlay {
  z-index: 1300;
}

/* ====== MISC: Inputs & Filter ====== */
select, input[type=search] {
  min-width: 165px;
  background: #fff;
  margin-right: 10px;
  margin-top: 0;
}
input[type=search], input[type=email] {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 10px 15px;
  border: 1.5px solid var(--neutral);
  margin-right: 12px;
}
input[type=search]:focus, input[type=email]:focus {
  border-color: var(--secondary);
}

/* ====== NEWSLETTER FORM ====== */
form {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
@media (max-width: 560px) {
  form { flex-direction: column; gap: 6px; }
}

/* ======= PLAYFUL VISUAL EFFECTS (Section accents) ======= */
.section, .card, .testimonial-card {
  box-shadow: 0 2px 14px var(--shadow);
  border: 3px solid transparent;
  transition: border-color .24s cubic-bezier(.54,.37,.64,.92);
}
.section:hover, .card:hover, .testimonial-card:hover {
  border-color: var(--accent);
}

/* ====== ICONS List (address/contact) ====== */
.text-section ul li img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  height: 24px;
  width: 24px;
}

/* ====== HIGHLIGHT DEFAULT FOCUS (accessibility) ====== */
a:focus, button:focus, input:focus, select:focus {
  outline: 2.5px dashed var(--accent);
  outline-offset: 3px;
}

/* ======== PRINT OPTIMIZE ======== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {display: none !important;}
  main, section, .section, .content-wrapper, .container { box-shadow: none !important; background: #fff !important;}
}

/* ======== SITENAME BRAND - Optional playful home accent ======== */
.logo {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.09em;
  color: var(--accent);
  text-shadow: 0 2px 10px #f7d77444;
  font-size: 1.4em;
  display: flex;
  align-items: center;
  gap: 7px;
}