/* RESET & BASE ---------------------- */
html {
  box-sizing: border-box;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #FFF9F2;
  color: #222;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #F95738;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #28526A;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 20px;
}
li {
  margin-bottom: 8px;
}
button, input, select, textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
  font-size: 16px;
}
:focus {
  outline: 2px solid #F95738;
  outline-offset: 2px;
}

/* COLOR PALETTE & ENERGETIC ACCENTS -- */
:root {
  --brand-primary: #28526A;       /* Deep blue (main) */
  --brand-secondary: #CFCFC5;     /* Sand/beige secondary */
  --brand-accent: #FFF9F2;        /* Cream accent bg */
  --brand-electric-1: #F95738;    /* Vivid orange-red */
  --brand-electric-2: #44FFD1;    /* Vibrant teal */
  --brand-electric-3: #FFD23F;    /* Electric yellow */
  --brand-electric-4: #7B2FF2;    /* Electric violet */
  --brand-text-dark: #161616;
  --brand-text-light: #FFF9F2;
}

/* TYPOGRAPHY ------------------------- */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: -.5px;
  color: var(--brand-primary);
  margin-bottom: 12px;
}
h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin-bottom: 22px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
h4, h5 {
  font-size: 1.1rem;
}
p, ul, ol, blockquote, cite, label {
  color: var(--brand-text-dark);
}
strong {
  color: var(--brand-electric-1);
  font-weight: bold;
}
blockquote {
  color: var(--brand-primary);
  background: rgba(40,82,106,0.07);
  border-left: 4px solid var(--brand-electric-1);
  font-family: 'Playfair Display', serif;
  padding: 16px 24px;
  margin-bottom: 10px;
  font-size: 1.13rem;
}
cite {
  display: block;
  font-style: normal;
  color: var(--brand-primary);
  font-size: 1rem;
  margin-top: 6px;
}
label {
  font-size: 1rem;
  font-weight: 600;
}

/* CONTAINER, SECTION & WRAPPERS --------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.hero-section {
  background: linear-gradient(90deg, var(--brand-electric-3) 0%, var(--brand-electric-2) 100%);
  padding: 60px 0 40px 0;
}
.hero-section h1, .hero-section p {
  color: var(--brand-primary);
  text-shadow: 1px 2px 10px rgba(255,255,255,0.3);
}

.cta-section {
  background: var(--brand-electric-3);
  padding: 36px 0;
  text-align: center;
  margin-bottom: 0;
}
.cta-section h2 {
  color: var(--brand-primary);
}

.text-section {
  margin-bottom: 20px;
}

/* FLEX LAYOUTS - ENERGY ----------------- */
.features-grid, .articles-grid, .services-list, .event-list, .feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 24px;
}
.features-grid > div, .articles-grid > div, .services-list > li, .event-list > li, .feature-list > li {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 rgba(40,82,106,0.07);
  padding: 26px 20px 20px 20px;
  flex: 1 1 240px;
  min-width: 240px;
  max-width: 355px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  transition: box-shadow 0.23s, transform 0.23s;
  position: relative;
}
.features-grid > div:hover, .articles-grid>div:hover, .services-list>li:hover, .event-list>li:hover, .feature-list>li:hover {
  box-shadow: 0 8px 32px 0 rgba(249,87,56,0.14);
  transform: translateY(-3px) scale(1.025);
}
.features-grid img, .feature-list img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-electric-2);
  padding: 8px;
  box-shadow: 0 2px 6px 0 rgba(44,255,209,0.09);
}
.articles-grid > div > h3 {
  color: var(--brand-electric-4);
}
.services-list {
  list-style: none;
  gap: 24px;
  flex-direction: row;
  flex-wrap: wrap;
}
.services-list > li {
  max-width: 370px;
}
.event-list {
  list-style: none;
  gap: 24px;
  flex-direction: row;
  flex-wrap: wrap;
}
.event-list > li a {
  margin-top: 9px;
}
.feature-list {
  list-style: none;
  gap: 18px;
}
.feature-list > li {
  flex: 1 1 180px;
  gap: 10px;
  min-width: 180px;
  background: #FFF;
  border: 1.5px dashed var(--brand-electric-3);
  box-shadow: 0 1px 10px rgba(255,210,63,0.09);
}

.trust-signals ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.trust-signals ul li {
  background: var(--brand-primary);
  color: #FFF9F2;
  font-weight: 600;
  border-radius: 36px;
  padding: 12px 24px;
  font-size: 1.06rem;
  letter-spacing: .5px;
}

/* TESTIMONIALS ------------------------- */
.testimonial-slider {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 3px 18px 0 rgba(40,82,106,0.08);
  min-width: 240px;
  max-width: 370px;
  padding: 20px 20px 20px 26px;
  flex: 1 1 250px;
  margin-bottom: 20px;
  z-index: 1;
  transition: box-shadow 0.23s, transform 0.19s;
}
.testimonial-card:hover {
  box-shadow: 0 10px 38px 0 rgba(44,255,209,0.13);
  transform: scale(1.03) translateY(-2px);
}
.testimonial-card blockquote {
  color: var(--brand-primary);
  background: transparent;
  border-left: 4px solid var(--brand-electric-2);
  font-size: 1.08rem;
}
.testimonial-card cite {
  color: var(--brand-electric-1);
}
.testimonials .testimonial-card,
.section .testimonial-card {
  background: #FFF;
  box-shadow: 0 2px 20px 0 rgba(40,82,106,0.08);
}

/* MAIN NAVIGATION --------------------- */
header {
  background: #FFF9F2;
  border-bottom: 3px solid var(--brand-electric-2);
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 16px;
}
.main-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  align-items: center;
  margin: 0;
}
.main-nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
  padding: 6px 13px;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}
.main-nav ul li a:hover {
  background: var(--brand-electric-2);
  color: var(--brand-electric-4);
}
.main-nav img {
  height: 41px;
  width: auto;
  margin-right: 12px;
}
.cta-btn {
  background: linear-gradient(90deg, var(--brand-electric-1) 62%, var(--brand-electric-3) 100%);
  color: #FFF;
  font-family: 'Montserrat',Arial,sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 10px 32px;
  border-radius: 40px;
  box-shadow: 0 2px 16px 0 rgba(249,87,56,0.08);
  cursor: pointer;
  letter-spacing: .04em;
  margin-left: 18px;
  transition: background .21s, color .18s, box-shadow .2s, transform .13s;
  border: none;
  display: inline-block;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, var(--brand-electric-3) 40%, var(--brand-electric-1) 100%);
  color: #FFF9F2;
  transform: scale(1.07);
  box-shadow: 0 5px 32px 0 rgba(249,87,56,.18);
}

/* MOBILE NAVIGATION ------------------- */
.mobile-menu-toggle {
  display: none;
  background: var(--brand-electric-1);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 6px 14px 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1101;
  margin-left: auto;
  margin-right: 12px;
  transition: background .18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--brand-electric-4);
  color: #FFF9F2;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 320px;
  max-width: 90vw;
  background: #FFF;
  box-shadow: -6px 0 32px 0 rgba(40,82,106,.19);
  z-index: 1102;
  display: flex;
  flex-direction: column;
  padding: 40px 36px 22px 20px;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.5,.12,.18,1.2);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--brand-electric-1);
  color: #FFF9F2;
  font-size: 2rem;
  padding: 3px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
  cursor: pointer;
  align-self: flex-end;
  border: none;
  transition: background .17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--brand-electric-4);
  color: #FFF;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}
.mobile-nav a {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--brand-primary);
  padding: 9px 10px 8px 0;
  border-radius: 12px;
  background: none;
  transition: background .18s, color .17s;
}
.mobile-nav a:hover {
  background: var(--brand-electric-2);
  color: var(--brand-electric-4);
}
.mobile-menu {
  display: none;
}
.mobile-menu.open {
  display: flex;
}

@media (max-width: 1020px) {
  .main-nav {
    gap: 14px;
    padding: 9px 9px;
  }
  .main-nav ul {
    gap: 10px;
  }
  .cta-btn {
    margin-left: 9px;
  }
}

@media (max-width: 900px) {
  .main-nav ul, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .main-nav {
    justify-content: flex-start;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 6px;
  }
  .features-grid, .articles-grid, .services-list, .event-list, .feature-list, .testimonial-slider, .trust-signals ul {
    gap: 12px;
  }
  .features-grid > div, .articles-grid > div, .services-list > li, .event-list>li, .feature-list>li, .testimonial-card {
    min-width: 95%;
    max-width: 100%;
    padding: 15px 9px;
  }
}

/* RESPONSIVE FLEX LAYOUTS --------------- */
@media (max-width: 900px) {
  .features-grid, .articles-grid, .services-list, .event-list, .feature-list {
    flex-direction: column;
    gap: 18px;
  }
  .trust-signals ul {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .content-wrapper {
    gap: 11px;
  }
  .section {
    margin-bottom: 30px;
    padding: 22px 7px;
  }
  .hero-section {
    padding: 32px 0 24px 0;
  }
  .cta-section {
    padding: 20px 0;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

/* LAYOUT PATTERNS - CLASSES MANDATORY ---- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 3px 18px 0 rgba(40,82,106,0.08);
  transition: box-shadow 0.21s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 10px 38px 0 rgba(44,255,209,0.13);
  transform: scale(1.02) translateY(-2px);
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* Extra: Map/embed for contacts page */
.map-embed {
  margin-top: 12px;
  background: var(--brand-secondary);
  border-radius: 8px;
  padding: 14px 10px;
  color: var(--brand-primary);
  font-size: 1rem;
  font-weight: 600;
}

/* SEARCH INPUT, FORM, FILTER ----------- */
.search-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.search-filter input[type="search"] {
  padding: 10px 16px;
  border-radius: 13px;
  border: 2px solid var(--brand-electric-2);
  background: #fff;
  color: var(--brand-primary);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: border .19s;
  width: 204px;
}
.search-filter input[type="search"]:focus {
  border-color: var(--brand-electric-1);
  background: #FFF9F2;
}

/* BUTTONS, MICROS, ANIMATIONS ---------- */
button, .cta-btn, .event-list > li a, .cookie-banner button, .cookie-modal button {
  cursor: pointer;
  transition: background .17s, color .13s, box-shadow .22s, transform .12s;
}
.event-list > li a {
  display: inline-block;
  background: var(--brand-electric-2);
  color: var(--brand-primary);
  padding: 7px 22px;
  border-radius: 21px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 8px;
}
.event-list > li a:hover {
  background: var(--brand-electric-1);
  color: #FFF;
  transform: scale(1.08);
}

/* FOOTER ------------------------------- */
footer {
  background: var(--brand-secondary);
  border-top: 3px solid var(--brand-electric-2);
  margin-top: 60px;
  padding-bottom: 0;
}
.footer-main {
  display: flex;
  gap: 64px;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 16px 9px 16px;
  flex-wrap: wrap;
}
.footer-main > div {
  min-width: 180px;
  margin-bottom: 20px;
}
.footer-main img {
  width: 43px;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 12px;
  padding: 6px 0;
  transition: background 0.15s, color 0.12s;
}
.footer-nav a:hover {
  background: var(--brand-electric-2);
  color: var(--brand-electric-4);
}
.footer-copy {
  text-align: center;
  color: var(--brand-primary);
  font-size: 0.98rem;
  background: none;
  padding-bottom: 13px;
}
@media (max-width: 900px) {
  .footer-main {
    gap: 28px;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 9px 10px 9px;
  }
}

/* COOKIE CONSENT BANNER ---------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 3px solid var(--brand-electric-3);
  box-shadow: 0 -2px 26px 0 rgba(40,82,106,0.13);
  padding: 24px 22px 22px 22px;
  z-index: 1300;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 19px;
  opacity: 1;
  transition: opacity .3s, transform .3s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(180px);
  pointer-events: none;
}
.cookie-banner p {
  color: var(--brand-primary);
  font-size: 1.03rem;
  font-weight: 600;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-left: 22px;
}
.cookie-banner button {
  background: var(--brand-electric-1);
  color: #FFF9F2;
  border-radius: 13px;
  padding: 8px 23px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
}
.cookie-banner button:hover {
  background: var(--brand-electric-2);
  color: var(--brand-electric-4);
}
.cookie-banner .cookie-settings-btn {
  background: var(--brand-electric-4);
  color: #fff;
}
.cookie-banner .cookie-settings-btn:hover {
  background: var(--brand-primary);
}
/* Responsive Cookie Banner */
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 17px 9px 20px 14px;
    gap: 9px;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    margin-left: 0;
    gap: 8px;
  }
}

/* COOKIE MODAL ---------------------- */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(40,82,106,0.17);
  backdrop-filter: blur(3px);
  z-index: 1301;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .25s;
}
.cookie-modal {
  background: #fff;
  color: var(--brand-primary);
  border-radius: 21px;
  padding: 38px 33px 30px 33px;
  width: 94vw;
  max-width: 420px;
  box-shadow: 0 6px 44px 0 rgba(40,82,106,0.20);
  position: relative;
  animation: cookieModalPop .31s ease;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@keyframes cookieModalPop {
  0% {transform:translateY(52px) scale(.93); opacity:0;}
  100% {transform:translateY(0) scale(1); opacity:1;}
}
.cookie-modal h3 {
  color: var(--brand-electric-1);
  margin-bottom: 12px;
  font-size: 1.25rem;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 1.09rem;
}
.cookie-category input[type=checkbox]:not(:checked):disabled {
  opacity: 0.7;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 9px;
}
.cookie-modal button {
  background: var(--brand-electric-1);
  color: #FFF9F2;
  padding: 9px 23px;
  border-radius: 13px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
}
.cookie-modal button:hover {
  background: var(--brand-electric-4);
  color: #FFF9F2;
}
.cookie-modal .close-modal-btn {
  position: absolute;
  top: 15px;
  right: 16px;
  background: var(--brand-electric-2);
  color: var(--brand-primary);
  font-size: 1.25rem;
  border-radius: 9px;
  border: none;
  padding: 4px 14px 2px 14px;
  cursor: pointer;
  transition: background .17s;
}
.cookie-modal .close-modal-btn:hover,
.cookie-modal .close-modal-btn:focus {
  background: var(--brand-electric-1);
  color: #fff;
}

/* ACCESSIBILITY CONTRAST FOR TESTIMONIALS */
.testimonial-card blockquote,
.testimonial-card cite {
  color: var(--brand-primary) !important;
  background: none !important;
}

/* MICRO-INTERACTIONS & TRANSITIONS ----- */
.card,
.features-grid > div,
.articles-grid > div,
.services-list > li,
.event-list > li,
.testimonial-card,
.cta-btn,
.event-list > li a,
.cookie-banner button,
.cookie-modal button {
  transition: box-shadow .22s, transform .18s, background .15s, color .14s;
}

/* SPACING ENFORCEMENT - FLEX ONLY ------ */
.section, .card-container, .content-grid, .text-image-section, .testimonial-card, .feature-item {
  margin-bottom: 60px;
  gap: 20px;
}
.section {
  padding: 40px 20px;
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* MIN GAP BETWEEN ALL CARDS/SECTIONS */
.features-grid > *,
.articles-grid > *,
.services-list > *,
.event-list > *,
.feature-list > *,
.card-container > * {
  margin-right: 0;
  margin-bottom: 0;
}

/* UTILITIES ----------------------------- */
.hide { display: none !important; }

/**** END CSS ****/
