/* --- 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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #f8f9fa;
  color: #253350;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol {
  margin-left: 1.5em;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
button, input, select, textarea {
  font: inherit;
  outline: none;
  border: none;
  background: none;
}
a {
  color: #2daa90;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #12416c;
  text-decoration: underline;
}

/* --- VARIABLE PASTEL COLOR PALETTE --- */
:root {
  --color-primary: #12416c;
  --color-secondary: #2daa90;
  --color-accent: #f8f9fa;
  --color-white: #ffffff;
  --color-black: #222846;
  /* Soft pastel accents */
  --color-pastel-blue: #e7f0fa;
  --color-pastel-green: #e9f9f3;
  --color-pastel-lilac: #f2eafc;
  --color-pastel-yellow: #fdf8e6;
  --color-pastel-pink: #fce8ed;
  --color-pastel-beige: #fdf7f0;
  /* Shadows */
  --shadow-card: 0 2px 24px rgba(80, 92, 123, 0.07);
  --shadow-subtle: 0 1.5px 8px rgba(145, 160, 220, 0.08);
  /* Font families */
  --font-display: 'Montserrat', 'Avenir Next', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* --- TYPOGRAPHY SYSTEM --- */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -.5px;
  margin-bottom: 18px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #253350;
  margin-bottom: 12px;
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
}

body, p, li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #253350;
  line-height: 1.7;
}
strong, b {
  font-weight: 600;
  color: #253350;
}

small {
  font-size: 0.89em;
  color: #495675;
}


/* ------- LAYOUT CONTAINERS ------- */
.container {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  margin: 0 auto;
  max-width: 900px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

/* ------- HEADER ------- */
header {
  background: linear-gradient(90deg, #e7f0fa 0%, #e9f9f3 100%);
  box-shadow: 0 2px 8px rgba(65, 76, 140, 0.07);
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 26px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  padding: 7px 14px;
  border-radius: 8px;
  transition: background 0.15s, color 0.18s;
}
nav a:hover, nav a:focus {
  background: var(--color-pastel-blue);
  color: var(--color-secondary);
}
.btn-primary {
  background: var(--color-secondary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 9px 28px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(45,170,144, 0.07);
  transition: background 0.25s, box-shadow 0.22s, color 0.2s;
}
.btn-primary:hover, .btn-primary:focus {
  background: #24a283;
  color: var(--color-white);
  box-shadow: 0 7px 30px rgba(45,170,144, 0.14);
}
.btn-secondary {
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 24px;
  border-radius: 20px;
  box-shadow: 0 3px 13px rgba(18,65,108,0.08);
  transition: background 0.22s, color 0.2s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #153a57;
  color: var(--color-white);
}

/* --- MOBILE BURGER MENU --- */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: none;
  color: var(--color-primary);
  border: none;
  cursor: pointer;
  margin-left: 12px;
  transition: color 0.2s;
  z-index: 1003;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: var(--color-secondary);
  background: var(--color-pastel-blue);
  border-radius: 50%;
}
.mobile-menu {
  position: fixed;
  z-index: 2001;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(232,236,252, 0.99);
  transition: transform 0.33s cubic-bezier(.75,0,.46,1.18);
  transform: translateX(100%);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -2px 0px 24px rgba(18,65,108,0.12);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.4rem;
  color: #253350;
  margin: 30px 32px 10px 0;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2010;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 0 38px;
  margin-top: 60px;
}
.mobile-nav a {
  font-size: 1.22rem;
  color: var(--color-primary);
  background: var(--color-white);
  border-radius: 12px;
  padding: 18px 18px;
  box-shadow: 0 1.5px 8px rgba(45,65,128,0.04);
  margin-bottom: 3px;
  font-family: var(--font-display);
  font-weight: 500;
  transition: background 0.17s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  background: var(--color-pastel-blue);
}

@media (max-width: 1100px) {
  nav {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  .container, .content-wrapper {
    max-width: 98vw;
    padding: 2px 8px;
  }
}
@media (max-width: 800px) {
  .content-wrapper {
    padding: 8px;
  }
}
@media (max-width: 768px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- HERO & HEADER SECTIONS --- */
.hero {
  background: linear-gradient(120deg, #e7f0fa 60%, #fce8ed 100%);
  padding: 58px 0 48px 0;
  border-radius: 0 0 38px 38px;
  margin-bottom: 50px;
  box-shadow: var(--shadow-card);
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}
.hero h1 {
  margin-bottom: 8px;
  font-size: 2.25rem;
}
.hero p {
  color: #384874;
  font-size: 1.17rem;
  max-width: 520px;
  margin-bottom: 14px;
}
.hero .btn-primary {
  margin-top: 30px;
  letter-spacing: .4px;
}

@media (max-width: 768px) {
  .hero {
    padding: 38px 0 25px 0;
    border-radius: 0 0 20px 20px;
  }
}

/* --- FLEX LAYOUTS & SPACING MANDATES --- */
.feature-grid, .category-grid, .service-list, .blog-post-list, .featured-blog-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.feature-grid > div,
.category-grid > div,
.service-list > div,
.blog-post-list > div,
.featured-blog-posts > div {
  background: var(--color-white);
  border-radius: 20px;
  padding: 28px 24px 24px 24px;
  flex: 1 1 260px;
  min-width: 240px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.22s, transform 0.18s;
}
.feature-grid > div:hover, .category-grid > div:hover, .service-list > div:hover, .featured-blog-posts > div:hover, .blog-post-list > div:hover {
  box-shadow: 0 8px 24px rgba(18,65,108,0.14);
  transform: translateY(-5px) scale(1.013);
}

.text-section {
  margin: 18px 0; 
}
.text-section ul {
  margin: 17px 0 10px 29px;
}
.text-section li {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.7;
}
.text-section img {
  width: 18px; vertical-align: middle;
  margin-right: 8px;
}

.cta-banner {
  background: linear-gradient(90deg, #e9f9f3 60%, #fdf8e6 100%);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 38px 18px;
  margin: 22px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.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;
}
@media (max-width: 768px) {
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* --- CARDS & CONTAINERS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 22px 20px 22px;
}
/* For card lists inside sidebars, etc. */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* --- SERVICES & FEATURES --- */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
}
.service-list > div {
  background: var(--color-pastel-yellow);
  box-shadow: var(--shadow-card);
}
.service-list h3 span {
  float: right;
  font-size: 1.05em;
  font-weight: 400;
  color: var(--color-secondary);
  margin-left: 10px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* --- TESTIMONIALS & REVIEWS --- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 22px 18px 22px;
  min-width: 260px;
  max-width: 360px;
  background: var(--color-pastel-lilac);
  color: #21304b;
  border-radius: 17px;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 20px;
  font-size: 1.07em;
  box-shadow: 0 3px 16px rgba(120, 140, 180, 0.13);
  border: 1.5px solid #ebe2fa;
  transition: box-shadow 0.16s;
}
.testimonial-card p {
  color: #222846;
  font-family: var(--font-body);
}
.testimonial-card span {
  font-size: 0.99em;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 500;
  opacity: 0.82;
}
.testimonial-card:hover {
  box-shadow: 0 7px 30px rgba(121,90,202,0.21);
}

/* --- BLOG & NEWSLETTER --- */
.blog-post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-post-list > div {
  background: var(--color-pastel-green);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.18s, transform 0.15s;
}
.categories-filter {
  margin: 16px 0 9px 0;
  font-size: 1.03em;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.categories-filter a {
  background: var(--color-pastel-lilac);
  border-radius: 8px;
  padding: 5px 15px;
  font-size: 1em;
  color: #6c54b6;
  font-weight: 500;
  margin-right: 4px;
  transition: background 0.13s, color 0.14s;
}
.categories-filter a:hover {
  background: #e7ddf9;
  color: var(--color-primary);
}
.popular-posts ul {
  margin-left: 0;
  padding-left: 17px;
  list-style: disc;
}

.newsletter-signup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: linear-gradient(90deg, #e9f9f3 70%, #fce8ed 100%);
  padding: 36px 16px;
  border-radius: 19px;
  box-shadow: var(--shadow-card);
  margin-top: 22px;
}

/* --- CONTACT + SHORT-BLOCKS --- */
.contact-short {
  display: flex;
  flex-direction: column;
  gap: 19px;
  align-items: flex-start;
  margin-top: 10px;
}
.contact-short ul {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 39px;
  padding: 0;
  margin: 5px 0 17px 0;
  list-style: none;
}
.contact-short li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-short img {
  width: 18px;
  height: auto;
}
.thank-you-message {
  font-size: 1.18rem;
  color: #384874;
  margin-bottom: 18px;
  background: var(--color-pastel-blue);
  border-radius: 15px;
  padding: 19px;
  box-shadow: var(--shadow-subtle);
}
.next-steps {
  margin-bottom: 16px;
}

/* --- FOOTER --- */
footer {
  background: linear-gradient(90deg, #e9f9f3 90%, #f8f9fa 100%);
  color: var(--color-primary);
  box-shadow: 0 -1.5px 17px rgba(145, 180, 220, 0.09);
  margin-top: 60px;
  padding-top: 36px;
  border-radius: 20px 20px 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
}
.footer-brand img {
  width: 54px;
  margin-bottom: 8px;
}
.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}
.footer-nav a {
  font-family: var(--font-body);
  color: var(--color-primary);
  font-size: 1em;
  padding: 5px 8px;
  border-radius: 8px;
  transition: background 0.17s, color 0.14s;
}
.footer-nav a:hover {
  background: var(--color-pastel-blue);
  color: var(--color-secondary);
}
footer p {
  font-size: 0.97em;
  color: #3c526a;
  margin-top: 0;
  margin-bottom: 0;
  letter-spacing: 0.02em;
}

@media (max-width: 650px) {
  .footer-nav { gap: 7px; }
  .footer-brand img {
    width: 38px;
  }
}

/* --- COOKIE CONSENT BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2100;
  background: linear-gradient(90deg, #e7f0fa 73%, #fce8ed 100%);
  color: #222846;
  box-shadow: 0 -4px 26px rgba(40,87,168,.09);
  padding: 20px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  justify-content: space-between;
  margin: 0 auto;
  border-radius: 21px 21px 0 0;
  animation: cookieBannerSlideIn 0.85s cubic-bezier(.96,0,.29,1.26) 1;
}
@keyframes cookieBannerSlideIn {
  from { transform: translateY(90px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.cookie-banner-text {
  font-size: 1.02em;
  color: #253350;
  flex: 1 1 auto;
}
.cookie-banner-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  font-size: 0.98em;
  font-family: var(--font-display);
  font-weight: 500;
  border-radius: 15px;
  padding: 7px 18px;
  min-width: 64px;
  margin: 0 0 0 1px;
  border: none;
  cursor: pointer;
  transition: background 0.16s, color 0.17s, box-shadow 0.2s;
  box-shadow: 0 1px 7px rgba(120,180,180,0.08);
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: var(--color-white);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #1f9b7d;
}
.cookie-btn.reject {
  background: var(--color-pastel-pink);
  color: #bd1b5c;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #f5c1cc;
}
.cookie-btn.settings {
  background: var(--color-pastel-blue);
  color: var(--color-primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #cfe6f7;
}
/* --- Cookie Modal --- */
.cookie-modal-backdrop {
  position: fixed; left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(32,44,72,0.49);
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein 0.3s;
}
@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 14px 64px rgba(45,65,108,0.18);
  max-width: 440px;
  width: 95vw;
  padding: 36px 26px 27px 26px;
  animation: mslideIn 0.44s cubic-bezier(.9,0,.50,1.08);
  z-index: 2250;
  position: relative;
}
@keyframes mslideIn {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  margin-bottom: 10px;
  font-size: 1.27em;
  color: var(--color-primary);
}
.cookie-category {
  background: var(--color-pastel-lilac);
  padding: 12px 14px;
  border-radius: 13px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.cookie-category label {
  flex: 1 1 auto;
  cursor: pointer;
  font-size: 1.06em;
}
.toggle-switch {
  display: inline-block;
  width: 36px;
  height: 22px;
  position: relative;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 3px; left: 0; right: 0; bottom: 3px;
  background: #c8d9eb;
  border-radius: 22px;
  transition: background 0.23s;
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--color-secondary);
}
.toggle-slider:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(5,17,22,0.11);
  transition: transform 0.22s;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(14px);
}
.cookie-modal-actions {
  margin-top: 18px;
  display: flex;
  gap: 17px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 13px; right: 13px;
  background: none;
  border: none;
  color: #754c98;
  font-size: 1.7rem;
  z-index: 10;
  cursor: pointer;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: #253350;
}

/* --- MEDIA QUERIES: RESPONSIVE DESIGN --- */
@media (max-width: 1050px) {
  .feature-grid, .category-grid, .service-list, .blog-post-list, .featured-blog-posts {
    gap: 17px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .category-grid, .service-list, .blog-post-list, .featured-blog-posts {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 700px) {
  .section { padding: 25px 6px; }
}
@media (max-width: 500px) {
  h1, .h1 { font-size: 1.40rem; }
  h2, .h2 { font-size: 1.09rem; }
  .section { padding: 16px 2px; }
  .testimonial-card, .card, .card-content {
    padding: 10px;
    min-width: 0;
    max-width: 98vw;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    max-width: 98vw;
    gap: 13px;
    padding: 15px 5px;
  }
}

/* --- MICRO-INTERACTIONS & VISUAL EFFECTS --- */
.btn-primary, .btn-secondary, .cookie-btn {
  cursor: pointer;
  will-change: background, box-shadow;
  transition: background 0.21s, box-shadow 0.21s, color 0.17s;
}
.btn-primary:active, .btn-secondary:active, .cookie-btn:active {
  box-shadow: 0 0 0 2.5px rgba(45,170,144,0.11);
}

.feature-grid > div img, .category-grid > div img {
  width: 42px;
  margin-bottom: 8px;
}

/* --- SPECIALS & MISC --- */
::-webkit-input-placeholder { color: #a7adc2; opacity: 1;} 
::-moz-placeholder { color: #a7adc2; opacity:1; }
:-ms-input-placeholder { color: #a7adc2; opacity:1; }
::placeholder { color: #a7adc2; opacity:1; }

hr {
  border: none;
  border-top: 1px solid #e3e7f4;
  margin: 29px 0;
}

/* Visually hidden (for accessibility) */
.sr-only {
  border: 0 !important;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

/* --- END --- */
