/* --- CSS RESET & NORMALIZATION --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #FFFFFF;
  font-family: 'Roboto', Arial, sans-serif;
  color: #172E47;
  line-height: 1.6;
  min-height: 100vh;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}
button {
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

/* --- BRAND VARIABLES (with fallbacks for better support) --- */
:root {
  --primary: #172E47;
  --secondary: #E5E7EB;
  --background: #FFFFFF;
  --accent: #A31218;
  --success: #3B873E;
  --shadow: 0 4px 16px rgba(23, 46, 71, 0.07);
  --shadow-hover: 0 8px 24px rgba(23, 46, 71, 0.13);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

/* --- TYPOGRAPHY HIERARCHY --- */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: #172E47;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #172E47;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #172E47;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #172E47;
}
p, li, span, label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #172E47;
}
strong {
  font-weight: 600;
}
em {
  font-style: italic;
}

/* --- CONTAINERS & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0; /* Reset for container itself, sub-layouts add gap */
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px;
  min-width: 260px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: var(--shadow-hover);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: #F6F7F9;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  max-width: 520px;
}
.testimonial-card p {
  color: #172E47;
  font-size: 1.1rem;
}
.testimonial-card span {
  color: #888;
  font-size: 0.95rem;
  font-style: italic;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: stretch;
}
.feature-grid > div {
  flex: 1 1 260px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 20px;
  gap: 12px;
  transition: box-shadow 0.18s;
  min-width: 220px;
}
.feature-grid > div:hover {
  box-shadow: var(--shadow-hover);
}
.feature-grid img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 10px;
}

.text-section,
.text-image-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
ul li:not(:last-child) {
  margin-bottom: 12px;
}


/* --- HERO SECTION --- */
.hero {
  background: #E5E7EB;
  padding: 48px 0 36px 0;
  min-height: 260px;
  margin-bottom: 0;
}
.hero .content-wrapper {
  gap: 20px;
  align-items: flex-start;
}
.hero h1 {
  color: #172E47;
  font-size: 2.7rem;
  margin-bottom: 10px;
}
.hero p {
  color: #23282F;
  font-size: 1.15rem;
  margin-bottom: 16px;
}

/* --- CTA BUTTONS --- */
.cta-btn {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--primary);
  color: #FFF;
  border-radius: var(--radius-md);
  padding: 14px 32px;
  margin-top: 8px;
  margin-bottom: 12px;
  outline: none;
  border: none;
  box-shadow: 0 2px 8px rgba(23,46,71,0.07);
  transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
  letter-spacing: 0.01em;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--accent);
  color: #FFF;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.03);
}

/* --- HEADER & NAVIGATION --- */
header {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 8px rgba(23,46,71,0.05);
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  gap: 28px;
  padding: 16px 20px;
}
header a img {
  display: block;
  height: 38px;
  width: auto;
  margin-right: 24px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 4px 8px;
  color: #172E47;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  font-weight: 500;
}
header nav a:hover, header nav a:focus {
  background: var(--secondary);
  color: var(--accent);
}
header .cta-btn {
  margin-left: auto;
  margin-right: 0;
}
header .mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #FFF;
  font-size: 1.75rem;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-left: 24px;
  border: none;
  transition: background 0.18s, box-shadow 0.18s;
}
header .mobile-menu-toggle:hover,
header .mobile-menu-toggle:focus {
  background: var(--accent);
  box-shadow: 0 4px 16px rgba(132,21,24,0.07);
}

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(242,244,247, 0.98);
  z-index: 2000;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.7,.3,.2,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 28px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 26px;
  background: var(--accent);
  color: #FFF;
  font-size: 2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: none;
  transition: background 0.2s;
  z-index: 2100;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--primary);
  color: #FFF;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 68px;
  width: 100vw;
  padding: 0 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 500;
  padding: 14px 0;
  color: var(--primary);
  display: block;
  transition: background 0.16s, color 0.16s;
  border-radius: var(--radius-md);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--accent);
}

@media (max-width: 992px) {
  header nav {
    display: none;
  }
  header .cta-btn {
    display: none;
  }
  header .mobile-menu-toggle {
    display: flex;
  }
  .content-wrapper {
    gap: 20px;
  }
}

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


/* --- SECTIONS & FEATURE BLOCKS --- */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: #FFF;
}
@media (max-width: 600px) {
  section {
    padding: 30px 0;
    margin-bottom: 36px;
  }
}

/* --- CARDS --- */
.card, .feature-grid > div {
  box-shadow: var(--shadow);
  background: #FFF;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
}
.card:hover, .feature-grid > div:hover {
  box-shadow: var(--shadow-hover);
}

/* --- LISTS --- */
ul, ol {
  padding-left: 1.2em;
}
ul li {
  list-style: disc inside;
  color: #172E47;
  font-size: 1rem;
  margin-bottom: 12px;
  line-height: 1.7;
}
ul li strong {
  font-weight: 600;
  color: #172E47;
}

/* --- FOOTER --- */
footer {
  background: #F6F7F9;
  border-top: 1px solid #E5E7EB;
  margin-top: 40px;
  padding: 38px 0 20px 0;
  font-family: 'Roboto', Arial, sans-serif;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding: 0 20px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 8px;
}
footer nav a {
  color: #172E47;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 3px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  font-weight: 500;
}
footer nav a:hover, footer nav a:focus {
  background: #E5E7EB;
  color: var(--accent);
}
.footer-contact {
  color: #6D7D92;
  font-size: 0.99rem;
  margin-bottom: 8px;
}
.footer-contact p {
  margin-bottom: 6px;
}
footer small {
  font-size: 0.95rem;
  color: #ABB3BE;
  margin-top: 10px;
}

/* --- COOKIE CONSENT (BANNER & MODAL) --- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 3000;
  background: #F6F7F9;
  color: #172E47;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px 28px 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px);
  transition: opacity 0.22s, transform 0.26s cubic-bezier(.92,.13,.15,.93);
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.cookie-banner p {
  flex: 1 1 200px;
  color: #172E47;
  font-size: 1rem;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  padding: 8px 22px;
  margin: 0 2px;
  border: none;
  outline: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.17s;
  box-shadow: none;
  cursor: pointer;
}
.cookie-btn.accept {
  background: var(--primary);
  color: #FFF;
}
.cookie-btn.accept:hover {
  background: var(--accent);
}
.cookie-btn.reject {
  background: #E5E7EB;
  color: #172E47;
}
.cookie-btn.reject:hover {
  background: #d1d6dd;
}
.cookie-btn.settings {
  background: #FFF;
  border: 1px solid #E5E7EB;
  color: #172E47;
}
.cookie-btn.settings:hover {
  border: 1px solid var(--primary);
  background: #F6F7F9;
}
/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3500;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(23,46,71, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  max-width: 430px;
  min-width: 270px;
  width: 92vw;
  padding: 36px 28px 28px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookieModalIn 0.35s cubic-bezier(.82,.12,.14,.97);
}
@keyframes cookieModalIn {
  0% { transform: scale(0.97) translateY(30px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal .close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--accent);
  color: #FFF;
  border-radius: 50%;
  border: none;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.cookie-modal .close:hover { background: var(--primary); }
.cookie-modal h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal ul {
  list-style: none;
  margin-top: 10px;
  margin-bottom: 10px;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  margin-bottom: 14px;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #E5E7EB;
  border-radius: 22px;
  position: relative;
  outline: none;
  transition: background 0.17s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: var(--accent);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFF;
  box-shadow: 0 1px 5px rgba(23,46,71,0.09);
  transition: left 0.16s;
}
.cookie-toggle:checked:before {
  left: 19px;
}
.category-label {
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Roboto', Arial, sans-serif;
}
.essential-label {
  color: #6e7b8a;
  font-size: 0.98rem;
  font-style: italic;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
  }
  .feature-grid > div {
    width: 100%;
    min-width: 0;
  }
  .content-grid {
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  h1, .h1 {
    font-size: 2rem;
  }
  h2, .h2 {
    font-size: 1.25rem;
    margin-bottom: 14px;
  }
  .hero {
    padding: 32px 0 20px 0;
    min-height: 140px;
  }
  .content-wrapper, .footer-contact {
    gap: 16px;
  }
  .section {
    margin-bottom: 38px;
    padding: 30px 10px;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 14px 10px;
  }
  .feature-grid {
    gap: 14px;
  }
  .feature-grid > div {
    padding: 16px 10px;
  }
  .card {
    padding: 16px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 0 8px;
  }
  header .container {
    padding: 9px 8px;
    gap: 13px;
  }
  .footer-contact p {
    font-size: 15px;
  }
  .cookie-banner {
    left: 2vw;
    right: 2vw;
    bottom: 10px;
    padding: 15px 7vw 11px 7vw;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}


/* --- MICROINTERACTIONS & DETAILS --- */
.feature-grid > div:active, .card:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 2px 10px rgba(23,46,71,0.06);
}
.testimonial-card {
  border-left: 4px solid var(--accent);
}
.testimonial-card span {
  color: #5A6371;
}
.content-wrapper > .testimonial-card:last-child {
  margin-bottom: 0;
}

/* --- MISC --- */
::-webkit-scrollbar {
  width: 12px;
  background: #E5E7EB;
}
::-webkit-scrollbar-thumb {
  background: #cdd4de;
  border-radius: 6px;
}

input, textarea, select {
  border-radius: var(--radius-sm);
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  padding: 8px 12px;
  font-size: 1rem;
  margin-bottom: 16px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  background: #FFF;
}

/* --- ACCESSIBLE FOCUS STYLES --- */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus, input:focus {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
}

/* --- Z INDEX LAYERING --- */
header { z-index: 100; }
.mobile-menu { z-index: 2000; }
.cookie-banner { z-index: 3000; }
.cookie-modal-overlay { z-index: 3500; }

/* --- UTILS --- */
.hide { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.align-center { align-items: center; }

/*--- End CSS ---*/
