/* 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,
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #181A32;
  color: #F1F2FC;
  font-family: 'Inter', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: #FFD66B;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: #fffad6;
}
ul, ol {
  margin-left: 24px;
}

/* BRAND FONTS ------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: #FFD66B;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.subheadline {
  color: #A8B0D3;
  font-size: 1.15rem;
  margin-bottom: 20px;
  font-weight: 400;
  letter-spacing: 0.01em;
}
p, li, span, label {
  font-family: 'Inter', Arial, sans-serif;
  color: #F1F2FC;
  font-size: 1rem;
  margin-bottom: 10px;
}
strong {
  color: #FFD66B;
  font-weight: 600;
}

/* LAYOUT & CONTAINERS ----------------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.final-cta {
  margin-bottom: 0;
  padding-bottom: 60px;
}

/* FLEXBOX PATTERNS (MANDATORY) ------------ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #23264D;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(35,38,77,0.2);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 24px 20px 24px;
  flex: 1 1 300px;
  min-width: 290px;
  transition: box-shadow 0.2s cubic-bezier(.4,0,.2,1), transform 0.2s;
}
.card:hover {
  box-shadow: 0 4px 32px 0 #FFD66B22, 0 2px 8px 0 #23264D44;
  transform: translateY(-4px) scale(1.03);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.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: 20px;
  background: #fff;
  color: #23264D !important;
  padding: 20px 28px;
  border-radius: 19px;
  margin-bottom: 20px;
  box-shadow: 0 2px 24px 0 #A8B0D366;
  min-width: 260px;
  max-width: 100%;
  transition: box-shadow 0.18s cubic-bezier(.4,0,.2,1), transform 0.18s;
  border: 1.5px solid #FFD66B55;
}
.testimonial-card .author {
  margin-top: 6px;
  font-size: 1rem;
  color: #A8B0D3 !important;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.testimonial-card:hover {
  box-shadow: 0 2px 24px 0 #FFD66Baa, 0 2px 6px 0 #23264D22;
  transform: translateY(-2px) scale(1.01);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features, .feature-grid, .feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.features {
  justify-content: flex-start;
}
.feature-grid, .feature-list {
  width: 100%;
  justify-content: space-between;
}
.feature {
  background: #23264D;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 #A8B0D333;
  padding: 24px 18px 18px 18px;
  min-width: 220px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border: 1.5px solid #FFD66B44;
  transition: box-shadow 0.22s cubic-bezier(.4,0,.2,1), transform 0.19s;
}
.feature img {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
}
.feature:hover {
  box-shadow: 0 2px 32px 0 #FFD66B55, 0 2px 10px 0 #23264D22;
  transform: translateY(-3px) scale(1.025);
}

.service-list, .benefits, .values-list, .project-list, .advice-list, .tool-recommendations {
  list-style: disc inside;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.materials-used {
  list-style: circle inside;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.team-member {
  background: #23264D;
  border-radius: 15px;
  box-shadow: 0 2px 10px 0 #A8B0D344;
  flex: 1 1 220px;
  min-width: 210px;
  padding: 20px 16px 18px 16px;
  margin-bottom: 20px;
  transition: box-shadow 0.21s cubic-bezier(.4,0,.2,1), transform 0.17s;
  border: 1.5px solid #A8B0D366;
}
.team-member:hover {
  box-shadow: 0 2px 28px 0 #FFD66B44, 0 2px 8px 0 #23264D22;
  transform: scale(1.015);
}

/* Contact Info Layout */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  margin-bottom: 20px;
}
.contact-info > div {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #23264D;
  border-radius: 10px;
  padding: 10px 14px;
}
.contact-info img {
  width: 24px;
  height: 24px;
}

/* HEADER & NAVIGATION STYLING ----------- */
header {
  background: #23264D;
  padding: 24px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 3px 18px 0 #A8B0D344;
  position: relative;
  z-index: 22;
}
header img {
  height: 46px;
  width: auto;
  margin-right: 36px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
}
.main-nav a {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 1rem;
  color: #A8B0D3;
  padding: 4px 0;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.main-nav a::after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background: #FFD66B;
  border-radius: 2px;
  position: absolute;
  left: 0;
  bottom: -2px;
  transition: width 0.2s cubic-bezier(.4,0,.2,1);
}
.main-nav a:hover, .main-nav a:focus {
  color: #FFD66B;
}
.main-nav a:hover::after, .main-nav a:focus::after {
  width: 100%;
}
.button-primary {
  background: linear-gradient(90deg, #FFD66B, #A8B0D3 96%);
  color: #23264D;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  border: none;
  outline: none;
  border-radius: 12px;
  padding: 13px 48px 13px 30px;
  position: relative;
  font-size: 1.1rem;
  box-shadow: 0 2px 18px 0 #FFD66B33;
  cursor: pointer;
  margin-left: 24px;
  transition: background 0.22s cubic-bezier(.4,0,.2,1), box-shadow 0.21s;
  overflow: hidden;
  z-index: 2;
}
.button-primary::after {
  content: '→';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.05em;
  transition: right 0.18s cubic-bezier(.4,0,.2,1);
  color: #23264D;
}
.button-primary:hover, .button-primary:focus {
  background: linear-gradient(90deg, #A8B0D3, #FFD66B 90%);
  box-shadow: 0 4px 32px 0 #FFD66B66;
}
.button-primary:hover::after, .button-primary:focus::after {
  right: 18px;
}

/* HERO SECTION --------------------------- */
.hero {
  background: linear-gradient(170deg, #23264D 60%, #30366C 78%, #181A32 100%);
  padding-top: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid #23264D99;
  box-shadow: 0 8px 64px 0 #A8B0D320;
}
.hero h1 {
  color: #FFD66B;
}
.hero .subheadline {
  color: #A8B0D3;
  max-width: 630px;
}
.hero .button-primary {
  margin-top: 24px;
}

/* FOOTER ------------------------------- */
footer {
  background: #23264D;
  padding: 36px 20px 28px 20px;
  color: #A8B0D3;
  font-size: 1rem;
  border-top: 2px solid #FFD66B22;
  margin-top: 38px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #A8B0D3;
  font-size: 1rem;
  transition: color 0.22s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #FFD66B;
}
.footer-contact {
  text-align: center;
  color: #A8B0D3;
  margin-top: 14px;
  font-size: 0.96rem;
}
.footer-contact a {
  color: #FFD66B;
  font-weight: 600;
  transition: color 0.2s;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: #fffad6;
}

/* MOBILE BURGER MENU ------------------ */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  right: 20px;
  top: 24px;
  background: #23264D;
  color: #FFD66B;
  font-size: 2rem;
  z-index: 112;
  border: none;
  width: 49px;
  height: 49px;
  border-radius: 50%;
  box-shadow: 0 3px 18px 0 #FFD66B33;
  cursor: pointer;
  transition: background 0.15s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #FFD66B;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 92vw;
  max-width: 390px;
  height: 100vh;
  background: #23264D;
  box-shadow: -8px 0 48px 0 #FFD66B55;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.4,0,.2,1);
  z-index: 120;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 28px 28px;
  gap: 30px;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #FFD66B;
  font-size: 2rem;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 20px;
  margin-top: -16px;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #fffad6;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-nav a {
  color: #FFD66B;
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  padding: 16px 0;
  border-radius: 7px;
  text-align: left;
  background: none;
  font-weight: 600;
  transition: background 0.16s, color 0.18s;
}
.mobile-nav a:active, .mobile-nav a:hover,
.mobile-nav a:focus {
  background: #181A32;
  color: #fffad6;
}

/* Hide main nav/show mobile menu trigger on mobile */
@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .button-primary {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header {
    justify-content: space-between;
    gap: 0;
  }
}
@media (max-width: 768px) {
  .hero {
    padding-top: 36px;
    padding-bottom: 40px;
  }
  .section, section {
    padding: 32px 8px;
    margin-bottom: 42px;
  }
  .final-cta {
    padding-bottom: 36px;
  }
  .container {
    padding: 0 8px;
  }
  .content-wrapper {
    gap: 14px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  h3 {
    font-size: 1.1rem;
  }
  .testimonial-list, .features, .feature-grid, .feature-list, .team-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
  .contact-info {
    flex-direction: column;
    gap: 8px;
  }
  .card {
    min-width: 0;
  }
}

/* RESPONSIVE BUTTONS */
@media (max-width: 560px) {
  .button-primary {
    font-size: 1rem;
    padding: 11px 34px 11px 14px;
  }
  .button-primary::after {
    right: 12px;
    font-size: 1em;
  }
}

/* COOKIE CONSENT BANNER & MODAL ----------- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #23264D;
  color: #FFD66B;
  padding: 28px 20px 28px 20px;
  z-index: 2300;
  box-shadow: 0 -3px 24px 0 #FFD66B33;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1rem;
}
.cookie-consent-banner .cookie-banner-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-consent-banner button {
  font-family: 'Inter', sans-serif;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.cookie-accept {
  background: #FFD66B;
  color: #23264D;
  box-shadow: 0 1.5px 10px 0 #FFD66B44;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: #fffad6;
}
.cookie-reject {
  background: #181A32;
  color: #FFD66B;
  border: 1.5px solid #FFD66B66;
  box-shadow: 0 0.5px 8px #181A3222;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #23264D;
  color: #FFD66B;
}
.cookie-prefs {
  background: #A8B0D3;
  color: #23264D;
  box-shadow: 0 1px 8px #A8B0D344;
}
.cookie-prefs:hover, .cookie-prefs:focus {
  background: #FFD66B;
}

@media (max-width: 680px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 21px 8px;
  }
  .cookie-consent-banner .cookie-banner-actions {
    gap: 10px;
  }
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(35, 38, 77, 0.85);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalOverlayFadeIn 0.29s;
}
@keyframes cookieModalOverlayFadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #23264D;
  border-radius: 18px;
  box-shadow: 0 3px 48px 0 #23264D33;
  padding: 38px 34px 28px 34px;
  max-width: 425px;
  width: 96vw;
  font-family: 'Inter', Arial, sans-serif;
  animation: cookieModalIn 0.3s cubic-bezier(.4,0,.2,1);
  position: relative;
}
@keyframes cookieModalIn {
  from { opacity: 0; transform: translateY(64px) scale(0.75); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal h3 {
  color: #23264D;
  margin-bottom: 12px;
  font-size: 1.19rem;
  font-weight: 700;
}
.cookie-modal .cookie-modal-category {
  border-bottom: 1px dashed #A8B0D3;
  padding-bottom: 13px;
  margin-bottom: 13px;
}
.cookie-modal .cookie-modal-category:last-child {
  border-bottom: none;
}
.cookie-modal .category-title {
  font-weight: 600;
  color: #FFD66B;
  margin-bottom: 3px;
}
.cookie-modal-toggle {
  margin-top: 4px;
}
/* Toggle Switch Styling */
.cookie-modal-toggle input[type=checkbox] {
  display: none;
}
.cookie-modal-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 0.99rem;
  color: #23264D;
}
.cookie-modal-switch {
  display: inline-block;
  width: 36px;
  height: 20px;
  background: #A8B0D3;
  border-radius: 10px;
  position: relative;
  transition: background 0.2s;
}
.cookie-modal-switch::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 2.5px;
  width: 15px;
  height: 15px;
  background: #FFD66B;
  border-radius: 50%;
  transition: left 0.18s cubic-bezier(.4,0,.2,1), background 0.18s;
}
.cookie-modal-toggle input[type=checkbox]:checked + .cookie-modal-switch {
  background: #FFD66B;
}
.cookie-modal-toggle input[type=checkbox]:checked + .cookie-modal-switch::after {
  left: 19px;
  background: #23264D;
}
.cookie-modal-essential {
  opacity: 0.55;
  user-select: none;
  pointer-events: none;
}
.cookie-modal-actions {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: #23264D;
  font-size: 1.3rem;
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #FFD66B;
}
@media (max-width: 500px) {
  .cookie-modal {
    padding: 22px 7px 16px 7px;
    max-width: 97vw;
  }
  .cookie-modal-actions {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
}

/* VISUAL ELEMENTS ---------------------------- */
.vision-statement, .mission-statement {
  background: #23264D;
  color: #FFD66B;
  padding: 17px 26px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1.08rem;
  box-shadow: 0 2px 6px 0 #FFD66B29;
}
.vision-statement strong,
.mission-statement strong {
  color: #FFD66B;
  font-family: 'Cinzel', serif;
}

/* CASE STUDIES, HOW-TOs, and INFO BLOCKS */
.case-studies, .how-to-guides, .opportunities, .mentoring-info, .access-resources, .contact-details, .follow-up-info {
  background: #23264D;
  color: #A8B0D3;
  border-radius: 9px;
  padding: 17px 21px;
  margin-bottom: 12px;
  font-size: 1.01rem;
  box-shadow: 0 1.5px 6px #FFD66B22;
}
/* Responsive spacing for info blocks */
@media (max-width: 600px) {
  .case-studies, .how-to-guides, .opportunities, .mentoring-info, .access-resources, .contact-details, .follow-up-info, .vision-statement, .mission-statement {
    padding: 11px 8px;
    font-size: 0.98rem;
  }
}

/* BUTTONS & LINK MICRO-INTERACTIONS ---------- */
.button-primary,
.cookie-consent-banner button,
.cookie-modal-actions button {
  transition: background 0.18s, color 0.18s, box-shadow 0.21s, transform 0.15s;
}
.button-primary:active {
  transform: scale(0.97);
}
.cookie-consent-banner button:active, .cookie-modal-actions button:active {
  transform: scale(0.97);
}

/* MISC ------------------------------------- */
::-webkit-input-placeholder { color: #A8B0D3; opacity: 1; }
::-moz-placeholder { color: #A8B0D3; opacity: 1; }
:-ms-input-placeholder { color: #A8B0D3; opacity: 1; }
::placeholder { color: #A8B0D3; opacity: 1; }

/* Accessibility improvements for focus states */
a:focus, button:focus, .button-primary:focus {
  outline: 2px solid #FFD66B;
  outline-offset: 2px;
}

/* Z-INDEX stacking for overlays/menus */
.mobile-menu, .cookie-consent-banner, .cookie-modal-overlay {
  z-index: 2000 !important;
}

/* Prevent overlapping for sections/cards */
section, .section, .card, .feature, .testimonial-card, .team-member {
  margin-bottom: 20px;
}

/* END OF CSS ------------------------------- */
