/* =========================
   CSS RESET & BASE 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, 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;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  background: #F1FAEE;
  color: #1D3557;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: #1D3557; text-decoration: none; font-weight: bold; transition: color 0.18s; }
a:hover, a:focus { color: #B0121B; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 8px; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  color: #1D3557;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
h1 { font-size: 2.5rem; line-height: 1.13; }
h2 { font-size: 2rem; line-height: 1.18; }
h3 { font-size: 1.3rem; line-height: 1.2; }
h4, h5, h6 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
p { margin-bottom: 16px; }
strong, b { font-weight: 700; }
blockquote {
  border-left: 6px solid #B0121B;
  padding: 16px 24px;
  background: #F1FAEE;
  font-size: 1.2rem;
  font-style: italic;
  font-family: 'Montserrat', sans-serif;
  color: #1D3557;
  margin: 16px 0 24px 0;
}

/* ===============================
   BRAND COLORS & TYPOGRAPHY SCALE
   =============================== */
:root {
  --primary: #1D3557;
  --secondary: #F1FAEE;
  --accent: #B0121B;
  --shadow: 0 1.5px 12px 0 rgba(29,53,87,0.07);
  --radius: 18px;
  --radius-small: 8px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ================================
   LAYOUT CONTAINERS & SPACING
   ================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 0;
}
/* MANDATORY SECTION SPACING */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  position: relative;
  z-index: 1;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.text-section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 24px 32px 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
/* Content grid/flex layouts */
.feature-grid,
.card-container,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
  margin-top: 16px;
  margin-bottom: 8px;
}
.content-grid { gap: 20px; justify-content: space-between; }
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.card-container {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius-small);
  box-shadow: var(--shadow);
  position: relative;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px 0 rgba(29,53,87,0.08);
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
  border: 2.5px solid #F1FAEE;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 32px 0 rgba(29,53,87,0.15);
  transform: translateY(-4px) scale(1.02);
  border-color: #B0121B;
}
.testimonial-meta {
  font-family: var(--font-display);
  color: #1D3557;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 6px;
  opacity: 0.76;
}

/* MARGIN BETWEEN ALL CONTENT CARDS */
.feature-grid > div,
.card-container > div,
.content-grid > div {
  margin-right: 0;
  margin-bottom: 20px;
}

/* =====================
   HEADER & NAVIGATION
   ===================== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 16px 0 rgba(29,53,87,0.06);
  z-index: 40;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-height: 80px;
  padding: 0 20px;
}
.logo { display: flex; align-items: center; gap: 12px; z-index: 3;}
.logo img {
  height: 48px;
  width: auto;
  display: block;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
nav a {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.5px;
  padding: 6px 8px;
  border-radius: 7px;
  transition: color 0.15s, background 0.19s;
  color: #1D3557;
}
nav a:hover,
nav a:focus {
  background: #F1FAEE;
  color: #B0121B;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #B0121B;
  color: #fff;
  border: none;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: var(--radius);
  padding: 12px 34px;
  box-shadow: 0 2px 16px 0 rgba(176,18,27,0.08);
  cursor: pointer;
  margin-left: 20px;
  transition: background 0.19s, color 0.19s, box-shadow 0.22s, transform 0.14s;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #1D3557;
  color: #fff;
  box-shadow: 0 6px 28px 0 rgba(29,53,87,0.16);
  transform: translateY(-2px);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #1D3557;
  cursor: pointer;
  z-index: 51;
  margin-left: 28px;
  transition: color 0.19s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: #B0121B;
}

/* ===== MOBILE MENU SLIDE ====*/
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100vh;
  background: #fff;
  z-index: 10001;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.8,0,.2,1);
  box-shadow: -4px 0 32px 0 rgba(29,53,87,0.16);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 32px;
  padding-left: 32px;
  padding-right: 16px;
  gap: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  background: none;
  border: none;
  color: #B0121B;
  cursor: pointer;
  margin-bottom: 24px;
  margin-left: auto;
  margin-right: 6px;
  transition: color 0.12s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #1D3557;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin-top: 10px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: #1D3557;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 12px 0 12px 0;
  border-bottom: 1px solid #F1FAEE;
  width: 100%;
  display: block;
  border-radius: 0;
  letter-spacing: 0.7px;
  transition: background 0.14s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F1FAEE;
  color: #B0121B;
}

/* Hide desktop nav, show burger on mobile */
@media (max-width: 968px) {
  nav { display: none; }
  .btn-primary { margin-left: 0; }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ===============
   HERO SECTIONS
   =============== */
section:first-of-type {
  background: linear-gradient(95deg,#FFF 60%,#F1FAEE 110%);
}
section:first-of-type .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
section .btn-primary {
  margin-top: 16px;
}
section h1, section h2 {
  color: #1D3557;
}


/* ==============
   FEATURE CARDS
   ============== */
.feature-grid > div {
  background: #fff;
  border-radius: var(--radius-small);
  box-shadow: var(--shadow);
  padding: 30px 22px;
  flex: 1 1 288px;
  min-width: 260px;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 15px;
  border-left: 8px solid #B0121B;
  position: relative;
  transition: box-shadow 0.16s, border-color 0.19s, transform 0.13s;
}
.feature-grid > div img {
  width: 48px; height: 48px; margin-bottom: 14px;
  background: #F1FAEE;
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 1px 8px 0 rgba(29,53,87,0.06);
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 7px 28px 0 rgba(176,18,27,0.12);
  border-left: 8px solid #1D3557;
  transform: translateY(-3px) scale(1.025);
}

/* ============================
   BUTTONS & INTERACTIVES
   ============================ */
.btn-primary, .btn {
  border-radius: var(--radius);
  border: none;
  background: #B0121B;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 2px 16px 0 rgba(176,18,27,0.10);
  transition: background 0.18s, box-shadow 0.14s, color 0.12s, transform 0.16s;
  padding: 12px 34px;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:focus-visible, .btn:focus-visible { outline: 3px solid #E63946; }
.btn-primary:hover, .btn-primary:focus, .btn:hover, .btn:focus {
  background: #1D3557;
  color: #fff;
  box-shadow: 0 8px 36px 0 rgba(29,53,87,0.13);
  transform: translateY(-2px);
}

/* ==============
   FOOTER
   ============== */
footer {
  background: #1D3557;
  color: #F1FAEE;
  font-family: var(--font-body);
  width: 100%;
  padding: 48px 0 32px 0;
  box-shadow: 0 -4px 32px 0 rgba(29,53,87,0.07);
  margin-top: 32px;
}
footer .container { gap: 18px; }
footer nav {
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  display: flex;
}
footer nav a {
  color: #F1FAEE;
  font-size: 0.98rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin-right: 8px;
  margin-left: 8px;
}
footer nav a:hover, footer nav a:focus {
  color: #B0121B;
  text-decoration: underline;
}
.footer-contact {
  font-size: 1rem;
  opacity: 0.85;
  text-align: center;
  margin-bottom: 8px;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.9px;
  text-align: center;
  color: #F1FAEE;
}

/* =======================
   FORMS, INPUTS (for future)
   ======================= */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 9px 15px;
  border-radius: var(--radius-small);
  border: 2px solid #dde6f0;
  margin-bottom: 18px;
  background: #fff;
  transition: border 0.14s, box-shadow 0.16s;
  box-shadow: 0 2px 8px 0 rgba(29,53,87,0.04);
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #B0121B;
  box-shadow: 0 8px 36px 0 rgba(176,18,27,0.15);
}

/* ===========================
   COOKIE CONSENT BANNER & MODAL
   =========================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20000;
  background: #fff;
  box-shadow: 0 -1.5px 24px 0 rgba(29,53,87,0.16);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 18px 30px;
  border-radius: 24px 24px 0 0;
  margin: 0 20px 16px 20px;
  justify-content: space-between;
  min-height: 70px;
  font-size: 0.99rem;
  animation: slideUpFadeIn 0.3s;
}
@keyframes slideUpFadeIn { 0% { opacity: 0; transform: translateY(72px);} 100% { opacity: 1; transform: none;}}
.cookie-banner__controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
.cookie-banner button {
  border: none;
  outline: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-small);
  padding: 10px 26px;
  cursor: pointer;
  margin: 0 3px;
  box-shadow: 0 1.5px 8px 0 rgba(176,18,27,0.08);
  transition: background 0.16s, color 0.11s, box-shadow 0.19s;
}
.cookie-banner .accept {
  background: #1D3557;
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #B0121B;
}
.cookie-banner .reject {
  background: #B0121B;
  color: #fff;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #F1FAEE;
  color: #1D3557;
}
.cookie-banner .settings {
  background: #F1FAEE;
  color: #1D3557;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #1D3557;
  color: #fff;
}
@media (max-width: 680px) {
  .cookie-banner{ flex-direction: column; align-items: flex-start; padding: 22px 14px; }
  .cookie-banner__controls { flex-direction: column; gap: 10px; align-items: stretch; width: 100%;}
}

/* Cookie Modal Overlay */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(29,53,87,0.66);
  z-index: 21000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.35s;
}
.cookie-modal.open { display: flex; }
@keyframes fadeIn{ 0% { opacity: 0; } 100% { opacity: 1; } }
.cookie-modal__content {
  background: #fff;
  border-radius: 22px;
  padding: 38px 30px 30px 30px;
  width: 96vw;
  max-width: 420px;
  box-shadow: 0 12px 64px 0 rgba(29,53,87,0.16);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal__close {
  position: absolute;
  top: 12px; right: 22px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #B0121B;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus { color: #1D3557; }
.cookie-modal__title {
  font-family: var(--font-display);
  color: #1D3557;
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 6px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #1D3557;
}
.cookie-modal__category label {
  font-size: 1rem;
  font-weight: 700;
}
.cookie-toggle {
  appearance: none;
  width: 44px;
  height: 24px;
  background: #fde8ea;
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.19s;
}
.cookie-toggle:checked {
  background: #B0121B;
}
.cookie-toggle::before {
  content: "";
  position: absolute;
  left: 2px; top: 2px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.17s;
  box-shadow: 0 1.2px 4px 0 rgba(176,18,27,0.08);
}
.cookie-toggle:checked::before {
  left: 22px;
}
/* Essential cookies always enabled */
.cookie-modal__category.essential .cookie-toggle {
  opacity: 0.6;
  pointer-events: none;
}
.cookie-modal__actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 10px;
  align-items: center;
  justify-content: flex-end;
}
.cookie-modal__actions button {
  padding: 10px 20px;
  border-radius: 7px;
  border: none;
  background: #1D3557;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.16s, color 0.13s;
}
.cookie-modal__actions button.secondary {
  background: #F1FAEE;
  color: #1D3557;
}
.cookie-modal__actions button.secondary:hover, .cookie-modal__actions button.secondary:focus {
  background: #B0121B; color: #fff;
}
.cookie-modal__actions button:hover, .cookie-modal__actions button:focus {
  background: #B0121B;
}

/* ===========================
   ICONS & IMAGE ADJUSTMENTS
   =========================== */
ul img, li img, p img {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  vertical-align: middle;
  opacity: 0.85;
  position: relative;
  top: -2px;
}

/* ===============
   RESPONSIVE DESIGN
   =============== */
@media (max-width: 1024px) {
  .feature-grid > div, .card {
    min-width: 220px;
    padding: 18px 10px;
    font-size: 0.97em;
  }
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .card-container, .content-grid {
    gap: 16px;
  }
  section {
    padding: 28px 6px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }
  .container {
    padding-left: 4px;
    padding-right: 4px;
  }
  .content-wrapper, .text-section {
    padding: 20px 8px;
  }
  section {
    padding: 18px 3px;
    margin-bottom: 38px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 1.10rem; }
  h2 { font-size: 1rem; }
  .feature-grid > div, .card, .text-section {
    padding: 12px 5px;
    font-size: 0.97rem;
  }
  footer {
    padding: 32px 0 18px 0;
  }
}
@media (max-width: 420px) {
  .footer-brand, .footer-contact { font-size: 0.89rem; }
  .cookie-banner { margin-left: 2px; margin-right: 2px; padding: 7px 2px; }
}

/* ====================
   ADDITIONAL EFFECTS
   ==================== */
section { transition: background 0.36s; }
.card, .feature-grid > div, .testimonial-card {
  transition: box-shadow 0.18s, border-color 0.22s, transform 0.19s;
}

/* GEOMETRIC SHAPE EFFECTS (Modern Accents) */
section:before {
  content: '';
  position: absolute;
  top: -30px; left: -35px;
  width: 110px;
  height: 90px;
  background: #F1FAEE;
  border-radius: 32% 52% 12% 12% / 20% 52% 12% 48%;
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
  display:none;
}
section:nth-child(even):before { background: #B0121B; opacity: 0.10; left: unset; right: -40px; display:none; }
@media (min-width: 900px)  { section:before, section:nth-child(even):before { display:block; } }

/* ===============
   TYPOGRAPHY HIERARCHY
   =============== */
h1, .main-title {
  font-family: var(--font-display);
  font-weight: 900;
  color: #1D3557;
  letter-spacing: -1px;
}
h2 {
  font-size: 2rem;
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 10px;
}
h3 {
  font-size: 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
}

/* ===============
   ACCESSIBILITY/CONTRAST
   =============== */
.testimonial-card, .testimonial-card p, .testimonial-card .testimonial-meta {
  color: #1D3557 !important;
  background: #fff;
}
.testimonial-card p {
  font-size: 1.04rem;
  font-family: var(--font-body);
}
.testimonial-meta { color: #1D3557; opacity: 0.76; font-weight: 700;}

/* Extra: Smooth Focus Ring */
a:focus-visible, .btn-primary:focus-visible, .btn:focus-visible {
  outline: 3px solid #E63946 !important;
  outline-offset: 3px;
}

/* Hide outline on mouse click but not on keyboard nav */
:focus:not(:focus-visible) { outline: none !important; }

/* =======
   PRINT
   =======*/
@media print {
  header, footer, .cookie-banner, .cookie-modal { display: none !important; }
  body, section, .container, .content-wrapper, .text-section {
    box-shadow: none !important;
    background: #fff !important;
    color: #000 !important;
  }
}
