/* -------------------- CSS RESET & NORMALIZE -------------------- */
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, menu, nav,
output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  box-sizing: border-box;
  height: 100%;
}

body {
  min-height: 100vh;
  background: #fff;
  color: #263238;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

* {
  box-sizing: inherit;
}

img {
  max-width: 100%;
  display: block;
  border: 0;
}
a {
  color: #EE3636;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #EE3636;
  outline-offset: 2px;
}
a:hover, a:active {
  color: #263238;
}

ul, ol {
  list-style-position: outside;
  padding-left: 1.4em;
  margin-bottom: 1.2em;
}
li {
  margin-bottom: 0.3em;
}
strong {
  font-weight: bold;
}
em {
  font-style: italic;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', Georgia, Times, serif;
  color: #263238;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  line-height: 1.1;
}
h1 { font-size: 2.8rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.35rem; margin-bottom: 8px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
.subtitle {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  color: #263238;
  opacity: 0.8;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

blockquote {
  font-style: italic;
  border-left: 5px solid #EE3636;
  padding-left: 18px;
  color: #263238;
  margin: 0 0 8px 0;
  background: transparent;
}
blockquote footer {
  font-size: 1rem;
  color: #263238;
  font-style: normal;
  margin-top: 6px;
  letter-spacing: 0.01em;
}


/* -------------------- CONTAINER & LAYOUT -------------------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 18px 0 rgba(38, 50, 56, 0.07);
  position: relative;
}

/* Cards and Grids (Flex Only) */
.card-container,
.feature-grid,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(38, 50, 56, 0.07);
  margin-bottom: 20px;
  padding: 28px 22px 18px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 250px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.testimonial-card {
  background: #f9ebcf;
  color: #263238;
  border-radius: 14px;
  box-shadow: 0 1px 12px 0 rgba(38, 50, 56, 0.11);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  min-width: 220px;
  transition: box-shadow 0.25s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(38, 50, 56, 0.13);
}
.testimonial-card blockquote {
  background: none;
}
.testimonial-card p {
  font-size: 1.05rem;
  font-family: 'Lora', serif;
}

/* Geometric Decorations */
.card::before,
.testimonial-card::before {
  content: '';
  display: block;
  position: absolute;
  top: -18px;
  left: -18px;
  width: 42px;
  height: 42px;
  background: #ee3636;
  border-radius: 0 16px 0 0;
  opacity: 0.11;
  z-index: 0;
  pointer-events: none;
}
.testimonial-card::before {
  left: auto;
  right: -18px;
  background: #263238;
  opacity: 0.09;
  border-radius: 0 0 16px 0;
}

@media (max-width: 768px) {
  .card-container,
  .feature-grid,
  .card-grid,
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .section {
    padding: 25px 6px;
    margin-bottom: 38px;
  }
  .testimonial-card {
    flex-direction: column;
    padding: 16px 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* -------------------- HEADER & NAV -------------------- */

header {
  background: #fff;
  border-bottom: 2.5px solid #f9ebcf;
  width: 100%;
  position: relative;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  gap: 32px;
  min-height: 72px;
  justify-content: space-between;
}
header nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
header nav a {
  color: #263238;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 6px 7px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: #f9ebcf;
  color: #EE3636;
}
header .btn-primary {
  margin-left: 18px;
}
header img {
  height: 44px;
  width: auto;
  margin-right: 5px;
}

/* Burger menu – hidden on desktop */
.mobile-menu-toggle {
  display: none;
  background: #EE3636;
  color: #fff;
  border: none;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
  transition: background 0.16s, box-shadow 0.15s;
  z-index: 5002;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #263238;
  color: #F9EBCF;
  box-shadow: 0 2px 6px rgba(38,50,56,.12);
}

/* -------------------- MOBILE MENU OVERLAY -------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: #263238;
  z-index: 5001;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.36s cubic-bezier(.75,0,.25,1), opacity 0.29s cubic-bezier(.67,0,.33,1);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: start;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  transition: transform 0.32s; /* Snappy in */
}
.mobile-menu-close {
  margin: 26px 24px 0 auto;
  background: none;
  border: none;
  color: #F9EBCF;
  font-size: 2.2rem;
  cursor: pointer;
  align-self: flex-end;
  z-index: 5010;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 36px;
  align-items: flex-start;
  padding: 0 36px;
}
.mobile-nav a {
  color: #F9EBCF;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 8px 0;
  border-radius: 0;
  width: 100%;
  transition: color 0.22s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #EE3636;
}

@media (max-width: 991px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header .btn-primary {
    display: none;
  }
}

@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
}

/* -------------------- BUTTONS -------------------- */
.btn-primary, .btn-primary:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 14px 34px;
  background: #EE3636;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  cursor: pointer;
  transition: background 0.21s, box-shadow 0.15s, color 0.22s;
  box-shadow: 0 2px 12px 0 rgba(238,54,54,0.14);
  margin-top: 14px;
  margin-bottom: 14px;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: #263238;
  color: #F9EBCF;
  box-shadow: 0 4px 16px 0 rgba(38,50,56,0.18);
  outline: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: #F9EBCF;
  color: #263238;
  border: 2px solid #EE3636;
  border-radius: 11px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.08rem;
  cursor: pointer;
  font-weight: 700;
  margin: 4px 4px 4px 0;
  transition: background 0.15s, color 0.15s, border 0.18s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #EE3636;
  color: #fff;
  border: 2px solid #263238;
}

.btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: transparent;
  color: #263238;
  border: 1.5px solid #f9ebcf;
  border-radius: 9px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.98rem;
  cursor: pointer;
  margin: 4px 4px 4px 0;
  transition: background 0.13s, border 0.18s, color 0.14s;
}
.btn-tertiary:hover, .btn-tertiary:focus {
  background: #f9ebcf;
  border: 1.5px solid #ee3636;
  color: #ee3636;
}


/* -------------------- FOOTER -------------------- */
footer {
  background: #263238;
  color: #f9ebcf;
  padding: 38px 0 0 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 16px 0 18px 0;
}
footer nav a {
  color: #f9ebcf;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 0 2px;
  opacity: 0.92;
  transition: color 0.17s, opacity 0.17s;
}
footer nav a:hover, footer nav a:focus {
  color: #EE3636;
  opacity: 1;
}
footer img {
  height: 38px;
  margin-bottom: 8px;
  width: auto;
}
.contact-footer {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 26px;
  margin-bottom: 24px;
  font-size: 1rem;
}
.contact-footer span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.contact-footer img {
  height: 19px;
  width: auto;
}

@media (max-width: 768px) {
  .contact-footer {
    flex-direction: column;
    gap: 12px;
  }
  footer .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* -------------------- PAGE SPECIFIC -------------------- */
ul.contact-data {
  display: flex;
  flex-direction: column;
  gap: 17px;
  list-style-type: none;
  margin-bottom: 26px;
  margin-left: 0;
  padding-left: 0;
}
ul.contact-data li {
  display: flex;
  align-items: center;
  font-size: 1.12rem;
  gap: 10px;
}
ul.contact-data img,
.contact-footer img {
  flex-shrink: 0;
}

.cta-message {
  background: #f9ebcf;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 18px 0;
  font-size: 1.04rem;
  color: #263238;
}

.text-section h2,
.text-section h3 {
  margin-top: 18px;
}
.text-section {
  margin-bottom: 14px;
}

/* -------------------- LISTS -------------------- */
.content-wrapper > ul,
.content-wrapper > ol {
  margin-bottom: 18px;
}
.content-wrapper > ul > li strong {
  color: #EE3636;
}

/* Responsive font fixes */
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .card,
  .testimonial-card { min-width: 150px; }
  .btn-primary { padding: 12px 14px; font-size: 1rem; }
}

/* -------------------- COOKIE CONSENT BANNER -------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #263238;
  color: #f9ebcf;
  box-shadow: 0 -2px 20px rgba(38,50,56,0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 23px 20px 17px 18px;
  z-index: 6000;
  font-size: 1.05rem;
  transition: transform 0.26s ease, opacity 0.18s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner-message {
  flex: 1 1 220px;
  min-width: 140px;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.cookie-banner .btn-primary {
  padding: 7px 21px;
  font-size: 1rem;
  border-radius: 11px;
  margin: 0;
}
.cookie-banner .btn-secondary {
  padding: 7px 13px;
  font-size: 1rem;
  border-radius: 8px;
  background: transparent;
  border-color: #f9ebcf;
  color: #f9ebcf;
}
.cookie-banner .btn-secondary:hover,
.cookie-banner .btn-secondary:focus {
  background: #f9ebcf;
  color: #263238;
}
.cookie-banner .btn-tertiary {
  border: none;
  background: none;
  color: #F9EBCF;
  font-size: 1rem;
  text-decoration: underline;
  padding: 5px 5px;
}
.cookie-banner .btn-tertiary:hover,
.cookie-banner .btn-tertiary:focus {
  color: #EE3636;
  background: transparent;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 17px 8px 10px 8px;
    font-size: 0.97rem;
    gap: 9px;
  }
  .cookie-banner .cookie-banner-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
}

/* COOKIE MODAL */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 6500;
  inset: 0;
  background: rgba(38,50,56,0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.cookie-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #263238;
  border-radius: 20px;
  box-shadow: 0 8px 44px 0 rgba(38,50,56,0.21);
  padding: 34px 28px 28px 28px;
  max-width: 405px;
  width: 94vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  position: relative;
  transform: translateY(33px) scale(1.08);
  opacity: 0;
  transition: opacity 0.28s, transform 0.25s;
}
.cookie-modal-backdrop.active .cookie-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.cookie-modal h2,
.cookie-modal h3 {
  margin-bottom: 9px;
  font-size: 1.1rem;
}
.cookie-modal .btn-secondary {
  margin-top: 18px;
}
.cookie-modal .cookie-category {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.cookie-modal .cookie-toggle {
  width: 34px;
  height: 20px;
  border-radius: 12px;
  background: #f9ebcf;
  border: 2px solid #ee3636;
  position: relative;
  cursor: pointer;
  transition: border 0.15s;
}
.cookie-modal .cookie-toggle.enabled {
  background: #ee3636;
  border: 2px solid #263238;
}
.cookie-modal .toggle-handle {
  position: absolute;
  top: 2px;
  left: 2px;
  background: #fff;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  box-shadow: 0 1.5px 3px rgba(0,0,0,0.11);
  transition: left 0.18s;
}
.cookie-modal .cookie-toggle.enabled .toggle-handle {
  left: 15px;
}
.cookie-modal .cookie-category.essential .cookie-toggle {
  pointer-events: none;
  opacity: 0.67;
}
.cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 18px;
  background: none;
  border: none;
  color: #263238;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 10;
  transition: color 0.17s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #ee3636;
}

@media (max-width: 460px) {
  .cookie-modal {
    padding: 17px 5vw 17px 5vw;
    max-width: 98vw;
  }
}

/* -------------------- ANIMATIONS AND MICRO-INTERACTIONS ------------ */
.btn-primary, .btn-secondary, .btn-tertiary, .mobile-menu-toggle, .mobile-menu-close, .cookie-banner .btn-primary {
  transition: background 0.18s, color 0.18s, box-shadow 0.16s, border 0.15s;
}
.card, .testimonial-card {
  transition: box-shadow 0.25s, transform 0.16s;
}
.card:hover {
  box-shadow: 0 4px 22px 0 rgba(38,50,56,0.11);
  transform: translateY(-3px) scale(1.008) rotate(-0.4deg);
}

/* Micro geometric borders for cards */
.card h3::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 3px;
  background: #EE3636;
  margin-left: 9px;
  border-radius: 2px;
  vertical-align: middle;
}

/* Feature Grid Cards */
.feature-grid > div {
  background: #F9EBCF;
  box-shadow: 0 1px 9px 0 rgba(221,212,192,0.24);
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 22px 20px 22px;
  min-width: 200px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 220px;
  gap: 8px;
  border: 2.5px solid #fff;
  margin-right: auto;
  margin-left: auto;
}
.feature-grid img {
  width: 40px;
  height: auto;
  margin-bottom: 7px;
}

@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 17px;
  }
  .feature-grid > div {
    min-width: 140px;
    padding: 16px 12px;
  }
}

/* -------------------- ACCESSIBILITY & VISIBLE FOCUS -------------------- */
a, .btn-primary, .btn-secondary, .btn-tertiary, .mobile-menu-toggle, .mobile-menu-close, .cookie-modal-close {
  outline: none;
}
a:focus-visible, .btn-primary:focus-visible, .btn-secondary:focus-visible, .btn-tertiary:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible, .cookie-modal-close:focus-visible {
  box-shadow: 0 0 0 3px #F9EBCF, 0 0 0 6px #EE3636;
}

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