/* ================================================
   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;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #fff;
  color: #222;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
}
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: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  outline: none;
  box-sizing: border-box;
  appearance: none;
}
button {
  cursor: pointer;
}

/* ================================================
   VARIABLES (with fallbacks)
   ================================================ */
:root {
  --color-bg: #fff;
  --color-bg-dark: #1a1a1a;
  --color-primary: #283046;
  --color-secondary: #86939b;
  --color-accent: #f6f5f0;
  --color-text: #161616;
  --color-text-alt: #fff;
  --color-muted: #e9e9e9;
  --color-card: #fff;
  --color-card-dark: #222228;
  --color-border: #dddddd;
  --shadow-md: 0 4px 24px 0 rgba(40,48,70,0.10);
  --shadow-card: 0 2px 8px 0 rgba(40,48,70,0.07);
  --radius: 11px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

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

/* ================================================
   HEADER & NAVIGATION
   ================================================ */
header {
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 10px 0 rgba(40,48,70,0.04);
}
header .container {
  min-height: 68px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.logo {
  display: flex;
  align-items: center;
  height: 58px;
  margin-right: 20px;
}
.logo img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: background 0.16s, color 0.16s;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-accent);
  color: #111;
}
.main-nav .cta {
  background: var(--color-primary);
  color: var(--color-text-alt);
  padding: 8px 24px;
  margin-left: 4px;
  box-shadow: var(--shadow-md);
  transition: background 0.18s, color 0.16s, box-shadow 0.18s;
}
.main-nav .cta:hover,
.main-nav .cta:focus {
  background: #111116;
  color: var(--color-accent);
  box-shadow: 0 6px 18px 0 rgba(40,48,70,0.13);
}

/* Hide standard nav on mobile */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
}

/* ================================================
   MOBILE MENU (BURGER / SLIDING NAVIGATION)
   ================================================ */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: var(--color-text-alt);
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  border: none;
  margin-left: auto;
  transition: background 0.15s, color 0.15s;
  z-index: 300;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #111;
  color: var(--color-accent);
}
@media (max-width: 992px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-bg);
  box-shadow: 0 6px 36px 0 rgba(40,48,70,0.13);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  z-index: 5000;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.65,.05,.36,1), opacity 0.2s;
}
.mobile-menu.active {
  pointer-events: all;
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  color: var(--color-primary);
  background: none;
  padding: 18px 22px;
  border: none;
  margin-bottom: 12px;
  z-index: 10;
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #111;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 32px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 500;
  color: var(--color-primary);
  padding: 14px 2px;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.12s, color 0.15s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #fff;
  background: var(--color-primary);
  border-radius: var(--radius);
}

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

/* ================================================
   MAIN STRUCTURE & SECTIONS
   ================================================ */
main {
  width: 100%;
  padding-top: 0;
  background: var(--color-bg);
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  display: flex;
  flex-direction: column;
}
section > .container {
  gap: 28px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
  margin-top: 10px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1.02rem;
  font-family: var(--font-body);
}

@media (max-width: 768px) {
  section {
    padding: 28px 8px;
    margin-bottom: 40px;
  }
  .content-wrapper {
    gap: 20px;
  }
}

/* ================================================
   TYPOGRAPHY & HEADINGS
   ================================================ */
h1, h2, h3 {
  font-family: var(--font-display);
  color: #111216;
  margin-bottom: 18px;
}
h1 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.18;
  color: var(--color-primary);
  margin-bottom: 22px;
}
h2 {
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #101217;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: 0.008em;
  color: #121218;
}
h4, h5, h6 {
  color: #151519;
  font-family: var(--font-display);
}
p, ul, ol {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
  font-family: var(--font-body);
  margin-bottom: 14px;
}
strong {
  font-weight: 600;
  color: #000;
}

.text-section ul li,
.content-wrapper ul li {
  margin-bottom: 9px;
  color: #23252a;
  line-height: 1.7;
}
.text-section ul,
.content-wrapper ul,
.text-section ol,
.content-wrapper ol {
  margin-left: 14px;
  padding-left: 6px;
}

/* Links Inside Content */
.content-wrapper a:not(.cta),
.text-section a:not(.cta) {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.13s;
  border-radius: 3px;
  padding: 1px 3px;
}
.content-wrapper a:not(.cta):hover,
.text-section a:not(.cta):hover {
  color: #fff;
  background: var(--color-primary);
  text-decoration: none;
}

/* Typography scale for smaller screens */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1.01rem; }
}

/* ================================================
   BUTTONS & CALL-TO-ACTION
   ================================================ */
.cta, .btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--color-text-alt);
  letter-spacing: 0.015em;
  background: var(--color-primary);
  border-radius: var(--radius);
  padding: 12px 34px;
  min-width: 170px;
  min-height: 45px;
  box-shadow: var(--shadow-md);
  border: none;
  outline: none;
  cursor: pointer;
  margin-top: 4px;
  margin-bottom: 5px;
  transition: background .2s, box-shadow .2s, color .15s, filter .18s;
  position: relative;
}
.cta:hover, .cta:focus,
.btn:hover, .btn:focus {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 9px 24px 0 rgba(40,48,70,0.17);
  filter: brightness(0.99);
}
@media (max-width: 480px) {
  .cta, .btn {
    font-size: 1rem;
    min-width: 115px;
    min-height: 42px;
    padding: 10px 18px;
  }
}

/* ================================================
   CARDS & FLEXBOX PATTERNS (from mission)
   ================================================ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  padding: 28px 20px;
  position: relative;
  min-width: 235px;
  transition: box-shadow 0.2s, transform 0.22s;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card:hover, .card:focus-within {
  box-shadow: 0 7px 18px rgba(40,48,70,0.19);
  transform: translateY(-3px) scale(1.025);
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 4px 24px 0 rgba(40,48,70,0.07);
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 700px;
  color: #111;
  border-left: 5px solid var(--color-primary);
  transition: box-shadow 0.18s, background 0.13s;
}
.testimonial-card p {
  color: #161616;
  font-weight: 400;
  font-size: 1.09rem;
  margin-bottom: 8px;
}
.testimonial-card span {
  color: var(--color-secondary);
  font-size: 1rem;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  background: #f6f6f6;
  box-shadow: 0 8px 26px 0 rgba(40,48,70,0.14);
}

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

/* Card/Feature List compatibility for offer, about, etc */
.content-wrapper > ul,
.content-wrapper > ol {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.content-wrapper > ul > li,
.content-wrapper > ol > li {
  background: var(--color-card);
  padding: 22px 20px 18px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  min-width: 230px;
  flex: 1 1 295px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  font-size: 1rem;
  transition: box-shadow 0.18s, background 0.13s;
}
.content-wrapper > ul > li img,
.content-wrapper > ol > li img {
  margin-bottom: 6px;
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: grayscale(100%) contrast(1.1);
}
@media (max-width: 768px) {
  .content-wrapper > ul,
  .content-wrapper > ol {
    gap: 12px;
  }
  .content-wrapper > ul > li,
  .content-wrapper > ol > li {
    min-width: 100%;
    padding: 16px 8px 14px 10px;
  }
}

/* ================================================
   FOOTER STYLES
   ================================================ */
footer {
  background: var(--color-primary);
  color: var(--color-text-alt);
  padding: 0;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 32px 20px 18px 20px;
}
.footer-logo {
  margin-bottom: 14px;
}
.footer-logo img {
  height: 38px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 0.93rem;
  font-weight: 500;
  opacity: 0.9;
  border-radius: 5px;
  padding: 6px 10px;
  transition: background 0.13s, color 0.13s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: #fff;
  color: var(--color-primary);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  align-items: center;
  font-size: 0.98rem;
  font-family: var(--font-body);
  text-align: center;
}
.footer-contact img {
  height: 17px;
  width: 17px;
  vertical-align: middle;
  margin-right: 5px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-accent);
  transition: background 0.13s, box-shadow 0.18s;
  box-shadow: 0 1px 4px rgba(40,48,70,0.08);
}
.footer-social a img {
  width: 20px;
  height: 20px;
  filter: grayscale(1) contrast(1.2);
}
.footer-social a:hover,
.footer-social a:focus {
  background: #fff;
  box-shadow: 0 2px 7px rgba(40,48,70,0.18);
}
.footer-tagline {
  color: #bbb;
  text-align: center;
  margin-top: 13px;
  font-family: var(--font-display);
  font-size: 1.03rem;
  opacity: 0.75;
}
@media (max-width: 650px) {
  footer .container { padding: 24px 8px 13px 8px; }
  .footer-contact,
  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 11px;
  }
}

/* ================================================
   UTILS, SPACING, MICRO-INTERACTIONS
   ================================================ */
.gap-20   { gap: 20px;   }
.gap-24   { gap: 24px;   }
.mt-16    { margin-top: 16px; }
.mt-24    { margin-top: 24px; }
.mb-16    { margin-bottom: 16px; }
.mb-24    { margin-bottom: 24px; }

/* ================================================
   COOKIE CONSENT BANNER + MODAL
   ================================================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #23252a;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -8px 18px 0 rgba(40,48,70,0.08);
  padding: 18px 48px 18px 24px;
  z-index: 9000;
  font-size: 1rem;
  gap: 10px;
  animation: cookie-banner-in 0.44s cubic-bezier(.55,.06,.34,.91);
}
@keyframes cookie-banner-in {
  0% {
    opacity: 0;
    transform: translateY(80px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.cookie-banner__text {
  flex: 1 1 auto;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #fff;
  font-family: var(--font-body);
  padding-right: 22px;
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-banner__btn {
  font-family: var(--font-display);
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.96rem;
  font-weight: 600;
  margin: 0;
  box-shadow: 0 2px 7px rgba(40,48,70,0.15);
  transition: background 0.18s, color 0.14s, box-shadow 0.17s;
}
.cookie-banner__btn:hover,
.cookie-banner__btn:focus {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 4px 18px rgba(40,48,70,0.19);
}
.cookie-banner__btn--secondary {
  background: #fff;
  color: var(--color-primary);
  border: 1px solid #ddd;
  box-shadow: none;
}
.cookie-banner__btn--secondary:hover,
.cookie-banner__btn--secondary:focus {
  background: var(--color-primary);
  color: #fff;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(1);
  min-width: 340px;
  max-width: 98vw;
  background: #fff;
  color: #111;
  border-radius: 16px;
  box-shadow: 0 16px 56px 0 rgba(40,48,70,0.13);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 42px 38px 32px 38px;
  opacity: 1;
  pointer-events: all;
  animation: fade-in-modal 0.32s cubic-bezier(.65,.05,.36,1);
}
@keyframes fade-in-modal {
  0% { opacity: 0; transform: translate(-50%,-44%) scale(0.91); }
  100% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal__header {
  font-size: 1.23rem;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-primary);
}
.cookie-modal__close {
  position: absolute;
  top: 18px; right: 22px;
  background: none;
  border: none;
  color: #23252a;
  font-size: 1.68rem;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal__close:hover,
.cookie-modal__close:focus {
  color: var(--color-primary);
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  font-size: 1.03rem;
}
.cookie-category input[type='checkbox'] {
  width: 22px;
  height: 22px;
  accent-color: var(--color-primary);
  border-radius: 5px;
}
.cookie-category__label {
  font-family: var(--font-body);
  font-size: 1.04rem;
  font-weight: 400;
  color: #23252a;
}
.cookie-category__label--locked {
  color: #b2b2b2;
  font-style: italic;
}
.cookie-modal__actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 12px;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 10px;
    font-size: 0.95rem;
  }
  .cookie-modal {
    min-width: 96vw;
    padding: 20px 7vw 24px 7vw;
    gap: 22px;
  }
}

/* ================================================
   ANIMATIONS & MICRO-INTERACTIONS
   ================================================ */
a, .cta, .btn, .footer-nav a, .main-nav a, .mobile-nav a, .cookie-banner__btn {
  transition: background 0.18s, color 0.15s, box-shadow 0.21s, transform 0.18s;
}
.card, .testimonial-card, .content-wrapper > ul > li {
  transition: box-shadow 0.18s, background 0.14s, transform 0.22s;
}
.card:active,
.testimonial-card:active {
  transform: scale(0.97);
}

/* ================================================
   RESPONSIVE: FLEX WRAPPING, DIRECTION
   ================================================ */
@media (max-width: 992px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
    max-width: 100vw;
  }
}
@media (max-width: 768px) {
  .content-wrapper, .card-container, .content-grid {
    flex-direction: column !important;
    align-items: flex-start;
    gap: 14px !important;
  }
}

/* ================================================
   MISC & ACCESSIBILITY
   ================================================ */
::selection {
  background: var(--color-primary);
  color: #fff;
}
[tabindex]:focus,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ================
 Helper classes
 ================ */
.sr-only {
  position: absolute!important;
  width: 1px!important;
  height: 1px!important;
  padding: 0!important;
  margin: -1px!important;
  overflow: hidden!important;
  clip: rect(0,0,0,0)!important;
  border: 0!important;
}

/* =============
 Hide empty anchors in nav
 ============= */
nav a[href="#"] {
  pointer-events: none;
  opacity: 0.6;
}

/* ------------
 Custom scrollbar for webkit
 ------------ */
body::-webkit-scrollbar { width: 10px; background: #f3f3f3; }
body::-webkit-scrollbar-thumb { background: #dadada; border-radius: 8px; }

/* ================================================
   END OF MAIN CSS
   ================================================ */