/* =====================
   Crimson Escape "gradient_modern" CSS
   Modern gradients, professional typography, smooth transitions
   Font stack: Montserrat (display), Roboto (body) - fallback sans-serif
   ONLY FLEXBOX layouts!
   ===================== */

/* ==== CSS RESET & BASE ==== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #222D32;
  background-color: #F1ECE6;
  line-height: 1.65;
  letter-spacing: 0.01em;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #93002A;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-word;
}
a:hover, a:focus {
  color: #222D32;
  outline: none;
}
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 16px;
}
li + li {
  margin-top: 8px;
}

/* ==== TYPOGRAPHY SCALE ==== */
h1, .h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #222D32;
  letter-spacing: -0.01em;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #93002A;
  letter-spacing: -0.01em;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #222D32;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #93002A;
  margin-bottom: 5px;
}
p, .text-section p, blockquote {
  font-size: 1rem;
  margin-bottom: 14px;
  color: #222D32;
}
blockquote {
  font-style: italic;
  color: #222D32;
  border-left: 4px solid #93002A;
  padding-left: 18px;
  background: #fff;
  border-radius: 6px;
  margin-bottom: 12px;
}

/* ==== LAYOUT ==== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.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;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(34,45,50,0.09), 0 1.5px 5px rgba(147,0,42,0.065);
  margin-bottom: 32px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.about-preview, .values-grid, .feature-grid, .offerings-grid, .blog-list, .case-study-teasers {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.values-grid > div, .feature-grid > div, .offerings-grid > div {
  flex: 1 1 220px;
  background: #fff;
  border-radius: 14px;
  padding: 24px 18px 20px 18px;
  box-shadow: 0 2px 15px rgba(34,45,50,0.05);
  transition: box-shadow 0.2s, transform 0.18s;
  position: relative;
  min-width: 210px;
}
.values-grid > div:hover, .feature-grid > div:hover, .offerings-grid > div:hover {
  box-shadow: 0 6px 28px rgba(147,0,42,0.13);
  transform: translateY(-4px) scale(1.02);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 12px 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(34,45,50,0.06);
}
thead {
  background-color: #93002A;
}
th, td {
  padding: 15px 12px;
  text-align: left;
}
th {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
}
tbody tr {
  border-bottom: 1px solid #EEE;
}
tbody tr:last-child { border-bottom: none; }
td {
  font-size: 1rem;
  color: #222D32;
}

/* ========== GRADIENTS & MODERN BACKGROUNDS ========== */
.hero {
  background: linear-gradient(120deg, #93002A 0%, #D33C5B 100%);
  color: #fff;
  padding: 70px 0 65px 0;
  border-radius: 0 0 26px 26px;
  margin-bottom: 48px;
}
.hero h1, .hero h2, .hero p, .hero .btn-primary {
  color: #fff !important;
}
.hero .btn-primary {
  background-color: #fff;
  color: #93002A;
  box-shadow: 0 2px 18px rgba(221,54,91,0.10);
}
.hero .btn-primary:hover, .hero .btn-primary:focus {
  background-color: #F1ECE6;
  color: #222D32;
}

section:not(.hero) {
  background: #F1ECE6;
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #93002A 55%, #D33C5B 100%);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 999px;
  padding: 13px 38px;
  margin-top: 10px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(147,0,42,0.08);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, color 0.16s, transform 0.16s;
  min-width: 170px;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #a01a46 60%, #93002A 100%);
  color: #FFF;
  box-shadow: 0 4px 18px rgba(147,0,42,0.16);
  transform: translateY(-2px) scale(1.03);
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(34,45,50,0.06);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 18px;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  align-items: center;
}
nav a {
  color: #222D32;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.16s, color 0.14s;
}
nav a:hover, nav a:focus {
  background: #F1ECE6;
  color: #93002A;
}
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #93002A;
  cursor: pointer;
  padding: 8px 12px;
  margin-left: 14px;
  border-radius: 8px;
  transition: background 0.16s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #F1ECE6;
}

/* ========== MOBILE MENU (Drawer) ========== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.68,0.01,0.44,1.08);
  box-shadow: -8px 0 24px rgba(147,0,42,0.13);
  max-width: 92vw;
  width: 350px;
  height: 100vh;
opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
opacity: 1 !important;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: none;
  border: none;
  color: #93002A;
  margin: 22px 20px 12px 0;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.14s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #F1ECE6;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 32px 16px 24px;
}
.mobile-nav a {
  color: #222D32;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  padding: 13px 3px;
  border-radius: 9px;
  margin-bottom: 2px;
  transition: background 0.14s, color 0.14s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #F1ECE6;
  color: #93002A;
}

/* =========== FOOTER ============ */
footer {
  background: #222D32;
  color: #fff;
  padding: 40px 0 20px 0;
  border-radius: 36px 36px 0 0;
  margin-top: 45px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 36px;
  justify-content: space-between;
}
footer a, .footer-wrapper nav a {
  color: #fff;
  opacity: 0.94;
  transition: color 0.16s, opacity 0.14s;
}
.footer-wrapper nav a:hover, .footer-wrapper nav a:focus {
  color: #F1ECE6;
  opacity: 1;
}
.social-media-links {
  display: flex;
  gap: 16px;
  align-items: center;
}
.social-media-links a img {
  width: 30px;
  height: 30px;
  filter: grayscale(27%) brightness(1.1);
  transition: filter 0.14s, transform 0.16s;
  border-radius: 50%;
  background: #fff2;
}
.social-media-links a:hover img, .social-media-links a:focus img {
  filter: none;
  background: #93002A11;
  transform: scale(1.1);
}
.small-print {
  font-size: 0.94rem;
  color: #e5e3df;
  margin-top: 26px;
  line-height: 1.5;
  width: 100%;
  word-break: break-all;
}
.footer-wrapper nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===================== COMPONENTS / SECTIONS ===================== */
/* Feature grid, About preview, Offerings grid, etc. */
.feature-grid, .offerings-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.feature-grid > div, .offerings-grid > div {
  flex: 1 1 230px;
  min-width: 215px;
}
.about-preview, .text-section {
  background: #fff;
  border-radius: 13px;
  padding: 22px 18px 19px 18px;
  box-shadow: 0 2px 14px rgba(34,45,50,0.045);
  margin-bottom: 18px;
  max-width: 100%;
}

.client-logos {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 5px;
}

.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.blog-list .text-section {
  flex: 1 1 280px;
  min-width: 220px;
}
.categories-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0 10px 0;
}
.categories-nav a {
  background: #F1ECE6;
  padding: 7px 20px;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #93002A;
  font-size: 1rem;
  margin-bottom: 4px;
  border: 1.3px solid #93002A33;
  transition: background 0.16s, color 0.14s;
}
.categories-nav a:hover, .categories-nav a:focus {
  background: #93002A;
  color: #fff;
}

.search-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.search-filter input {
  border: 1.5px solid #93002A66;
  border-radius: 8px;
  padding: 7px 13px;
  font-size: 1rem;
  transition: border-color 0.18s;
  outline: none;
}
.search-filter input:focus {
  border-color: #93002A;
}

.star-ratings {
  display: flex;
  gap: 5.5px;
  align-items: center;
  margin-top: 2px;
}
.star-ratings img {
  width: 22px;
  height: 22px;
  display: inline-block;
}

/* Case Study Teasers */
.case-study-teasers {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.case-study-teasers .text-section {
  flex: 1 1 260px;
  min-width: 170px;
}

/* =================== COOKIE CONSENT =================== */
.cookie-banner-wrap {
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  z-index: 100000;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
}
.cookie-banner {
  background: #fff;
  color: #222D32;
  width: 100%;
  max-width: 550px;
  margin: 0 auto 22px auto;
  box-shadow: 0 2px 32px rgba(147,0,42,0.07);
  border: 1.5px solid #93002A11;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 30px 24px 20px 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(90%);
  transition: opacity 0.35s, transform 0.32s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner p {
  font-size: 1rem;
  color: #222D32;
  margin-bottom: 0;
}
.cookie-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}
.cookie-btn-accept, .cookie-btn-reject, .cookie-btn-settings {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.16s, color 0.14s, box-shadow 0.17s;
}
.cookie-btn-accept {
  background: linear-gradient(90deg, #93002A 60%, #D33C5B 100%);
  color: #fff;
  box-shadow: 0 2px 7px rgba(147,0,42,0.06);
}
.cookie-btn-accept:hover, .cookie-btn-accept:focus {
  background: #93002A;
  color: #fff;
}
.cookie-btn-reject {
  background: #F1ECE6;
  color: #93002A;
  border: 1.5px solid #93002A30;
}
.cookie-btn-reject:hover, .cookie-btn-reject:focus {
  background: #93002A;
  color: #fff;
}
.cookie-btn-settings {
  background: #fff;
  color: #222D32;
  border: 1.5px solid #222D32;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: #93002A11;
  color: #93002A;
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(34,45,50,0.30);
  z-index: 100001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(0.97);
  background: #fff;
  color: #222D32;
  border-radius: 15px;
  max-width: 420px;
  width: 94vw;
  z-index: 100002;
  box-shadow: 0 9px 48px rgba(34,45,50,0.22);
  padding: 32px 26px 28px 26px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.31s, transform 0.30s;
}
.cookie-modal.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h2 {
  color: #93002A;
  font-size: 1.33rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 11px 0;
}
.cookie-toggle-label {
  font-size: 1rem;
}
.cookie-switch {
  appearance: none;
  width: 48px;
  height: 24px;
  background: #F1ECE6;
  border-radius: 999px;
  position: relative;
  outline: none;
  transition: background 0.14s;
  cursor: pointer;
  border: 1.5px solid #93002A30;
}
.cookie-switch:checked {
  background: #93002A;
}
.cookie-switch:before {
  content: "";
  position: absolute;
  left: 5px; top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 5px rgba(147,0,42,0.13);
  transition: left 0.16s;
}
.cookie-switch:checked:before {
  left: 27px;
}
.cookie-modal-btns {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #93002A;
  position: absolute;
  top: 17px; right: 30px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  opacity: 1;
}

/* ========= RESPONSIVENESS ========= */
@media (max-width:1100px) {
  .footer-wrapper, .feature-grid, .offerings-grid, .case-study-teasers {
    flex-direction: column;
    gap: 28px;
  }
  .footer-wrapper > * {
    min-width: 200px;
  }
}
@media (max-width: 850px) {
  .container, .content-wrapper {
    padding-left: 12px;
    padding-right: 12px;
  }
  .footer-wrapper {
    gap: 18px;
  }
  .hero {
    padding: 40px 0 38px 0;
  }
}
@media (max-width: 768px) {
  /* Make header nav disappear, toggle shows up */
  header .container nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
    z-index: 100;
  }
  .logo img {
    height: 32px;
  }
  .section {
    margin-bottom: 38px;
    padding: 30px 8px;
  }
  .content-wrapper, .feature-grid, .values-grid, .offerings-grid, .blog-list, .case-study-teasers, .footer-wrapper {
    flex-direction: column !important;
    gap: 20px !important;
  }
  .feature-grid > div, .values-grid > div, .offerings-grid > div, .blog-list .text-section {
    min-width: unset;
    width: 100%;
  }
  .testimonial-card {
    padding: 15px;
  }
  .categories-nav {
    gap: 8px;
  }
}
@media (max-width: 520px) {
  .container {
    padding-left: 4px;
    padding-right: 4px;
  }
  .hero {
    padding: 28px 0 22px 0;
  }
  h1, .h1 {
    font-size: 1.8rem;
  }
  h2, .h2 {
    font-size: 1.21rem;
    margin-bottom: 12px;
  }
  .btn-primary {
    font-size: 0.98rem;
    padding: 10px 16px;
    min-width: 112px;
  }
  .footer-wrapper {
    gap: 10px;
  }
  .testimonial-card {
    padding: 10px;
    font-size: 0.98rem;
  }
}

/* === UTILITY CLASSES === */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }

/* ===================
   Accessibility and Focus
   =================== */
a:focus, button:focus, input:focus, .btn-primary:focus, .cookie-btn-accept:focus, .cookie-btn-reject:focus, .cookie-btn-settings:focus {
  outline: 2px solid #93002A;
  outline-offset: 2px;
}

/* CRITICAL FLEX SPACING, PREVENT OVERLAPS */
.feature-grid > div, .values-grid > div, .offerings-grid > div, .blog-list .text-section, .case-study-teasers .text-section {
  margin-bottom: 20px;
}
.testimonial-card:not(:last-child) {
  margin-bottom: 26px;
}
.section:not(:last-child) {
  margin-bottom: 60px;
}

/* ===== ENHANCEMENTS: Transition, micro-interactions, shadow when hovering cards/buttons ===== */
.card, .testimonial-card, .about-preview, .values-grid>div, .feature-grid>div, .offerings-grid>div, .blog-list .text-section {
  transition: box-shadow 0.19s, transform 0.16s;
}
.card:hover, .about-preview:hover, .blog-list .text-section:hover {
  box-shadow: 0 8px 36px 0 rgba(147,0,42,0.07), 0 4px 13px rgba(34,45,50,0.06);
  transform: translateY(-2px) scale(1.01);
}

/* ==================== PRINT SUPPORT (OPTIONAL) ==================== */
@media print {
  header, footer, .cookie-banner-wrap, .mobile-menu { display: none !important; }
  .container { max-width: none; }
}
