/* Crimson Star Insights "gradient_modern" Style — Responsive Flexbox CSS */

/* === 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,
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;
}
html {
  line-height: 1.5;
  scroll-behavior: smooth;
  background: #FAFAFD;
}
body {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #2E1337;
  background: linear-gradient(135deg, #F5F8FF 0%, #FAFAFD 100%);
  min-height: 100vh;
}
*, *:before, *:after {
  box-sizing: inherit;
}
ul, ol {
  margin-left: 18px;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: #D72638;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #b01b2a;
}

/* === 2. Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  line-height: 1.15;
  color: #2E1337;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
h4,h5,h6 {
  font-size: 1.1rem;
}
p, li, ol, ul, blockquote {
  font-size: 1rem;
  color: #43204E;
  line-height: 1.6;
}
strong {
  color: #2E1337;
  font-weight: 600;
}

@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
}

/* === 3. Main Layout Containers === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(46, 19, 55, 0.03);
}

/* Gradient backgrounds for hero/CTA */
section:first-of-type, .cta-section {
  background: linear-gradient(90deg, #F5F8FF 60%, #fde4e6 100%);
  border-radius: 24px;
  box-shadow: 0 2px 12px 0 rgba(215, 38, 56, 0.06);
}

/* === 4. Header & Navigation === */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 1px 16px 0 rgba(46,19,55,0.10);
  padding: 0 0 0 0;
  z-index: 1001;
  position: relative;
}
header > a img {
  height: 44px;
  margin: 16px 22px 16px 0;
  vertical-align: middle;
}
header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  position: relative;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-right: auto;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 9px 0 9px 0;
  color: #43204E;
  position: relative;
  transition: color 0.2s;
}
header nav a:hover, header nav a:focus {
  color: #D72638;
}

.btn-primary {
  background: linear-gradient(90deg, #D72638 0%, #A32143 100%);
  color: #fff !important;
  font-family: 'Montserrat',Arial,sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.65em 1.5em;
  border: none;
  border-radius: 28px;
  box-shadow: 0 3px 14px rgba(215, 38, 56, 0.15);
  margin-left: 16px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.14s;
  outline: none;
  display: inline-block;
  position: relative;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #A32143 0%, #D72638 100%);
  box-shadow:0 4px 20px 0 rgba(215, 38, 56, 0.17);
  transform: translateY(-2px) scale(1.03);
}

/* === 5. Mobile Navigation === */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #D72638;
  font-size: 2rem;
  margin-left: 10px;
  cursor: pointer;
  z-index: 1102;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #2E1337;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: linear-gradient(120deg, #FFF 60%, #fde4e6 110%);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.7,0,.3,1);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 6px 32px 0 rgba(46,19,55,0.20);
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #D72638;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1250;
  padding: 12px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 90px;
  margin-left: 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: #2E1337;
  padding: 18px 0;
  border-radius: 16px;
  transition: background 0.18s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F5F8FF;
  color: #D72638;
}
@media (max-width: 1050px) {
  header nav,
  .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 600px) {
  .mobile-nav a {
    font-size: 1.09rem;
    margin-left: 8px;
  }
}

/* === 6. Content Layouts === */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.text-section {
  max-width: 720px;
}
.content-grid, .feature-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;
}
.feature-grid > div {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 10px 0 rgba(46, 19, 55, 0.09);
  padding: 28px 22px 22px 22px;
  flex: 1 1 260px;
  min-width: 230px;
  max-width: 270px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.15s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 24px 0 rgba(215,38,56,0.13);
  transform: translateY(-3px) scale(1.01);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px 0 rgba(46, 19, 55, 0.10);
  margin-bottom: 20px;
  position: relative;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === 7. Testimonials Slider/Card === */
.testimonial-slider {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 8px;
}
.testimonial-card {
  background: #F5F8FF;
  color: #2E1337;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(46, 19, 55, 0.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 390px;
  transition: box-shadow 0.18s, transform 0.13s;
  font-size: 1rem;
}
.testimonial-card:hover {
  box-shadow: 0 3px 24px 0 rgba(215,38,56,0.10);
  transform: scale(1.017);
}
.testimonial-meta {
  font-size: 0.98rem;
  color: #43204E;
  font-style: italic;
}
.star-ratings {
  color: #D72638;
  font-size: 1.2em;
  letter-spacing: 1.1px;
  user-select: none;
}

/* === 8. Lists === */
ul, ol {
  margin: 10px 0 10px 24px;
  padding: 0;
}
li {
  margin-bottom: 10px;
  color: #43204E;
}
ul li::marker {
  color: #D72638;
}

/* === 9. Footer === */
footer {
  background: #F5F8FF;
  padding: 40px 0 10px 0;
  margin-top: 60px;
  box-shadow: 0 -1px 10px rgba(46,19,55,0.05);
  font-size: 1rem;
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
}
footer nav a {
  color: #43204E;
  font-size: 1rem;
  padding: 4px 0;
  font-weight: 500;
  transition: color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: #D72638;
}
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: #9C97AA;
  font-size: 1rem;
  font-weight: 500;
}
.footer-brand img {
  height: 32px;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* === 10. FAQ, CTA, and Misc Sections === */
.faq-link a {
  color: #2E1337;
  font-weight: 500;
  text-decoration: underline;
}
.faq-link a:hover {
  color: #D72638;
}

/* === 11. Responsive Layouts === */
@media (max-width: 900px) {
  .content-grid, .feature-grid, .testimonial-slider, .card-container {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }
  .feature-grid > div, .testimonial-card {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .section {
    padding: 30px 6px;
    margin-bottom: 38px;
  }
  .content-wrapper, .content-grid, .feature-grid, .card-container, .testimonial-slider {
    gap: 15px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.25rem; margin-bottom: 14px; }
  h2 { font-size: 1rem; margin-bottom: 12px; }
  footer .footer-brand span { font-size: 0.94rem; }
}

/* === 12. Cookie Consent Banner and Modal === */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: linear-gradient(90deg, #2E1337 90%, #D72638 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px 18px 18px;
  box-shadow: 0 -3px 24px rgba(46,19,55,0.11);
  z-index: 1400;
  font-size: 1rem;
  gap: 18px;
  animation: cookie-slide-in 0.50s cubic-bezier(.7,0,.3,1);
  border-radius: 22px 22px 0 0;
}
@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent p {
  color: #FFF;
  margin: 0;
  font-size: 1rem;
  flex: 1 1 200px;
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  border-radius: 24px;
  font-family: 'Montserrat',Arial,sans-serif;
  padding: 0.4em 1.2em;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: background 0.16s, color 0.14s;
  outline: none;
  margin: 0;
}
.cookie-btn.primary {
  background: #F5F8FF;
  color: #2E1337;
}
.cookie-btn.primary:hover, .cookie-btn.primary:focus {
  background: #ffeaf6;
  color: #D72638;
}
.cookie-btn.secondary {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  border-color: #F5F8FF;
  background: rgba(245,248,255,0.10);
}
.cookie-btn.settings {
  background: #D72638;
  color: #fff;
  border: none;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #A32143;
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1600;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(46, 19, 55, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  color: #2E1337;
  border-radius: 16px;
  max-width: 370px;
  width: 95vw;
  padding: 24px 22px 22px 22px;
  box-shadow: 0 8px 36px 0 rgba(46, 19, 55, 0.18);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookie-modal-fadein 0.3s;
}
@keyframes cookie-modal-fadein {
  from { transform: scale(0.88); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin: 8px 0;
}
.cookie-category label {
  font-size: 1rem;
  color: #2E1337;
  cursor: pointer;
}
.cookie-toggle {
  width: 38px;
  height: 20px;
  background: #F5F8FF;
  border-radius: 12px;
  position: relative;
  margin-right: 8px;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle span {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #D72638;
  position: absolute;
  top: 1px;
  left: 2px;
  transition: left 0.20s, background 0.18s;
  box-shadow: 0 2px 6px 0 rgba(46, 19, 55, 0.10);
}
.cookie-toggle input:checked + span {
  left: 18px;
  background: #2E1337;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: #D72638;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
}

/* === 13. Micro-interactions and Transitions === */
input, button, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}
button {
  cursor: pointer;
}
input:focus, button:focus, select:focus, textarea:focus {
  outline: 2px solid #D72638;
}

section, .card, .btn-primary, .feature-grid > div, .testimonial-card, .cookie-consent, .cookie-modal {
  transition: box-shadow 0.16s, background 0.20s, transform 0.11s, color 0.14s;
}

/* SHADOWS for cards and sections */
.card, .feature-grid > div, .testimonial-card {
  box-shadow: 0 1px 10px 0 rgba(215,38,56,0.06);
}

/* Hover for feature cards & testimonials already added. */

/* === 14. Utility Classes for Spacing === */
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }

/* === 15. Ensure No Grid or Column Layouts === */
/* No display: grid, grid-*, column-count, columns, column-width, column-gap or break-inside anywhere */

/* === 16. Accessibility: high contrast for testimonials === */
.testimonial-card p,
.testimonial-card .testimonial-meta {
  color: #2E1337;
}

/* === 17. Print-Friendly Minor Fixes === */
@media print {
  header, footer, .mobile-menu, .cookie-consent, .cookie-modal-overlay { display: none !important; }
  .container, .section { box-shadow: none !important; background: #fff !important; }
}

/* === 18. Custom Fonts Loading === */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@700&family=Montserrat:wght@400;500;600;700&display=swap');

/* === END Crimson Star Insights Responsive, Modern, Gradient, Flexbox CSS === */
