/* CSS RESET & NORMALIZE */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  color: #29334d;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style-position: outside;
  margin-left: 1.5em;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #c99a36;
  outline-offset: 2px;
}
button {
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #29334d;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.12rem; }

.subheadline {
  font-size: 1.18rem;
  color: #666;
  margin-bottom: 16px;
}

p {
  margin-bottom: 14px;
}
strong, b {
  font-weight: 600;
}

/* CONTAINERS & LAYOUT */
.container {
  max-width: 1150px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* FLEXBOX GRID UTILS */
.card-container, .feature-grid, .testimonial-slider, .footer-columns, .content-grid, .features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-grid {
  gap: 32px;
  justify-content: flex-start;
}
.footer-columns {
  flex-direction: row;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.content-grid {
  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: #f5f4f0;
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(41,51,77,0.07);
  margin-bottom: 20px;
  flex: 1 1 300px;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* CARD AND FEATURE STYLES */
.feature {
  background: #fff;
  border: 1px solid #ededed;
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(41,51,77,0.04);
  padding: 28px 28px 24px 28px;
  min-width: 220px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.feature img {
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 6px 18px rgba(41,51,77,0.09);
  transform: translateY(-2px) scale(1.015);
}

.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(41,51,77,0.05);
  padding: 20px;
}

/* BUTTONS & CTA */
.cta {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 28px;
  outline: none;
  box-shadow: 0 2px 8px rgba(41,51,77,0.03);
  border: none;
  cursor: pointer;
  display: inline-block;
  margin-top: 8px;
  margin-bottom: 8px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.13s;
}
.cta.primary {
  background: #29334d;
  color: #fff;
  border: none;
}
.cta.primary:hover, .cta.primary:focus {
  background: #181e29;
  color: #fff;
  box-shadow: 0 4px 18px rgba(41,51,77,0.11);
  transform: translateY(-1px) scale(1.025);
}
.cta.secondary {
  background: #c99a36;
  color: #fff;
  border: none;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #a07b28;
  color: #fff;
  box-shadow: 0 4px 18px rgba(201,154,54,0.13);
  transform: translateY(-1px) scale(1.025);
}

nav a {
  margin-right: 18px;
  padding: 8px 4px;
  font-weight: 500;
  position: relative;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.15s, border-color 0.15s;
  color: #29334d;
}
nav a:last-child { margin-right: 0; }
nav a:hover, nav a:focus {
  color: #c99a36;
}
nav a.cta.primary {
  margin-left: 24px;
}

/* HEADER */
header {
  background: #fff;
  border-bottom: 1px solid #ededed;
  position: sticky;
  top: 0;
  z-index: 101;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
header img {
  height: 33px;
  width: auto;
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: #fff;
  color: #29334d;
  border-radius: 8px;
  padding: 6px 12px;
  transition: background 0.2s, box-shadow 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #f5f4f0;
  box-shadow: 0 2px 6px rgba(41,51,77,0.08);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #29334d;
  color: #fff;
  z-index: 201;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.77,0,.175,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  color: #fff;
  border-radius: 8px;
  align-self: flex-end;
  margin: 20px 24px 0 0;
  background: transparent;
  padding: 8px 16px;
  transition: background 0.2s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #222738;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 36px 36px;
  width: 80vw;
  max-width: 340px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.15rem;
  border-radius: 7px;
  padding: 9px 14px;
  transition: background 0.15s, color 0.15s, outline 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #c99a36;
  color: #29334d;
}

/* HIDE DESKTOP NAV ON MOBILE */
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}

/* MAIN LAYOUT & SECTION SPACING */
main { width: 100%; }
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
section:last-child {
  margin-bottom: 0;
}

/* FOOTER */
footer {
  background: #f5f4f0;
  border-top: 1px solid #ededed;
  padding: 36px 0 18px 0;
  color: #29334d;
  font-size: 1rem;
}
footer .container {
  padding-bottom: 0;
}
footer .footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: flex-start;
  align-items: flex-start;
}
footer p {
  margin-bottom: 10px;
}
footer img {
  width: 44px;
  height: auto;
  margin-bottom: 10px;
}
footer nav ul {
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
footer nav a {
  color: #29334d;
  font-size: 1rem;
  padding: 5px 2px;
}
footer nav a:hover, footer nav a:focus {
  color: #c99a36;
}
.social-links {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 14px;
}
.social-links a img {
  width: 30px;
  height: 30px;
  opacity: 0.92;
  transition: opacity 0.15s;
}
.social-links a:hover img,
.social-links a:focus img {
  opacity: 1;
}

/* TEXT SECTION STYLES */
.text-section {
  margin-bottom: 16px;
  font-size: 1.08rem;
  color: #303030;
}

.text-section strong {
  color: #c99a36;
}

/* LISTS */
ul, ol {
  margin-bottom: 16px;
  padding-left: 22px;
}
ul li, ol li {
  margin-bottom: 9px;
  line-height: 1.56;
  font-size: 1.06rem;
}

/* EXPERT PROFILES */
.expert-profiles {
  background: #f5f4f0;
  border-radius: 12px;
  padding: 16px 24px;
  margin-top: 20px;
  font-size: 1rem;
}
.expert-profiles h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.13rem;
}

/* TESTIMONIALS */
.testimonial-card {
  box-shadow: 0 2px 14px rgba(41,51,77,0.07);
  border-radius: 16px;
  padding: 20px 26px;
  background: #f5f4f0;
  color: #29334d;
  margin-bottom: 20px;
  font-size: 1rem;
  min-width: 220px;
  max-width: 410px;
  flex: 1 1 220px;
}
.testimonial-card p {
  font-style: italic;
  color: #323232;
  font-size: 1.08rem;
  margin-bottom: 10px;
}
.testimonial-card strong {
  color: #29334d;
  font-size: 1.02rem;
  margin-top: 6px;
}
.testimonial-card span[aria-label] {
  color: #c99a36;
  font-size: 1.23rem;
  margin-top: 8px;
  letter-spacing: 1px;
  display: block;
}

/* VISUAL EFFECTS, TRANSITIONS */
.card, .feature, .testimonial-card, .cta, .mobile-nav a {
  transition: box-shadow 0.17s, background 0.19s, color 0.13s, transform 0.13s;
}

/* TYPOGRAPHY SCALE FOR RESPONSIVENESS */
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .feature-grid { gap: 18px; }
  .footer-columns { gap: 28px; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .content-wrapper,
  .footer-columns {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 24px;
  }
  .feature-grid,
  .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
  .feature {
    min-width: 0;
    width: 100%;
  }
  .section, section {
    padding: 32px 0 0 0;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
@media (max-width: 600px) {
  html { font-size: 14px; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.2rem; }
  .content-wrapper {
    gap: 14px;
  }
  .feature, .testimonial-card, .card {
    padding: 16px 12px;
  }
  .expert-profiles {
    padding: 10px 10px;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #fff;
  border-top: 1px solid #ededed;
  box-shadow: 0 -4px 16px rgba(41,51,77,0.05);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  width: 100vw;
  max-width: 100vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.33s cubic-bezier(.77,0,.175,1);
  transform: translateY(100%);
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner .cookie-banner-text {
  flex: 1 1 0;
  color: #29334d;
  font-size: 1rem;
  margin-right: 14px;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}
.cookie-banner .cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 24px;
  padding: 10px 22px;
  border: none;
  background: #f5f4f0;
  color: #29334d;
  cursor: pointer;
  transition: background 0.15s, color 0.19s;
}
.cookie-banner .cookie-btn.accept {
  background: #29334d;
  color: #fff;
}
.cookie-banner .cookie-btn.accept:hover, .cookie-banner .cookie-btn.accept:focus {
  background: #181e29;
}
.cookie-banner .cookie-btn.reject {
  background: #ededed;
  color: #29334d;
}
.cookie-banner .cookie-btn.reject:hover, .cookie-banner .cookie-btn.reject:focus {
  background: #c99a36;
  color: #fff;
}
.cookie-banner .cookie-btn.settings {
  background: #c99a36;
  color: #fff;
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: #a07b28;
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 10px;
  }
  .cookie-banner .cookie-buttons {
    flex-direction: column;
    gap: 8px;
  }
}

/* COOKIE PREFERENCE MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 13000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(41,51,77,0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 420px;
  width: 98vw;
  box-shadow: 0 6px 32px rgba(41,51,77,0.19);
  padding: 28px 28px 24px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: cookiePopIn 0.42s cubic-bezier(.44,.68,.17,1.09);
}
@keyframes cookiePopIn {
  0% { transform: scale(0.96) translateY(24px); opacity: 0; }
  72% { opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.23rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: #29334d;
}
.cookie-modal-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1.01rem;
}
.cookie-cat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.cookie-cat-label { font-weight: 600; color: #29334d; }
.cookie-toggle {
  appearance: none;
  width: 36px;
  height: 20px;
  border-radius: 12px;
  background: #ededed;
  position: relative;
  outline: none;
  transition: background 0.15s;
}
.cookie-toggle:checked { background: #c99a36; }
.cookie-toggle:before {
  content: '';
  display: block;
  width: 14px; height: 14px;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  background: #fff;
  transition: left 0.18s;
  box-shadow: 0 1px 4px rgba(41,51,77,0.10);
}
.cookie-toggle:checked:before {
  left: 19px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  background: none;
  color: #a0a0a0;
  font-size: 1.6rem;
  border: none;
  border-radius: 7px;
  transition: background 0.17s, color 0.14s;
  padding: 4px 8px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #f5f4f0;
  color: #29334d;
}
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.cookie-modal-actions .cookie-btn {
  flex: 1 1;
}

/* ACCESSIBLE FOCUS */
:focus-visible {
  outline: 2px solid #c99a36;
  outline-offset: 2px;
}
::selection {
  background: #c99a36;
  color: #fff;
}

/* MISC UTILITIES */
.mt-16 { margin-top: 16px !important; }
.mb-20 { margin-bottom: 20px !important; }
.gap-20 { gap: 20px !important; }

/* PRINT */
@media print {
  header, nav, .mobile-menu, .cookie-banner, .cookie-modal-overlay, footer {
    display: none !important;
  }
  section, main, .container {
    padding: 0 !important;
    margin: 0 !important;
  }
}
