/* --- CSS RESET & NORMALIZE --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #212F3C;
  background: #fff;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  background: none;
  outline: none;
}
button {
  cursor: pointer;
  background: none;
}

/* --- VARIABLES (with fallbacks) --- */
:root {
  --color-primary: #212F3C;
  --color-primary-rgb: 33, 47, 60;
  --color-secondary: #F2F4F4;
  --color-accent: #FABB3D;
  --color-accent-rgb: 250, 187, 61;
  --color-black: #181818;
  --color-white: #fff;
  --color-gray: #EAEBEC;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: 0 4px 24px 0 rgba(33,47,60, 0.04);
  transition: box-shadow 0.3s;
}
.section:last-child {
  margin-bottom: 0;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-secondary);
  border-radius: 12px;
  box-shadow: 0 2px 14px 0 rgba(33,47,60, 0.06);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 22px 0 rgba(33,47,60,0.13);
}
.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: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px 0 rgba(33,47,60, 0.06);
  min-width: 0;
  margin-bottom: 20px;
  flex-direction: column;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display), sans-serif;
  color: #181818;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.15rem;
}
p, li, span, div, nav, label {
  font-family: var(--font-body), sans-serif;
  color: #212F3C;
  font-size: 1rem;
  font-weight: 400;
}
strong {
  font-weight: 600;
  color: #181818;
}

/* --- BUTTONS & CTAs --- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 32px;
  background: var(--color-primary, #212F3C);
  color: #fff;
  font-family: var(--font-display), sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 12px 0 rgba(33,47,60, 0.09);
  border: none;
  transition: background 0.21s, color 0.21s, box-shadow 0.21s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #fff;
  color: var(--color-primary);
  outline: none;
  box-shadow: 0 2px 18px 0 rgba(33,47,60, 0.19);
  border: 1.5px solid var(--color-primary);
}

/* --- NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 4px 18px 0 rgba(33,47,60, 0.065);
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 24px;
  min-height: 64px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
header nav a {
  font-family: var(--font-display);
  color: #212F3C;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  font-size: 1.09rem;
}
header nav a:hover, header nav a:focus {
  background: var(--color-gray);
  color: var(--color-primary);
}

header img {
  height: 40px;
  width: auto;
}

/* --- FOOTER --- */
footer {
  background: #fff;
  border-top: 2px solid var(--color-gray);
  padding: 32px 0 16px 0;
  margin-top: 48px;
}
footer .container {
  flex-direction: row;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
footer .content-wrapper {
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
footer nav {
  font-size: 0.98rem;
  color: #232323;
  margin-bottom: 8px;
}
footer nav a {
  color: #232323;
  font-weight: 400;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-primary);
  text-decoration: underline;
}
footer img {
  height: 36px;
  width: auto;
  margin-bottom: 12px;
}
footer div:last-child {
  font-size: 0.94rem;
  color: #5C6269;
}

/* --- LISTS WITH ICONS --- */
ul li, .feature-item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 1rem;
  margin-bottom: 12px;
}
ul li:last-child {
  margin-bottom: 0;
}
ul li img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- STAR RATING --- */
.star-rating {
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  color: #212F3C;
}

/* --- TESTIMONIALS & REVIEWS --- */
.testimonial-card {
  background: #fff;
  color: #181818;
  border-left: 5px solid var(--color-primary);
  margin-bottom: 20px;
  box-shadow: 0 2px 18px 0 rgba(33,47,60, 0.06);
  position: relative;
  min-width: 0;
  padding-bottom: 16px;
}
.testimonial-card p {
  font-size: 1.15rem;
  color: #181818;
  margin-bottom: 8px;
  font-style: italic;
}
.testimonial-card span {
  color: #868686;
  font-size: 1rem;
  margin-top: 0;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 103;
  width: 49px;
  height: 49px;
  background: var(--color-primary);
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px 0 rgba(33,47,60, 0.11);
  transition: background 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #232323;
  outline: none;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  z-index: 104;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(33,47,60, .97);
  transform: translateX(-100%);
  transition: transform 0.39s cubic-bezier(.88,.12,.52,.95);
  padding: 30px 24px;
  box-sizing: border-box;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  color: #fff;
  font-size: 2.2rem;
  z-index: 105;
  border: none;
  padding: 6px 12px;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-accent, #FABB3D);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 60px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.32rem;
  padding: 10px 0;
  border-radius: 7px;
  font-family: var(--font-display);
  font-weight: 500;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #fff;
  color: var(--color-primary);
  outline: none;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1100px) {
  .container {
    max-width: 94vw;
  }
  .content-wrapper {
    gap: 15px;
  }
  .section {
    padding: 30px 6px;
    margin-bottom: 36px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding-left: 6px;
    padding-right: 6px;
  }
  header .container {
    padding: 10px 8px;
  }
}
@media (max-width: 768px) {
  header nav, header .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .container {
    max-width: 100vw;
    padding-left: 2vw;
    padding-right: 2vw;
  }
  .section {
    padding: 22px 4px;
    margin-bottom: 32px;
  }
  .content-wrapper {
    gap: 10px;
  }
  .content-grid,
  .card-container,
  .feature-item {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.25rem;
  }
}
@media (max-width:520px) {
  h1 {font-size:1.25rem;}
}

/* --- COOKIES BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  z-index: 150;
  left: 0;
  right: 0;
  bottom: 0;
  background: #181818ec;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 20px 16px 22px 16px;
  box-shadow: 0 -2px 18px 0 rgba(33,47,60, 0.19);
  gap: 18px;
  animation: fadeInUp 0.55s cubic-bezier(.55,.06,.43,1.02);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner-text {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 10px;
}
.cookie-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 10px 26px;
  border-radius: 28px;
  background: var(--color-white);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  border: none;
  margin-bottom: 0;
  transition: background 0.18s, color 0.18s, box-shadow 0.22s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-accent);
  color: #fff;
  outline: none;
}
.cookie-btn.settings {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #fff;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

/* Cookie preferences modal --- */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 151;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33,47,60,.68);
  align-items: center;
  justify-content: center;
}
.cookie-modal.open {
  display: flex;
  animation: fadeInOverlay 0.38s;
}
@keyframes fadeInOverlay {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  color: var(--color-primary);
  border-radius: 16px;
  max-width: 420px;
  width: 94vw;
  box-shadow: 0 8px 38px 0 rgba(33,47,60, 0.18);
  padding: 40px 22px 28px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
  animation: fadeInUp 0.38s cubic-bezier(.55,.06,.43,1.02);
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  color: var(--color-primary);
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.12s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-accent);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 0;
  font-size: 1.062rem;
}
.cookie-category label {
  font-weight: 500;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-primary);
}
.cookie-category.essential label {
  color: #CCC;
  font-style: italic;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* --- SHADOWS, ROUNDED EFFECTS & HIERARCHY --- */
.card, .testimonial-card {
  box-shadow: 0 2px 14px 0 rgba(33,47,60,.07);
  border-radius: 13px;
  background: #fff;
  transition: box-shadow 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 22px 0 rgba(33,47,60,0.13);
  z-index: 6;
}

/* --- GENERAL SPACING & FLEX GAPS --- */
main > section {
  margin-bottom: 60px;
}
.section h2 {
  margin-bottom: 18px;
}
[role="button"], button, .cta-btn, .cookie-btn {
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
}
main a.cta-btn {
  margin-top: 12px;
}

/* --- UTILITIES --- */
.d-none { display: none !important; }
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }
.gap-20 { gap: 20px !important; }
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.justify-between { justify-content: space-between !important; }

/* --- MICRO-INTERACTIONS --- */
a, .cta-btn, .cookie-btn, button {
  outline: none;
}
a:focus-visible, .cta-btn:focus-visible, .cookie-btn:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* --- ACCENT COLORS HIGHLIGHTS --- */
::selection {
  background: var(--color-accent);
  color: #fff;
}

/* --- OVERRIDES FOR HIGH CONTRAST IN TESTIMONIALS --- */
.testimonial-card {
  background: #fff;
  color: #181818;
  border-left: 5px solid var(--color-primary);
  box-shadow: 0 2px 18px 0 rgba(33,47,60, 0.06);
}
.testimonial-card p, .testimonial-card span {
  color: #181818;
}

/* --- SCROLLBAR STYLING (Optional, can remove for wider compatibility) --- */
::-webkit-scrollbar {
  width: 10px;
  background: var(--color-secondary);
}
::-webkit-scrollbar-thumb {
  background: #c3c3c3;
  border-radius: 6px;
}

/* --- ANIMATION UTILS --- */
.fade-in {
  animation: fadeInUp 0.7s cubic-bezier(.71,.37,.64,.98);
}

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