/* =========================
   RESET & BASE TYPOGRAPHY
   ========================= */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #232927;
  background: #fff;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
  border: none;
}

/* =========================
   COLOR PALETTE VARIABLES
   ========================= */
:root {
  --color-bg: #fff;
  --color-primary: #232927;
  --color-secondary: #E33C2D;
  --color-accent: #F1F1F1;
  --color-gray: #888;
  --color-dark-gray: #202020;
  --color-border: #ddd;
  --color-shadow: rgba(35,41,39,0.08);
}

/* =========================
   TYPOGRAPHY SCALE
   ========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #232927;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  line-height: 1.18;
}
h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.95rem; }
@media (max-width: 900px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.125rem; }
}
p, ul, ol, blockquote, pre, address {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #232927;
}

/* Subheadline */
.subheadline {
  font-size: 1.25rem;
  color: #232927;
  font-weight: 400;
  margin-bottom: 28px;
  opacity: 0.88;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

/* =========================
   CONTAINERS & REUSABLES
   ========================= */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg);
  border-radius: 18px;
  box-shadow: 0 8px 36px -18px var(--color-shadow);
}
@media (max-width: 700px) {
  .section {
    margin-bottom: 36px;
    padding: 24px 7px;
  }

  .content-wrapper {
    gap: 16px;
  }
}

/* =========================
   HEADER & NAV (
      burger menu, all links)
   ========================= */
header {
  background: #fff;
  border-bottom: 2px solid var(--color-accent);
  position: sticky;
  top: 0;
  z-index: 16;
  width: 100%;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 20px;
  position: relative;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  color: #232927;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: color .17s;
  padding: 8px 2px;
  position: relative;
}
header nav a:hover, header nav a:focus {
  color: var(--color-secondary);
  outline: none;
}

.cta-btn {
  background: var(--color-secondary);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 12px 34px;
  border-radius: 24px;
  border: none;
  text-decoration: none;
  box-shadow: 0 2px 24px -6px var(--color-shadow);
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
  cursor: pointer;
  display: inline-block;
  margin-left: 20px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #C92D20;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 32px -10px var(--color-dark-gray);
}

header img {
  height: 48px;
  width: auto;
}

/* =========================
   MOBILE NAVIGATION
   ========================= */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #232927;
  font-size: 2.2rem;
  cursor: pointer;
  margin-left: 16px;
  z-index: 31;
}
@media (max-width: 900px) {
  header .container nav,
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(35,41,39,0.98);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 32;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.85,-0.01,.24,1.02);
  box-shadow: 0 0 32px -12px #111;
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  align-self: flex-end;
  margin: 34px 34px 18px 0;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100vw;
  gap: 8px;
  margin-left: 42px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
  padding: 12px 0;
  margin-bottom: 8px;
  transition: color 0.16s, background 0.16s;
  width: 100%;
  border-radius: 6px;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  color: var(--color-secondary);
  background: #fff3;
  outline: none;
}
@media (max-width: 500px) {
  .mobile-nav {
    margin-left: 22px;
  }
}

/* =========================
   HERO/BANNER SECTION
   ========================= */
.hero {
  background: linear-gradient(to bottom,#fff 65%,#F1F1F1 100%);
  padding: 0 0 70px 0;
  border-bottom: 2px solid var(--color-accent);
  margin-bottom: 0;
}
.hero .container {
  min-height: 360px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
}
.hero .content-wrapper {
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
}
.hero h1 {
  color: #232927;
  text-shadow: 0 1px 4px #F1F1F1;
  margin-top: 44px;
  margin-bottom: 10px;
}
.hero .subheadline {
  color: #232927;
  opacity: 0.7;
}
.hero .cta-btn {
  margin-top: 12px;
}
@media (max-width: 700px) {
  .hero h1 {
    margin-top: 24px;
    font-size: 2rem;
  }
  .hero .container {
    min-height: 220px;
  }
}

/* =========================
   LAYOUT FLOW:
   Cards, Features, Flex Containers
   ========================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
.card {
  background: #fff;
  margin-bottom: 20px;
  border-radius: 18px;
  box-shadow: 0 6px 32px -15px var(--color-shadow);
  padding: 32px 28px;
  min-width: 260px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.16s, transform 0.13s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 10px 48px -10px #0003;
  transform: translateY(-2px) scale(1.012);
}
.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;
}
.text-image-section > * {
  flex: 1 1 320px;
  min-width: 0;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/* Feature Items & Grids */
.feature-grid, .features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 10px;
}
.feature-item {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 18px -8px #23292718;
  padding: 30px 24px 26px 24px;
  min-width: 220px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  border: 1.5px solid #ececec;
  transition: box-shadow 0.16s, border-color 0.12s;
}
.feature-item:hover,
.feature-item:focus-within {
  box-shadow: 0 7px 34px -10px #23292734;
  border-color: #d4d4d4;
}
.feature-icon {
  font-size: 2rem;
  color: var(--color-secondary);
  margin-bottom: 6px;
}
@media (max-width: 1020px) {
  .feature-grid,
  .features {
    gap: 14px;
  }
  .feature-item {
    padding: 22px 11px;
  }
}

/* =========================
   BLOG PREVIEWS & STORY
   ========================= */
.text-section {
  display: flex;
  flex-direction: row;
  gap: 24px;
  flex-wrap: wrap;
}
.text-section > * {
  flex: 1 1 280px;
  min-width: 0;
}
@media (max-width: 800px) {
  .text-section {
    flex-direction: column;
    gap: 14px;
  }
}
.blog-preview {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px -8px #23292733;
  padding: 18px 18px 16px 18px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 3.5px solid var(--color-secondary);
  transition: box-shadow 0.13s, border-color 0.13s;
}
.blog-preview h3 {
  font-size: 1.08rem;
  margin-bottom: 4px;
}
.blog-preview a {
  color: var(--color-secondary);
  text-decoration: underline;
  font-weight: 600;
  margin-top: 6px;
  font-size: 1rem;
}
.blog-preview a:hover {
  color: #A62010;
}

/* =========================
   FOOTER STYLES
   ========================= */
footer {
  background: #232927;
  color: #fff;
  padding-top: 40px;
  padding-bottom: 36px;
  font-size: 1rem;
  margin-top: 80px;
  border-top: 4px solid var(--color-primary);
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer nav a {
  color: #fff;
  text-decoration: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  padding: 2px 0;
  transition: color 0.16s;
  font-size: 1rem;
  opacity: 0.94;
}
footer nav a:hover,
footer nav a:focus {
  color: var(--color-secondary);
  opacity: 1;
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.96rem;
  color: #fff;
  opacity: 0.82;
}
footer address {
  font-style: normal;
  color: #fff;
  opacity: 0.88;
  margin-bottom: 4px;
}
footer a {
  color: var(--color-secondary);
  text-decoration: underline;
}
@media (max-width: 870px) {
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  footer {
    padding-top: 26px;
    padding-bottom: 30px;
  }
}

/* =========================
   TESTIMONIALS
   ========================= */
.testimonials {
  background: #f7f7f7;
  border-radius: 12px;
  margin-top: 38px;
  box-shadow: 0 6px 24px -12px var(--color-shadow);
  padding-top: 40px;
  padding-bottom: 50px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 3px 18px -6px #23292722;
  border-radius: 14px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.12s;
  border-left: 4px solid var(--color-secondary);
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 7px 24px -4px #23292733;
  transform: translateY(-2px) scale(1.012);
}
.testimonial-card blockquote {
  font-style: italic;
  font-size: 1.11rem;
  color: #232927;
  margin-right: 10px;
  margin-bottom: 0;
  opacity: .98;
  line-height: 1.45;
}
.testimonial-card cite {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 0.93rem;
  font-style: normal;
  color: #232927;
  opacity: .64;
  white-space: nowrap;
}

/* =========================
   FORMS/BUTTONS (if needed)
   ========================= */
input, textarea, select, button {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 7px;
  border: 1px solid #bbb;
  padding: 10px 12px;
  background: #fff;
  color: #232927;
  margin-bottom: 20px;
  transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus, button:focus {
  outline: 2px solid var(--color-secondary);
  border-color: var(--color-secondary);
}
button {
  cursor: pointer;
  font-weight: 700;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  padding: 12px 22px;
  transition: background 0.15s, transform 0.12s;
}
button:hover, button:focus {
  background: #C92D20;
  transform: translateY(-3px) scale(1.02);
}

/* =========================
   LISTS
   ========================= */
ul, ol {
  padding-left: 20px;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 8px;
}

/* =========================
   QUOTES / BLOCKQUOTES
   ========================= */
blockquote {
  font-style: italic;
  padding-left: 18px;
  border-left: 4px solid var(--color-secondary);
  color: #232927;
  background: #f8f8f8;
  border-radius: 8px;
}

/* =========================
   UTILITY CLASSES
   ========================= */
.d-none { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* =========================
   MANDATORY RESPONSIVE RULES
   ========================= */
@media (max-width: 768px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  h1, h2, h3, h4 {
    margin-bottom: 10px;
  }
  .card-container, .feature-grid, .features {
    flex-direction: column;
    gap: 14px;
  }
  .card, .feature-item {
    min-width: unset;
    width: 100%;
    padding: 20px 11px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 10px;
  }
  .footer-info, footer nav {
    align-items: flex-start;
    font-size: 0.88rem;
  }
}

@media (max-width: 500px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.07rem; }
}

/* =========================
   COOKIE CONSENT BANNER
   ========================= */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 100;
  background: #232927;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 24px 24px 24px;
  box-shadow: 0 -4px 32px -6px #23292790;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(60px);
  transition: opacity 0.4s, transform 0.38s cubic-bezier(.85,-0.01,.24,1.02);
}
.cookie-consent-banner.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-consent-text {
  max-width: 520px;
  font-size: 1.01rem;
  color: #fff;
}
.cookie-consent-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 11px 24px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  transition: background 0.14s, transform 0.12s;
}
.cookie-btn.settings {
  background: #fff;
  color: #232927;
  border: 1px solid var(--color-secondary);
  transition: border 0.14s, color 0.12s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #C92D20;
  color: #fff;
  outline: none;
  transform: translateY(-2px) scale(1.01);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #232927;
  color: #fff;
  border: 1px solid #fff;
}

/* =========================
   COOKIE PREFERENCES MODAL
   ========================= */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 150;
  background: rgba(40,40,44,0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  color: var(--color-primary);
  border-radius: 18px;
  box-shadow: 0 6px 42px -5px #23292786;
  padding: 36px 28px;
  min-width: 330px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 26px;
  animation: modalIn 0.44s cubic-bezier(.85,-0.01,.24,1.02);
}
@keyframes modalIn {
  0% { transform: translateY(60px) scale(.98); opacity:0; }
  80% { opacity: 1; transform: translateY(4px) scale(1.012); }
 100% { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal-header {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 8px;
}
.cookie-switch {
  display: inline-block;
  width: 34px; height: 20px;
  position: relative;
}
.cookie-switch input[type='checkbox'] {
  opacity: 0;
  width: 0;height:0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #cecfd1;
  border-radius: 16px;
  transition: background 0.2s;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--color-secondary);
}
.cookie-slider:before {
  position: absolute;
  content: '';
  height: 15px;
  width: 15px;
  left: 2.5px;
  bottom: 2.5px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.23s cubic-bezier(.53,-0.23,.64,2.3);
  box-shadow: 0 2px 6px -2px #aaa5;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(13px);
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.cookie-modal-close {
  background: transparent;
  color: var(--color-secondary);
  font-size: 1.5rem;
  border: none;
  margin-left: auto;
  cursor: pointer;
  margin-top: -16px;
  margin-right: -8px;
}

@media (max-width: 500px) {
  .cookie-consent-banner {
    padding: 16px 7px;
    font-size: 0.94rem;
    gap: 11px;
  }
  .cookie-modal {
    padding: 24px 7px;
    min-width: 160px;
  }
}

/* =========================
   MISC & ANIMATION CLASSES
   ========================= */
a { color: var(--color-secondary); transition: color 0.16s; }
a:hover, a:focus { color: #C92D20; outline: none; }

hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 38px 0 36px 0;
}

/* For accessibility: focus outlines */
:focus-visible {
  outline: 2.5px solid var(--color-secondary) !important;
  outline-offset: 2px;
}

/* Hide main nav on mobile, only show hamburger */
@media (max-width: 900px) {
  header nav,
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle { display: block; }
}
section {
  padding: 20px 0;
}