/* --- CSS RESET & BASE --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  outline: none;
}
body {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  background: #FAF9F6;
  color: #223D5E;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  color: #223D5E;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h4 { font-size: 1.10rem; margin-bottom: 10px; }
h5, h6 { font-size: 1rem; margin-bottom: 8px; }
p, ul, ol { color: #273d54; font-family: 'Georgia', 'Times New Roman', Times, serif; margin-bottom: 16px; }
ul, ol { padding-left: 24px; }
ul li, ol li { margin-bottom: 8px; }
strong { font-weight: bold; }
a {
  color: #223D5E;
  text-decoration: none;
  transition: color .16s;
}
a:hover, a:focus {
  color: #6AB187;
  text-decoration: underline;
}
img { max-width: 100%; display: block; height: auto; }

/* --- LAYOUT & CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  padding: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 10px rgba(34, 61, 94, 0.045);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(34,61,94,0.03);
  border-bottom: 1px solid #e9e5df;
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 24px;
}
header nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
header nav a {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  color: #223D5E;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.20s, background 0.20s;
}
header nav a:hover, header nav a:focus {
  background: #e7ede6;
  color: #6AB187;
  text-decoration: none;
}
.button-primary {
  background: #223D5E;
  color: #fff;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.1rem;
  padding: 10px 32px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .2s;
  box-shadow: 0 2px 6px rgba(34,61,94,0.12);
  letter-spacing: 0.04em;
}
.button-primary:hover, .button-primary:focus {
  background: #6AB187;
  color: #223D5E;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #223D5E;
  font-size: 2rem;
  cursor: pointer;
  margin-left: 10px;
  padding: 5px;
  z-index: 41;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  z-index: 110;
  transform: translateX(-100%);
  transition: transform .38s cubic-bezier(.5,.22,0,1);
  box-shadow: 0 2px 14px rgba(34,61,94,0.10);
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #223D5E;
  padding: 20px 32px 10px 10px;
  align-self: flex-end;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  margin: 30px 0 0 44px;
}
.mobile-nav a {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.2rem;
  color: #223D5E;
  padding: 10px 8px;
  transition: background .16s, color .14s;
  border-radius: 8px;
  width: 100%;
  min-width: 192px;
  display: flex;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #EDEAE2;
  color: #6AB187;
}

@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
}

/* --- HERO SECTION --- */
.hero {
  background: #FAF9F6;
  padding-top: 40px;
  padding-bottom: 48px;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 2.8rem;
  color: #223D5E;
  margin-bottom: 10px;
}
.hero p {
  font-size: 1.20rem;
  color: #4b5c6f;
  margin-bottom: 22px;
}
.hero .button-primary {
  margin-top: 14px;
}

/* --- SECTION SPACING --- */
@media (max-width: 768px) {
  .section, .hero {
    padding: 24px 5vw;
    margin-bottom: 32px;
  }
}

/* --- FEATURE GRID / LIST FLEX --- */
.feature-grid, .product-list, .team-list, .steps-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.feature-grid > div, .product-list > div, .team-list > div, .steps-list > div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(34,61,94,0.08);
  padding: 30px 20px 20px 20px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid img, .steps-list img {
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
}

/* --- TESTIMONIALS --- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  border-radius: 16px;
  box-shadow: 0 1px 12px rgba(34,61,94,0.09);
  padding: 24px 20px;
  min-width: 260px;
  flex: 1 1 243px;
  max-width: 350px;
}
.testimonial-card p {
  color: #223D5E;
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 12px;
  margin-top: 0;
}
.testimonial-card .user-info {
  color: #6AB187;
  font-size: 0.99rem;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  margin-top: 12px;
}
.star-rating {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.user-avatar img {
  border-radius: 50%;
  border: 2px solid #6AB187;
  width: 50px;
  height: 50px;
  background: #F1F3F0;
  box-shadow: 0 1px 3px rgba(34,61,94,0.07);
}

/* --- CTA --- */
.cta {
  background: #223D5E;
  color: #fff;
  border-radius: 14px;
  margin: 50px 0 0 0;
  box-shadow: 0 2px 12px rgba(34,61,94,0.07);
}
.cta h2 { color: #fff; font-size: 2rem; }
.cta p { color: #e5e8eb; }
.cta .button-primary {
  background: #6AB187;
  color: #223D5E;
  margin-top: 20px;
}
.cta .button-primary:hover {
  background: #FAF9F6;
  color: #6AB187;
}

/* --- FORM ELEMENTS --- */
.contact-form, .newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 440px;
  margin-top: 10px;
}
.contact-form label {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  color: #223D5E;
  margin-bottom: 5px;
}
.contact-form input, .contact-form textarea, .newsletter-form input {
  border: 1px solid #D9DBE8;
  border-radius: 8px;
  font-size: 1rem;
  padding: 12px 14px;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  background: #FAF9F6;
  color: #273d54;
  transition: border-color .18s, box-shadow .15s;
}
.contact-form input:focus, .contact-form textarea:focus, .newsletter-form input:focus {
  border-color: #6AB187;
  box-shadow: 0 1px 4px rgba(106,177,135,0.13);
}
.contact-form button, .newsletter-form button {
  margin-top: 10px;
}

/* --- LISTS (FAQ, SUPPORT CATEGORIES, ETC.) --- */
.faq-list, .support-categories, .contact-info, .post-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: none;
  padding: 0;
  margin: 0 0 16px 0;
}
.faq-list li, .support-categories li, .contact-info li, .post-list li {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 8px rgba(34,61,94,0.05);
  padding: 18px 20px;
  color: #273d54;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 13px;
}
.faq-list strong, .support-categories strong {
  color: #223D5E;
}

/* --- FOOTER --- */
footer {
  background: #223D5E;
  color: #EDEAE2;
  padding: 48px 0 30px 0;
  margin-top: 64px;
}
footer .container {
  flex-direction: column;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-col:nth-child(1), .footer-col:nth-child(2), .footer-col:nth-child(3) {
  flex: 1 1 220px;
  max-width: 340px;
  margin-bottom: 20px;
}
.footer-col img {
  margin-bottom: 10px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: #F5F5F3;
  font-family: 'Georgia', serif;
  font-size: 1rem;
  margin-bottom: 2px;
  transition: color .17s;
}
footer nav a:hover, footer nav a:focus {
  color: #6AB187;
}
.legal-notes {
  font-size: 0.93rem;
  color: #CFC9B0;
  margin-top: 16px;
}
.social-icons {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.social-icons img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 7px rgba(34,61,94,0.07);
  padding: 5px;
  transition: box-shadow .18s;
}
.social-icons img:hover { box-shadow: 0 2px 12px #6AB18755; }

/* --- CARDS & CONTENT FLEX --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(34,61,94,0.07);
  padding: 20px 18px;
  min-width: 220px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .20s;
}
.card:hover {
  box-shadow: 0 3px 20px #6AB18725;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- BUTTON VISUAL VARIANTS --- */
.button-primary[disabled] {
  background: #b1b9c6;
  color: #fff;
  cursor: not-allowed;
}

/* --- COOKIES CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 200;
  width: 100vw;
  background: #223D5E;
  color: #fff;
  box-shadow: 0 2px 12px rgba(34,61,94,0.10);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 22px 16px 18px 16px;
  font-size: 1rem;
  transition: transform .36s cubic-bezier(.6,-.28,.57,1.22);
}
.cookie-banner.hide {
  transform: translateY(150%);
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cookie-banner button {
  background: #6AB187;
  color: #fff;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  border-radius: 18px;
  border: none;
  padding: 7px 26px;
  cursor: pointer;
  margin: 0;
  box-shadow: 0 1px 6px rgba(34,61,94,0.07);
  transition: background .17s, color .13s;
}
.cookie-banner button.cookie-settings-btn {
  background: #EDEAE2; color: #223D5E;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: #FAF9F6;
  color: #223D5E;
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal {
  position: fixed;
  z-index: 220;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,61,94,0.46);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity .24s;
}
.cookie-modal.active {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal-content {
  background: #fff;
  color: #223D5E;
  border-radius: 20px;
  max-width: 410px;
  width: 85vw;
  padding: 36px 28px 24px 28px;
  box-shadow: 0 5px 22px rgba(34,61,94,0.16);
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  right: 20px;
  top: 12px;
  border: none;
  background: none;
  color: #223D5E;
  font-size: 2rem;
  cursor: pointer;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.03rem;
}
.cookie-category label {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
}
.cookie-category input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #6AB187;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 18px;
}
.cookie-modal-actions button {
  padding: 7px 26px;
  font-size: 1rem;
  border-radius: 18px;
  color: #fff;
  background: #223D5E;
  border: none;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(34,61,94,0.07);
  transition: background .16s, color .11s;
}
.cookie-modal-actions button.save {
  background: #6AB187;
  color: #223D5E;
}
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus {
  background: #FAF9F6;
  color: #223D5E;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .footer-flex { flex-direction: column; gap: 20px; }
}
@media (max-width: 900px) {
  .feature-grid, .product-list, .team-list, .steps-list, .testimonial-slider, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div, .product-list > div, .team-list > div, .steps-list > div, .testimonial-card, .card {
    max-width: 100%;
    min-width: 0;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .content-wrapper {
    padding: 0;
  }
  .hero h1 { font-size: 2rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .footer-col img { max-width: 100px; }
  .card, .testimonial-card { padding: 18px 12px; }
  .cta { padding: 12px 6vw 28px 6vw; }
  .cookie-modal-content { max-width: 98vw; padding: 24px 7vw 20px 7vw; }
  .testimonial-slider { gap: 15px; }
  .feature-grid > div, .product-list > div, .team-list > div, .steps-list > div {
    padding: 18px 10px 14px 10px;
  }
  .text-image-section { flex-direction: column; gap: 22px; }
}
@media (max-width: 520px) {
  header .container { flex-direction: row; flex-wrap: wrap; }
  .cookie-banner { font-size: 0.98rem; gap: 18px; padding: 15px 6px 13px 6px; }
}

/* --- MICRO-INTERACTIONS & TRANSITIONS --- */
.card, .testimonial-card, .feature-grid > div, .product-list > div, .team-list > div, .steps-list > div {
  transition: box-shadow .22s, transform .13s;
}
.card:hover, .testimonial-card:hover, .feature-grid > div:hover,
.product-list > div:hover, .team-list > div:hover, .steps-list > div:hover {
  box-shadow: 0 4px 28px #6AB18717;
  transform: translateY(-3px) scale(1.02);
}
.button-primary, .cookie-banner button, .cookie-modal-actions button {
  transition: background .18s, color .16s, box-shadow .16s, transform .11s;
}
.button-primary:active, .cookie-banner button:active, .cookie-modal-actions button:active {
  transform: scale(0.97);
}
input, textarea {
  transition: box-shadow .17s, border-color .19s;
}
input:focus, textarea:focus {
  box-shadow: 0 2px 10px #6AB18713;
  border-color: #6AB187;
}

/* --- Utility --- */
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.pt-1 { padding-top: 8px !important; }
.pt-2 { padding-top: 16px !important; }
.pb-1 { padding-bottom: 8px !important; }
.pb-2 { padding-bottom: 16px !important; }

::-webkit-input-placeholder, input::placeholder, textarea::placeholder {
  color: #b5bfc6;
  opacity: 1;
  font-style: italic;
  letter-spacing: 0.02em;
}

/* --- ACCESSIBILITY CONTRAST ENHANCEMENTS --- */
.testimonial-card, .faq-list li, .card, .feature-grid > div, .steps-list > div, .team-list > div {
  color: #223D5E;
}
.testimonial-card p, .testimonial-card .user-info {
  color: #182941 !important;
}

/* --- END --- */
