/* ==========================================================================
   CSS RESET & NORMALIZE (Mobile-First, No Grid)
   ========================================================================== */
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 {
  border: 0;
  margin: 0;
  padding: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: var(--color-bg, #f9fbfd);
  color: var(--color-primary, #192a37);
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: normal;
  background: none;
  border: none;
  outline: none;
}
button { cursor: pointer; background: none; }

/* =====================
   COLOR PALETTE & THEME
   ===================== */
:root {
  --color-primary: #192a37;
  --color-secondary: #2e5a8e;
  --color-accent: #e0e5ec;
  --color-fun1: #fd5c63;
  --color-fun2: #f4d35e;
  --color-fun3: #3bb273;
  --color-fun4: #4c6ef5;
  --color-neutral-bg: #f9fbfd;
  --color-white: #fff;
  --color-dark: #1a2733;
  --color-card: #fff;
  --color-footer: #233144;
  --color-contrast: #0d0d0d;
}

/* ============
   TYPOGRAPHY
   ============ */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@700&family=Open+Sans:wght@400;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', serif;
  color: var(--color-secondary);
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.13;
  color: var(--color-fun1);
}
h2 {
  font-size: 2rem;
  color: var(--color-fun4);
}
h3 {
  font-size: 1.35rem;
  color: var(--color-secondary);
}
.subheadline {
  font-size: 1.15rem;
  color: #494538;
  margin-bottom: 24px;
  letter-spacing: 0.8px;
}
p, li, .legal-text, .text-section, .content-wrapper span {
  color: var(--color-primary);
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}
strong {
  color: var(--color-fun3);
}

/* =============
   HEADER/NAVBAR
   ============= */
header {
  background: var(--color-accent);
  color: var(--color-primary);
  width: 100%;
  position: relative;
  z-index: 20;
  box-shadow: 0 2px 12px 0 rgba(25,42,55,.07);
  padding: 0 0 0 0;
  min-height: 72px;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: flex-start;
}
.logo {
  display: flex;
  align-items: center;
  padding: 16px 20px 16px 10px;
  height: 72px;
}
.logo img {
  height: 40px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 14px;
  flex: 1 1 auto;
}
.main-nav a {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.18s, color 0.15s;
}
.main-nav a:hover {
  background: var(--color-fun2);
  color: var(--color-fun1);
}
.cta-btn {
  padding: 12px 30px;
  border-radius: 99px;
  background: var(--color-fun1);
  color: var(--color-white);
  font-weight: bold;
  margin: 0 12px 0 0;
  letter-spacing: 1.1px;
  font-family: 'Roboto Slab', serif;
  box-shadow: 0 2px 14px 0 rgba(253,92,99,0.10);
  font-size: 1.15rem;
  transition: transform 0.23s cubic-bezier(.42,0,.58,1), background 0.18s;
  border: none;
  display: inline-block;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.cta-btn:hover {
  background: var(--color-fun3);
  color: var(--color-dark);
  transform: scale(1.07) rotate(-2deg);
  box-shadow: 0 4px 24px 0 rgba(59,178,115,0.08);
}
.mobile-menu-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-fun1);
  background: var(--color-white);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  margin-right: 10px;
  border: 2px solid var(--color-fun1);
  box-shadow: 0 2px 10px 0 rgba(253,92,99,0.09);
  transition: background 0.18s, color 0.16s, transform 0.18s;
  z-index: 21;
}
.mobile-menu-toggle:hover {
  background: var(--color-fun1);
  color: var(--color-white);
  transform: scale(1.09) rotate(8deg);
}

/* Hide burger button and nav on large screens, hide nav on mobile */
@media (min-width: 991px) {
  .mobile-menu-toggle { display: none; }
}
@media (max-width: 990px) {
  .main-nav {
    display: none;
  }
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  right: -110vw;
  width: 100vw;
  height: 100vh;
  background: var(--color-accent);
  z-index: 100;
  transition: transform 0.35s cubic-bezier(.75,0,.22,1);
  box-shadow: -5px 0 32px 0 rgba(30,45,71,0.14);
  overflow-y: auto;
  padding: 30px 20px 15px 30px;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(-110vw);
  right: 0;
  pointer-events: all;
}
.mobile-menu.active {
  right: 0;
  transform: translateX(0);
  pointer-events: all;
}

.mobile-menu-close {
  font-size: 2rem;
  color: var(--color-fun1);
  background: var(--color-white);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  border: 2px solid var(--color-fun1);
  box-shadow: 0 2px 10px 0 rgba(253,92,99,0.10);
  margin-bottom: 16px;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.14s, transform 0.18s;
}
.mobile-menu-close:hover {
  background: var(--color-fun1);
  color: var(--color-white);
  transform: scale(1.11) rotate(-7deg);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.mobile-nav a {
  font-size: 1.18rem;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  color: var(--color-fun4);
  padding: 12px 0 12px 0;
  border-radius: 4px;
  transition: background 0.18s, color 0.17s;
  width: 100%;
}
.mobile-nav a:hover {
  background: var(--color-fun2);
  color: var(--color-fun1);
}

/* =============
   GENERAL LAYOUT
   ============= */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

/* ================
   PLAYFUL DYNAMIC
   ================ */
.hero, section.hero {
  background: linear-gradient(93deg, var(--color-fun2) 0%, var(--color-neutral-bg) 80%);
  border-radius: 24px;
  box-shadow: 0 6px 32px -6px rgba(242, 217, 97, 0.12);
  margin-bottom: 60px;
  padding: 54px 0 48px 0;
  animation: heroPop 0.9s cubic-bezier(.25,.89,.48,1.25);
}
@keyframes heroPop {
  0% { opacity: 0; transform: scale(0.98) translateY(22px); }
  88% { opacity: 1; }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Cards, Feature Items, Service Lists */
.features-grid, .team-grid, .services-list, .resources-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 18px;
}
.feature-item, .service-card, .service-detail, .team-member, .articles, .guides, .news {
  background: var(--color-card);
  border-radius: 18px;
  box-shadow: 0 2px 14px 0 rgba(44,130,201,0.045), 0 4px 20px 0 rgba(225,93,172,0.05);
  padding: 28px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: transform 0.19s cubic-bezier(.57,.21,.69,1.25), box-shadow 0.16s;
  min-width: 250px;
  min-height: 210px;
  margin-bottom: 20px;
}
.feature-item:hover, .service-card:hover, .service-detail:hover, .team-member:hover {
  box-shadow: 0 8px 30px 0 rgba(77,199,239,0.09);
  transform: translateY(-4px) scale(1.035) rotate(-0.7deg);
}

.feature-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  animation: iconBoing 1.4s infinite alternate cubic-bezier(.91,.13,.65,1);
}
@keyframes iconBoing {
  0% { transform: scale(1) rotate(-5deg); }
  100% { transform: scale(1.11) rotate(8deg); }
}
.service-price {
  background: var(--color-fun2);
  color: var(--color-dark);
  padding: 5px 12px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 12px;
  box-shadow: 0 2px 6px 0 rgba(244,211,94,0.14);
}

.services-list, .resources-list {
  gap: 24px;
}
.service-detail {
  min-width: 270px;
  margin-bottom: 20px;
}

.team-grid {
  gap: 24px;
  flex-wrap: wrap;
}
.team-member {
  min-width: 220px;
  min-height: 140px;
}

.articles, .guides, .news {
  flex: 1 1 210px;
}

/* Testimonials Section Styles */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--color-accent);
  box-shadow: 0 3px 18px 0 rgba(46,90,142,0.10);
  border-radius: 18px;
  padding: 24px 24px 18px 24px;
  min-width: 260px;
  min-height: 140px;
  color: var(--color-primary);
  font-size: 1.14rem;
  margin-bottom: 20px;
  text-align: center;
  transition: box-shadow 0.15s, transform 0.13s;
  border-left: 6px solid var(--color-fun1);
  position: relative;
}
.testimonial-card:hover {
  box-shadow: 0 10px 40px 0 rgba(237,92,156,0.08);
  transform: scale(1.027) rotate(-1deg);
  background: var(--color-fun2);
}
.testimonial-card strong {
  color: var(--color-secondary);
}

/* =============
   Lists & Bullets
   ============= */
.value-list, .feature-list, .bullets {
  margin-bottom: 22px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.value-list li, .feature-list li, .bullets li {
  font-size: 1.08rem;
  color: var(--color-primary);
  position: relative;
  padding-left: 30px;
  font-weight: 500;
}
.value-list li:before, .feature-list li:before, .bullets li:before {
  content: "💡";
  position: absolute;
  left: 0;
  font-size: 1.15rem;
  color: var(--color-fun3);
  top: 0;
}

/* ========================
   Section Specific Classes
   ======================== */
.map-embed {
  margin: 20px 0 0 0;
  padding: 20px;
  border-radius: 14px;
  background: var(--color-neural-bg, #f5fafc);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px 0 rgba(77,199,239,0.06);
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.legal-text {
  background: var(--color-accent);
  border-radius: 12px;
  box-shadow: 0 3px 16px 0 rgba(46,90,142,0.04);
  padding: 28px 22px 18px 22px;
  margin-top: 22px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 1rem;
  color: var(--color-primary);
}

/* ============
   FOOTER
   ============ */
footer {
  background: var(--color-footer);
  color: var(--color-white);
  padding: 42px 0 18px 0;
  margin-top: 50px;
  border-radius: 18px 18px 0 0;
  position: relative;
  width: 100%;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-bottom: 22px;
}
.footer-nav a {
  color: var(--color-white);
  font-size: 1.05rem;
  font-weight: 700;
  text-shadow: 0 3px 12px rgba(44,130,201, 0.13);
  transition: text-decoration 0.18s, color 0.15s;
  padding: 5px 11px;
  border-radius: 6px;
}
.footer-nav a:hover {
  color: var(--color-fun2);
  background: var(--color-fun4);
  text-decoration: underline;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.98rem;
  color: var(--color-white);
  align-items: center;
}

/* ===============
   COOKIE BANNER
   =============== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-fun4);
  color: var(--color-white);
  box-shadow: 0 -6px 22px 0 rgba(44,130,201, 0.09);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px 18px 16px;
  transition: transform 0.2s;
}
.cookie-banner.hidden {
  transform: translateY(130%);
  pointer-events: none;
}
.cookie-banner-message {
  font-size: 1.04rem;
  margin-bottom: 10px;
  color: var(--color-white);
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 4px;
}
.cookie-btn {
  padding: 9px 22px;
  border-radius: 20px;
  background: var(--color-fun3);
  color: var(--color-dark);
  border: none;
  font-family: 'Roboto Slab', serif;
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.18s, color 0.18s, transform 0.16s;
  cursor: pointer;
  margin-right: 0;
}
.cookie-btn.accept {
  background: var(--color-fun1);
  color: var(--color-white);
}
.cookie-btn.accept:hover {
  background: var(--color-fun4);
  color: var(--color-white);
}
.cookie-btn.reject {
  background: var(--color-fun2);
  color: var(--color-fun1);
}
.cookie-btn.reject:hover {
  background: var(--color-white);
  color: var(--color-fun1);
}
.cookie-btn.settings {
  background: var(--color-fun3);
  color: var(--color-dark);
}
.cookie-btn.settings:hover {
  background: var(--color-fun4);
  color: var(--color-white);
}

/* Cookie Modal Popup */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, 300%) scale(0.95);
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 24px;
  box-shadow: 0 8px 40px 0 rgba(44,130,201,0.21);
  z-index: 1300;
  min-width: 310px;
  max-width: 98vw;
  max-height: 94vh;
  padding: 40px 22px 32px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 19px;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.27s, opacity .23s;
}
.cookie-modal.show {
  transform: translate(-50%, -50%) scale(1.06);
  pointer-events: all;
  opacity: 1;
}
.cookie-modal h3 {
  color: var(--color-fun4);
  font-family: 'Roboto Slab', serif;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.cookie-modal-category label {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.02rem;
  color: var(--color-dark);
}
.cookie-toggle {
  width: 42px;
  height: 24px;
  background: var(--color-fun2);
  border-radius: 16px;
  cursor: pointer;
  position: relative;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: var(--color-fun1);
  border-radius: 50%;
  transition: left 0.16s, background 0.16s;
}
.cookie-toggle input:checked + .cookie-slider {
  left: 21px;
  background: var(--color-fun3);
}
.cookie-modal-footer {
  width: 100%;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-modal-close {
  background: var(--color-fun1);
  color: var(--color-white);
  font-size: 1.2rem;
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
  align-self: flex-end;
  margin-top: -38px;
  margin-right: -12px;
  border: none;
  transition: background 0.16s, color 0.15s, transform 0.15s;
}
.cookie-modal-close:hover {
  background: var(--color-fun4);
  color: var(--color-white);
  transform: scale(1.12) rotate(-7deg);
}

/* ============
   ANIMATION EFFECTS
   ============ */
a, .main-nav a, .cta-btn, .cookie-btn, .footer-nav a, .mobile-menu-toggle, .mobile-menu-close, .mobile-nav a, .service-card, .service-detail {
  transition: box-shadow .14s, color .16s, background .18s, transform .16s, opacity 0.11s;
}

/* ===============
   RESPONSIVE LAYOUTS
   =============== */
@media (max-width: 1140px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  .features-grid, .team-grid, .services-list, .resources-list, .testimonials {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 22px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.28rem; }

  header, .footer-nav, .contact-details {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .hero, section.hero {
    padding: 38px 0 32px 0;
    border-radius: 16px;
  }
  .section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
  .container {
    padding: 0 8px;
  }
  .content-wrapper, .text-section, .legal-text {
    padding: 0 2px;
  }
  .features-grid, .team-grid, .services-list, .testimonials, .resources-list {
    gap: 16px;
  }
  .feature-item, .service-card, .service-detail, .team-member, .testimonial-card, .articles, .guides, .news {
    min-width: 160px;
    padding: 18px 12px 14px 12px;
    border-radius: 11px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu {
    padding: 18px 4vw 14px 4vw;
  }
}
@media (max-width: 600px) {
  .footer-nav {
    gap: 8px;
    padding: 0 6px;
  }
  .contact-details {
    gap: 4px;
    padding: 0 4px;
  }
  .feature-item, .service-card, .service-detail, .team-member, .testimonial-card {
    min-width: 98px;
    font-size: 0.95rem;
    padding: 13px 7px 10px 7px;
  }
}

/* ================
   UTILITIES & FIXES
   ================ */
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }
.text-center { text-align: center !important; }
.d-flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap !important; }

/* ================
   FOCUS STATES
   ================ */
a:focus, .cta-btn:focus, .footer-nav a:focus, .main-nav a:focus, .cookie-btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus, .mobile-nav a:focus {
  outline: 2px solid var(--color-fun1);
  outline-offset: 2px;
}

/* SPECIAL FLEXBOX PATTERNS (MANDATORY) */
.section {
  margin-bottom: 60px;
  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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ======= END ======= */