/* --- CSS RESET (normalize + custom reset) --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-size: 16px; scroll-behavior: smooth; }
body { min-height: 100vh; background: linear-gradient(135deg, #f6f6f2 0%, #e3e7ea 100%); color: #233348; font-family: 'Roboto', Arial, sans-serif; font-size: 16px; letter-spacing: 0.01em; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; }
img { max-width: 100%; height: auto; display: block; }
a { color: #233348; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #6c8999; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', Arial, sans-serif; font-weight: 700; color: #233348; letter-spacing: 0.01em; line-height: 1.1; }
h1 { font-size: 2.6rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.4rem; margin-bottom: 10px; }
h4 { font-size: 1.18rem; }

/* --- COMMON CONTAINER/WRAPPER --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

/* --- FLEXBOX LAYOUTS --- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 22px;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(35, 51, 72, 0.06);
  border-radius: 20px;
  padding: 28px 24px;
  min-width: 220px;
  flex: 1 1 244px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.feature:hover {
  box-shadow: 0 6px 24px rgba(35, 51, 72, 0.13);
  transform: translateY(-2px) scale(1.03);
}

/* Flex utility containers from spec (MUST match names) */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px; 
}
.card {
  background: #fff;
  box-shadow: 0 4px 16px rgba(35, 51, 72, 0.07);
  border-radius: 18px;
  padding: 30px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.17s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(35, 51, 72, 0.16);
  transform: translateY(-2px) scale(1.02);
}
.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: #f6f6f2;
  border-radius: 18px;
  box-shadow: 0 2px 14px rgba(35, 51, 72, 0.08);
  margin-right: 20px;
  min-width: 250px;
  max-width: 320px;
  flex: 1 1 270px;
  border: 1px solid #e3e7ea;
  color: #233348;
}
.testimonial-rating {
  color: #FFD600;
  font-size: 1.3em;
  letter-spacing: 3px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- HERO, SUBHEADLINE, CTA --- */
.subheadline {
  color: #6c8999;
  font-size: 1.1rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 8px;
  line-height: 1.5;
  font-weight: 400;
}

/* --- BUTTONS --- */
.btn-primary, .btn-primary:visited {
  display: inline-block;
  background: linear-gradient(90deg, #233348 30%, #6c8999 100%);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.10rem;
  padding: 13px 36px;
  border-radius: 28px;
  border: none;
  box-shadow: 0 3px 12px rgba(35,51,72,0.13);
  cursor: pointer;
  margin-top: 8px;
  text-align: center;
  transition: background 0.28s, box-shadow 0.15s, transform 0.12s;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #324968 30%, #405769 100%);
  color: #f6f6f2;
  transform: translateY(-1.5px) scale(1.025);
}
.btn-secondary, .btn-secondary:visited {
  display: inline-block;
  background: #fff;
  color: #233348;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 28px;
  border: 2px solid #6c8999;
  box-shadow: 0 2px 10px rgba(35,51,72,0.09);
  padding: 13px 36px;
  cursor: pointer;
  margin-top: 8px;
  text-align: center;
  transition: background 0.18s, color 0.20s, box-shadow 0.12s, transform 0.12s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #6c8999;
  color: #fff;
  border-color: #233348;
  transform: translateY(-1.5px) scale(1.025);
}
button:active, .btn-primary:active, .btn-secondary:active {
  opacity: 0.92;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 2px 14px rgba(35,51,72,0.09);
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px 11px 20px;
}
nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 7px 18px;
  border-radius: 18px;
  transition: background 0.16s, color 0.14s;
}
header nav a:not(.btn-primary):hover, header nav a:not(.btn-primary):focus {
  background: #f6f6f2;
  color: #6c8999;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #233348;
  padding: 2px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.13s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #edf0f3;
  outline: none;
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  background: #233348;
  color: #fff;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(100%);
  will-change: transform;
  transition: transform 0.35s cubic-bezier(.7,.2,.13,1.1);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.4rem;
  color: #fff;
  margin: 24px 24px 0 0;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 2;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #ffd600;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 30px 48px 0 38px;
  gap: 28px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.35rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 12px 8px;
  border-radius: 16px;
  transition: background 0.14s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #6c8999;
  color: #fff;
}

/* --- FOOTER --- */
footer {
  background: #233348;
  color: #f6f6f2;
  padding-top: 32px;
  padding-bottom: 32px;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  margin-bottom: 10px;
}
footer nav a {
  color: #f6f6f2;
  font-size: 1rem;
  transition: color 0.17s; 
}
footer nav a:hover, footer nav a:focus {
  color: #ffd600;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
}
.footer-contact {
  font-size: 0.97rem;
  opacity: 0.93;
  line-height: 1.6;
  color: #e3e7ea;
}

/* --- FAQ --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
  margin-bottom: 8px;
}
.faq-item h3 {
  font-size: 1.11rem;
  color: #324968;
  margin-bottom: 4px;
}
.faq-item p {
  color: #233348;
  font-size: 1rem;
  line-height: 1.55;
}
.faq-search {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 24px;
}
.faq-search input {
  padding: 8px 14px;
  border-radius: 7px;
  border: 1.5px solid #e3e7ea;
  font-size: 1rem;
  color: #233348;
  background: #f6f6f2;
  transition: border-color 0.15s;
}
.faq-search input:focus {
  border-color: #6c8999;
  outline: none;
}

/* --- CARD & TESTIMONIAL STYLES --- */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.testimonial-slider {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #233348;
  line-height: 1.46;
}
.testimonial-card span {
  font-size: 0.95rem;
  color: #6c8999;
  font-style: italic;
}

/* --- CONTACT --- */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(35, 51, 72, 0.10);
  border-radius: 15px;
  padding: 28px 22px 18px 22px;
  margin-bottom: 22px;
  min-width: 260px;
  max-width: 460px;
}
.contact-details ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #233348;
  font-size: 1rem;
}
.social-links {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 6px;
}
.social-links a img { border-radius: 7px; transition: box-shadow 0.14s; }
.social-links a:hover img { box-shadow: 0 2px 10px #6c899997; }
.map-area {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-top: 18px;
  gap: 16px;
}
.map-placeholder {
  background: #e3e7ea;
  color: #324968;
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 0.99rem;
}

/* --- TEXT SECTION (for privacy/gdpr/about/etc.) --- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-left: 16px;
}
.text-section li {
  list-style: disc inside;
  color: #233348;
  font-size: 1rem;
}
.text-section h2 {
  font-size: 1.21rem;
  color: #6c8999;
  margin-bottom: 2px;
  margin-top: 20px;
}

.cookie-settings {
  margin-top: 8px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
}
.cookie-settings .btn-secondary {
  width: fit-content;
  margin-top: 10px;
  margin-bottom: 6px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 5020;
  background: #fff;
  color: #233348;
  box-shadow: 0 -2px 22px #23334819;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  padding: 22px 8vw 22px 8vw;
  border-radius: 24px 24px 0 0;
  width: 100%;
  animation: cookieSlideIn 0.52s cubic-bezier(.61,.17,.57,.89);
}
@keyframes cookieSlideIn {
  from { transform: translateY(140px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-message {
  font-size: 1.05rem;
  color: #233348;
  margin-right: 16px;
  max-width: 480px;
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-buttons button {
  font-size: 1rem;
  border: none;
  border-radius: 22px;
  padding: 9px 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin: 0;
  cursor: pointer;
  transition: background 0.17s, color 0.14s, box-shadow 0.13s;
}
.accept-btn {
  background: #233348;
  color: #fff;
}
.accept-btn:hover, .accept-btn:focus { background: #6c8999; color: #fff; }
.reject-btn {
  background: #f6f6f2;
  color: #233348;
  border: 1.5px solid #6c8999;
}
.reject-btn:hover, .reject-btn:focus { background: #e3e7ea; color: #233348; }
.settings-btn {
  background: #fff;
  color: #6c8999;
  border: 1.5px solid #6c8999;
}
.settings-btn:hover, .settings-btn:focus { background: #6c8999; color: #fff; }

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(35, 51, 72, 0.54);
  z-index: 5040;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieModal 0.32s;
}
@keyframes fadeInCookieModal {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  padding: 38px 32px;
  border-radius: 25px;
  box-shadow: 0 10px 48px rgba(35,51,72,0.19);
  max-width: 400px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 5041;
  animation: scaleModalIn 0.22s;
}
@keyframes scaleModalIn {
  from { transform: scale(0.91); opacity: 0.35;} to { transform: scale(1); opacity: 1;} 
}
.cookie-modal h3 {
  font-size: 1.25rem;
  color: #233348;
  margin-bottom: 5px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.01rem;
  color: #6c8999;
  margin-bottom: 10px;
}
.toggle-switch {
  position: relative;
  width: 36px; height: 20px;
  display: inline-block;
}
.toggle-switch input {
  display: none;
}
.toggle-slider {
  position: absolute; cursor: pointer; left: 0; right: 0; top: 0; bottom: 0;
  background: #e3e7ea;
  border-radius: 22px;
  transition: background 0.15s;
}
.toggle-switch input:checked + .toggle-slider {
  background: #6c8999;
}
.toggle-slider:before {
  position: absolute;
  content: '';
  height: 16px; width: 16px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(16px);
}

.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-actions button {
  border-radius: 22px;
  padding: 9px 24px;
  font-size: 0.97rem;
  font-family: 'Montserrat', Arial, sans-serif;
}

.cookie-modal .close-modal-btn {
  position: absolute;
  right: 18px; top: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6c8999;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal .close-modal-btn:hover, .cookie-modal .close-modal-btn:focus {
  color: #233348;
}

/* --- SPACING: ensure at least 20px between all cards/sections */
section { margin-bottom: 60px; padding: 40px 20px; }
main > section:last-child { margin-bottom: 0; }
.card:not(:last-child), .card-container > *:not(:last-child), .card-content > *:not(:last-child), .content-grid > *:not(:last-child), .testimonial-slider > *:not(:last-child) { margin-right: 20px; }
section > .container { margin-bottom: 0; }

/* --- ANIMATIONS & TRANSITIONS --- */
a, button, .btn-primary, .btn-secondary, input {
  transition: background 0.15s, color 0.14s, box-shadow 0.13s, border 0.13s, transform 0.13s;
}

/* --- TYPOGRAPHY SCALE --- */
body, p, ul, li, input, label { font-size: 1rem; line-height: 1.65; }
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1100px) {
  .container { max-width: 94vw; }
}
@media (max-width: 900px) {
  .features-grid, .testimonial-slider, .content-grid { gap: 16px; }
  .feature, .testimonial-card, .card { min-width: 200px; font-size: 0.98rem; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.43rem; }
  section { padding: 26px 8px; margin-bottom: 34px; }
  .features-grid, .testimonial-slider, .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .feature, .testimonial-card, .card {
    min-width: unset;
    max-width: unset;
    width: 100%;
  }
  .container { max-width: 99vw; padding-left: 6px; padding-right: 6px; }
  header .container { padding: 12px 6px 8px 6px; flex-wrap: wrap; }
  nav {
    display: none;
  }
  .mobile-menu-toggle { display: block; }
  footer nav {
    flex-wrap: wrap;
    gap: 14px;
  }
  .text-image-section { flex-direction: column; gap: 18px; }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 16px 16px 16px;
  }
}
@media (max-width: 540px) {
  .cookie-consent-banner { border-radius: 17px 17px 0 0; }
  .cookie-modal { padding: 25px 9px; }
}

/* --- UTILITY CLASSES --- */
.hide { display: none !important; }
.visible { display: block !important; }

/* --- ADDITIONAL MICRO-INTERACTIONS --- */
.btn-primary:active, .btn-secondary:active { transform: scale(0.98); }

/* --- OVERRIDE AUTOFILL ON INPUTS --- */
input:-webkit-autofill { box-shadow: 0 0 0px 1000px #fff inset !important; }

/* --- END OF STYLE.CSS --- */