/* ========================================================== 
   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-family: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
  background: #F5F7FA;
  color-scheme: light;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #22282E;
  background: #F5F7FA;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #475058;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #D7A6DA;
  text-decoration: underline;
}

ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
ul li, ol li {
  margin-bottom: 8px;
  font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Quicksand', 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #22282E;
  margin-bottom: 0.75em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  margin-top: 1.5em;
}
h3 {
  font-size: 1.25rem;
}
strong {
  font-weight: 700;
}

/* ===========================
   STRUCTURE & LAYOUT 
=========================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

main {
  padding-bottom: 40px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(71,80,88,0.06);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.text-section {
  max-width: 700px;
  margin: 0 auto;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(71,80,88,0.05);
  margin-bottom: 20px;
  padding: 32px 24px;
  position: relative;
  min-width: 260px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 6px 32px 0 rgba(71,80,88,0.14);
}

.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;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #F5F7FA;
  border-left: 5px solid #475058;
  border-radius: 12px;
  box-shadow: 0 1px 6px 0 rgba(71,80,88,0.07);
  padding: 20px;
  margin-bottom: 20px;
  max-width: 550px;
}
.testimonial-card blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: #233143;
  margin: 0;
  line-height: 1.6;
}
.testimonial-footer {
  font-size: 0.92rem;
  color: #475058;
  font-weight: 600;
  margin-top: 4px;
}

.brand-promise {
  font-size: 1.05rem;
  color: #475058;
  background: #F5F7FA;
  padding: 12px 20px;
  border-radius: 10px;
  margin: 12px 0 0;
}

/* ===========================
   HEADER & NAVIGATION
=========================== */
header {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(71,80,88,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  padding: 0 10px;
}
header nav > a img {
  height: 42px;
  width: auto;
  display: block;
  margin-right: 0;
}
header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  background: transparent;
}
header nav ul li {
  line-height: 1.2;
}
header nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #475058;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
header nav ul li a:hover, header nav ul li a:focus {
  background: #F5F7FA;
  color: #22282E;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Quicksand', 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(71,80,88,0.08);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  margin-left: 15px;
  min-width: 120px;
  text-align: center;
}
.btn-primary {
  background: #475058;
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: #233143;
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(71,80,88,0.14);
  text-decoration: none;
}
.btn-secondary {
  background: #D7A6DA;
  color: #22282E;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #c18cc3;
  color: #22282E;
  box-shadow: 0 4px 18px 0 rgba(71,80,88,0.16);
}

header .btn-primary {
  margin-left: 20px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #475058;
  cursor: pointer;
  padding: 8px 12px;
  margin-left: 20px;
  transition: color 0.16s;
  z-index: 1201;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #D7A6DA;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 4px 44px 0 rgba(71,80,88,0.16);
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.76,0.12,0.3,0.91);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 32px 0 0;
  background: none;
  border: none;
  font-size: 2rem;
  color: #475058;
  cursor: pointer;
  z-index: 1202;
  transition: color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #D7A6DA;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 56px;
  width: 100%;
  align-items: center;
}
.mobile-nav a {
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #475058;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  width: 80%;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F5F7FA;
  color: #22282E;
}

@media (max-width: 992px) {
  header nav ul {
    gap: 10px;
  }
  .container {
    max-width: 94vw;
  }
}

@media (max-width: 820px) {
  header nav ul,
  header nav .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* Hide mobile menu at large screens */
@media (min-width: 821px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===========================
   FOOTER
=========================== */
footer {
  background: #475058;
  color: #fff;
  padding: 24px 0 12px 0;
  font-size: 1rem;
  margin-top: 50px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
footer nav ul {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}
footer nav ul li a {
  color: #fff;
  font-weight: 400;
  font-size: 1rem;
  opacity: 0.9;
  transition: color 0.18s, opacity 0.18s;
}
footer nav ul li a:hover, footer nav ul li a:focus {
  color: #D7A6DA;
  opacity: 1;
}
.footer-info {
  font-size: 0.97rem;
  opacity: 0.87;
  color: #e7eaf0;
  margin-bottom: 8px;
}

/* ===========================
   SECTION STYLES
=========================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 19px 0 rgba(71,80,88,0.05);
}
.section:last-child, section:last-child {
  margin-bottom: 20px;
}

/* ===========================
   HERO SECTION (index)
=========================== */
section .container .content-wrapper h1 {
  font-size: 2.6rem;
  color: #475058;
}
section .container .content-wrapper h2 {
  font-size: 2rem;
  font-weight: 400;
  color: #475058;
}
section .container .content-wrapper p {
  font-size: 1.13rem;
  margin-bottom: 16px;
}

/* ===========================
   LISTS & FEATURES
=========================== */
.content-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 1.7em;
  margin-top: 0.7em;
}
.content-wrapper ul li {
  display: flex;
  align-items: center;
  font-size: 1.07rem;
  color: #475058;
  background: #F5F7FA;
  border-radius: 8px;
  padding: 12px 18px 12px 16px;
  gap: 15px;
  font-weight: 500;
}
.content-wrapper ul li img {
  width: 28px;
  height: 28px;
  margin-right: 6px;
  object-fit: contain;
}

.content-wrapper ol {
  margin-left: 1.3em;
  margin-bottom: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #475058;
}

@media (max-width: 500px) {
  section .container .content-wrapper h1 {
    font-size: 2.05rem;
  }
  section .container .content-wrapper h2 {
    font-size: 1.5rem;
  }
}

/* ===========================
   CARDS, CTA, AND MISC
=========================== */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

/* ===========================
   RESPONSIVE FLEXBOX RULES
=========================== */
.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: 22px;
  }
  .content-wrapper, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  section {
    padding: 28px 6px;
    border-radius: 10px;
  }
  footer nav ul {
    gap: 12px;
  }
}

.card-container, .content-grid {
  gap: 20px;
}
.card {
  margin-bottom: 20px;
}

/* ===========================
   FORMS (if present in the future)
=========================== */
input, textarea, select, button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}

input, textarea, select {
  border: 1px solid #dbe8ef;
  background: #F5F7FA;
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 14px;
  transition: border 0.16s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #D7A6DA;
  outline: none;
}

/* ===========================
   COOKIE CONSENT BANNER
=========================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  box-shadow: 0 -2px 18px rgba(71,80,88,0.11);
  border-top: 2px solid #D7A6DA;
  padding: 24px 16px 18px 16px;
  z-index: 2000;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  transition: transform 0.30s cubic-bezier(0.85,0,0.13,1);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner-text {
  flex: 1 1 240px;
  color: #233143;
  font-size: 1rem;
}
.cookie-banner-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-btn {
  padding: 9px 22px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.19s, color 0.19s, box-shadow 0.14s;
  margin: 0;
}
.cookie-btn.accept {
  background: #475058;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #233143;
}
.cookie-btn.reject {
  background: #fff;
  color: #475058;
  border: 1.5px solid #475058;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #F5F7FA;
  color: #22282E;
}
.cookie-btn.settings {
  background: #D7A6DA;
  color: #475058;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #c18cc3;
  color: #22282E;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 6px 12px 10px;
  }
}

/* ===== Cookie Modal ===== */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0;
  top: 0; bottom: 0;
  background: rgba(71,80,88,0.30);
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 40px 0 rgba(71,80,88,0.19);
  max-width: 380px;
  width: 96vw;
  padding: 28px 16px 22px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  animation: modalFadeIn 0.32s cubic-bezier(0.8,0,0.16,1);
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.98) translateY(36px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h3 {
  margin-bottom: 6px;
}
.cookie-modal-label {
  font-size: 1rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-modal label[disabled], .cookie-modal input[disabled] {
  opacity: 0.65;
  pointer-events: none;
}
.cookie-modal-actions {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 16px;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 20px;
  border-radius: 20px;
  background: #dbe2eb;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-toggle:checked {
  background: #D7A6DA;
}
.cookie-toggle::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 2px; top: 2px;
  transition: left 0.18s;
  box-shadow: 0 1.5px 4px 0 rgba(130,130,150,0.10);
}
.cookie-toggle:checked::after {
  left: 20px;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #475058;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #D7A6DA;
}

/* ===========================
   TYPOGRAPHY & HIERARCHY
=========================== */
@media (max-width: 530px) {
  h1 {
    font-size: 1.52rem;
  }
  h2 {
    font-size: 1.20rem;
  }
  .btn-primary, .btn-secondary {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

/* ===========================
   UTILITIES & SPACING SYSTEM
=========================== */
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mt-4 { margin-top: 32px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mb-4 { margin-bottom: 32px !important; }
.pt-1 { padding-top: 8px !important; }
.pt-2 { padding-top: 16px !important; }
.pt-3 { padding-top: 24px !important; }
.pt-4 { padding-top: 32px !important; }

/**** VISUAL HIERARCHY (CORPORATE) ****/
section, .section {
  box-shadow: 0 1px 18px 0 rgba(71,80,88,0.07);
}
.card, .testimonial-card {
  box-shadow: 0 2px 12px 0 rgba(71,80,88,0.06);
  border-radius: 14px;
}
.btn-primary, .btn-secondary, .cookie-btn {
  box-shadow: 0 1.5px 7px 0 rgba(85,70,110,0.07);
}

/* ===========================
   FORMS (Generic Styling)
=========================== */
label {
  font-weight: 600;
  margin-bottom: 3px;
  display: block;
}

::-webkit-input-placeholder { color: #aaa; }
::-moz-placeholder { color: #aaa; }
:-ms-input-placeholder { color: #aaa; }
::placeholder { color: #aaa; }

/* ===========================
   TRANSITIONS & MICRO-INTERACTIONS
=========================== */
.btn-primary, .btn-secondary, .cookie-btn {
  transition: background 0.19s, color 0.19s, box-shadow 0.17s;
}
.card, .section, section, .testimonial-card {
  transition: box-shadow 0.17s, background 0.17s;
}
a, .mobile-nav a {
  transition: color 0.2s, background 0.2s;
}

/* ===========================
   OVERRIDES FOR LEGAL PAGES
=========================== */
.text-section ul, .text-section ol {
  background: none;
  padding: 0;
  border-radius: 0;
  margin-bottom: 1em;
}
.text-section li {
  background: none;
  padding: 0;
  margin-bottom: 8px;
  font-weight: 400;
}
.text-section h2, .text-section h3 {
  margin-top: 1.25em;
  margin-bottom: 0.5em;
}

/* ===========================
   ACCENT & FOCUS STYLES
 =========================== */
:focus {
  outline: 2px solid #D7A6DA;
  outline-offset: 2px;
}

/*****************************
 * ACCESSIBILITY CONTRAST FOR TESTIMONIALS
 *****************************/
.testimonial-card {
  background: #F5F7FA;
  color: #233143;
  border-left: 5px solid #475058;
}
.testimonial-card blockquote {
  color: #22282E;
}

/*****************************
 * BACK TO TOP (Optional, not present HTML)
 *****************************
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 24px;
  background: #475058;
  color: #fff;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 18px 0 rgba(71,80,88,0.19);
  z-index: 1300;
  cursor: pointer;
  font-size: 1.6rem;
  opacity: 0.78;
  transition: opacity 0.15s, box-shadow 0.16s;
}
.back-to-top:hover, .back-to-top:focus {
  opacity: 1;
  box-shadow: 0 6px 30px 0 rgba(71,80,88,0.28);
}

/*****************************
 * PRINT STYLES
 *****************************/
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  section, .section { box-shadow: none !important; background: #fff !important; }
}

/* END OF PROFESSIONAL-CORPORATE FLEXBOX CSS STYLES */
