/* ==========================================================================
   CSS RESET & BASE TYPOGRAPHY
   ========================================================================== */
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,
b, 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #fff;
  color: #222;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
ul, ol {
  list-style-position: outside;
  margin-left: 1.5em;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}

/* ==========================================================================
   BRAND VARIABLES (with fallbacks)
   ========================================================================== */
:root {
  --cv-primary: #A82432;
  --cv-secondary: #fff;
  --cv-accent: #2B2C31;
  --cv-gray-100: #f7f7f7;
  --cv-gray-200: #ededed;
  --cv-gray-300: #dedede;
  --cv-gray-700: #555;
  --cv-black: #1a1a1a;
  --cv-white: #fff;
  --cv-border-radius: 12px;
  --cv-card-shadow: 0 4px 28px rgba(40,40,40,0.06), 0 1.5px 8px rgba(0,0,0,0.06);
  --font-display: 'Montserrat', 'Arial', sans-serif;
  --font-body: 'Roboto', 'Arial', sans-serif;
}

/* ==========================================================================
   LAYOUT STRUCTURE + CONTAINERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  margin: 0 auto;
  max-width: 850px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--cv-secondary);
  border-radius: var(--cv-border-radius);
  box-shadow: var(--cv-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: var(--cv-white);
  border-radius: var(--cv-border-radius);
  box-shadow: var(--cv-card-shadow);
  padding: 32px 24px;
  margin-bottom: 20px;
  flex: 1 1 280px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 16px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 8px 34px rgba(40,40,40,0.13), 0 1.5px 8px rgba(0,0,0,0.09);
}
.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;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--cv-white);
  border-radius: var(--cv-border-radius);
  box-shadow: var(--cv-card-shadow);
  padding: 24px 20px;
  flex: 1 1 220px;
  min-width: 200px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--cv-gray-100);
  box-shadow: var(--cv-card-shadow);
  border-radius: var(--cv-border-radius);
  padding: 20px;
  margin-bottom: 20px;
  max-width: 600px;
}

/* Prevent overlapping */
.testimonial-card + .testimonial-card {
  margin-top: 20px;
}


/* ==========================================================================
   TYPOGRAPHY & HEADINGS
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--cv-black);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  text-rendering: optimizeLegibility;
  font-smooth: always;
}
h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  font-weight: 700;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.18;
  margin-top: 8px;
}
h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 6px;
}

p, ul, ol, span, li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--cv-accent);
  margin-bottom: 6px;
}
p {
  margin-bottom: 14px;
}
strong {
  font-weight: 600;
}
small {
  color: var(--cv-gray-700);
}

/* ==========================================================================
   HEADER/NAVIGATION
   ========================================================================== */
header {
  width: 100%;
  background: var(--cv-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
}
header a img {
  height: 40px;
  width: auto;
  margin-right: 36px;
  margin-left: 0;
}
header nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
header nav a {
  padding: 6px 2px;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--cv-accent);
  font-size: 1rem;
  transition: color 0.16s;
  border-bottom: 2px solid transparent;
}
header nav a:hover,
header nav a:focus {
  color: var(--cv-primary);
  border-bottom: 2px solid var(--cv-primary);
  outline: none;
}
header nav .btn-primary {
  margin-left: 18px;
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cv-primary);
  color: #fff !important;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  padding: 12px 28px;
  border: none;
  border-radius: var(--cv-border-radius);
  box-shadow: 0 2px 8px rgba(40,30,30,0.09);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.22s, transform 0.13s;
  letter-spacing: 0.01em;
  gap: 6px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #791d25;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 22px rgba(160,40,50,0.14);
  outline: none;
}

.btn-secondary {
  background: var(--cv-accent);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: var(--cv-border-radius);
  border: none;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  transition: background 0.16s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #000;
}

.btn-outline {
  background: transparent;
  color: var(--cv-accent);
  border: 2px solid var(--cv-accent);
  border-radius: var(--cv-border-radius);
  padding: 10px 22px;
  transition: border-color 0.16s, color 0.16s, background 0.16s;
  font-family: var(--font-display);
  font-size: 1rem;
}
.btn-outline:hover, .btn-outline:focus {
  background: var(--cv-accent);
  color: #fff !important;
  border-color: var(--cv-accent);
}


/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  background: linear-gradient(80deg, #fff 85%, var(--cv-gray-100) 100%);
  padding: 50px 0 38px 0;
  width: 100%;
  box-shadow: 0 2px 24px rgba(0,0,0,0.08);
  margin-bottom: 46px;
  display: flex;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
  max-width: 700px;
}
.hero h1 {
  color: var(--cv-accent);
  margin-bottom: 8px;
}
.hero p {
  color: var(--cv-gray-700);
  font-size: 1.16rem;
}

/* ==========================================================================
   ICON LISTS
   ========================================================================== */
ul li, ol li {
  position: relative;
  padding-left: 0.5em;
  margin-bottom: 8px;
  line-height: 1.7;
}
.content-wrapper ul li img {
  width: 26px;
  height: 26px;
  margin-right: 0.7em;
  vertical-align: middle;
  display: inline-block;
  filter: grayscale(1) brightness(0.16) contrast(1.4);
}
ul li span {
  margin-left: 10px;
  color: var(--cv-primary);
  font-weight: 600;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: var(--cv-accent);
  color: var(--cv-white);
  padding: 0 0 32px 0;
  width: 100%;
}
footer .container {
  flex-direction: column;
  padding: 24px 20px 0 20px;
}
footer .content-wrapper {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin: 0 auto;
  max-width: 1140px;
}
footer a {
  color: var(--cv-white);
  opacity: 0.93;
  padding: 2px 2px;
  transition: color 0.15s, opacity 0.18s;
  font-size: 1rem;
}
footer a:hover, footer a:focus {
  color: var(--cv-primary);
  opacity: 1;
}
footer nav, footer .text-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
footer .text-section {
  font-family: var(--font-body);
  color: #eaeaea;
  gap: 6px;
  line-height: 1.6;
  font-size: 1rem;
}
footer .content-wrapper > *:not(:first-child) {
  margin-left: 24px;
}
footer nav:last-of-type a {
  font-size: 0.99em;
  color: #c8c8c8;
}
footer nav:last-of-type a:hover {
  color: var(--cv-primary);
}

footer img {
  max-height: 36px;
  margin-bottom: 12px;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonial-card {
  background: var(--cv-gray-100);
  color: var(--cv-accent);
  border-left: 6px solid var(--cv-primary);
  align-items: flex-start;
  box-shadow: 0 2px 12px rgba(41,41,41,0.04);
  font-size: 1.1rem;
}
.testimonial-card p {
  font-size: 1.09rem;
  color: var(--cv-accent);
}
.testimonial-card span {
  font-size: .98rem;
  color: var(--cv-accent);
  font-style: italic;
  align-self: flex-end;
}

/* Ensures testimonial readability (dark text on light background) */
@media (prefers-color-scheme: dark) {
  .testimonial-card {
    background: #fff;
    color: var(--cv-accent);
  }
  .testimonial-card p,
  .testimonial-card span {
    color: var(--cv-accent);
  }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 16px !important; }
.mt-4 { margin-top: 24px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 24px !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

/* ==========================================================================
   RESPONSIVE: MOBILE FIRST
   ========================================================================== */
@media (max-width: 1060px) {
  .container, .content-wrapper, .section { max-width: 100% !important; }
  footer .content-wrapper { flex-direction: column; align-items: flex-start; gap: 24px; }
}
@media (max-width: 900px) {
  .content-wrapper { padding: 0; }
  .section { padding: 28px 3vw; }
}
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .content-wrapper {
    padding: 0 2px;
    gap: 22px;
    max-width: 100%;
  }
  .section {
    padding: 24px 7px;
    margin-bottom: 36px;
    gap: 18px;
  }
  .hero {
    padding: 32px 0 24px 0;
    margin-bottom: 24px;
  }
  .hero .content-wrapper {
    gap: 8px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
  }
  .card, .feature-item {
    padding: 18px 8px;
    min-width: 0;
  }
  .testimonial-card {
    padding: 16px 7px;
    max-width: 100%;
    font-size: 1rem;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ==========================================================================
   MOBILE NAVIGATION & BURGER MENU
   ========================================================================== */
.mobile-menu-toggle {
  display: inline-flex;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--cv-accent);
  padding: 8px 10px;
  margin-left: 16px;
  border-radius: 7px;
  cursor: pointer;
  z-index: 90;
  transition: background 0.14s;
}
.mobile-menu-toggle:hover,.mobile-menu-toggle:focus {
  background: var(--cv-gray-200);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  background: var(--cv-black);
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 250;
  transform: translateX(-110vw);
  opacity: 0;
  transition: transform 0.34s cubic-bezier(.39,1.03,.57,1), opacity 0.25s;
  box-shadow: 4px 0 24px rgba(0,0,0,0.20);
  padding: 0 24px;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  margin: 20px 0 24px 0;
  padding: 5px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.13s;
  z-index: 400;
}
.mobile-menu-close:hover,.mobile-menu-close:focus {
  background: var(--cv-primary);
  outline: none;
}

.mobile-nav {
  display: flex !important;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 0;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.33rem;
  font-family: var(--font-display);
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  letter-spacing: 0.02em;
  transition: color 0.16s, background 0.13s;
  border-radius: 6px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--cv-primary);
  background: rgba(168,36,50,0.07);
  outline: none;
}

@media (min-width: 992px) {
  .mobile-menu-toggle,
  .mobile-menu {
    display: none !important;
  }
}
@media (max-width: 991px) {
  header .container nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .mobile-menu {
    display: flex !important;
  }
}

/* ==========================================================================
   COOKIE CONSENT BANNER & MODAL
   ========================================================================== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: rgba(255,255,255,0.97);
  color: var(--cv-accent);
  border-top: 2px solid var(--cv-primary);
  box-shadow: 0 -2px 16px rgba(30,30,30,0.10);
  z-index: 1900;
  padding: 18px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: bannerIn 0.5s ease;
}
@keyframes bannerIn {
  from { transform: translateY(150%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
#cookie-banner .banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}
#cookie-banner button {
  min-width: 120px;
  padding: 10px 20px;
  font-size: 1rem;
  font-family: var(--font-display);
  border-radius: var(--cv-border-radius);
  border: none;
  cursor: pointer;
  box-shadow: 0 1.5px 6px rgba(40,40,40,0.05);
  transition: background 0.12s, color 0.11s;
}
#cookie-banner .accept {
  background: var(--cv-primary);
  color: #fff;
}
#cookie-banner .accept:hover, #cookie-banner .accept:focus { background: #8d2030; }
#cookie-banner .reject {
  background: #ededed;
  color: var(--cv-accent);
  border: 1px solid #dedede;
}
#cookie-banner .reject:hover, #cookie-banner .reject:focus { background: #dfdfdf; }
#cookie-banner .settings {
  background: transparent;
  color: var(--cv-primary);
  border: 1.5px solid var(--cv-primary);
}
#cookie-banner .settings:hover,.settings:focus {
  background: var(--cv-primary);
  color: #fff;
}

/* Cookie Modal */
#cookie-modal {
  display: none;
  position: fixed;
  z-index: 2200;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(50,50,50,0.37);
  align-items: center;
  justify-content: center;
  animation: modalIn 0.35s;
}
#cookie-modal.open {
  display: flex;
}
@keyframes modalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
#cookie-modal .modal-content {
  background: #fff;
  padding: 38px 26px 28px 26px;
  border-radius: var(--cv-border-radius);
  min-width: 320px;
  max-width: 98vw;
  color: var(--cv-accent);
  box-shadow: 0 7px 29px rgba(41,41,41,0.20);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#cookie-modal .modal-header {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 600;
  margin-bottom: 10px;
}
#cookie-modal .close {
  position: absolute;
  right: 36px;
  top: 22px;
  background: none;
  color: var(--cv-accent);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
}
#cookie-modal .close:hover,#cookie-modal .close:focus {
  background: #ececec;
}
#cookie-modal .category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: var(--cv-gray-200);
  border-radius: var(--cv-border-radius);
  padding: 13px 16px;
  margin-bottom: 9px;
  font-size: 1.04rem;
}
#cookie-modal label.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 23px;
}
#cookie-modal label.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
#cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #cdcdcd;
  border-radius: 22px;
  transition: .3s;
}
#cookie-modal label.switch input:checked + .slider {
  background-color: var(--cv-primary);
}
#cookie-modal .slider:before {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 4px;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
  transition: .3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
#cookie-modal label.switch input:checked + .slider:before {
  transform: translateX(18px);
}
#cookie-modal .category.essential .slider {
  background: #d7d7d7;
  cursor: not-allowed;
}
#cookie-modal .category.essential input {
  pointer-events: none;
}
#cookie-modal button {
  background: var(--cv-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  border: none;
  border-radius: var(--cv-border-radius);
  padding: 12px 24px;
  margin-top: 8px;
  align-self: flex-end;
  transition: background 0.13s;
  cursor: pointer;
}
#cookie-modal button:hover, #cookie-modal button:focus {
  background: #8b1e30;
}

/* Responsive Cookie Banner/Modal */
@media (max-width: 600px) {
  #cookie-banner { padding: 12px 4px 16px 4px; font-size: 0.99em; }
  #cookie-modal .modal-content { padding: 18px 4vw 16px 4vw; min-width: 0; }
  #cookie-modal .close { right: 8px; top: 5px; }
}

/* ==========================================================================
   MICRO-INTERACTIONS/ANIMATIONS
   ========================================================================== */
.card, .feature-item, .testimonial-card, .btn-primary, .btn-outline, .btn-secondary, .mobile-menu, .mobile-nav a, .cookie-banner, #cookie-modal .modal-content {
  transition: box-shadow 0.2s, background 0.16s, color 0.16s, transform 0.15s, opacity 0.18s;
}

.card:hover, .feature-item:hover {
  box-shadow: 0 6px 32px rgba(41,41,41,0.14), 0 1.5px 8px rgba(0,0,0,0.12);
  transform: translateY(-2px) scale(1.014);
}

section a.btn-primary:active {
  transform: scale(.98);
}

/* Focus outlines for accessibility */
a:focus, button:focus {
  outline: 2px solid var(--cv-primary);
  outline-offset: 2px;
}

/* ==========================================================================
   PRINT (optional)
   ========================================================================== */
@media print {
  * { background: #fff !important; color: #111 !important; text-shadow: none !important; box-shadow: none !important; }
  header, footer, .btn-primary, .btn-outline, .mobile-menu, #cookie-banner, #cookie-modal { display: none !important; }
}
