/* === RESET & 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F2F2F0;
  color: #2F3640;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
}
*, *:before, *:after { box-sizing: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; border: 0; background: none; cursor: pointer; }
textarea, input, select { font-family: inherit; }

/* === BRAND TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #2F3640;
  line-height: 1.13;
}
h1 { font-size: 2.3rem; margin-bottom: 24px; }
h2 { font-size: 1.8rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 16px; font-weight: 700; }
h4 { font-size: 1.05rem; }
h5, h6 { font-size: 1rem; }
p, li, blockquote { font-size: 1rem; font-family: 'Open Sans', Arial, sans-serif; color: #2F3640; }
blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #88A2AA;
  border-left: 6px solid #2F3640;
  margin: 0 0 20px 0;
  padding: 12px 24px 12px 16px;
  background: #fff;
  border-radius: 10px;
}
strong, b { font-weight: 700; }

/* === BRAND COLORS === */
:root {
  --primary: #2F3640;
  --secondary: #88A2AA;
  --accent: #F2F2F0;
  --white: #fff;
  --neutral-100: #F2F2F0;
  --neutral-900: #2F3640;
  --focus: #3749a6;
  --danger: #cf3c2b;
}

/* === CONTAINER === */
.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* === HEADER NAVIGATION === */
header {
  background: var(--white);
  border-bottom: 2px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 999;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}
.logo img { height: 42px; }
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: var(--primary);
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 8px 0;
  position: relative;
  transition: color 0.18s;
}
header nav a:hover, header nav a:focus {
  color: var(--secondary);
}
header .cta-button {
  margin-left: 24px;
}

/* === CTA BUTTON === */
.cta-button {
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 0.7em 1.8em;
  border-radius: 32px;
  font-size: 1.07rem;
  letter-spacing: .04em;
  border: none;
  outline: none;
  box-shadow: 0 2px 16px 0 rgba(138,162,170,0.11);
  transition: background 0.2s, color 0.11s, transform 0.17s;
  display: inline-block;
  cursor: pointer;
}
.cta-button:hover, .cta-button:focus {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px) scale(1.05);
}

/* === MOBILE NAVIGATION === */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--primary);
  background: var(--white);
  border-radius: 8px;
  padding: 6px 16px;
  margin-left: auto;
  z-index: 1001;
  transition: background 0.12s;
}
.mobile-menu-toggle:hover {
  background: var(--accent);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--neutral-100);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.79,.01,0,1) 0s;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 24px 24px 24px;
  width: 100vw;
  max-width: 100vw;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  color: var(--primary);
  padding: 2px 7px 6px 7px;
  background: var(--accent);
  border-radius: 10px;
  margin-bottom: 12px;
  margin-right: -3px;
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.27rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  padding: 13px 3px 13px 0;
  border-radius: 7px;
  transition: background 0.14s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--white);
}
@media (max-width: 1100px) {
  header nav {
    gap: 14px;
  }
  .cta-button { font-size: 0.98rem; padding: 0.7em 1.2em; }
}
@media (max-width: 900px){
  .container { padding: 0 12px; }
  header .container { padding: 0 10px; }
}
@media (max-width: 900px) {
  header .container nav {
    display: none;
  }
  header .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* === LAYOUT & SECTIONS === */
section {
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 2px 24px 0 rgba(47,54,64,0.07);
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (max-width: 600px) {
  section {
    margin-bottom: 34px;
    padding: 28px 6px;
    border-radius: 14px;
  }
}
.content-wrapper, .text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  width: 100%;
}

/* === FLEX PATTERNS - LAYOUT === */
.section {  /* For special section patterning */
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(47,54,64,0.10);
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  min-width: 270px;
  max-width: 370px;
  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;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(136,162,170,0.13);
  margin-bottom: 20px;
  max-width: 690px;
  min-width: 0;
  border: 1.5px solid var(--accent);
  transition: border 0.18s, box-shadow 0.14s;
}
.testimonial-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 6px 26px 0 rgba(136,162,170,0.19);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .content-wrapper, .text-section, .content-grid, .card-container {
    gap: 12px;
  }
  .testimonial-card {
    padding: 14px 9px;
    gap: 9px;
    border-radius: 10px;
    font-size: 0.98rem;
  }
}

/* === LISTS === */
ul {
  padding-left: 22px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
ul > li {
  position: relative;
  padding-left: 14px;
  font-size: 1.02rem;
  color: var(--neutral-900);
}
ul > li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.67em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--secondary);
}
ul span {
  color: var(--secondary);
  font-size:0.98em;
  font-style: italic;
  font-weight: 500;
  margin-left: 6px;
}

ol {
  padding-left: 26px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

/* === BUTTONS, LINKS, INTERACTIONS === */
a {
  transition: color 0.17s, background 0.18s;
}
a:focus { outline: 2px solid var(--secondary); }
button:focus { outline: 2px solid var(--secondary); }
.button, .btn {
  background: var(--primary);
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 30px;
  padding: 10px 20px;
  box-shadow: 0 1.5px 10px 0 rgba(47,54,64,0.08);
  border: none;
  font-size: 1.04rem;
  transition: background 0.16s, color 0.13s, transform 0.16s;
}
.button:hover, .btn:hover, .button:focus, .btn:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px) scale(1.04);
}

/* === CARDS & SHADOW === */
.card, .testimonial-card {
  box-shadow: 0 2px 16px 0 rgba(136,162,170,0.12);
}
.card:hover {
  box-shadow: 0 8px 24px 0 rgba(47,54,64,0.19);
}

/* === FOOTER === */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 34px 0 10px 0;
  margin-top: 50px;
}
footer .container {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
}
footer .logo img { height: 40px; filter: brightness(2.9) contrast(2.8); }
footer nav {
  display: flex;
  gap: 21px;
  flex-wrap: wrap;
}
footer nav a {
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.01rem;
  font-weight: 600;
  transition: color 0.12s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--white);
}
.footer-contact {
  font-size: 1rem;
  margin-top: 6px;
  line-height: 1.7;
  color: var(--accent);
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
  }
}

/* === TESTIMONIALS (DARK-TEXT ONLY) === */
.testimonial-card {
  background: var(--accent);
  color: #2F3640;
  border: 1.5px solid var(--secondary);
}
.testimonial-card h3 {
  color: var(--primary);
  font-size: 1.17rem;
  margin-bottom: 0.5em;
  font-weight: 800;
}
.testimonial-card p {
  color: #2F3640;
  font-size: 1.03rem;
  font-weight: 600;
}
.testimonial-card span {
  color: var(--secondary);
  font-size:1rem;
  font-weight: 500;
  padding-left: 0.5em;
}

/* === RESPONSIVE SPRINKLES === */
@media (max-width: 900px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.23rem; }
}
@media (max-width: 700px) {
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 18px !important;
  }
}
@media (max-width: 700px) {
  .container { padding-left: 5px; padding-right: 5px; }
}
@media (max-width: 680px) {
  .card, .testimonial-card {
    min-width: 0;
    max-width: 100%;
    padding: 12px 5px;
  }
}

/* === COOKIE CONSENT BANNER === */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 3001;
  background: var(--white);
  box-shadow: 0 -2px 22px 0 rgba(47,54,64,0.17);
  border-top: 2px solid var(--secondary);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: space-between;
  padding: 16px 24px;
  font-size: 1.02rem;
  animation: cookieSlideIn 0.51s;
}
@keyframes cookieSlideIn {
  0% { transform: translateY(68px); opacity: 0; }
  85% { transform: translateY(-3px); opacity: 1; }
  100% { transform: translateY(0); }
}
.cookie-consent-banner p {
  margin: 0;
  flex: 3 1 220px;
  color: var(--primary);
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-btn-group {
  display: flex;
  gap: 16px;
}
.cookie-consent-banner .cookie-btn {
  padding: 11px 21px;
  border-radius: 21px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.01rem;
  border: none;
  cursor: pointer;
  color: var(--primary);
  background: var(--secondary);
  transition: background 0.18s, color 0.14s;
}
.cookie-consent-banner .cookie-btn.accept {
  background: var(--primary);
  color: var(--white);
}
.cookie-consent-banner .cookie-btn.reject {
  background: var(--danger);
  color: var(--white);
}
.cookie-consent-banner .cookie-btn.settings {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-consent-banner .cookie-btn:hover, .cookie-consent-banner .cookie-btn:focus {
  opacity: 0.98;
  filter: brightness(1.07);
}
@media (max-width: 600px) {
  .cookie-consent-banner { flex-direction: column; gap: 16px; padding: 14px 5px; align-items: flex-start; }
  .cookie-btn-group { gap: 8px; }
}

/* === COOKIE MODAL === */
.cookie-modal {
  position: fixed;
  z-index: 3201;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(47,54,64,0.71);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: all;
  animation: fadeIn 0.2s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal-content {
  background: var(--white);
  padding: 38px 30px 25px 30px;
  border-radius: 23px;
  min-width: 290px;
  max-width: 420px;
  box-shadow: 0 2px 32px 0 rgba(136,162,170,0.18);
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 15px; right: 19px;
  font-size: 2rem;
  color: var(--primary);
  border-radius: 50%;
  background: var(--accent);
  padding: 0 8px;
  border: none;
  transition: background 0.13s;
}
.cookie-modal-close:hover {
  background: var(--secondary);
  color: var(--white);
}
.cookie-modal-content h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 7px;
  color: var(--primary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}
.cookie-category label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}
.cookie-category .toggle {
  width: 38px;
  height: 21px;
  background: var(--accent);
  border-radius: 21px;
  position: relative;
  transition: background 0.14s;
}
.cookie-category .toggle.checked {
  background: var(--secondary);
}
.cookie-category .toggle-switch {
  position: absolute; left: 3px; top: 3px;
  width: 15px; height: 15px;
  background: var(--primary);
  border-radius: 50%;
  transition: left 0.16s, background 0.15s;
}
.cookie-category .toggle.checked .toggle-switch {
  left: 20px;
  background: var(--secondary);
}
.cookie-category .category-desc {
  font-size: 0.92rem;
  color: var(--secondary);
  margin-left: 8px;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal-actions button {
  padding: 10px 20px;
  border-radius: 16px;
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  transition: background 0.15s, color 0.13s;
  border: none;
  cursor: pointer;
}
.cookie-modal-actions button.accept {
  background: var(--primary);
  color: var(--white);
}
.cookie-modal-actions button.reject {
  background: var(--danger);
  color: var(--white);
}
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus {
  background: var(--secondary);
  color: var(--primary);
}

@media (max-width: 600px) {
  .cookie-modal-content { padding: 15px 7px 23px 7px; max-width: 96vw; }
}

/* === GENERAL UTILITIES === */
.mt-2 { margin-top: 16px; }
.mb-3 { margin-bottom: 24px; }
.rounded-xl { border-radius: 21px; }
.shadow-xl { box-shadow: 0 6px 30px 0 rgba(47,54,64,0.14); }
.text-center { text-align: center; }

/* === GEOMETRIC DECORATIVE ELEMENTS === */
.decor-square, .decor-circle {
  position: absolute;
  z-index: 0;
  opacity: 0.19;
  pointer-events: none;
}
.decor-square {
  width: 57px;
  height: 57px;
  background: var(--secondary);
  border-radius: 12px;
}
.decor-circle {
  width: 49px;
  height: 49px;
  background: var(--secondary);
  border-radius: 50%;
}

/* === ANIMATIONS & MICRO-INTERACTIONS === */
.cta-button, .button, .btn, .testimonial-card, .card, .cookie-btn {
  transition: box-shadow 0.18s, background 0.16s, color 0.13s, border 0.14s, transform 0.15s;
}
.cta-button:active, .button:active, .btn:active {
  transform: scale(0.98);
}

/* === ACCESSIBILITY & FOCUS === */
a:focus-visible, .cta-button:focus-visible, .button:focus-visible, .btn:focus-visible {
  outline: 2.5px solid var(--secondary);
  outline-offset: 3px;
}

/* === PRINT OVERRIDE === */
@media print {
  header, footer, .cookie-consent-banner, .cookie-modal { display: none !important; }
  section, main, body { background: #fff; color: #2F3640; }
}
