/* =======================================================
   Carisma Viva – Tech Futuristic CSS Theme
   Consistent flexbox layouts with tech-futuristic, neon, and modern vibes
   ======================================================= */

/* 1. 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, main, 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 { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.6;
  min-height: 100vh;
  background: #030b1d; /* Deep futuristic bg */
  color: #fff;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  background-image: linear-gradient(140deg, #073763 0%, #232946 60%, #181e36 100%);
  /* fallback for solid */
}
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
button, input, textarea, select { font-family: inherit; font-size: 100%; outline: none; border: none; background: none; }
:focus { outline: 2px solid #FFD966; outline-offset: 2px; }

/* 2. Typography – Font Pairing & Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  color: #FFD966;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.1;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.4rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 10px; }
h5, h6 { font-size: 1rem; margin-bottom: 8px; }
p, li, address, span {
  font-family: 'Lato', Arial, sans-serif;
  color: #e0edff;
}
strong, b { color: #FFD966; font-weight: 700; }

@media (max-width: 992px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.1rem; }
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.content-wrapper {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(7, 55, 99, 0.80);
  border-radius: 24px;
  box-shadow: 0 4px 36px 0 rgba(46, 155, 243, 0.10), 0 2px 12px 0 #073763;
}
.text-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

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

@media (max-width: 768px) {
  .content-wrapper, .section {
    padding: 24px 8px;
    margin-bottom: 40px;
  }
}

/* 3. Header & Navigation (Desktop & Mobile) */
header {
  background: #030b1d;
  box-shadow: 0 1px 16px 0 rgba(46, 155, 243, 0.10);
  position: sticky;
  top: 0; left: 0; width: 100%;
  z-index: 1001;
}
header .container { display: flex; align-items: center; justify-content: space-between; position: relative; }
header nav {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1 1 auto;
}
header nav > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
header nav ul li {
  margin-right: 0;
}
header nav ul li:last-child { margin-right: 0; }
header nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #FFD966;
  padding: 8px 18px;
  border-radius: 18px;
  transition: background .2s, color .2s;
  position: relative;
}
header nav ul li a:hover,
header nav ul li a:focus {
  background: #FFD966;
  color: #073763;
  box-shadow: 0 2px 12px 0 rgba(255, 217, 102, 0.25);
}
.cta-button {
  display: inline-block;
  color: #073763;
  background: #FFD966;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  font-weight: bold;
  padding: 12px 28px;
  border-radius: 22px;
  box-shadow: 0 0 16px 0 rgba(255, 217, 102, 0.25), 0 2px 8px 0 rgba(7, 55, 99, 0.08);
  border: 2px solid #FFD966;
  transition: background .2s, color .2s, box-shadow .2s;
  position: relative;
  margin-left: 18px;
}
.cta-button:hover, .cta-button:focus {
  background: #fff7dc;
  color: #073763;
  box-shadow: 0 0 12px 2px #FFD966, 0 2px 24px 0 #FFD96680;
  border-color: #FFD966;
}

.cta-link {
  color: #FFD966;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-top: 16px;
  display: inline-block;
  text-decoration: underline;
  transition: color .2s;
}
.cta-link:hover, .cta-link:focus {
  color: #fff;
  text-shadow: 0 0 8px #FFD96688;
}

/* Hamburger (Mobile) styles */
.mobile-menu-toggle {
  display: none;
  background: #073763;
  border-radius: 8px;
  color: #FFD966;
  font-size: 2.3rem;
  line-height: 1;
  padding: 7px 16px;
  border: 2px solid #FFD966;
  transition: background 0.2s, box-shadow 0.2s;
  z-index: 1102;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #FFD966;
  color: #073763;
  box-shadow: 0 0 8px 0 #FFD96670;
}
@media (max-width: 1024px) {
  header nav > ul, header nav > .cta-button { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
}

/* 4. Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(16,24,40,0.97);
  box-shadow: 0 0 60px 0 #07376355, 0 4px 24px #073763;
  z-index: 1101;
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(.75,0,.31,1); /* slide-in */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 32px 20px 20px 20px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  font-size: 2.2rem;
  color: #FFD966;
  margin-left: auto;
  margin-bottom: 16px;
  background: rgba(7, 55, 99, 0.2);
  border-radius: 50%;
  width: 42px; height: 42px;
  border: 2px solid #FFD966;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #FFD966;
  color: #073763;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  margin-top: 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
  color: #FFD966;
  padding: 14px 0 8px 8px;
  border-radius: 7px;
  width: 100%;
  transition: background .2s, color .2s;
  min-width: 144px;
}
.mobile-nav a:not(:last-child) {
  border-bottom: 1.2px solid #23569d;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #fff;
  background: #073763;
  text-shadow: 0 0 8px #FFD96699;
}

/* 5. Main Section Layout */
main {
  width: 100%;
  min-height: 70vh;
  background: none;
}
@media (max-width: 768px) {
  main {
    padding-bottom: 0px;
  }
}

/* HERO section and all top-level sections share similar padding/margins via .section and .content-wrapper */

/* 6. Feature/Grid/Card Flex Layouts */
.features-grid, .service-cards-grid, .testimonial-grid, .post-grid, .team-bios {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: stretch;
  margin-bottom: 12px;
}
@media (max-width: 900px) {
  .features-grid, .service-cards-grid, .testimonial-grid, .post-grid, .team-bios {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .features-grid, .service-cards-grid, .testimonial-grid, .post-grid, .team-bios {
    flex-direction: column;
    gap: 16px;
  }
}

.features-grid > div, .service-cards-grid > div, .testimonial-grid > div, .post-grid > div, .team-bios > div {
  background: rgba(35, 41, 70, 0.95);
  border-radius: 16px;
  padding: 38px 22px 26px 22px;
  box-shadow: 0 2px 16px 0 rgba(46, 155, 243, 0.12);
  min-width: 190px;
  flex: 1 1 250px;
  margin-bottom: 20px;
  position: relative;
  border: 1.6px solid #07376399;
  transition: box-shadow .22s, border-color .16s;
  overflow: hidden;
}
.features-grid > div:hover, .service-cards-grid > div:hover, .testimonial-grid > div:hover, .post-grid > div:hover, .team-bios > div:hover {
  border-color: #FFD966;
  box-shadow: 0 0 32px 2px #FFD96660, 0 2px 8px 0 #FFD96650;
}
.features-grid > div img, .features-grid > div svg, .service-cards-grid > div img {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 6px #FFD96699);
}

.service-cards-grid > div .service-price, .service-cards-grid > div strong.service-price {
  color: #FFD966;
  font-size: 1.15rem;
  font-weight: bold;
  margin-top: 10px;
  display: block;
  text-shadow: 0 0 6px #FFD96675;
}

.blog-post {
  background: rgba(35, 41, 70, 0.95);
  border-radius: 16px;
  padding: 28px 22px 24px 22px;
  min-width: 180px;
  flex: 1 1 220px;
  border: 1.4px solid #07376354;
  margin-bottom: 20px;
  line-height: 1.65;
  box-shadow: 0 2px 12px 0 rgba(46, 155, 243, 0.10);
}
.post-category {
  display: inline-block;
  color: #FFD966;
  border: 1px solid #FFD966;
  border-radius: 10px;
  padding: 0 14px;
  margin-top: 10px;
  font-size: 0.92rem;
  letter-spacing: 1.2px;
  background: #07376355;
  text-transform: uppercase;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  align-items: center;
}
.category-tags h4 {
  color: #FFD966;
  margin-bottom: 0;
  font-size: 1rem;
}
.category-tags span {
  background: #252a42;
  color: #FFD966;
  padding: 4px 14px;
  border-radius: 8px;
  font-size: 0.96rem;
  letter-spacing: 1.2px;
  border: 1px solid #073763;
}


/* 7. Testimonials & Review Cards */
.testimonials-slider, .testimonials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fffbe7;
  color: #1c2544;
  border-radius: 16px;
  padding: 20px 28px;
  box-shadow: 0 2px 16px 0 #FFD96635, 0 2px 12px 0 #07376317;
  gap: 16px;
  margin-bottom: 20px;
  border: 1.8px solid #FFD966cc;
  font-size: 1.09rem;
  position: relative;
  min-width: 180px;
  max-width: 500px;
  transition: box-shadow .21s, border-color .16s;
}
.testimonial-card p {
  color: white;
}
.testimonial-card:hover {
  box-shadow: 0 0 28px 2px #FFD96680, 0 2px 16px 0 #FFD96666;
  border-color: #073763cc;
}
.testimonial-card p {
  color: #fff;
  font-size: 1.10rem;
  margin-bottom: 4px;
  font-style: italic;
}
.testimonial-details,
.testimonial-details span {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #736814;
  font-size: .97rem;
}
.star-rating {
  color: #FFD966;
  font-size: 1.14em;
  letter-spacing: .1em;
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .testimonials-slider, .testimonial-grid {
    flex-direction: column;
    gap: 14px;
  }
}

/* 8. Footer Section */
footer {
  width: 100%;
  background: #030b1d;
  margin-top: 60px;
  border-top: 3px solid #073763cc;
  padding: 0 0;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 50px 0 20px 0;
}
.footer-grid > div, .footer-grid > nav {
  min-width: 210px;
  flex: 1 1 220px;
}
.footer-grid img {
  width: 44px; height: 44px; margin-bottom: 10px; filter: drop-shadow(0 0 8px #FFD96666);
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a {
  color: #FFD966;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color .16s;
}
.footer-grid ul li a:hover, .footer-grid ul li a:focus {
  color: #fff;
}
.footer-grid strong {
  color: #FFD966;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 8px;
  display: block;
}
.footer-grid address {
  font-style: normal;
  margin-bottom: 6px;
  color: #e0edff;
}
.footer-grid > div > a, .footer-grid > div > span {
  color: #FFD966;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #181e36;
  padding: 12px 0;
  color: #FFD966;
  font-size: 0.93rem;
}
@media (max-width: 900px) {
  .footer-grid {
    gap: 16px;
    flex-wrap: wrap;
  }
}
@media (max-width: 800px) {
  .footer-grid {
    flex-direction: column;
    gap: 24px;
    padding: 36px 0 14px 0;
  }
}

/* 9. Cards, Bios & Misc Sections */
.team-bios {
  gap: 24px;
}
.facilitator-highlights {
  margin-top: 38px;
  background: rgba(35, 41, 70, 0.95);
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: 0 1px 8px 0 #07376333;
}
.resources-section ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.resources-section ul ul { margin-top: 10px; }
.resources-section li strong { color: #FFD966; font-family: 'Montserrat', Arial, sans-serif; font-weight: bold; font-size: 1.11rem; }
.resources-section li p { margin: 8px 0; }

.location-section { gap: 16px; }
.map-placeholder {
  background: rgba(35,41,70,0.96);
  color: #FFD966;
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  margin-top: 8px;
  font-size: 1.02rem;
  border: 1.1px solid #FFD966;
}

.contact-info-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact-info-content > div {
  min-width: 160px;
  color: #FFD966;
}
@media (max-width: 768px) {
  .contact-info-content {
    flex-direction: column;
    gap: 10px;
  }
}

/* 10. Animations & Microinteractions */
.cta-button, .cta-link, .mobile-menu-toggle, .mobile-menu-close, nav ul li a, .mobile-nav a, .features-grid > div, .service-cards-grid > div, .blog-post, .testimonial-card {
  transition: box-shadow .19s, background .20s, color .19s, border-color .16s, transform .17s;
}
.features-grid > div:hover, .service-cards-grid > div:hover, .blog-post:hover, .testimonial-card:hover, .cta-button:hover {
  transform: translateY(-5px) scale(1.03);
}
nav ul li a:after, .mobile-nav a:after {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, #FFD966 40%, #fff7dc 100%);
  transform: scaleX(0);
  transition: transform .23s;
}
nav ul li a:hover:after, .mobile-nav a:hover:after {
  transform: scaleX(1);
}

/* 11. Forms – Minimal, Modern */
input, textarea, select {
  border-radius: 10px;
  padding: 10px 14px;
  background: #232946;
  color: #ffd966;
  border: 1.2px solid #073763;
  margin-bottom: 18px;
}
input:focus, textarea:focus, select:focus {
  border-color: #FFD966;
  box-shadow: 0 0 6px #FFD96644;
}

/* 12. Cookie Banner & Modal */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: #073763;
  color: #FFD966;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  z-index: 1300;
  padding: 22px 32px;
  box-shadow: 0 -2px 32px 4px #FFD96644, 0 0 6px #07376344;
  font-size: 1.06rem;
  transition: transform .33s cubic-bezier(.58,0,.36,1.3), opacity .22s;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}
.cookie-banner.hide {
  opacity: 0; transform: translateY(140%);
  pointer-events: none;
}
.cookie-banner-content {
  flex: 1 1 360px;
}
.cookie-banner-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 18px;
  background: #FFD966;
  color: #073763;
  padding: 8px 22px;
  min-width: 130px;
  margin: 0;
  cursor: pointer;
  outline: none;
  border: 2px solid #FFD966;
  transition: background .16s, color .16s, box-shadow .19s, border-color .19s;
}
.cookie-btn.secondary {
  background: #232946;
  color: #FFD966;
  border-color: #FFD966;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #fffbe7;
  color: #073763;
  border-color: #FFD966;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #FFD966;
  color: #073763;
}

/* Cookie Preferences Modal */
.cookie-modal-backdrop {
  content: '';
  position: fixed; left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(7,55,99,0.84);
  z-index: 2010;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .20s;
}
.cookie-modal {
  background: #232946;
  color: #FFD966;
  border-radius: 18px;
  border: 2px solid #FFD966;
  min-width: 320px; max-width: 94vw;
  box-shadow: 0 0 48px 6px #FFD96666, 0 2px 18px 0 #073763dd;
  padding: 36px 30px;
  position: relative;
  z-index: 2020;
}
.cookie-modal h2 { color: #FFD966; margin-bottom: 10px; }
.cookie-modal label {
  display: flex; align-items: center;
  margin-bottom: 14px;
  font-size: 1.06em;
  gap: 10px;
}
.cookie-toggle {
  width: 48px; height: 26px; border-radius: 14px; background: #073763; border: 1.5px solid #FFD966; position: relative; transition: background .2s;
  cursor: pointer;
  margin-left: 10px;
  display: flex; align-items: center;
}
.cookie-toggle input[type=checkbox] {
  display: none;
}
.cookie-toggle span {
  display: inline-block;
  position: absolute; left: 2px; top: 2px;
  width: 22px; height: 22px; border-radius: 50%; background: #FFD966;
  transition: left .21s cubic-bezier(.88,0,.2,1.0), background .18s;
}
.cookie-toggle input:checked + span {
  left: 24px; background: #FFF7dc;
}
.cookie-modal-actions {
  display: flex; gap: 16px; margin-top: 26px;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  position: absolute; right: 14px; top: 14px;
  background: rgba(7,55,99,0.18);
  border-radius: 50%;
  color: #FFD966;
  border: 2px solid #FFD966;
  font-size: 1.15rem;
  cursor: pointer;
  width: 34px; height: 34px;
  transition: background .15s, color .15s;
}
.cookie-modal .close-modal:hover { background: #FFD966; color: #073763; }
@media (max-width: 500px) {
  .cookie-modal { padding: 16px 6px; font-size: 0.96rem; }
}

/* 13. Responsive: Major breakpoints for flex-direction, paddings, font */
@media (max-width: 768px) {
  .features-grid, .service-cards-grid, .testimonial-grid, .footer-grid, .post-grid, .team-bios, .content-grid, .testimonials-slider, .category-tags {
    flex-direction: column !important;
    gap: 16px;
  }
  .content-wrapper, .section {
    padding: 18px 4px;
    margin-bottom: 24px;
  }
}

/* Alignment Patterns (MANDATORY) */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: #232946; border-radius: 18px; box-shadow: 0 2px 12px #07376333; }
.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;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 16px; }
  .content-grid { gap: 14px; }
}

/* Other helpers */
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.gap-16 { gap: 16px; }

/* Animating elements in / out */
.slide-in {
  animation: slideInRight .5s cubic-bezier(.73,0,.31,1) both;
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(100vw); }
  to { opacity: 1; transform: translateX(0); }
}
.slide-out {
  animation: slideOutLeft .37s cubic-bezier(.81,0,.2,1) both;
}
@keyframes slideOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-100vw); }
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar { width: 10px; background: #252a42; }
::-webkit-scrollbar-thumb { background: #073763; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #FFD966; }

/* Fallback font imports (if not in HTML) */
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 400;
  src: local('Montserrat'), url('https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm45_QphLg.ttf') format('truetype');
}
@font-face {
  font-family: 'Lato'; font-style: normal; font-weight: 400;
  src: local('Lato'), url('https://fonts.gstatic.com/s/lato/v20/S6uyw4BMUTPHjxAwXjeu.woff2') format('woff2');
}

/* === Print === */
@media print {
  body, header, footer, main, .container, .content-wrapper { background: #fff !important; color: #073763 !important; box-shadow: none !important; }
  .cta-button, .cookie-banner, .cookie-modal { display: none !important; }
}
