/* RESET & NORMALIZE ----------------------------------------------------------*/
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;
  vertical-align: baseline;
  font: inherit;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 100%;
  scroll-behavior: smooth;
  background-color: #F6F5F3;
}
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.7;
  font-size: 16px;
  color: #243145;
  background: #F6F5F3;
  min-height: 100vh;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #243145;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus { outline: 2px dashed #8AB4C8; }
a:hover {
  color: #8AB4C8;
  text-decoration: underline;
}

/* TYPOGRAPHY ----------------------------------------------------------*/
h1, .h1 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  color: #243145;
}
h2, .h2 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #243145;
}
h3, .h3 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #243145;
  margin-bottom: 12px;
}
p, ul, ol, li {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: #243145;
  font-size: 1rem;
  letter-spacing: 0px;
}
.subheadline {
  font-size: 1.25rem;
  color: #8AB4C8;
  margin-bottom: 20px;
  font-style: italic;
}
strong {
  font-weight: bold;
  color: #243145;
}
ul,
ol {
  margin-bottom: 20px;
  margin-left: 24px;
  padding-left: 10px;
}
ul li, ol li {
  margin-bottom: 8px;
}

/* LAYOUT & CONTAINER ----------------------------------------------------------*/
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
@media (max-width: 768px) {
  section {
    padding: 28px 10px;
    margin-bottom: 36px;
  }
  .container {
    padding: 0 6px;
  }
}

/* FLEXBOX PRIMARY RULES ----------------------------------------------------------*/
.features-grid, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
@media (max-width: 900px) {
  .features-grid, .card-container, .content-grid {
    gap: 16px;
  }
}
.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: 20px;
  }
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px 0 rgba(36,49,69,0.04);
  padding: 24px 20px;
  transition: box-shadow 0.18s, transform 0.13s;
  display: flex;
  flex-direction: column;
  min-width: 240px;
  max-width: 1fr;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(36,49,69,0.12);
  transform: translateY(-4px) scale(1.01);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 12px 0 rgba(36,49,69,0.06);
  margin-bottom: 20px;
  color: #243145;
  font-size: 1.06rem;
}
.testimonial-card p {
  flex: 1 1 70%;
  margin: 0;
  font-style: italic;
  color: #243145;
}
.testimonial-card span {
  font-size: 0.95rem;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: #8AB4C8;
  font-weight: 500;
}
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* BUTTONS & CTA ----------------------------------------------------------*/
.cta-primary,
button, .blog-categories a {
  display: inline-block;
  background: #243145;
  color: #fff;
  border: none;
  border-radius: 26px;
  padding: 12px 32px;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 2px 12px 0 rgba(36,49,69,0.07);
  transition: background 0.20s, box-shadow 0.19s, color 0.15s, transform 0.10s;
  cursor: pointer;
  margin-bottom: 8px;
  text-align: center;
  text-decoration: none;
}
.cta-primary:hover,
button:hover, .blog-categories a:hover {
  background: #8AB4C8;
  color: #243145;
  box-shadow: 0 6px 22px 0 rgba(36,49,69,0.17);
  transform: translateY(-2px) scale(1.02);
}
.cta-primary:focus { outline: 2px solid #8AB4C8; }
button:active, .cta-primary:active {
  background: #486486;
  color: #F6F5F3;
  transform: scale(0.98);
}

/* FOOTER ----------------------------------------------------------*/
footer {
  background: #243145;
  color: #fff;
  padding: 32px 0 8px 0;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}
.footer-nav a {
  color: #8AB4C8;
  font-size: 1rem;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  letter-spacing: 0.01em;
  padding: 2px 0;
  position: relative;
  transition: color 0.18s;
}
.footer-nav a:hover {
  color: #F6F5F3;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
}
.footer-contact address,
.footer-contact div {
  color: #F6F5F3;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
}
.footer-contact a {
  color: #8AB4C8;
  font-weight: 600;
}
.footer-contact img {
  vertical-align: middle;
  margin-right: 7px;
  width: 22px;
  height: 22px;
}
@media (max-width: 768px) {
  .footer-nav {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
  }
}

/* BLOG CATEGORIES ----------------------------------------------------------*/
.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 1rem;
  color: #243145;
  margin-top: 16px;
}
.blog-categories a {
  background: #8AB4C8;
  color: #243145;
  border-radius: 18px;
  padding: 6px 18px;
  margin: 0 2px;
  font-size: 0.98rem;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  text-decoration: none;
}
.blog-categories a:hover { background: #243145; color: #fff; }

/* FORMS ----------------------------------------------------------*/
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
label {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
}
input[type="email"],
input[type="text"],
input[type="password"],
select {
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid #8AB4C8;
  background: #fff;
  font-size: 1rem;
  color: #243145;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  transition: border-color 0.16s;
}
input:focus, select:focus {
  border-color: #243145;
  outline: none;
}
button[type="submit"] {
  margin-top: 8px;
  align-self: flex-start;
}

/* MAIN NAVIGATION ----------------------------------------------------------*/
header {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(36,49,69,.05);
  position: sticky;
  top: 0;
  z-index: 25;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  padding: 16px 20px;
  justify-content: center;
}
.main-nav a {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.07rem;
  color: #243145;
  opacity: 0.95;
  padding: 6px 0;
  transition: color 0.18s, border-color 0.17s;
  border-bottom: 2px solid transparent;
  font-weight: 500;
}
.main-nav a:hover, .main-nav .cta-primary:hover {
  color: #8AB4C8;
  border-bottom: 2px solid #8AB4C8;
}
.main-nav .cta-primary {
  background: #8AB4C8;
  color: #243145 !important;
  font-weight: 700;
  border-radius: 24px;
  padding: 10px 22px;
  margin-left: 8px;
  transition: background 0.18s, color 0.16s;
  border: none;
  box-shadow: none;
}
.main-nav .cta-primary:focus {
  outline: 2px solid #243145;
}
.main-nav img {
  width: 44px;
  vertical-align: middle;
  margin-right: 10px;
}
@media (max-width: 1100px) {
  .main-nav {
    gap: 14px;
    padding: 16px 6px;
  }
  .main-nav img { margin-right: 4px;}
}

/* MOBILE NAVIGATION ----------------------------------------------------------*/
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 32px;
  top: 18px;
  background: #243145;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  z-index: 40;
  box-shadow: 0 2px 8px 0 rgba(36,49,69,0.09);
  transition: background 0.18s, transform 0.07s;
  cursor: pointer;
}
.mobile-menu-toggle:active {
  background: #8AB4C8;
  color: #243145;
  transform: scale(0.96);
}
@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #243145;
  color: #fff;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.7,.2,.36,1), opacity 0.17s;
  opacity: 0;
  pointer-events: none;
  padding-top: 34px;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.15rem;
  margin: 18px 26px 0 0;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s;
}
.mobile-menu-close:hover {
  background: #8AB4C8;
  color: #243145;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-top: 36px;
  width: 100%;
  padding-left: 30px;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.27rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(246,245,243,0.10);
  width: 100%;
  transition: background 0.08s, color 0.16s;
}
.mobile-nav a:focus { outline: 2px solid #fff; }
.mobile-nav a:hover {
  color: #8AB4C8;
  background: rgba(138,180,200,0.071);
}
@media (max-width: 700px) {
  .mobile-nav { padding-left: 12px; gap: 18px; }
  .mobile-menu { padding-top: 14px; }
}

/* ANIMATIONS ----------------------------------------------------------*/
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}
section, .testimonial-card {
  animation: fadeInUp 0.88s cubic-bezier(.4,0,.2,1);
}

/* CARDS ----------------------------------------------------------*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
@media (max-width: 900px) {
  .card-container {
    gap: 16px;
  }
}

/* SPACING ----------------------------------------------------------*/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex; flex-wrap: wrap; gap: 24px;
}
.card {
  margin-bottom: 20px; position: relative;
}
.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; padding: 20px;
}
.feature-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 15px;
}

/* MISC INTERACTIVE ----------------------------------------------------------*/
::-webkit-input-placeholder { color: #8AB4C8; opacity: 1; }
::-moz-placeholder { color: #8AB4C8; opacity: 1; }
:-ms-input-placeholder { color: #8AB4C8; opacity: 1; }
::placeholder { color: #8AB4C8; opacity: 1; }

/* HERO (optional improvements) ----------------------------------------------------------*/
.container > .content-wrapper > h1, section > .container > .content-wrapper > h1 {
  margin-top: 18px;
}

/* RESPONSIVE DESIGN ----------------------------------------------------------*/
@media (max-width: 1024px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.56rem; }
  h3 { font-size: 1.28rem; }
  .container { max-width: 98vw; }
}
@media (max-width: 700px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.10rem; }
  h3 { font-size: 1.02rem; }
  .container { padding: 0 3px; }
}

/* COOKIE BANNER & MODAL ----------------------------------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid #8AB4C8;
  box-shadow: 0 -2px 24px 0 rgba(36,49,69,0.18);
  padding: 24px 16px 18px 16px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  z-index: 1001;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  animation: fadeInUp 0.77s cubic-bezier(.4,0,.2,1);
}
.cookie-banner__text {
  flex: 1 1 70%;
  color: #243145;
  font-size: 1rem;
  margin-right: 20px;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.cookie-banner__btn {
  background: #8AB4C8;
  color: #243145;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  padding: 10px 22px;
  border: none;
  border-radius: 24px;
  transition: background 0.18s, color 0.16s;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0;
}
.cookie-banner__btn:hover,
.cookie-banner__btn:focus {
  background: #243145;
  color: #fff;
  outline: none;
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 18px 6px 12px 6px;
  }
  .cookie-banner__text { margin-right: 0; font-size: 0.98rem; }
  .cookie-banner__actions { gap: 8px; flex-wrap: wrap; }
}

.cookie-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36,49,69,.36);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  min-width: 310px;
  max-width: 98vw;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 32px 0 rgba(36,49,69,0.23);
  padding: 36px 26px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeInUp 0.46s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  border: none;
  background: transparent;
  color: #243145;
  font-size: 1.45rem;
  cursor: pointer;
}
.cookie-modal h2 {
  font-size: 1.45rem;
  color: #243145;
}
.cookie-category {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  gap: 16px;
}
.cookie-category label {
  font-size: 1rem;
  color: #243145;
  margin-left: 3px;
}
.cookie-category input[type="checkbox"] {
  accent-color: #8AB4C8;
  width: 22px; height: 22px;
  cursor: pointer;
}
.cookie-category input[type="checkbox"]:disabled {
  accent-color: #486486;
  opacity: .63;
  cursor: not-allowed;
}
.cookie-modal button {
  margin-top: 16px;
  background: #8AB4C8;
  color: #243145;
  padding: 8px 30px;
  font-size: 1rem;
  border-radius: 19px;
  border: none;
}
.cookie-modal button:hover { background: #243145; color: #fff; }
@media (max-width: 500px) {
  .cookie-modal { padding: 22px 7px 18px 7px; }
}

/* ACCESSIBILITY ----------------------------------------------------------*/
:focus { outline: 2px solid #8AB4C8; outline-offset: 2px; }

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

/* OVERRIDES & FINAL TOUCHES ----------------------------------------------------------*/
@media (max-width: 600px) {
  h1, h2 { font-size: 1.22rem !important; }
  .cta-primary, button { padding: 9px 12px; font-size: 0.99rem; }
  .card { padding: 13px 6px; }
}

/* Hide visually hidden but still accessible */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
