/* =================== 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, 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;
  background: #FAFAFD;
  color: #222;
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
}
*, *::before, *::after {
  box-sizing: inherit;
}
ul, ol {
  list-style: none;
}
a {
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
}
button {
  cursor: pointer;
  background: none;
  outline: none;
}

/* =================== ROOT VARIABLES & BRAND COLORS =================== */
:root {
  --primary-color: #275C6B;
  --primary-dark: #18404b;
  --secondary-color: #476C2B;
  --accent-color: #F9E9B2;
  --accent-bright: #FFF7D6;
  --danger-color: #FD7071;
  --success-color: #4DD599;
  --info-color: #46AEEF;
  --brand-blue: #275C6B;
  --brand-green: #476C2B;
  --brand-yellow: #F9E9B2;
  --text-main: #222;
  --text-light: #fff;
  --shadow: 0 4px 28px 0 rgba(39, 92, 107, 0.10);
  --shadow-card: 0 2px 10px 0 rgba(39, 92, 107, 0.09);
  --radius-main: 22px;
  --radius-btn: 16px;
  --header-height: 76px;
  --transition-fast: 0.2s cubic-bezier(0.7,0.2,0.17,1);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* =================== BASE TYPOGRAPHY =================== */
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 18px;
  letter-spacing: -1px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.65rem;
  color: var(--secondary-color);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--primary-color);
  margin-bottom: 12px;
}
h4, .h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 8px;
}
p, ul, ol, li {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text-main);
  margin-bottom: 10px;
}
strong {
  font-weight: 600;
  color: var(--primary-color);
}

/* =================== FUN/PLAYFUL FONTS =================== */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.text-section h1, .text-section h2, .text-section h3, .text-section h4 {
  font-family: var(--font-display);
  text-shadow: 1px 2px 0 var(--accent-color), 0 0 12px rgba(255,247,214,0.19);
}

/* =================== CONTAINER & SECTIONS =================== */
.container {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow);
}

/* =================== FLEXBOX LAYOUT PATTERNS =================== */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-wrap: wrap;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--accent-bright);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  padding: 24px;
  flex: 1 1 215px;
  min-width: 215px;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(39, 92, 107, 0.14);
  transform: translateY(-5px) scale(1.025) rotate(-1deg);
}
.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: #fff;
  border-radius: var(--radius-main);
  box-shadow: 0 3px 16px 0 rgba(39, 92, 107, 0.13);
  margin-bottom: 20px;
  position: relative;
  min-width: 220px;
  flex: 1 1 260px;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.testimonial-card p {
  color: #373737;
  font-size: 1.08rem;
}
.testimonial-card strong {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--secondary-color);
  margin-left: auto;
}
.testimonial-card:hover {
  box-shadow: 0 8px 38px 0 rgba(39, 92, 107, 0.16);
  transform: scale(1.03) rotate(2deg);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =================== HEADER & NAVIGATION =================== */
header {
  width: 100%;
  background: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 4px 14px 0 rgba(39,92,107,0.13);
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header-height);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
header nav a {
  color: var(--accent-color);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
  padding: 6px 8px;
  border-radius: 10px;
  position: relative;
}
header nav a:hover, header nav a:focus {
  color: var(--primary-color);
  background: var(--accent-color);
  text-shadow: 0 2px 8px #fff5b2;
}
header img {
  height: 50px;
}
.cta-btn {
  background: var(--secondary-color);
  color: var(--accent-color);
  font-family: var(--font-display);
  font-size: 1.11rem;
  font-weight: 700;
  border-radius: var(--radius-btn);
  padding: 11px 34px;
  box-shadow: 0 3px 18px 0 rgba(71, 108, 43, 0.17);
  margin-left: 20px;
  transition: background var(--transition-fast), color var(--transition-fast), transform .18s, box-shadow .2s;
  letter-spacing: 0.02em;
  border: 3px solid transparent;
  position: relative;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--accent-color);
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-3px) scale(1.04) rotate(-2deg);
  box-shadow: 0 6px 20px 0 rgba(71, 108, 43, 0.17);
}
/* =================== MOBILE MENU =================== */
.mobile-menu-toggle {
  position: absolute;
  right: 18px;
  top: 21px;
  z-index: 101;
  display: none;
  font-size: 2.1rem;
  color: var(--accent-color);
  background: var(--primary-color);
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background var(--transition-fast);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--accent-color);
  color: var(--primary-color);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(39,92,107,0.97);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(0.7,0.13,0.18,1);
  display: flex;
  flex-direction: column;
  padding-top: 48px;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  position: absolute;
  right: 28px;
  top: 22px;
  font-size: 2.3rem;
  background: none;
  color: var(--accent-color);
  border: none;
  z-index: 1210;
  transition: color .2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--danger-color);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin: 36px 0 0 32px;
}
.mobile-nav a {
  font-size: 1.22rem;
  font-family: var(--font-display);
  color: var(--accent-color);
  padding: 14px 0;
  border-radius: 5px;
  transition: background .16s, color .16s;
  width: 100%;
  min-width: 120px;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent-color);
  color: var(--primary-color);
}
@media (max-width: 950px) {
  header .container nav, header .container .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 951px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =================== FOOTER =================== */
footer {
  background: var(--secondary-color);
  color: var(--accent-color);
  padding: 42px 0 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  padding-top: 0;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 36px;
  padding-bottom: 23px;
  padding-top: 10px;
}
footer img {
  height: 46px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
footer nav a {
  color: var(--accent-color);
  font-family: var(--font-display);
  font-size: 1.03rem;
  padding: 2px 0;
  transition: color .17s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--primary-color);
}
footer div p {
  line-height: 1.5;
  font-size: 0.97rem;
}

/* =================== LISTS & ICONS =================== */
ul li, ol li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  font-size: 1.03rem;
  min-height: 38px;
  display: flex;
  align-items: center;
}
ul li img, ol li img {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  margin-right: 13px;
  filter: drop-shadow(0px 2px 2px #faf5ca60);
}
ul li strong {
  font-weight: bold;
  font-family: var(--font-display);
  color: var(--brand-blue);
}

/* =================== BLOG SEARCH/CATEGORIES =================== */
.blog-search {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 17px;
}
.blog-search input[type="text"] {
  border-radius: 10px;
  border: 1.5px solid var(--primary-color);
  padding: 9px 19px;
  font-size: 1rem;
  margin-left: 7px;
  background: #fff;
  box-shadow: 0 1px 4px 0 #f9e9b220;
  transition: border-color .18s;
}
.blog-search input[type="text"]:focus {
  border-color: var(--secondary-color);
}
.blog-categories h3 {
  color: var(--secondary-color);
  font-size: 1.1rem;
}
.blog-categories ul {
  gap: 13px;
  display: flex;
  flex-direction: row;
}
.blog-categories li {
  background: var(--accent-color);
  color: var(--primary-color);
  padding: 7px 16px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.97rem;
  margin-right: 10px;
}

/* =================== EVENT CALENDAR/HIGHIGHTS =================== */
.event-calendar, .event-highlights {
  background: var(--accent-color);
  border-radius: 17px;
  padding: 13px 17px;
  margin: 20px 10px;
  box-shadow: 0 2px 10px 0 #f9e9b220;
}
.event-calendar h3, .event-highlights h3 {
  margin-bottom: 8px;
  color: var(--secondary-color);
  font-family: var(--font-display);
  font-weight: 700;
}
.event-calendar ul, .event-highlights ul {
  gap: 10px;
  display: flex;
  flex-direction: column;
}
.event-calendar li, .event-highlights li {
  font-size: 1.03rem;
  color: var(--primary-color);
}

/* =================== SECTION: CARD/GRID LAYOUTS =================== */
@media (min-width: 780px) {
  .content-wrapper {
    flex-direction: row;
    gap: 32px;
    justify-content: flex-start;
  }
  .testimonial-card {
    flex-direction: column;
    max-width: 340px;
  }
}
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .container, .section {
    padding-left: 12px;
    padding-right: 12px;
  }
  .section {
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .event-calendar, .event-highlights {
    margin: 13px 3px;
  }
  footer .content-wrapper {
    gap: 14px;
  }
}

/* =================== SPACING CONSTRAINTS =================== */
.card, .testimonial-card, .section, .event-calendar, .event-highlights {
  margin-bottom: 20px;
}
.card-container, .content-grid, .feature-item, .content-wrapper {
  gap: 20px;
  flex-wrap: wrap;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* =================== ANIMATION & MICRO-INTERACTIONS =================== */
.cta-btn, .card, .testimonial-card, .mobile-menu, .mobile-menu-toggle, .mobile-nav a, .cookie-banner, .cookie-modal {
  transition: all var(--transition-fast);
}
.card, .testimonial-card {
  will-change: transform, box-shadow;
}
.cta-btn:active, .mobile-nav a:active {
  transform: scale(0.96);
}
.card .icon, .feature-item img {
  animation: floatIcon 3.2s infinite ease-in-out;
}
@keyframes floatIcon {
  0% { transform: translateY(0); }
  60% { transform: translateY(-10px) rotate(-1deg); }
  100% { transform: translateY(0); }
}

/* =================== PLAYFUL ACCENTS (BUBBLE) BG =================== */
.section {
  position: relative;
  overflow: hidden;
}
.section::after {
  content: '';
  position: absolute;
  right: -35px;
  top: 40px;
  width: 100px;
  height: 100px;
  z-index: 1;
  background: var(--accent-color);
  opacity: 0.17;
  border-radius: 50%;
  animation: accentBubble 7s infinite alternate ease-in-out;
  pointer-events: none;
}
@keyframes accentBubble {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.18) translateY(-14px); }
}

/* =================== COOKIE CONSENT BANNER & MODAL =================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--accent-color);
  color: var(--primary-color);
  padding: 22px 32px 20px 24px;
  box-shadow: 0 -3px 24px 0 rgba(39, 92, 107, 0.08);
  z-index: 3400;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 1.03rem;
  opacity: 1;
  transition: opacity .28s, transform .32s;
  border-radius: 20px 20px 0 0;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
.cookie-banner .cookie-btn {
  background: var(--primary-color);
  color: var(--accent-color);
  font-size: 1rem;
  padding: 9px 24px;
  margin-left: 11px;
  border-radius: var(--radius-btn);
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 7px 0 rgba(39, 92, 107, 0.17);
  transition: background .19s, color .17s, transform .16s;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--secondary-color);
  color: var(--accent-color);
  transform: scale(1.04);
}
.cookie-banner .cookie-settings-btn {
  background: var(--info-color);
  color: #fff;
}
.cookie-banner .cookie-reject-btn {
  background: var(--danger-color);
  color: #fff;
}

/* Modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(39,92,107,0.81);
  z-index: 3410;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal .modal-box {
  background: #fff;
  color: var(--primary-color);
  border-radius: 23px;
  padding: 38px 33px 31px 33px;
  box-shadow: var(--shadow);
  min-width: 320px;
  max-width: 98vw;
  min-height: 200px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 19px;
  overflow: auto;
  animation: modalPopIn .32s cubic-bezier(.8,-0.26,0.3,1.4);
}
@keyframes modalPopIn {
  0% { transform: scale(0.87) translateY(18px); opacity: 0.4; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal .close-modal {
  position: absolute;
  top: 18px; right: 20px;
  background: none;
  font-size: 2rem;
  color: var(--secondary-color);
  border: none;
  cursor: pointer;
  z-index: 3500;
  transition: color .17s;
}
.cookie-modal .close-modal:hover {
  color: var(--danger-color);
}
.cookie-modal h3 {
  font-family: var(--font-display);
  font-size: 1.17rem;
  margin-bottom: 13px;
  font-weight: 700;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-size: 1.07rem;
  color: var(--primary-color);
  font-family: var(--font-display);
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--secondary-color);
  width: 20px;
  height: 20px;
  margin-right: 5px;
  vertical-align: middle;
}
.cookie-category .always {
  font-size: 1rem;
  color: var(--success-color);
  background: #DBFFE5;
  padding: 1px 9px;
  border-radius: 8px;
}
.cookie-modal .modal-actions {
  margin-top: 13px;
  display: flex;
  gap: 10px;
}
.cookie-modal .cookie-btn {
  background: var(--primary-color);
  color: var(--accent-color);
  font-size: 1rem;
  border-radius: var(--radius-btn);
  padding: 8px 18px;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  transition: background .18s, color .15s;
}
.cookie-modal .cookie-btn.cookie-reject-btn {
  background: var(--danger-color);
  color: #fff;
}
.cookie-modal .cookie-btn.cookie-accept-btn {
  background: var(--secondary-color);
  color: var(--accent-color);
}
.cookie-modal .cookie-btn:hover, .cookie-modal .cookie-btn:focus {
  filter: brightness(1.18);
}

/* ============ RESPONSIVE - MOBILE FIRST ============ */
@media (max-width: 540px) {
  h1, .h1 { font-size: 1.48rem; }
  h2, .h2 { font-size: 1.13rem; }
  .section { padding: 16px 4px; }
  .cookie-banner { flex-direction: column; gap: 10px; padding: 17px 6px 13px 6px; }
  .cookie-banner .cookie-btn { width: 100%; margin: 5px 0 0 0; }
  .container { padding: 0 4px; }
  .testimonial-card { min-width: 140px; font-size: .9rem; }
  .card { min-width: 120px; font-size: .97rem; }
  .card, .testimonial-card { padding: 15px; }
  .mobile-menu .mobile-nav { margin: 30px 0 0 14px; }
}

/* ============ ACCESSIBILITY & CONTRAST ============ */
.testimonial-card, .testimonial-card p, .testimonial-card strong {
  color: #222 !important;
}
.testimonial-card {
  background: #fff;
}
footer, footer nav a {
  color: var(--accent-color);
}
footer nav a:hover {
  color: var(--primary-color);
}

/* ============ OVERRIDES FOR MINIMUM TOUCH/GAP ============ */
a, button, .cta-btn, .mobile-nav a, nav a {
  min-height: 44px;
  min-width: 44px;
}

/* ============ SCROLLBAR STYLES - Modern Browsers ============ */
body::-webkit-scrollbar { width: 9px; background: var(--accent-bright); }
body::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 22px; }

/* ============ CUSTOM DECORATION FOR PLAYFUL DYNAMIC ============ */
.card::before, .testimonial-card::before {
  content: '';
  position: absolute;
  left: -18px;
  top: -16px;
  width: 42px;
  height: 42px;
  background: var(--accent-color);
  opacity: 0.2;
  border-radius: 20px 16px 26px 20px/18px 18px 22px 16px;
  z-index: 0;
  pointer-events: none;
  filter: blur(2px);
  animation: playfulBubble 4.8s ease-in-out infinite alternate;
}
@keyframes playfulBubble {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.13) rotate(19deg); }
}
.card, .testimonial-card {
  z-index: 2; /* above ::before bubble */
}

/* ============ MISC UTILITIES ============ */
.text-section {
  max-width: 650px;
}
.text-section a.cta-btn {
  margin: 23px 0 0 0;
}

/* ============ HIDE ELEMENTS HELPERS ============ */
.hide, [hidden] { display: none !important; }

