/* ======== CSS RESET & BASE ========== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
}
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F8F5F2;
  color: #243042;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #3E4C5E;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #2a3850;
  text-decoration: underline;
}
ul, ol {
  list-style-position: inside;
  margin-left: 1.2em;
}
section, main, nav, header, footer, article, aside, figure {
  display: block;
}
button, input, textarea {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  color: inherit;
  border: 1px solid #ced4da;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 16px;
  transition: border 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus {
  border: 1.5px solid #3E4C5E;
  outline: none;
  box-shadow: 0 2px 8px rgba(62,76,94,0.06);
}
textarea {
  min-height: 90px;
  resize: vertical;
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #3E4C5E;
}

/* ======== TYPOGRAPHY SCALE ========== */
h1, .h1 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 2.5rem;
  color: #3E4C5E;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -2px;
}
h2, .h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 2rem;
  color: #3E4C5E;
  font-weight: 700;
  margin-bottom: 16px;
}
h3, .h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.4rem;
  color: #3E4C5E;
  font-weight: 700;
  margin-bottom: 8px;
}
h4, .h4 {
  font-size: 1.125rem;
  color: #3E4C5E;
  font-weight: 600;
}
p, li, label {
  font-size: 1rem;
  color: #243042;
}
strong {
  color: #3E4C5E;
  font-weight: 700;
}

/* ======== CONTAINER & GLOBAL LAYOUT ========== */
.container {
  width: 94%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0 0 20px 0;
}
.text-section {
  max-width: 740px;
  margin-bottom: 32px;
}

/* ======== HEADER LAYOUT ========== */
header {
  background: #fff;
  box-shadow: 0 3px 12px 0 rgba(62,76,94,0.06);
  padding: 0;
  z-index: 2000;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 0;
}
header a img {
  height: 44px;
  margin: 18px 0;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
header nav a {
  font-weight: 500;
  font-size: 1rem;
  color: #3E4C5E;
  border-radius: 5px;
  padding: 7px 10px;
  transition: background 0.16s, color 0.16s;
  position: relative;
}
header nav a:focus, header nav a:hover {
  background: #F8F5F2;
  color: #194175;
}
header nav a.cta {
  background: #3E4C5E;
  color: #fff;
  padding: 9px 18px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 5px;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(62,76,94,0.07);
}
header nav a.cta:hover, header nav a.cta:focus {
  background: #273346;
  color: #E8C9A5;
}

/* ======== MOBILE MENU ========== */
.mobile-menu-toggle {
  display: none;
  background: #3E4C5E;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 1.6rem;
  margin-left: 12px;
  cursor: pointer;
  z-index: 4100;
  transition: background 0.2s, box-shadow 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #273346;
  box-shadow: 0 4px 16px rgba(62,76,94,0.15);
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(62, 76, 94, 0.98);
  display: flex;
  flex-direction: column;
  z-index: 4200;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(0.72, 0.02, 0.32, 1);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 18px 0 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  z-index: 4300;
  transition: color 0.2s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #E8C9A5;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin: 40px 32px;
  flex: 1 1 auto;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.14rem;
  font-weight: 500;
  padding: 10px 6px;
  border-radius: 5px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #273346;
  color: #E8C9A5;
}
@media (max-width: 980px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ======== MAIN LAYOUT & PADDING ========== */
main {
  background: #F8F5F2;
  min-height: 70vh;
  padding-top: 12px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 24px 5vw;
  }
}

/* ======== CARDS & FLEX LAYOUTS ========== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px 0 rgba(62,76,94,0.09);
  padding: 34px 28px 26px 28px;
  margin-bottom: 20px;
  position: relative;
  min-width: 250px;
  flex: 1 1 280px;
  transition: box-shadow 0.2s, transform 0.17s;
}
.card:hover {
  box-shadow: 0 3px 22px 0 rgba(62,76,94,0.16);
  transform: translateY(-4px) scale(1.015);
}

.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;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px 0 rgba(62,76,94,0.07);
  margin-bottom: 20px;
  min-width: 260px;
  flex: 1 1 320px;
}
.testimonial-card p {
  color: #243042;
  font-size: 1.1rem;
  margin-bottom: 0;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #657389;
  font-weight: 500;
}
.feature-item, .feature-list > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(62,76,94,0.10);
  padding: 28px 18px 16px 18px;
  margin-bottom: 20px;
  flex: 1 1 230px;
  min-width: 180px;
  transition: box-shadow 0.17s, transform 0.14s;
}
.feature-item:hover, .feature-list > div:hover {
  box-shadow: 0 6px 16px 0 rgba(62,76,94,0.15);
  transform: translateY(-3px) scale(1.03);
}
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.feature-list img {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
}

.usp-list {
  margin-top: 18px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 16px;
}

/* ======== BUTTONS & CTA ========== */
.cta, button.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #3E4C5E;
  color: #fff;
  border-radius: 6px;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.09rem;
  font-weight: 700;
  border: none;
  padding: 12px 26px;
  margin-top: 16px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(62,76,94,0.09);
  transition: background 0.18s, box-shadow 0.22s, color 0.16s, transform 0.13s;
  text-align: center;
  text-decoration: none;
  gap: 10px;
}
.cta:hover, .cta:focus {
  background: #2A3850;
  color: #E8C9A5;
  box-shadow: 0 5px 22px 0 rgba(62,76,94,0.15);
  transform: translateY(-2px) scale(1.045);
}

button[type="submit"] {
  cursor: pointer;
}

/* ======== FORMS ========== */
form {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 15px 0 16px 0;
  max-width: 440px;
}
input[type="text"], input[type="email"], textarea {
  background: #F8F5F2;
  border: 1px solid #ced4da;
  font-size: 1rem;
  border-radius: 5px;
  padding: 9px 12px;
  margin-bottom: 14px;
  color: #243042;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: #3E4C5E;
  outline: 2px solid #E8C9A5;
}

/* ======== FOOTER ========== */
footer {
  background: #3E4C5E;
  color: #fff;
  padding: 32px 0 20px 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
  justify-content: center;
}
footer nav a {
  color: #E8C9A5;
  font-size: 1rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  transition: background 0.11s, color 0.11s;
}
footer nav a:focus, footer nav a:hover {
  background: #e8c9a525;
  color: #fff;
}
footer p {
  font-size: 0.92rem;
  color: #e0e4ea;
}

/* ======== SECTION & CARD SPACING ========== */
.section, .content-wrapper, .feature-list, .card-container, .content-grid {
  gap: 24px;
}
.card, .testimonial-card, .feature-item, .feature-list > div {
  margin-bottom: 20px;
}
@media (max-width: 990px) {
  .card-container, .feature-list, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}

/* ======== RESPONSIVE & FLEX ADJUSTMENTS ========== */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  h1, .h1 {
    font-size: 2.1rem;
  }
  h2, .h2 {
    font-size: 1.5rem;
  }
  .container {
    width: 98%;
    padding: 0 2vw;
  }
  .text-image-section {
    flex-direction: column;
    text-align: center;
    gap: 22px;
  }
  .feature-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    min-width: 200px;
  }
}

@media (max-width: 520px) {
  html {
    font-size: 14px;
  }
  .container {
    width: 100%;
    padding: 0 4vw;
  }
  header .container {
    min-height: 54px;
  }
}

/* ======== ICONS & INFO LISTS ========== */
.text-section ul, .content-wrapper ul, .usp-list {
  margin-bottom: 10px;
  margin-top: 12px;
  padding-left: 12px;
}
.text-section ul li, .content-wrapper ul li, .usp-list li {
  margin-bottom: 9px;
  line-height: 1.6;
  padding-left: 3px;
}
.content-wrapper ul li img, .text-section ul li img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 7px;
}

/* ======== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 5100;
  background: #3E4C5E;
  color: #fff;
  box-shadow: 0 -3px 12px 0 rgba(62,76,94,0.19);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 7vw 18px 7vw;
  gap: 22px;
  font-size: 1rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s, transform 0.3s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(110%);
  pointer-events: none;
}
.cookie-banner p {
  flex: 1 1 110px;
  margin-right: 10px;
  color: #fff;
}
.cookie-banner .cookie-btn-group {
  display: flex;
  gap: 10px;
  align-items: center;
}
.cookie-banner button {
  border: none;
  border-radius: 5px;
  font-weight: 600;
  padding: 10px 22px;
  margin: 0 0 0 0;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.20s, color 0.20s, transform 0.14s;
}
.cookie-banner .accept {
  background: #04aa6d;
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #037d50;
}
.cookie-banner .reject {
  background: #b84343;
  color: #fff;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #821f1f;
}
.cookie-banner .settings {
  background: #E8C9A5;
  color: #3E4C5E;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #F8F5F2;
  color: #3E4C5E;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 4vw;
    gap: 12px;
    font-size: 1rem;
  }
  .cookie-banner .cookie-btn-group {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ======== COOKIE SETTINGS MODAL ========== */
.cookie-modal {
  position: fixed;
  z-index: 5200;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36, 48, 66, 0.80);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.cookie-modal-content {
  background: #fff;
  color: #243042;
  border-radius: 12px;
  min-width: 320px;
  max-width: 95vw;
  width: 430px;
  padding: 36px 30px 28px 30px;
  box-shadow: 0 8px 44px 0 rgba(62,76,94,0.17);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-content h2 {
  color: #3E4C5E;
  font-size: 1.34rem;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e9e6e0;
  padding: 12px 0;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category span {
  font-weight: 500;
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #3E4C5E;
  pointer-events: auto;
}
.cookie-modal-content .btn-row {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal-content .close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  font-size: 2rem;
  color: #3E4C5E;
  border: none;
  cursor: pointer;
  z-index: 5300;
}
.cookie-modal-content .close:hover, .cookie-modal-content .close:focus {
  color: #b84343;
}

/* ======== UTILITIES / MICRO-INTERACTIONS ======= */
.shadow {
  box-shadow: 0 4px 22px rgba(62,76,94,0.09);
}
.rounded {
  border-radius: 10px;
}
.fade-in {
  animation: fadeIn 0.6s linear;
}
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: none; }
}

/* ======== ACCESSIBILITY ======== */
:focus {
  outline: 2px solid #E8C9A5;
  outline-offset: 2px;
}

/* ======== OVERRIDES FOR INTERNAL SECTIONS ======= */
/* Ensure sections not overlapping, respect spacing. */
section + section {
  margin-top: 40px;
}

/* Use accent on testimonial, cards, and backgrounds for warmth */
.testimonial-card {
  background: #F8F5F2;
  border-left: 6px solid #E8C9A5;
}
.feature-list > div {
  border-left: 5px solid #E8C9A5;
}

/* Minor style for code/inline elements if needed */
code, pre {
  background: #ececec;
  border-radius: 5px;
  padding: 2px 7px;
  font-family: 'Roboto Mono', monospace;
}

/* ======= PRINT STYLES (MINIMAL) ======= */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal {
    display: none !important;
  }
  main {
    padding: 0 !important;
    background: #fff !important;
  }
}
