/* ===================
   Crimson Falcon CSS
   playful_dynamic style theme
   =================== */
/* CSS RESET & SANITIZER */
html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  font-family: inherit;
}
body {
  min-height: 100vh;
  background: #EFEFEF;
  color: #263238;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #B71C1C;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 600;
}
a:hover, a:focus {
  color: #ea4c89;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}

/* ===================
   TYPOGRAPHY & FONTS
   =================== */
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Comic Sans MS', 'Comic Sans', cursive, sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 18px;
  color: #B71C1C;
  text-shadow: 2px 4px 10px rgba(183,28,28, 0.09), 0 1px 0 rgba(0,0,0,0.04);
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 14px;
  color: #263238;
}
h3 {
  font-size: 1.18rem;
  margin-bottom: 9px;
  color: #B71C1C;
}
h4 {
  font-size: 1rem;
  margin-bottom: 7px;
}
.subheadline {
  font-family: 'Montserrat', 'Comic Sans MS', 'Comic Sans', cursive, sans-serif;
  font-size: 1.2rem;
  color: #00897B;
  font-weight: 700;
  margin-bottom: 16px;
}

strong {
  font-weight: bold;
  color: #B71C1C;
}
em {
  font-style: italic;
}

/* Playful font alternates for headings */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Open+Sans:wght@400;600&display=swap');

/* ===================
   SPACING & LAYOUT
   =================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 20px 0 rgba(183,28,28,0.07), 0 2px 6px 0 rgba(38,50,56,0.06);
  transition: box-shadow 0.3s;
  position: relative;
}
.section:last-child {
  margin-bottom: 32px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.text-section {
  align-items: center;
  text-align: center;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 32px;
}
.card {
  background: #fffdfa;
  margin-bottom: 20px;
  position: relative;
  border-radius: 17px;
  padding: 28px 24px;
  min-width: 240px;
  flex: 1 1 240px;
  box-shadow: 0 2px 12px 0 rgba(38,50,56,0.09);
  transition: box-shadow 0.25s, transform 0.2s;
}
.card:hover,
.card:focus {
  box-shadow: 0 6px 32px 5px rgba(38,50,56,0.16);
  transform: translateY(-5px) scale(1.02) rotate(-1deg);
}
.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;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 1px 12px rgba(38,50,56,0.08);
  margin-bottom: 24px;
  flex: 1 1 320px;
  min-width: 270px;
  color: #222;
}
.testimonial-card p {
  font-size: 1.1rem;
  font-family: 'Montserrat', cursive, sans-serif;
  color: #B71C1C;
  font-weight: 600;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #263238;
  font-weight: 700;
  margin-left: 14px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #ffe1e3;
  border-radius: 17px;
  padding: 24px;
  min-width: 220px;
  min-height: 230px;
  box-shadow: 0 1px 7px #ea4c891a;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 20px;
  position: relative;
}
.feature-item img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  padding: 8px;
  box-shadow: 0 1px 4px #B71C1C11;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.tag-filter {
  background: #fffdfa;
  color: #B71C1C;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 0.99rem;
  margin-top: 11px;
  box-shadow: 0 1px 4px #B71C1C0c;
  display: inline-block;
}

/* ===================
   HEADER & NAVIGATION
   =================== */
header {
  background: #B71C1C;
  border-bottom: 4px solid #ea4c89;
  padding: 0;
  box-shadow: 0 9px 36px #b71c1c0e;
}
.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: 'Montserrat', 'Comic Sans MS', cursive, sans-serif;
  font-weight: 700;
}
.main-nav a {
  color: #fff;
  font-size: 1.05rem;
  border-radius: 11px;
  padding: 9px 16px;
  transition: background 0.2s, color 0.2s, transform 0.14s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #ea4c89;
  color: #fff;
  transform: scale(1.14) rotate(-3deg);
}
.cta-btn {
  display: inline-block;
  font-family: 'Montserrat', 'Comic Sans MS', cursive, sans-serif;
  background: #ea4c89;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border: none;
  padding: 13px 30px;
  border-radius: 22px;
  box-shadow: 0 4px 24px #ea4c891d;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, box-shadow .22s, transform 0.13s;
  margin-left: 18px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #B71C1C;
  color: #fffde2;
  box-shadow: 0 9px 38px #ea4c8928, 0 1px 9px #2221;
  transform: scale(1.08) rotate(2deg);
}
.header-wrapper img {
  width: 125px;
  height: auto;
  vertical-align: middle;
}

/* ===================
    FOOTER
   =================== */
footer {
  background: #263238;
  padding: 32px 0 10px 0;
  color: #fff;
  margin-top: 60px;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}
.footer-nav, .footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 1.03rem;
}
.footer-nav a, .footer-legal a {
  color: #fff;
  opacity: 0.96;
  padding: 4px 9px;
  border-radius: 8px;
  transition: background 0.19s, color 0.14s;
}
.footer-nav a:hover, .footer-legal a:hover {
  background: #ea4c89;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a img {
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 1px 8px #ea4c8918;
  transition: background 0.14s;
}
.footer-social a img:hover {
  background: #ea4c89;
}

/* ===================
   MOBILE MENU
   =================== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  right: 18px;
  top: 18px;
  background: #ea4c89;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2.1rem;
  z-index: 1001;
  cursor: pointer;
  box-shadow: 0 3px 12px #B71C1C19;
  transition: background 0.19s, color 0.13s, transform 0.12s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #d3125f;
  color: #fffde2;
  transform: scale(1.1) rotate(7deg);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fffdfa;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.83,-0.04,.51,1.13);
  z-index: 1102;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 0;
  box-shadow: 0 4px 40px #B71C1C30;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #ea4c89;
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  position: absolute;
  top: 16px;
  right: 16px;
  cursor: pointer;
  z-index: 1111;
  box-shadow: 0 1px 8px #ea4c8918;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #B71C1C;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 64px;
  width: 100vw;
  align-items: flex-start;
  padding-left: 38px;
}
.mobile-nav a {
  color: #B71C1C;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 14px 0 14px 5px;
  border-radius: 9px;
  width: 90vw;
  transition: background 0.17s, color 0.13s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #ea4c89;
  color: #fffdfa;
}

/* Hide desktop nav on mobile, show burger */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .cta-btn {
    margin-left: 0;
  }
  .header-wrapper {
    gap: 12px;
  }
}

/* Ensure mobile nav is always on top */
@media (max-width: 900px) {
  .mobile-menu {
    z-index: 1102;
  }
}

/* ===================
   COOKIE CONSENT BANNER
   =================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fffdfa;
  color: #263238;
  border-top: 3px solid #ea4c89;
  box-shadow: 0 -1px 10px #B71C1C15;
  padding: 26px 18px 24px 18px;
  display: flex;
  align-items: center;
  gap: 28px;
  z-index: 2000;
  justify-content: center;
  animation: cookieFadeIn 0.7s;
}
.cookie-banner.show {
  display: flex;
  animation: cookieSlideUp 0.5s;
}
@keyframes cookieFadeIn {
  from { opacity: 0; transform: translateY(30px); } 
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cookieSlideUp {
  from { opacity: 0; transform: translateY(40px);} 
  to { opacity: 1; transform: translateY(0);}
}
.cookie-banner-text {
  flex: 1;
  font-size: 1.06rem;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-right: 12px;
}
.cookie-banner-btn, .cookie-banner-btn-alt {
  font-family: 'Montserrat', 'Comic Sans MS', cursive, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  padding: 9px 22px;
  border-radius: 16px;
  margin-right: 7px;
  margin-left: 0;
  cursor: pointer;
  transition: background 0.15s, color 0.12s, transform 0.1s;
}
.cookie-banner-btn {
  background: #ea4c89;
  color: #fff;
}
.cookie-banner-btn:hover, .cookie-banner-btn:focus {
  background: #B71C1C;
  color: #fffde2;
  transform: scale(1.06);
}
.cookie-banner-btn-alt {
  background: #fff;
  color: #B71C1C;
  border: 2px solid #ea4c89;
}
.cookie-banner-btn-alt:hover, .cookie-banner-btn-alt:focus {
  background: #ffe1e3;
  color: #B71C1C;
  border: 2px solid #ea4c89;
  transform: scale(1.04);
}

/* Cookie modal overlay */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(38,50,56,0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.cookie-modal.show {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fffdfa;
  padding: 36px 30px 28px 30px;
  border-radius: 20px;
  box-shadow: 0 6px 24px #ea4c8915, 0 2px 6px #26323816;
  max-width: 95vw;
  min-width: 320px;
  width: 370px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  animation: cookiePopIn 0.5s;
}
@keyframes cookiePopIn {
  0% { transform: scale(0.8); opacity: 0; }
  90% { transform: scale(1.03); }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.cookie-modal-title {
  font-family: 'Montserrat', 'Comic Sans MS', cursive, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ea4c89;
}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #B71C1C;
  cursor: pointer;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  transition: background 0.13s;
}
.cookie-modal-close:hover {
  background: #ffe1e3;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cookie-category-label {
  font-size: 1.01rem;
  font-weight: 600;
  color: #263238;
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  background: #d2d8e7;
  border-radius: 13px;
  position: relative;
  transition: background 0.14s;
  margin-left: 7px;
}
.cookie-toggle[aria-checked="true"] {
  background: #ea4c89;
}
.cookie-toggle .cookie-toggle-knob {
  display: block;
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.14s;
}
.cookie-toggle[aria-checked="true"] .cookie-toggle-knob {
  left: 19px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 17px;
  justify-content: flex-end;
  margin-top: 18px;
}

/* ===================
   RESPONSIVENESS
   =================== */
@media (max-width: 1200px) {
  .container {
    max-width: 970px;
  }
  .features-grid, .card-container, .footer-wrapper {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 750px;
  }
  .section {
    margin-bottom: 44px;
    padding: 30px 10px;
  }
  .feature-item, .testimonial-card, .card, .content-grid {
    min-width: 160px;
  }
  .footer-wrapper, .features-grid {
    gap: 15px;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  h1 {font-size: 1.7rem;}
  h2 {font-size: 1.25rem;}
  h3 {font-size: 1.06rem;}
  .section {
    padding: 18px 6px;
    margin-bottom: 25px;
    border-radius: 12px;
  }
  .content-wrapper,
  .features-grid,
  .footer-wrapper,
  .card-container,
  .content-grid,
  .testimonial-list {
    flex-direction: column;
    align-items: stretch;
    gap: 17px;
  }
  .feature-item, .testimonial-card, .card {
    min-width: unset;
    padding: 14px 9px;
    border-radius: 10px;
  }
  .main-nav, .footer-nav {
    flex-direction: column;
    gap: 13px;
  }
  .footer-social {
    gap: 7px;
  }
  .footer-nav, .footer-legal {
    gap: 11px;
  }
  .text-section {
    text-align: left;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

/* Hamburger always shown on small screens */
@media (max-width: 600px) {
  .mobile-menu-toggle {
    display: block;
    top: 9px;
    right: 12px;
  }
  .header-wrapper {
    flex-direction: row;
    gap: 3px;
  }
  .footer-social a img {
    width: 28px;
    height: 28px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    padding: 17px 4px 13px 4px;
    font-size: 0.96rem;
  }
  .cookie-banner-text {
    margin-right: 0;
  }
  .cookie-modal-content {
    padding: 13px 5px 13px 10px;
    min-width: 220px;
    width: 96vw;
    font-size: 1rem;
  }
}

/* ===================
   BUTTONS - Playful Animations
   =================== */
button, .cta-btn, .cookie-banner-btn, .cookie-banner-btn-alt {
  cursor: pointer;
  transition: box-shadow 0.13s, background 0.18s, color 0.18s, transform 0.12s;
}
button:active, .cta-btn:active {
  transform: scale(0.98) rotate(-2deg);
}

/* ===================
   HINT STYLES
   =================== */
.hint {
  font-size: 0.99rem;
  color: #00897B;
  background: #fffdfa;
  border-left: 5px solid #ea4c89;
  border-radius: 9px;
  padding: 14px 17px;
  margin: 23px 0 0 0;
  animation: hintFloat 1.5s 1;
}
@keyframes hintFloat {
  0%{ opacity: 0; transform: translateY(12px);} 100%{ opacity: 1; transform: translateY(0); }
}

/* ===================
   MICRO-INTERACTIONS & ANIMATIONS
   =================== */
.card, .feature-item, .testimonial-card {
  transition: box-shadow 0.23s, transform 0.19s;
}
.card:hover, .feature-item:hover, .testimonial-card:hover {
  box-shadow: 0 8px 38px 0 rgba(38,50,56,0.15);
  transform: translateY(-3px) rotate(-1.5deg) scale(1.04);
}
@media (hover: none) {
  .card:hover, .feature-item:hover, .testimonial-card:hover {
    box-shadow: 0 4px 14px 0 rgba(38,50,56,0.12);
    transform: none;
  }
}

/* ===================
   ACCESSIBILITY/CONTRAST
   =================== */
.testimonial-card {
  background: #fff;
  color: #222;
}
.testimonial-card p, .testimonial-card span {
  color: #222;
}

/* ===================
   MISCELLANEOUS
   =================== */
::-webkit-scrollbar {
  width: 10px; background: #FFE1E3; border-radius: 20px;
}
::-webkit-scrollbar-thumb {
  background: #ea4c89; border-radius: 9px;
}

/* Form elements for playful style on (future forms) */
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 11px;
  padding: 10px;
  border: 1.5px solid #efefef;
  background: #fff;
  margin-bottom: 1.2em;
  box-shadow: 0 2px 12px #efeeee15;
  transition: border 0.12s, box-shadow 0.14s;
}
input:focus, select:focus, textarea:focus {
  border: 2px solid #ea4c89;
  background: #fffdfa;
  outline: none;
  box-shadow: 0 1px 10px #ea4c8922;
}

/* ===================
   DYNAMIC/DECORATIVE ACCENTS
   =================== */
.section::before {
  /* Decorative playful color dot */
  content: '';
  display: block;
  position: absolute;
  top: 10px; right: 13px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #ffe1e3;
  z-index: 0;
  transition: transform 0.2s;
  pointer-events: none;
  opacity: 0.58;
}
.section:hover:before {
  transform: scale(1.22) rotate(-6deg);
  opacity: 0.82;
}
@media (max-width: 768px) {
  .section::before {
    width: 12px; height: 12px; top: 6px; right: 8px;
  }
}

/* Accent underline for playful style */
h2, h3 {
  position: relative;
}
h2::after, h3::after {
  content: '';
  display: block;
  width: 57px;
  height: 3px;
  background: #ea4c89;
  border-radius: 5px;
  position: absolute;
  left: 0;
  bottom: -0.5em;
  opacity: 0.24;
}
@media (max-width: 768px) {
  h2::after, h3::after { width: 38px; }
}


/* =============
   End of playful_dynamic
   ============= */