/* ===== CSS RESET & NORMALIZE (MOBILE FIRST) ===== */
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,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background-color: #FFF9F7;
  color: #10343B;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: #B81434;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #92252a;
  text-decoration: underline;
}
ul, ol {
  margin: 0 0 16px 24px;
  padding: 0;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
button, input, select, textarea {
  font: inherit;
  outline: none;
  background: none;
  border: none;
}
input, textarea {
  border-radius: 8px;
  padding: 10px 14px;
  background: #FFF;
  border: 1px solid #E7F6DD;
  margin-bottom: 16px;
}
input:focus, textarea:focus {
  border-color: #B81434;
  box-shadow: 0 0 0 2px #F6B8B8;
}

/* ===== BRAND TYPOGRAPHY FOR "WARM_FRIENDLY" ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #B81434;
  margin-bottom: 8px;
  font-weight: 700;
}
h1 { font-size: 2.35rem; line-height: 1.18; margin-bottom: 16px; }
h2 { font-size: 1.7rem; line-height: 1.2; margin-bottom: 16px; }
h3 { font-size: 1.25rem; line-height: 1.25; margin-bottom: 10px; }
h4, h5, h6 { font-size: 1.1rem; margin-bottom: 8px; }
p, li, ul, ol, address { font-family: 'Roboto', Arial, sans-serif; font-size: 1rem; margin-bottom: 10px; color: #10343B; }
strong, b { font-weight: bold; }

/* ===== BRAND COLORS, BACKGROUNDS AND ACCENTS ===== */
:root {
  --primary: #B81434;
  --primary-dark: #92252a;
  --secondary: #10343B;
  --accent: #E7F6DD;
  --white: #FFF;
  --gray: #F4F1EE;
  --text: #10343B;
  --shadow: rgba(184,20,52,0.10);
  --shadow-strong: rgba(16,52,59,0.13);
}

body {
  background: var(--gray);
  color: var(--text);
}

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER, NAVIGATION & MOBILE MENU ===== */
header {
  background: var(--accent);
  box-shadow: 0 2px 12px var(--shadow);
  position: relative;
  z-index: 99;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px 20px;
  gap: 12px;
}
header a img {
  height: 44px;
  border-radius: 16px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--secondary);
  font-weight: 500;
  font-size: 1rem;
  border-radius: 8px;
  padding: 8px 13px;
  transition: background 0.2s;
}
header nav a:hover, header nav a.active {
  background: #FCE3E8;
  color: var(--primary);
}
.cta-primary {
  background: var(--primary);
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 24px;
  padding: 12px 32px;
  box-shadow: 0 2px 12px var(--shadow);
  font-weight: 700;
  display: inline-block;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--primary-dark);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 5px 22px var(--shadow-strong);
}
.cta-secondary {
  background: var(--secondary);
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 20px;
  padding: 10px 26px;
  font-weight: 600;
  box-shadow: 0 2px 8px var(--shadow);
  display: inline-block;
  margin-top: 14px;
  transition: background 0.19s, box-shadow 0.19s, transform 0.14s;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #274750;
  color: #FFF;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 20px var(--shadow-strong);
}
header .cta-primary { margin-left: 18px; }

/* Hamburger Icon */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #FFF;
  border: none;
  border-radius: 10px;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  margin-left: 8px;
  transition: background 0.18s;
  cursor: pointer;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--primary-dark);
}

/* Hide Mobile Menu Button on Desktop */
@media (min-width: 1001px) {
  .mobile-menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
  header nav { display: flex !important; }
}

/* Mobile Menu Basic Styles */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--accent);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.71,-0.01,.32,1.06);
  box-shadow: 0 2px 22px 0 var(--shadow-strong);
  padding: 0 26px 0 26px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  color: var(--primary);
  background: none;
  border: none;
  margin: 26px 0 14px 0;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.14s;
  padding: 5px 14px;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #FCE3E8;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 30px;
}
.mobile-nav a {
  background: var(--white);
  color: var(--secondary);
  border-radius: 12px;
  padding: 14px 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  box-shadow: 0 2px 8px var(--shadow);
  margin-bottom: 0px;
  transition: background 0.18s, color 0.18s, box-shadow 0.19s;
  min-width: 180px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #FCE3E8;
  color: var(--primary);
  box-shadow: 0 7px 18px var(--shadow-strong);
}

/* Hide desktop navigation on mobile */
@media (max-width: 1000px) {
  header nav {
    display: none;
  }
  header .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* ===== LAYOUT SECTIONS, SPACING, AND UTILITY CLASSES ===== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 8px 28px var(--shadow-strong);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 4px 18px var(--shadow-strong);
  padding: 30px 18px;
  transition: box-shadow 0.19s, transform 0.18s;
  min-width: 260px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 10px 36px var(--shadow-strong);
  transform: translateY(-3px) scale(1.03);
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--accent);
  border-radius: 18px;
  box-shadow: 0 3px 18px var(--shadow);
  margin-bottom: 20px;
  font-size: 1.09rem;
  color: var(--secondary);
}
.testimonial-card p {
  color: var(--secondary);
  margin-bottom: 0;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Utility Classes */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.service-grid, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 18px 0;
}
.service-grid > div, .service-list > div {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 12px var(--shadow-strong);
  padding: 24px 18px 18px 18px;
  min-width: 244px;
  flex: 1 1 240px;
  transition: box-shadow 0.16s, transform 0.16s;
}
.service-grid > div:hover, .service-list > div:hover {
  box-shadow: 0 9px 28px var(--shadow-strong);
  transform: translateY(-3px) scale(1.025);
}
.case-study {
  background: var(--accent);
  border-radius: 13px;
  box-shadow: 0 2px 12px var(--shadow-strong);
  padding: 22px 16px;
  margin-bottom: 18px;
}

/* Footer */
footer {
  margin-top: 40px;
  background: var(--accent);
  padding: 32px 0 18px 0;
  box-shadow: 0 -2px 13px var(--shadow-strong);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.footer-brand img {
  height: 36px;
  border-radius: 8px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}
footer nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.17s;
}
footer nav a:hover { color: var(--secondary); }
footer p {
  text-align: center;
  font-size: 0.95rem;
  color: var(--secondary);
}

/* List Items with Icons */
ul li > img, ol li > img {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  vertical-align: middle;
  display: inline-block;
}
ul li, ol li {
  padding-left: 0;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 9px;
}

/* Address styling */
address {
  font-style: normal;
  color: var(--secondary);
  font-size: 1rem;
  margin-bottom: 10px;
}

/* BUTTONS for cookie banner, etc */
.button, .cookie-banner button {
  background: var(--primary);
  color: #FFF;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 22px;
  padding: 10px 24px;
  pointer-events: auto;
  border: none;
  margin: 0 9px 0 0;
  transition: background 0.18s, box-shadow 0.18s;
  box-shadow: 0 3px 10px var(--shadow);
  cursor: pointer;
}
.button.secondary, .cta-secondary, .cookie-banner .cookie-btn-secondary {
  background: var(--secondary);
  color: #FFF;
}
.button:focus, .button:hover, .cookie-banner button:focus, .cookie-banner button:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 16px var(--shadow-strong);
}

/* ===== COOKIE CONSENT BANNER & MODAL ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #FFF;
  border-top: 4px solid var(--primary);
  box-shadow: 0 -4px 16px var(--shadow-strong);
  padding: 22px 16px 18px 16px;
  width: 100%;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  animation: cookieBannerIn 0.7s cubic-bezier(.71,-0.01,.32,1.06);
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .button,
.cookie-banner button,
.cookie-banner .cookie-btn-secondary {
  margin-top: 7px;
}
.cookie-banner .cookie-btn-secondary {
  background: var(--secondary);
  color: #FFF;
}
.cookie-banner .cookie-btn-tertiary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 10px 22px;
  border-radius: 22px;
  box-shadow: none;
}
.cookie-banner .cookie-btn-tertiary:hover, .cookie-banner .cookie-btn-tertiary:focus {
  background: #FFF0F3;
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.cookie-consent-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(16,52,59,0.34);
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}
.cookie-consent-modal .modal-content {
  background: #FFF;
  border-radius: 22px;
  box-shadow: 0 11px 44px 0 var(--shadow-strong);
  padding: 38px 24px 30px 24px;
  max-width: 430px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  animation: modalFadeIn .35s;
}
@keyframes modalFadeIn {
  from { transform: translateY(3rem) scale(.97); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-consent-modal h2 { margin-bottom: 10px; color: var(--primary); font-size: 1.25rem; }

.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--primary);
  width: 20px; height: 20px;
}
.cookie-category input[disabled] {
  accent-color: #A8A8A8;
}
.cookie-consent-modal .cookie-modal-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 8px;
  width: 100%;
}

/* ===== MICRO-INTERACTIONS ===== */
.section, .card, .testimonial-card, .case-study, .modal-content {
  transition: box-shadow 0.18s, transform 0.13s;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 980px) {
  .container { max-width: 95vw; padding: 0 10px; }
  .section { padding: 24px 8px; }
}
@media (max-width: 768px) {
  .container { max-width: 100vw; }
  .content-grid, .card-container, .service-grid, .service-list {
    flex-direction: column;
    gap: 20px;
  }
  .section {
    padding: 20px 0px;
    border-radius: 12px;
    margin-bottom: 32px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 24px;
  }
  .feature-item {
    gap: 10px;
  }
  .content-wrapper, .text-section {
    gap: 10px;
  }
  .service-grid > div, .service-list > div {
    min-width: 160px;
    padding: 18px 9px 13px 9px;
  }
  .testimonial-card, .case-study {
    padding: 14px 9px;
    margin-bottom: 16px;
  }
  footer .container {
    gap: 10px;
    padding: 0 0px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.32rem; }
  h2 { font-size: 1.05rem; }
  h3, h4, h5 { font-size: 0.95rem; }
  .cta-primary, .cta-secondary, .button {
    font-size: 0.98rem;
    padding: 9px 10vw;
  }
  .mobile-nav a {
    min-width: 120px;
    font-size: 1rem;
  }
  .cookie-consent-modal .modal-content {
    padding: 20px 7px 18px 7px;
    max-width: 95vw;
  }
}

/* ===== ACCESSIBILITY ===== */
:focus {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* ===== ENSURE NO OVERLAPS & Z-INDEX ===== */
.section, .card, .testimonial-card, .case-study {
  position: relative;
  z-index: 1;
}

/* ===== PRINT FRIENDLY ===== */
@media print {
  .cookie-banner, .mobile-menu, .mobile-menu-toggle, header, footer {
    display: none !important;
  }
  body {
    background: #FFF;
    color: #111;
  }
}

/* ===== ANIMATIONS SUPPORT ===== */
.card, .service-grid > div, .service-list > div, .case-study, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.18s;
}

/* ===== END OF CSS ===== */
