/* ---- 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;
}
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; background: #fff; }
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
ul, ol {
  list-style: none;
}
a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
button { background: none; border: none; cursor: pointer; }

/* ---- BRAND/FONT IMPORTS ---- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

:root {
  --primary: #17497A;
  --secondary: #F0C654;
  --accent: #E6E6E6;
  --info: #53B7F6;
  --brand-green: #74D600;
  --brand-pink: #F457A6;
  --brand-orange: #FF985C;
  --brand-bg: #F9F8FD;
  --brand-purple: #8549BA;
  --text-dark: #152033;
  --text-light: #fff;
  --shadow: 0 6px 30px 0 rgba(23,73,122,0.08);
  --radius: 20px;
  --radius-sm: 12px;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: var(--text-dark);
  background: var(--brand-bg);
  line-height: 1.7;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.1;
  text-shadow: 0 2px 6px rgba(240,198,84,0.06);
}
h1 { font-size: 2.5rem; margin-bottom: 24px; letter-spacing: 0.5px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; font-weight: 700; }
h4 { font-size: 1rem; margin-bottom: 8px; }

p, ul li, ol li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 12px;
}
ul, ol { margin-left: 20px; }
ul li::before {
  content: '⏺';
  color: var(--brand-purple);
  font-size: 0.86em;
  margin-right: 0.6em;
  vertical-align: middle;
}

strong { font-weight: 700; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--brand-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: visible;
}
main > section {
  margin-bottom: 60px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---- NAVIGATION ---- */
header {
  width: 100%;
  background: var(--primary);
  box-shadow: 0 4px 18px rgba(23,73,122,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 72px;
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 14px 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  color: var(--text-light);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.25s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 4px 24px rgba(240,198,84,0.11);
}
.cta-btn {
  margin-left: 20px;
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.06rem;
  border-radius: 1000px;
  outline: none;
  border: none;
  padding: 11px 32px;
  transition: box-shadow 0.23s, background 0.25s, transform 0.18s;
  box-shadow: 0 4px 20px 0 rgba(240,198,84,0.17);
  cursor: pointer;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--brand-pink);
  color: var(--text-light);
  box-shadow: 0 6px 38px 0 rgba(244,87,166,0.17);
  transform: translateY(-2px) scale(1.04) rotate(-1.5deg);
}

/* ---- MOBILE NAV MENU ---- */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--secondary);
  background: none;
  border: none;
  margin-left: 14px;
  z-index: 1600;
  position: relative;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover {
  color: var(--brand-pink);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary);
  transform: translateX(-105vw);
  transition: transform 0.38s cubic-bezier(.7,.17,.27,.82);
  z-index: 2000;
  box-shadow: 10px 0 60px 3px rgba(23,73,122,0.16);
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  font-size: 2rem;
  color: var(--secondary);
  margin: 22px 0 0 18px;
  align-self: flex-start;
  z-index: 2020;
  transition: color 0.2s;
}
.mobile-menu-close:hover {
  color: var(--brand-pink);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  width: 100%;
  margin-top: 46px;
  padding: 20px 0 0 28px;
}
.mobile-nav a {
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  border-radius: var(--radius-sm);
  padding: 12px 18px 12px 12px;
  transition: color 0.25s, background 0.19s;
  position: relative;
  min-width: 220px;
  letter-spacing: 0.03em;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-pink);
  color: var(--text-light);
}

@media (max-width: 1000px) {
  .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 550px) {
  .mobile-menu {
    padding: 0;
  }
  .mobile-nav a {
    font-size: 1.1rem;
    min-width: 120px;
  }
}

/* ---- HERO & MAIN LAYOUT ---- */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}

/* ---- FLEX LAYOUTS ---- */
/* Features flex (index, about) */
.feature_grid, .highlight_grid, .facts_grid, .project_listings, .event_list_calendar, .team_member_grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 35px;
}
.facts_grid {
  gap: 32px;
  margin-top: 15px;
  flex-wrap: wrap;
}
.feature_card, .highlight_card, .fact_item, .event_card, .project_card, .team_member_card  {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 18px 0 rgba(23,73,122,0.10);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  min-width: 230px;
  flex: 1 1 270px;
  position: relative;
  transition: transform .18s, box-shadow .20s;
  border-bottom: 7px solid var(--brand-green);
  z-index: 1;
}
.feature_card:hover, .highlight_card:hover, .event_card:hover, .project_card:hover, .team_member_card:hover {
  transform: translateY(-6px) scale(1.035) rotate(-0.8deg);
  box-shadow: 0 10px 38px 3px rgba(244,87,166,0.15), 0 4px 26px 0 rgba(116,214,0,0.11);
  border-bottom-color: var(--brand-pink);
}
.highlight_card {
  border-bottom-color: var(--secondary);
}
.event_card {
  border-bottom-color: var(--brand-purple);
}
.project_card {
  border-bottom-color: var(--brand-orange);
}
.team_member_card {
  border-bottom-color: var(--brand-purple);
}
.team_member_card {
  align-items: flex-start;
  justify-content: center;
}
.expertise_tags {
  display: flex;
  gap: 10px;
}
.expertise_tags span {
  font-size: 0.98em;
  background: var(--brand-green);
  color: var(--text-dark);
  padding: 5px 11px;
  border-radius: 34px;
  font-family: 'Montserrat';
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-right: 6px;
  margin-bottom: 3px;
}
.fact_item {
  flex: 1 1 140px;
  text-align: center;
  padding: 20px 6px;
  background: var(--brand-green);
  color: var(--text-dark);
  border-radius: 16px;
  font-family: 'Montserrat';
  font-weight: bold;
  font-size: 1.22rem;
  box-shadow: 0 4px 20px 1px rgba(116,214,0,0.10);
  margin-bottom: 20px;
  min-width: 110px;
}
.fact_item strong {
  font-size: 1.7em;
  display: block;
  color: var(--brand-purple);
  margin-bottom: 4px;
}

.event_list_calendar {
  margin-bottom: 20px;
}
.event_card span {
  font-size: 1.05em;
  font-weight: 700;
  margin-top: 4px;
  color: var(--brand-orange);
}
.event_card {
  border-bottom-color: var(--brand-orange);
}

/* Project status labels */
.status {
  font-size: 0.96em;
  border-radius: 16px;
  font-weight: 700;
  padding: 4px 13px;
  margin-right: 7px;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
  background: var(--brand-green);
  color: var(--primary);
  display: inline-block;
}
.status.completed {
  background: var(--brand-pink);
  color: #fff;
}
.status.active {
  background: var(--brand-green);
  color: var(--primary);
}

/* ---- Content & Info Blocks ---- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 17px;
  align-items: flex-start;
}
.contact_details {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact_details > div {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.08rem;
}
.contact_details img {
  width: 30px;
  height: 30px;
}

/* ---- FOOTER ---- */
footer {
  width: 100%;
  background: var(--primary);
  color: var(--text-light);
  padding: 38px 0 16px 0;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  margin-top: 60px;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 46px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-content a img {
  width: 130px;
  margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-right: 35px;
}
.footer-nav a {
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
  font-weight: 600;
  transition: color 0.22s;
  margin-bottom: 0px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--brand-pink);
}
.footer-contact p, .footer-contact a {
  color: var(--accent);
  font-size: 1rem;
  text-decoration: none;
  margin-bottom: 4px;
}
.footer-contact a:hover {
  text-decoration: underline;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-social a img {
  width: 36px;
  height: 36px;
  transition: transform 0.20s;
}
.footer-social a:hover img {
  transform: scale(1.11) rotate(7deg);
}

/* ---- BUTTONS, LINKS, INTERACTIONS ---- */
a, button, .cta-btn {
  transition: color 0.22s, background 0.22s, box-shadow 0.22s, transform 0.15s;
}
a:focus, button:focus, input:focus {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

ul li {
  margin-bottom: 7px;
}

/* Playful card microanimation on hover */
@keyframes card-pop {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.04) rotate(-0.8deg); }
}
/* Bouncing cta button */
.cta-btn {
  animation: cta-bounce 4s infinite cubic-bezier(0.5,1.8,0.4,0.9);
}
@keyframes cta-bounce {
  0%, 100% { transform: translateY(0); }
  16% { transform: translateY(-3px) scale(1.037); }
  33% { transform: translateY(0); }
  42% { transform: translateY(-8px) scale(1.05); }
  50% { transform: translateY(0); }
  60% { transform: translateY(-3px) scale(1.02); }
  68% { transform: translateY(0); }
}

/* ----- RESPONSIVENESS ---- */
@media (max-width: 900px) {
  .feature_grid, .highlight_grid, .facts_grid, .project_listings, .event_list_calendar, .team_member_grid, .footer-content, .contact_details {
    flex-direction: column;
    gap: 24px;
  }
  .footer-content {
    align-items: flex-start;
  }
  section {
    padding: 35px 0;
  }
}
@media (max-width: 650px) {
  html { font-size: 15px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.34rem; }
  h3 { font-size: 1.04rem; }
  .container { padding-left: 8px; padding-right: 8px; }
  .section, section { padding: 23px 1px; }
  .cta-btn { font-size: 1em; padding: 10px 16px; }
  .feature_card, .highlight_card, .project_card, .event_card, .team_member_card {
    padding: 14px 8px;
    font-size: 0.99rem;
  }
  .fact_item { font-size: 1rem; padding: 12px 1px; }
}
@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* --------- MANDATORY FLEX ALIGNMENTS ----------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fffbe4;
  border-radius: 24px;
  box-shadow: 0 2px 14px 0 rgba(23,73,122,0.08);
  color: #232332;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ---- TESTIMONIALS (Contrast) ---- */
.testimonial-card, .testimonial-card * {
  color: #191e24;
  background: #fffbe4;
}
.testimonial-card cite {
  font-style: normal;
  font-weight: bold;
  letter-spacing: 0.01em;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* ---- COOKIE CONSENT BANNER ---- */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--primary);
  color: var(--text-light);
  font-size: 1.03em;
  box-shadow: 0 -3px 22px 0 rgba(23,73,122,0.16);
  padding: 20px 18px 20px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  z-index: 2300;
  animation: consent-in 0.44s cubic-bezier(.85,.07,.31,.95);
  flex-wrap: wrap;
}
@keyframes consent-in {
  0% { transform: translateY(120%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  color: var(--secondary);
  margin-bottom: 0;
  font-size: 1em;
  font-weight: 400;
}
.cookie-consent-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 18px;
  padding: 9px 22px;
  margin-left: 8px;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  cursor: pointer;
  margin-bottom: 0;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.18s;
  font-size: 1em;
}
.cookie-consent-btn:hover, .cookie-consent-btn:focus {
  background: var(--brand-pink);
  color: var(--text-light);
  box-shadow: 0 2px 14px 0 rgba(244,87,166,0.20);
  transform: translateY(-1px) scale(1.03);
}
.cookie-consent-btn.reject {
  background: var(--brand-orange);
  color: var(--text-dark);
}
.cookie-consent-btn.reject:hover, .cookie-consent-btn.reject:focus {
  background: var(--brand-green);
  color: var(--primary);
}
.cookie-consent-btn.settings {
  background: var(--brand-purple);
  color: #fff;
}
.cookie-consent-btn.settings:hover, .cookie-consent-btn.settings:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* Cookie Consent Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(23,73,122,0.89);
  z-index: 2320;
  align-items: center;
  justify-content: center;
  animation: modal-in 0.35s cubic-bezier(.3,.95,.57,1.1);
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes modal-in {
  0% { opacity: 0; transform: scale(0.97) translateY(30px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal {
  background: #fff;
  color: #1c2650;
  border-radius: 28px;
  min-width: 320px;
  max-width: 99vw;
  width: 420px;
  padding: 40px 28px 28px 28px;
  box-shadow: 0 7px 34px 0 rgba(23,73,122,0.18);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 26px;
  font-size: 1em;
  position: relative;
}
.cookie-modal h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.34em;
  color: var(--primary);
}
.cookie-modal .close-modal {
  position: absolute;
  top: 11px;
  right: 21px;
  background: none;
  color: var(--brand-pink);
  font-size: 1.6em;
  border: none;
  cursor: pointer;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  font-size: 1.09em;
}
.cookie-category input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--secondary);
}
.cookie-category label {
  font-weight: 600;
}
.cookie-category.essential label {
  color: var(--brand-green);
}
.cookie-category.essential input[type="checkbox"] {
  accent-color: var(--brand-green);
  cursor: not-allowed;
}
.cookie-category.essential input[type="checkbox"]:disabled {
  opacity: 0.6;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 19px;
  justify-content: flex-end;
  margin-top: 15px;
}

@media (max-width: 500px) {
  .cookie-modal {
    min-width: 98vw;
    max-width: 100vw;
    padding: 15vw 2vw 6vw 2vw;
    font-size: 0.98em;
  }
  .cookie-modal .close-modal {
    right: 12px;
    top: 7px;
    font-size: 1.16em;
  }
}

/* ---- MISC STYLES (Playful elements) ---- */
h1, h2 {
  text-shadow: 2px 2px 0px var(--secondary), 0 4px 22px var(--brand-bg), 0 1px 2px #fff;
  position: relative;
}
h1::after, h2::after {
  content: '';
  display: block;
  width: 44px;
  height: 7px;
  border-radius: 100px;
  background: var(--brand-green);
  margin-top: 7px;
}
section h2::after {
  background: var(--brand-pink);
  width: 30px;
  height: 6px;
}

/* ---- Forms, Inputs, Miscellaneous ---- */
input, textarea, select {
  padding: 11px 10px;
  border-radius: 8px;
  border: 2px solid var(--accent);
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  margin-bottom: 12px;
  transition: border 0.2s;
}
input:focus, textarea:focus, select:focus {
  border: 2px solid var(--secondary);
}

::-webkit-input-placeholder { color: #b5bccc; opacity: 1; }
::-moz-placeholder { color: #b5bccc; opacity: 1; }
:-ms-input-placeholder { color: #b5bccc; opacity: 1; }
::placeholder { color: #b5bccc; opacity: 1; }

/* ---- Animations ---- */
@keyframes playful-in {
  0% { opacity: 0; transform: scale(0.93) rotate(-2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
.feature_card, .highlight_card, .event_card, .team_member_card, .project_card {
  animation: playful-in .6s cubic-bezier(.2,1.5,.24,.99) backwards;
}

/* ---------- UTILITIES ---------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.bg-accent { background: var(--accent) !important; }

/* ---- Print Styles ---- */
@media print { header,footer,.cookie-consent-banner,.mobile-menu { display: none !important; } }
