/* CSS 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;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  line-height: 1.15;
  scroll-behavior: smooth;
}
body {
  background: #FFF;
  color: #21213F;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
a {
  color: #19B3A6;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #21213F;
  text-decoration: underline;
}

/* BRAND COLORS & TYPOGRAPHY */
:root {
  --color-primary: #21213F;
  --color-secondary: #19B3A6;
  --color-accent: #F2EDA6;
  --color-bg-light: #FEFCF6;
  --color-faded: #C9CADD;
  --color-neutral: #F7F8FB;
  --box-shadow: 0 4px 24px rgba(33, 33, 63, 0.12);
  --border-radius: 18px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--color-primary);
}
h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-weight: 500;
}
p {
  margin-bottom: 18px;
  font-size: 1rem;
}
strong {
  font-weight: 600;
}

blockquote {
  font-style: italic;
  color: #21213F;
  background: #F7F8FB;
  border-left: 4px solid #F2EDA6;
  padding: 20px 28px;
  margin-bottom: 8px;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(33,33,63,0.05);
}

ul, ol {
  margin-left: 24px;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 12px;
}

/* LAYOUT CONTAINERS */
.container {
  max-width: 1200px;
  width: 95%;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FEFCF6;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: #FFF;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 20px;
  padding: 28px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.content-grid, .post-grid, .blog-preview {
  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;
  background: #FFF;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FFF;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 18px rgba(33,33,63,0.11);
  margin-bottom: 24px;
  max-width: 560px;
  color: #21213F;
}
.testimonial-card p {
  margin-bottom: 0;
  color: #19B3A6;
  font-weight: 500;
}

.feature-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 18px 0 16px 0;
  align-items: center;
}
.feature-icons span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  background: #F2EDA6;
  color: #21213F;
  padding: 10px 18px;
  border-radius: 14px;
  font-weight: 600;
}
.feature-icons img {
  height: 26px;
  width: 26px;
}

/* BUTTONS & CTAs */
.cta-button,
button,
input[type="submit"] {
  background: linear-gradient(90deg, #F2EDA6 60%, #19B3A6 100%);
  color: #21213F;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  padding: 12px 36px;
  font-size: 1.14rem;
  border: none;
  border-radius: 26px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(33,33,63,0.08);
  outline: none;
  margin: 4px 0 16px 0;
  letter-spacing: 0.25px;
  display: inline-block;
}
.cta-button:hover, button:hover, input[type="submit"]:hover {
  background: linear-gradient(90deg, #F2EDA6 30%, #19B3A6 80%);
  color: #FFF;
  box-shadow: 0 4px 16px rgba(33,33,63,0.19);
}
.cta-button:active, button:active {
  background: #19B3A6;
  color: #FFF;
}

.main-nav a,
.footer-nav a {
  padding: 8px 18px;
  margin: 0 4px;
  color: #21213F;
  font-weight: 500;
  border-radius: 18px;
  transition: background 0.15s, color 0.15s;
  font-family: 'Montserrat', Arial, sans-serif;
}
.main-nav a:hover, .footer-nav a:hover, .main-nav a:focus, .footer-nav a:focus {
  background: #F2EDA6;
  color: #19B3A6;
  text-decoration: none;
}

/* HEADER NAVIGATION & MOBILE NAV */
header {
  width: 100%;
  background: #FFF;
  box-shadow: 0 1px 12px rgba(33,33,63,0.07);
  position: sticky;
  top: 0;
  z-index: 40;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 22px 4vw 18px 4vw;
}
.main-nav img {
  height: 44px;
  margin-right: 12px;
  border-radius: 0;
}

.mobile-menu-toggle {
  background: var(--color-secondary);
  color: #FFF;
  border: none;
  border-radius: 50%;
  font-size: 2.4rem;
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 60;
  box-shadow: 0 2px 12px rgba(25,179,166,0.12);
  cursor: pointer;
  transition: background 0.18s, color 0.15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F2EDA6;
  color: var(--color-secondary);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33,33,63,0.93);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.85,0,.23,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: #FFF;
  font-size: 2.2rem;
  border: none;
  position: absolute;
  right: 24px;
  top: 20px;
  cursor: pointer;
  z-index: 101;
  padding: 0 8px;
  border-radius: 12px;
  transition: color 0.15s, background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #19B3A6;
  color: #FFF;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 86px;
  margin-right: 32px;
}
.mobile-nav a {
  color: #FFF;
  background: transparent;
  padding: 14px 0;
  font-size: 1.22rem;
  border-radius: 10px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.1px;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F2EDA6;
  color: #21213F;
}

@media (max-width: 1200px) {
  .container { max-width: 98vw; }
}
@media (max-width: 990px) {
  .main-nav img { height: 34px; }
}
@media (max-width: 850px) {
  .main-nav {
    gap: 2px;
    padding-left: 2vw; padding-right: 2vw;
  }
  .container {
    width: 99vw;
    max-width: 100vw;
  }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle {
    display: flex;
    position: absolute;
  }
  .mobile-menu {
    display: flex;
  }
  .section, .content-wrapper {
    padding: 20px 8px;
  }
  .testimonial-card { max-width: 97vw; }
  .feature-icons {
    gap: 14px;
    flex-direction: column;
  }
  .content-grid, .post-grid, .blog-preview {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .card-container {
    flex-direction: column;
    gap: 16px;
  }
  footer img { max-width: 90px; }
}

@media (max-width: 540px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.21rem; }
  .container { padding: 0; }
  section, .section { padding: 12px 2px; }
}

/* BLOG PREVIEW, POST GRID */
.blog-preview, .post-grid {
  width: 100%;
}
.blog-preview article, .post-grid article {
  background: #FFF;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 24px 16px;
  flex: 1 1 270px;
  margin-bottom: 20px;
  max-width: 340px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.18s, transform 0.10s;
}
.blog-preview article:hover, .post-grid article:hover {
  box-shadow: 0 6px 32px rgba(25,179,166,0.16);
  transform: translateY(-6px) scale(1.015);
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 8px 0 12px;
}
.category-nav a {
  padding: 8px 24px;
  background: #F2EDA6;
  color: #21213F;
  border-radius: 16px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.12s, color 0.11s;
}
.category-nav a:hover, .category-nav a:focus {
  background: #19B3A6;
  color: #FFF;
}

/* FOOTER */
footer {
  margin-top: 80px;
  padding: 40px 0 0 0;
  background: var(--color-primary);
  color: #FFF;
  box-shadow: 0 -1px 20px rgba(33,33,63,0.09);
  border-radius: 38px 38px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
  justify-content: center;
}
.footer-nav a {
  padding: 10px 18px;
  color: #FFF;
  background: none;
  font-size: 1rem;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #19B3A6;
  color: #FFF;
}
.footer-contact {
  text-align: center;
  line-height: 1.65;
  color: #F2EDA6;
  font-size: 1rem;
  margin-bottom: 36px;
}
footer img {
  max-width: 120px;
  margin-bottom: 8px;
}

/* TEXT SECTIONS, FAQ */
.text-section {
  margin: 8px 0 14px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.text-section h3 { margin-bottom: 2px; }

/* ICON LISTS */
.content-wrapper ul li img {
  height: 22px;
  width: 22px;
  vertical-align: middle;
  margin-right: 8px;
  border-radius: 8px;
}

/* FORM ELEMENTS (few forms, but style inputs) */
input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid #C9CADD;
  margin-bottom: 16px;
  background: #FCFCFA;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  transition: border-color 0.14s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: #19B3A6;
  outline: none;
}

/* COOKIES CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: rgba(249,242,202,0.98);
  color: #21213F;
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 28px 22px 28px;
  box-shadow: 0 -2px 24px rgba(33,33,63,0.16);
  border-radius: 22px 22px 0 0;
  font-size: 1rem;
}
.cookie-banner-text {
  flex: 1 1 340px;
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
}
.cookie-banner .cookie-btn {
  padding: 10px 24px;
  border-radius: 18px;
  border: none;
  background: #21213F;
  color: #FFF;
  font-size: 1.05rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  box-shadow: 0 1px 6px rgba(33,33,63,0.10);
  transition: background 0.16s, color 0.12s;
  outline: none;
  cursor: pointer;
}
.cookie-banner .cookie-btn.cookie-accept {
  background: #19B3A6;
  color: #FFF;
}
.cookie-banner .cookie-btn.cookie-settings {
  background: #F2EDA6;
  color: #21213F;
}
.cookie-banner .cookie-btn.cookie-reject {
  background: #C9CADD;
  color: #21213F;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #21213F;
  color: #F2EDA6;
}

@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 9px;
    font-size: 0.99rem;
  }
  .cookie-banner-buttons {
    width: 100%;
    gap: 8px;
    justify-content: flex-start;
    margin-bottom: 0;
  }
}

/* COOKIES MODAL */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(33,33,63,0.65);
  z-index: 2100;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #FFF;
  color: #21213F;
  border-radius: 22px;
  max-width: 400px;
  width: 96vw;
  padding: 30px 24px 22px 24px;
  box-shadow: 0 8px 48px rgba(33,33,63,0.21);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeSlideIn .45s cubic-bezier(.7,0,.22,1);
  outline: none;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  font-weight: 700;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-size: 1rem;
}
.cookie-modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.cookie-close {
  background: transparent;
  position: absolute;
  top: 8px; right: 14px;
  border: none;
  font-size: 1.7rem;
  color: #21213F;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.13s, color 0.13s;
  outline: none;
}
.cookie-close:hover, .cookie-close:focus {
  background: #F2EDA6;
}

@keyframes fadeSlideIn {
  0% { opacity: 0; transform: translateY(32px) scale(0.96);} 
  100% { opacity: 1; transform: translateY(0) scale(1);} 
}

/* MICRO-INTERACTIONS, TRANSITIONS */
section, .card, .cta-button, .testimonial-card, .card-container > *, .content-wrapper, .content-grid > *, .blog-preview > *, .post-grid > * {
  transition: box-shadow 0.18s, transform 0.20s, background 0.18s, color 0.16s;
}

/* VISUALS & EFFECTS */
section, .card, .testimonial-card, .feature-item {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* SPACING */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { gap: 24px; }
.card { margin-bottom: 20px; }
.content-grid, .post-grid, .blog-preview { gap: 20px; }
.text-image-section { gap: 30px; }
.testimonial-card { gap: 20px; padding: 20px; }
.feature-item { gap: 15px; }
.content-wrapper > * + * { margin-top: 0; }

/* ENSURE NO OVERLAP */
section, .section, .card, .testimonial-card, .feature-item, .blog-preview > *, .content-grid > *, .card-container > *, .post-grid > * {
  margin-bottom: 20px;
}

/* OVERRIDE MARGIN FOR LAST CHILD */
.card:last-child, .testimonial-card:last-child, .blog-preview > *:last-child, .content-grid > *:last-child {
  margin-bottom: 0;
}

/* Misc Utilities */
[hidden] { display: none !important; }

/* ACCESSIBILITY: Ensure good contrast for testimonials */
.testimonial-card, .testimonial-card blockquote {
  color: #21213F;
  background: #F7F8FB;
}
.testimonial-card p {
  color: #19B3A6;
  font-weight: 600;
}

/* Focus States for Accessibility */
a:focus, button:focus, .cta-button:focus, .cookie-btn:focus, input:focus, .cookie-close:focus {
  outline: 2px solid #19B3A6;
  outline-offset: 2px;
}

/* Hide scrollbars on mobile-menu, modal overlay */
.mobile-menu, .cookie-modal-overlay {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
.mobile-menu::-webkit-scrollbar, .cookie-modal-overlay::-webkit-scrollbar { display: none; }

/* Print styles (optional minimal for clean output) */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body, section, .section, main { background: #FFF !important; color: #21213F !important; }
}
