/* -------------------------------------------------------
   CSS RESET & NORMALIZATION
------------------------------------------------------- */
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;
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  background: linear-gradient(135deg, #F5F6F7 0%, #E9EFF2 100%);
  color: #232729;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  list-style: none;
}
button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

/* -------------------------------------------------------
   BRAND & TYPOGRAPHY
------------------------------------------------------- */
:root {
  --primary: #232729;
  --secondary: #6A7A87;
  --accent: #FCCF8A;
  --bg-light: #F5F6F7;
  --bg-soft: #E9EFF2;
  --gradient-1: linear-gradient(100deg, #FCCF8A 0%, #6A7A87 100%);
  --gradient-2: linear-gradient(120deg, #6A7A87 0%, #FCCF8A 100%);
  --header-height: 72px;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--primary);
  background: linear-gradient(135deg, var(--bg-light), var(--bg-soft));
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--primary);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.5rem; /* 40px */
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem; /* 32px */
  margin-bottom: 16px;
}
h3 {
  font-size: 1.5rem; /* 24px */
  margin-bottom: 12px;
}
h4 {
  font-size: 1.25rem; /* 20px */
  margin-bottom: 8px;
}
p, li, ol {
  font-size: 1rem;
  color: var(--secondary);
}
p {
  margin-bottom: 20px;
}
a.cta {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  display: inline-block;
  padding: 14px 32px;
  border-radius: 28px;
  background: var(--gradient-1);
  color: var(--primary);
  transition: background 0.35s, box-shadow 0.2s, color 0.2s;
  box-shadow: 0 4px 18px 0 rgba(106, 122, 135, 0.10);
  margin-top: 18px;
}
a.cta.primary {
  background: var(--gradient-2);
}
a.cta:hover, a.cta:focus {
  background: linear-gradient(80deg, #6A7A87 10%, #FCCF8A 95%);
  color: #232729;
  box-shadow: 0 8px 24px 0 rgba(34,39,41,0.10);
  text-decoration: none;
}
strong {
  color: var(--primary);
  font-weight: 600;
}

/* -------------------------------------------------------
   CONTAINER & SECTION LAYOUTS (MANDATORY SPACING)
------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 22px;
  box-shadow: 0 6px 40px 0 rgba(106, 122, 135, 0.05);
  background: #fff;
  transition: box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
section:last-child {
  margin-bottom: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.text-section {
  padding: 0 0 20px 0;
}

/* -------------------------------------------------------
   FLEXBOX CARD & LIST LAYOUTS
------------------------------------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 18px 0 rgba(106, 122, 135, 0.08);
  padding: 24px 18px;
  min-width: 270px;
  flex: 1;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus {
  box-shadow: 0 6px 24px 0 rgba(35, 39, 41, 0.13);
  transform: translateY(-4px) scale(1.015);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.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: #F5F6F7;
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 220px;
  flex: 1 1 250px;
}
@media (max-width: 900px) {
  .feature-item { min-width: 160px; }
}

/* -------------------------------------------------------
   HEADER & NAVIGATION
------------------------------------------------------- */
header {
  width: 100%;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 16px rgba(106,122,135,0.05);
}
header nav {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-height);
  min-height: 64px;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: 28px;
}
header nav > a {
  display: flex;
  align-items: center;
  height: 56px;
}
header nav img {
  height: 38px;
}
header nav ul {
  display: flex;
  flex-direction: row;
  gap: 24px;
}
header nav ul li {
  display: flex;
}
header nav ul li a {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 10px 6px 10px;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
}
header nav ul li a:hover,
header nav ul li a:focus, header nav ul li a.active {
  background: linear-gradient(90deg, #FCCF8A 75%, #E9EFF2 100%);
  color: #232729;
}
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 2.1rem;
  color: var(--primary);
  background: var(--gradient-2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  transition: background 0.12s;
  z-index: 110;
}
.mobile-menu-toggle:active {
  background: var(--gradient-1);
}

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

/* Mobile Nav Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,39,41,0.89);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  pointer-events: none;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.33s cubic-bezier(.55,.66,.72,.93), transform 0.44s cubic-bezier(.33,1,.68,1);
}
.mobile-menu.open {
  pointer-events: all;
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-close {
  background: #fff;
  color: var(--primary);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  margin: 24px 24px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  border: none;
  box-shadow: 0 3px 18px 0 rgba(106,122,135,0.13);
  transition: background 0.22s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #FCCF8A;
  color: #232729;
}
.mobile-nav {
  width: 93%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 35px 0 0 28px;
  gap: 22px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  color: #fff;
  background: none;
  padding: 12px 0;
  border-radius: 8px;
  transition: background 0.19s, color 0.16s;
  width: 100%;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FCCF8A;
  color: var(--primary);
}
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* -------------------------------------------------------
   CARDS, FEATURES, TESTIMONIALS, SPECIFIC SECTIONS
------------------------------------------------------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #F5F6F7;
  border-left: 7px solid var(--accent);
  border-radius: 14px;
  box-shadow: 0 2px 14px 0 rgba(106, 122, 135, 0.07);
  color: #232729;
  transition: box-shadow 0.23s;
  flex-direction: column;
}
.testimonial-card p {
  color: #232729;
  margin-bottom: 7px;
  font-size: 1.05rem;
}
.testimonial-card strong {
  color: #6A7A87;
  font-size: 1rem;
}
/* Features (with icons) */
section ul li img {
  vertical-align: middle;
  margin-right: 10px;
  height: 26px;
  width: 26px;
}
section ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 14px;
}
section ol {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 16px;
  padding-left: 24px;
}
section ol li {
  list-style-position: inside;
  color: var(--secondary);
}

/* -------------------------------------------------------
   FOOTER
------------------------------------------------------- */
footer {
  width: 100%;
  background: #232729;
  color: #fff;
  padding: 36px 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
footer nav {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
footer nav a {
  color: #FCCF8A;
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 5px 7px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
footer nav a:hover, footer nav a:focus {
  background: #FCCF8A;
  color: #232729;
}
.footer-branding {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 11px;
}
.footer-branding img {
  height: 38px;
  margin-bottom: 4px;
}
.footer-branding p {
  font-size: 1rem;
  color: #fff;
}

/* -------------------------------------------------------
   COOKIE CONSENT BANNER
------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 140;
  background: #232729;
  color: #fff;
  padding: 18px 12px 18px 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 18px;
  box-shadow: 0 -2px 20px 0 rgba(35,39,41,0.09);
  font-size: 1rem;
  transition: transform 0.30s cubic-bezier(.65,.35,.55,.9);
}
.cookie-banner.hide {
  transform: translateY(150%);
  pointer-events: none;
}
.cookie-banner .cookie-msg {
  flex: 1 1 auto;
  margin-right: 12px;
}
.cookie-banner .cookie-btn {
  margin-left: 8px;
  padding: 11px 18px;
  border-radius: 25px;
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  background: var(--gradient-1);
  color: var(--primary);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.18s, color 0.14s;
  cursor: pointer;
  box-shadow: 0 2px 14px 0 rgba(255, 207, 138, 0.13);
}
.cookie-banner .cookie-btn.settings {
  background: var(--gradient-2);
}
.cookie-banner .cookie-btn.reject {
  background: #6A7A87;
  color: #fff;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #FCCF8A;
  color: #232729;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 200;
  background: #fff;
  color: var(--primary);
  min-width: 300px;
  width: 94vw;
  max-width: 420px;
  box-shadow: 0 8px 36px 0 rgba(35,39,41,0.18);
  border-radius: 18px;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.3s, transform 0.3s;
  padding: 28px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.85);
}
.cookie-modal h2 {
  font-size: 1.2rem;
  margin-bottom: 9px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  margin-bottom: 9px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--accent);
}
.cookie-modal .cookie-btn {
  margin-top: 11px;
  width: 100%;
  padding: 12px 0;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
.cookie-modal .cookie-note {
  font-size: 0.98rem;
  color: var(--secondary);
}
.cookie-modal .close-modal {
  position: absolute;
  top: 18px;
  right: 21px;
  background: none;
  font-size: 1.3rem;
  color: #6A7A87;
  border: none;
  cursor: pointer;
}

/* -------------------------------------------------------
   RESPONSIVE MEDIA QUERIES (MOBILE-FIRST)
------------------------------------------------------- */
@media (max-width: 1100px) {
  .container {
    max-width: 94%;
    padding-left: 10px;
    padding-right: 10px;
  }
  section {
    border-radius: 18px;
    padding: 32px 12px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .container {
    max-width: 100vw;
    padding-left: 5px;
    padding-right: 5px;
  }
  section {
    margin-bottom: 38px;
    padding: 25px 5px;
    border-radius: 13px;
  }
  .content-wrapper, .content-grid {
    gap: 12px;
  }
  .card-container {
    gap: 12px;
  }
  .feature-item {
    min-width: 100px;
    padding: 11px 6px;
    border-radius: 8px;
  }
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 10px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    font-size: 1rem;
    border-radius: 9px;
    padding: 14px;
  }
}
@media (max-width: 568px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.07rem; }
  .container {
    padding: 0 2px;
  }
  .card-content, .content-wrapper, .content-grid, .text-section {
    padding: 0;
    gap: 6px;
  }
  .card {
    padding: 12px 6px;
    border-radius: 8px;
  }
  .cookie-modal {
    padding: 16px 4px 12px 4px;
    max-width: 98vw;
    min-width: unset;
  }
}

/* -------------------------------------------------------
   MICRO-INTERACTIONS & TRANSITIONS
------------------------------------------------------- */
.card, .feature-item, section, .testimonial-card {
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .feature-item:hover {
  box-shadow: 0 10px 28px 0 rgba(106,122,135,0.18);
  transform: translateY(-3px) scale(1.012);
}
footer nav a, header nav ul li a {
  transition: background 0.18s, color 0.17s;
}

/* -------------------------------------------------------
   MISC: INPUTS, TABLES (if any)
------------------------------------------------------- */
input, textarea, select {
  font: inherit;
  border-radius: 8px;
  border: 1px solid #E9EFF2;
  padding: 10px 14px;
  background: #F5F6F7;
  margin-bottom: 20px;
  color: var(--primary);
  width: 100%;
  box-sizing: border-box;
  transition: border 0.2s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--accent);
  outline: none;
}

/* -------------------------------------------------------
   UTILITY/SPACING CLASSES
------------------------------------------------------- */
.mb-20 { margin-bottom: 20px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mt-20 { margin-top: 20px !important; }
.align-center { align-items: center !important; }
.d-flex { display: flex !important; }
.gap-20 { gap: 20px !important; }
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }

/* -------------------------------------------------------
   FOCUS STATES
------------------------------------------------------- */
a:focus, button:focus, .cta:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1.5px;
}

/* -------------------------------------------------------
   OVERRIDES FOR ACCESSIBILITY/CONTRAST
------------------------------------------------------- */
.testimonial-card, .testimonial-card p, .testimonial-card strong {
  color: #232729 !important;
  background: #F5F6F7 !important;
}

/* -------------------------------------------------------
   END
------------------------------------------------------- */
