/* -----------------------------------------------------------
   Crimson Wave Digital - Elegant Classic CSS Framework
   -----------------------------------------------------------
   - Brand Style: Refined, classic, elegant, timeless
   - ONLY flexbox for all layouts (no grid/columns)
   - Color palette: #66161d (primary), #014059 (secondary), #ffd95d (accent), and neutrals
   - Typographic pairing: Montserrat (display), Roboto (body), both with serif fallbacks
   - Elegant spacing with spacious, airy rhythm
   ----------------------------------------------------------- */

/* CSS RESET & BASE NORMALIZE -------------------------------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', Georgia, serif;
  font-weight: 400;
  color: #222;
  background: #faf7f4;
  line-height: 1.7;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #014059;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #66161d;
  text-decoration: none;
}
ul, ol {
  margin: 0 0 1.5em 1.5em;
  padding: 0;
}
li {
  margin-bottom: 0.5em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, serif;
  color: #222;
  font-weight: 700;
  line-height: 1.17;
  margin-top: 0;
}
h1 { font-size: 2.5rem; margin-bottom: 0.75em; letter-spacing: 1px; }
h2 { font-size: 2rem; margin-bottom: 0.5em; letter-spacing: 0.5px; }
h3 { font-size: 1.35rem; margin-bottom: 0.2em; }
h4 { font-size: 1.1rem; }
p, .subheadline {
  font-size: 1.06rem;
  margin-top: 0;
  margin-bottom: 1.3em;
}
strong, b { font-weight: 600; }


/* CONTAINERS & LAYOUT -------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  max-width: 810px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.stats-section {
  text-align: center;
}

/* SECTION SPACING -------------------------------------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
/* Card Container */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 4px 28px rgba(102,22,29,0.14);
  transform: translateY(-2px) scale(1.012);
}
/* Content Grids */
.content-grid,
.feature-grid,
.case-study-blocks,
.blog-list,
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.case-study-blocks .text-section,
.faq-list .text-section {
  flex: 1 1 250px;
  background: #fff;
  border-radius: 10px;
  padding: 24px 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(1,64,89,0.035);
  text-align: left;
}

/* Text (Image) Section Layouts */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Testimonials -------------------------------------------------- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.testimonial-card {
  background: #faf7f4;
  border-left: 4px solid #66161d;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(1, 64, 89, 0.06);
  padding: 28px 28px;
  min-width: 220px;
  max-width: 390px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  color: #222;
  font-size: 1.1rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 26px rgba(102, 22, 29, 0.08);
  border-left-color: #ffd95d;
}
.testimonial-card p {
  margin: 0 0 8px 0;
  font-style: italic;
}
.testimonial-card span {
  color: #014059;
  font-size: 1rem;
  font-weight: 500;
}

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

/* BLOG CARDS -------------------------------------------------- */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.blog-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  padding: 26px 22px;
  min-width: 220px;
  max-width: 380px;
  flex: 1 1 300px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.19s, transform 0.18s;
}
.blog-card h3 { font-size: 1.21rem; color: #66161d; margin-bottom: 10px; }
.blog-card a {
  align-self: flex-end;
  color: #66161d;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #ffd95d;
  transition: color 0.16s, border-color 0.14s;
  font-size: 1.05rem;
}
.blog-card a:hover {
  color: #014059;
  border-bottom: 1px solid #66161d;
}

/* CTA, BUTTONS, LINKS --------------------------------------------- */
.cta-primary {
  display: inline-block;
  background: #66161d;
  color: #fff;
  font-family: 'Montserrat',Georgia,serif;
  font-size: 1.09rem;
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 28px;
  letter-spacing: 0.05em;
  border: none;
  box-shadow: 0 2px 6px rgba(1,64,89,0.11);
  text-decoration: none;
  transition: background 0.16s, color 0.16s, box-shadow 0.16s, transform 0.18s;
  margin-top: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}
.cta-primary:hover,
.cta-primary:focus {
  background: #014059;
  color: #ffd95d;
  box-shadow: 0 6px 24px rgba(102,22,29,0.16);
  transform: scale(1.03);
}
.button,
input[type=submit],
button {
  font-family: 'Montserrat',Georgia,serif;
  background: #014059;
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, color 0.15s;
}
.button:hover,
input[type=submit]:hover,
button:focus {
  background: #66161d;
  color: #ffd95d;
  outline: none;
}

/* NAVIGATION -------------------------------------------------- */
header {
  background: #fff;
  box-shadow: 0 2px 14px rgba(1, 64, 89, 0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  padding: 16px 0;
}
nav img {
  height: 38px;
  margin-right: 26px;
  flex-shrink: 0;
}
nav a {
  text-decoration: none;
  color: #222;
  font-family: 'Montserrat',Georgia,serif;
  font-size: 1rem;
  margin-right: 6px;
  position: relative;
  font-weight: 500;
  transition: color 0.14s;
  padding: 8px 12px;
  border-radius: 20px;
}
nav a.cta-primary {
  margin-right: 0;
  margin-left: auto;
  box-shadow: none;
}
nav a:not(.cta-primary):hover,
nav a:not(.cta-primary):focus {
  background: #faf7f4;
  color: #014059;
}

/* FOOTER -------------------------------------------------- */
footer {
  background: #f3efe7;
  border-top: 1px solid #edeae4;
  padding: 32px 0 48px 0;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #014059;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.14s;
}
.footer-nav a:hover {
  color: #66161d;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  align-items: center;
  gap: 26px;
  justify-content: center;
}
.footer-contact img {
  height: 34px;
  width: auto;
}
.footer-contact div p {
  margin: 2px 0;
  color: #222;
  font-size: 1rem;
}

/* FEATURE GRID -------------------------------------------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(1, 64, 89, 0.03);
  padding: 28px 32px 24px 32px;
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 285px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  text-align: left;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, border 0.14s;
}
.feature-grid > div:hover {
  box-shadow: 0 5px 22px rgba(102,22,29,0.13);
  border: 1px solid #ffd95d;
}
.feature-grid img {
  height: 38px;
  width: 38px;
  margin-bottom: 6px;
}
.feature-grid h3 {
  color: #66161d;
  font-size: 1.18rem;
  margin: 0 0 2px 0;
}

/* SERVICE/BENEFIT/PROCESS LISTS -------------------------------------------------- */
.service-list,
.benefit-list,
.process-list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
  color: #222;
  font-size: 1.1rem;
}
.benefit-list {
  list-style: square;
}
.process-list {
  list-style: decimal;
}
.service-list li,
.benefit-list li,
.process-list li {
  margin-bottom: 10px;
}

/* CONTACT DETAILS & FAQ LISTS -------------------------------------------------- */
.contact-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 20px 0 10px 0;
  font-size: 1.08rem;
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0;
}
.contact-details img {
  height: 19px;
  width: 19px;
}
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

/* COOKIE CONSENT BANNER & MODAL --------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: rgba(255, 255, 255, 0.98);
  border-top: 2px solid #66161d;
  box-shadow: 0 -2px 18px rgba(1,64,89,0.07);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px 18px 18px 18px;
  flex-wrap: wrap;
  font-family: 'Roboto',serif;
  font-size: 1.04rem;
  animation: fadeInUp 0.5s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  margin: 0;
  max-width: 410px;
  color: #222;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  font-size: 1rem;
  padding: 11px 28px;
  border-radius: 20px;
  font-family: 'Montserrat',Georgia,serif;
  font-weight: 600;
  background: #014059;
  color: #fff;
  border:none;
  box-shadow: 0 1px 3px rgba(1,64,89,0.15);
  margin: 0 2px;
  transition: background 0.17s, color 0.14s;
  cursor: pointer;
}
.cookie-banner button.accept {
  background: #66161d;
}
.cookie-banner button.reject {
  background: #f0e1e1;
  color: #66161d;
}
.cookie-banner button.settings {
  background: #ffd95d;
  color: #222;
}
.cookie-banner button:hover {
  background: #222;
  color: #ffd95d;
}

.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right:0; bottom: 0;
  background: rgba(1,64,89,0.25);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.28s;
}
@keyframes fadeIn {
  from { opacity:0 } to { opacity:1 }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 44px rgba(102,22,29,0.13);
  max-width: 390px;
  padding: 34px 26px 26px 26px;
  position: relative;
  font-family: 'Roboto', serif;
  color: #222;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: slideIn 0.3s;
}
@keyframes slideIn {
  from { transform: translateY(80px); opacity:0; } to { transform: translateY(0); opacity:1; }
}
.cookie-modal h3 {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.32rem;
  color: #014059;
  margin-top: 0;
}
.cookie-modal .cookie-pref-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #f6f4ee;
  padding: 11px 18px;
  border-radius: 10px;
  margin-bottom: 6px;
}
.cookie-modal .category-toggle {
  /* Custom switch */
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: #e4e1da;
  position: relative;
  cursor: pointer;
  transition: background 0.16s;
  display: inline-block;
  vertical-align: middle;
}
.cookie-modal .category-toggle.enabled {
  background: #66161d;
}
.cookie-modal .category-toggle::after {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.14s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.07);
}
.cookie-modal .category-toggle.enabled::after {
  left: 18px;
}
.cookie-modal .category-note {
  color: #a97e7e;
  font-size: 0.96rem;
  margin-left: 12px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.45rem;
  color: #014059;
  cursor: pointer;
  padding: 0;
}
.cookie-modal .close-modal:focus { outline: 2px solid #ffd95d; }

/* Burger Menu (MOBILE) --------------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 24px;
  right: 24px;
  background: #66161d;
  border: none;
  color: #fff;
  font-size: 2.05rem;
  border-radius: 6px;
  width: 47px;
  height: 47px;
  z-index: 101;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.19s, color 0.16s;
  box-shadow: 0 2px 10px rgba(1,64,89,0.18);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #014059;
  color: #ffd95d;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right:0; bottom: 0;
  background: #fff;
  z-index: 20000;
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(0.49,0.15,0.37,1.06);
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  box-shadow: 0 2px 32px rgba(1,64,89,0.17);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #014059;
  font-size: 2rem;
  position: absolute;
  top: 26px;
  right: 29px;
  z-index: 20001;
  cursor: pointer;
  padding: 0;
  transition: color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #66161d;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 90px;
  gap: 30px;
  height: 100vh;
  overflow: auto;
}
.mobile-nav a {
  display: block;
  width: 94vw;
  max-width: 330px;
  background: #faf7f4;
  color: #014059;
  text-align: center;
  font-size: 1.22rem;
  border-radius: 18px;
  padding: 14px 0;
  margin-bottom: 0;
  font-family: 'Montserrat',Georgia,serif;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s, color 0.14s;
  box-shadow: 0 1px 6px rgba(1,64,89,0.11);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #ffd95d;
  color: #66161d;
  outline: none;
}

/* FORM ELEMENTS ----------------------------------------- */
input, textarea, select {
  font-family: 'Roboto',Georgia,serif;
  font-size: 1.04rem;
  border-radius: 6px;
  border: 1.5px solid #edeae4;
  padding: 10px 12px;
  margin-bottom: 18px;
  background: #fff;
  color: #222;
  transition: border-color 0.14s, box-shadow 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: #ffd95d;
  box-shadow: 0 1.5px 8px rgba(255,217,93,0.09);
  outline: none;
}

label {
  font-family: 'Montserrat',Georgia,serif;
  font-size: 1.01rem;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

/* TABLES ----------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 36px 0;
}
th, td {
  border: 1px solid #edeae4;
  padding: 14px 10px;
  font-size: 1.01rem;
}
th {
  background: #faf7f4;
  font-family: 'Montserrat',Georgia,serif;
}

/* UTILITIES ---------------------------------------------- */
.mt-2 { margin-top: 16px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mt-4 { margin-top: 32px !important; }
.mb-4 { margin-bottom: 32px !important; }

/* RESPONSIVENESS ------------------------------------------ */
@media (max-width: 1100px) {
  .container { padding-left: 12px; padding-right: 12px; }
  .feature-grid { gap: 20px; }
}
@media (max-width: 950px) {
  .feature-grid > div,
  .blog-card,
  .testimonial-card {
    min-width: 160px;
    max-width: 98vw;
    padding-left: 18px;
    padding-right: 18px;
  }
  .case-study-blocks .text-section,
  .faq-list .text-section {
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  section, .section {
    padding: 28px 0 28px 0;
  }
  .content-wrapper, .feature-grid, .blog-list, .card-container, .testimonial-slider, .case-study-blocks, .faq-list {
    flex-direction: column;
    gap: 20px;
  }
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-nav {
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
  }
}
@media (max-width: 550px) {
  html { font-size: 14px; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
  .feature-grid > div, .blog-card, .testimonial-card {
    min-width: 140px;
    max-width: 100vw;
    padding-left: 8px;
    padding-right: 8px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 8px 8px 8px;
  }
  .cookie-banner .cookie-actions { gap: 6px; }
}

/* ELEGANT MICRO-INTERACTIONS --------------------------------------- */
.card, .feature-grid > div, .blog-card, .testimonial-card {
  transition: box-shadow 0.2s, transform 0.21s;
  cursor: pointer;
}
.card:hover, .feature-grid > div:hover, .blog-card:hover, .testimonial-card:hover {
  box-shadow: 0 8px 36px rgba(102,22,29,0.1);
  transform: translateY(-2px) scale(1.015);
}

/* VISUAL HIERARCHY: COLOR ACCENTS ----------------------------------- */
h1, h2, h3, h4, h5, h6 { color: #222; }
h1 { color: #66161d; }
h2 { color: #014059; }
.subheadline { color: #014059; font-weight: 500; }

/* MISC -------------------------------------------------- */
::-webkit-scrollbar { width: 9px; background-color: #faf6f5; }
::-webkit-scrollbar-thumb { background: #f0e1e1; border-radius: 7px; }
::-webkit-scrollbar-thumb:hover { background: #ded2ca; }

/* Hide main nav when mobile-menu is open to prevent overlap */
@media (max-width: 1000px) {
  body.mobile-menu-open header nav { display: none !important; }
}
