/* RESET & BASE --------------------------------------------------- */
/* Box sizing reset and general normalize */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: #fff;
  color: #283973;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #283973;
  text-decoration: none;
  transition: color 0.22s cubic-bezier(.6,0,.4,1);
}
a:hover, a:focus {
  color: #60A6A6;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  border: none;
  border-radius: 0;
  outline: none;
}
button {
  cursor: pointer;
  background: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.22s;
}

/* BRAND COLORS ---------------------------------------------------- */
:root {
  --color-primary: #283973;
  --color-secondary: #60A6A6;
  --color-accent: #F7E7D2;
  --color-bg: #FFF;
  --color-highlight: #F8CF38;
  --color-danger: #E14A4A;
  --color-info: #1976D2;
  --color-grey: #f3f5fa;
  --border-radius: 20px;
  --shadow-card: 0 4px 20px 0 rgba(40, 57, 115, 0.08);
  --shadow-popup: 0 8px 40px 0 rgba(40, 57, 115, 0.14);
}

/* FONT FACES ------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Roboto:wght@400;500;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 800;
  color: #283973;
  margin-bottom: 0.5em;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.2rem;
  line-height: 1.1;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.7rem;
  color: #283973;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  color: #283973;
  margin-bottom: 12px;
}
.subheadline, .tagline {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  color: #60A6A6;
  font-weight: 600;
  margin-bottom: 20px;
}
strong, b {
  font-weight: 700;
  color: #283973;
}
p {
  margin-bottom: 1.25em;
  color: #343a54;
  font-size: 1rem;
}

/* CONTAINER ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* LAYOUT & SPACING ------------------------------------------------ */
section {
  background: #fff;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s, box-shadow 0.22s;
}
.card:hover, .service-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 40px 0 rgba(40, 57, 115, 0.13);
}
.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;
}

/* GENERAL FLEXBOX GAP & SPACING ----------------------------------- */
.service-cards, .feature-grid, .blog-preview-list, .blog-feed, .tag-cloud, .faq {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-cards > *, .feature-grid > *, .blog-preview-list > *, .blog-feed > * {
  flex: 1 1 230px;
  min-width: 230px;
  background: var(--color-grey);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition: box-shadow 0.23s, transform 0.18s;
}
.blog-preview-list > *, .blog-feed > * {
  background: var(--color-accent);
}
.faq > div {
  background: var(--color-accent);
  border-radius: var(--border-radius);
  padding: 18px 22px;
  margin-bottom: 2px;
}

/* BUTTONS --------------------------------------------------------- */
.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.22s, color 0.18s, box-shadow 0.23s, transform 0.14s;
  margin-top: 7px;
  margin-bottom: 7px;
  text-align: center;
  box-shadow: 0 2px 12px 0 rgba(96,166,166, 0.12);
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}
.btn-primary {
  background: linear-gradient(90deg,#60A6A6 60%, #F8CF38 150%);
  color: #fff;
  text-shadow: 0 1px 10px rgba(40,57,115,0.15);
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: #283973;
  color: #F7E7D2;
  box-shadow: 0 8px 24px 0 rgba(40, 57, 115, 0.13);
  transform: scale(1.05);
}
.btn-secondary {
  background: #F8CF38;
  color: #283973;
  border: 2px solid #60A6A6;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #60A6A6;
  color: #fff;
}

/* NAVIGATION ------------------------------------------------------ */
header {
  background: #fff;
  box-shadow: 0 4px 18px 0 rgba(40,57,115,0.07);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 12px;
  padding-bottom: 12px;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 18px;
  transition: background 0.18s, color 0.18s;
  color: #283973;
  position: relative;
}
nav a.active, nav a:hover, nav a:focus {
  background: #F7E7D2;
  color: #283973;
}
header img {
  height: 42px;
  width: auto;
}

/* HERO SECTIONS --------------------------------------------------- */
.hero {
  background: linear-gradient(90deg,#F7E7D2 70%, #60A6A6 200%);
  display: flex;
  align-items: center;
  min-height: 320px;
  padding: 48px 0 40px 0;
  margin-bottom: 16px;
  border-bottom-left-radius: 48px 16px;
  border-bottom-right-radius: 120px 42px;
  box-shadow: 0 6px 40px 0 rgba(247,231,210,0.18);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.hero .container,
.hero .content-wrapper {
  align-items: flex-start;
  gap: 16px;
}
.hero h1 {
  color: #283973;
  font-size: 2.5rem;
  margin-bottom: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.hero .subheadline {
  color: #60A6A6;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* FEATURES, SERVICES & CARDS -------------------------------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  justify-content: center;
}
.feature-grid > div {
  flex: 1 1 200px;
  background: #F7E7D2;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 28px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  min-width: 220px;
  transition: box-shadow 0.18s, transform 0.18s;
  border: 2.5px solid transparent;
}
.feature-grid > div:hover {
  border: 2.5px solid #60A6A6;
  box-shadow: 0 8px 32px 0 rgba(40,57,115,0.12);
  transform: translateY(-6px) scale(1.025);
}
.feature-grid img {
  width: 34px;
  height: 34px;
}
.service-card {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 30px 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.16s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.service-card span, .service-card strong {
  color: #60A6A6;
  font-weight: 700;
  font-size: 1.11rem;
  margin-top: 8px;
}

/* BLOG & TAGS ----------------------------------------------------- */
.blog-preview-list, .blog-feed {
  margin-bottom: 36px;
}
.tag-cloud, .category-filters {
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 8px 0;
  display: flex;
}
.tag-cloud a, .category-filters a {
  background: #F7E7D2;
  color: #283973;
  border-radius: 18px;
  padding: 7px 18px;
  font-size: 0.97rem;
  font-weight: 600;
  font-family: Montserrat, Arial, sans-serif;
  transition: background 0.14s, color 0.14s;
}
.tag-cloud a:hover, .category-filters a:hover {
  background: #60A6A6;
  color: #fff;
}
.category-filters label {
  font-weight: 700;
  color: #60A6A6;
  margin-right: 7px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 14px;
}
.search-bar input[type=search] {
  padding: 11px 16px;
  border-radius: 999px;
  border: 2px solid #60A6A6;
  font-size: 1rem;
  outline: none;
}
.search-bar button {
  background: #60A6A6;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  transition: background 0.16s;
}
.search-bar button:hover {
  background: #283973;
  color: #F7E7D2;
}

/* TESTIMONIALS ---------------------------------------------------- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  min-width: 220px;
  flex: 1 1 270px;
  transition: box-shadow 0.18s, transform 0.18s, background 0.14s;
  border: 2px solid #F7E7D2;
  color: #283973;
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #283973;
  font-style: italic;
  margin-bottom: 4px;
}
.testimonial-card span {
  color: #60A6A6;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-card:after {
  content: '★';
  color: #F8CF38;
  font-size: 1.2rem;
  align-self: flex-end;
  margin-top: 8px;
  opacity: 0.6;
}
.testimonial-card:hover {
  box-shadow: 0 8px 40px #60A6A618;
  background: #F7E7D2;
  border-color: #60A6A6;
}

/* TABLES ---------------------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin: 28px 0 18px 0;
  box-shadow: var(--shadow-card);
  border-radius: var(--border-radius);
  overflow-x: auto;
  font-size: 1rem;
}
table caption {
  caption-side: top;
  text-align: left;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #60A6A6;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
table th, table td {
  padding: 15px 16px;
  text-align: left;
  border-bottom: 1px solid #f3f5fa;
}
table th {
  background: #F7E7D2;
  color: #283973;
  font-weight: 800;
}
table tr:last-child td {
  border-bottom: none;
}

/* LISTS, ICON LISTS ------------------------------------------------ */
ul li, ol li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
}
ul li img, ol li img {
  width: 22px;
  height: 22px;
}

/* FOOTER ---------------------------------------------------------- */
footer {
  background: #283973;
  color: #fff;
  margin-top: 60px;
  padding: 36px 0 18px 0;
  font-size: 0.99rem;
  border-top-left-radius: 64px 24px;
  border-top-right-radius: 24px 64px;
  box-shadow: 0 0 60px 0 rgba(40,57,115,0.07);
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-menu, .footer-social {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  margin-bottom: 15px;
}
.footer-menu a {
  color: #F8CF38;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-right: 5px;
  transition: color 0.16s;
}
.footer-menu a:hover {
  color: #fff;
}
.footer-brand img {
  width: 50px;
  height: 50px;
  margin-bottom: 12px;
}
.footer-contact {
  flex: 1 1 200px;
  min-width: 160px;
  color: #F7E7D2;
}
.footer-contact p {
  margin-bottom: 8px;
  color: #F7E7D2;
}
.footer-social a {
  margin-right: 8px;
  border-radius: 50%;
  transition: background 0.15s;
}
.footer-social a:hover {
  background: #F8CF38;
}
.footer-social img {
  width: 32px;
  height: 32px;
}

/* COOKIE CONSENT BANNER -------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff8ec;
  color: #283973;
  box-shadow: 0 -2px 30px 0 rgba(40,57,115,0.08);
  border-top: 3px solid #F8CF38;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px 12px 22px 12px;
  gap: 22px;
  font-size: 1rem;
  flex-wrap: wrap;
  animation: fadeInUpCookie 0.5s cubic-bezier(.62,.07,.54,.89);
}
@keyframes fadeInUpCookie {
  from { transform: translateY(60px); opacity:0; } 
  to   { transform: translateY(0);   opacity:1; }
}
.cookie-banner button {
  margin-left: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.16s, color 0.14s;
}
.cookie-banner .cookie-accept {
  background: #60A6A6;
  color: #fff;
}
.cookie-banner .cookie-accept:hover {
  background: #283973;
  color: #F7E7D2;
}
.cookie-banner .cookie-reject {
  background: #E14A4A;
  color: #fff;
}
.cookie-banner .cookie-reject:hover {
  background: #F8CF38;
  color: #283973;
}
.cookie-banner .cookie-settings {
  background: #F7E7D2;
  color: #283973;
}
.cookie-banner .cookie-settings:hover {
  background: #60A6A6;
  color: #fff;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(40,57,115,0.10);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieModal 0.3s cubic-bezier(.61,.13,.43,.93);
}
@keyframes fadeInCookieModal {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 30px;
  max-width: 390px;
  width: 92%;
  padding: 38px 26px 26px 26px;
  box-shadow: var(--shadow-popup);
  animation: slideInCookieModal 0.4s cubic-bezier(.66,.07,.65,1.01);
}
@keyframes slideInCookieModal {
  from { transform: translateY(80px); opacity:0; } 
  to   { transform: translateY(0);   opacity:1; }
}
.cookie-modal-content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #283973;
  margin-bottom: 12px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-weight: 500;
  color: #283973;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal-category input[type=checkbox] {
  transform: scale(1.2);
  accent-color: #60A6A6;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: #F8CF38;
  border: none;
  border-radius: 50%;
  font-size: 1.33rem;
  color: #283973;
  padding: 3px 9px;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-modal-close:hover {
  background: #60A6A6;
  color: #fff;
}

/* MOBILE NAV ------------------------------------------------------ */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 18px;
  right: 20px;
  background: #F8CF38;
  color: #283973;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  line-height: 1;
  border: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  transition: background 0.15s, color 0.14s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #60A6A6;
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 6px 46px 0 rgba(40,57,115,0.20);
  z-index: 2000;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.74,.07,.32,1.12);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 24px 24px 30px;
  gap: 24px;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
  animation: mobileMenuIn 0.36s cubic-bezier(.74,.07,.32,1.12);
}
@keyframes mobileMenuIn {
  from { transform: translateX(-110vw); opacity: 0.3; }
  to   { transform: translateX(0);     opacity: 1.0; }
}
.mobile-menu-close {
  background: #F8CF38;
  color: #283973;
  border-radius: 50%;
  border: none;
  font-size: 2rem;
  padding: 5px 16px;
  margin-bottom: 14px;
  margin-top: 2px;
  align-self: flex-end;
  transition: background 0.16s, color 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #60A6A6;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.mobile-nav a {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #283973;
  font-size: 1.14rem;
  background: #F7E7D2;
  border-radius: 18px;
  padding: 16px 0 14px 20px;
  margin-bottom: 4px;
  box-shadow: var(--shadow-card);
  transition: background 0.17s, color 0.14s, box-shadow 0.18s;
}
.mobile-nav a:hover {
  background: #60A6A6;
  color: #fff;
  box-shadow: 0 8px 20px #28397312;
}

/* Hide desktop nav & show mobile burger below 970px --------------- */
@media (max-width: 970px) {
  header .container nav, header .container .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 971px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* FLEXBOX: RESPONSIVE LAYOUTS -------------------------------------- */
@media (max-width: 768px) {
  .container {
    padding: 0 7px;
    max-width: 100vw;
    gap: 0;
  }
  .section {
    margin-bottom: 40px;
    padding: 24px 7px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .card-container, .feature-grid, .service-cards, .testimonial-slider, .blog-preview-list, .blog-feed, .faq {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  header .container {
    flex-direction: row;
    flex-wrap: nowrap;
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 12px;
  }
  .hero {
    padding: 30px 0 24px 0;
    min-height: 170px;
    border-bottom-right-radius: 60px 16px;
    border-bottom-left-radius: 38px 10px;
    font-size: 1rem;
  }
  h1 {
    font-size: 1.45rem;
  }
  h2 {
    font-size: 1.18rem;
  }
  .service-card, .testimonial-card, .feature-grid > div {
    padding: 17px 12px;
  }
  .footer-menu, .footer-social {
    flex-direction: column;
    gap: 8px;
  }
  footer .container {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
}

/* PLAYFUL MICRO-ANIMATIONS ---------------------------------------- */
.hero h1, .hero .subheadline, .hero .btn-primary {
  animation: fadeInHero 1.1s cubic-bezier(.7,0,.35,1.04);
}
@keyframes fadeInHero {
  from { opacity: 0; transform: translateY(30px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.service-card, .feature-grid > div, .testimonial-card, .faq > div, .blog-preview-list > div {
  animation: cardPopIn 0.65s cubic-bezier(.5,0,.38,1.2);
}
@keyframes cardPopIn {
  from { transform: scale(0.98) translateY(20px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; }
}

.btn-primary, .btn-secondary {
  animation: pulseButton 1.3s infinite alternate cubic-bezier(.54,-0.26,.54,1.23);
}
@keyframes pulseButton {
  from { box-shadow: 0 2px 12px 0 rgba(96,166,166, 0.09); }
  to   { box-shadow: 0 6px 32px 0 rgba(247,231,210,0.21); }
}

/* ACCESSIBILITY: FOCUS STATES ------------------------------------- */
a:focus, .btn-primary:focus, .btn-secondary:focus {
  outline: 2px solid #283973;
  outline-offset: 2px;
}

/* UTILITIES ------------------------------------------------------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 2px !important; }
.mb-4 { margin-bottom: 4px !important; }
.mb-8 { margin-bottom: 8px !important; }
.mt-2 { margin-top: 2px !important; }
.mt-8 { margin-top: 8px !important; }
.text-center { text-align: center; }
.w-full { width: 100%; }

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

/* PRINT ----------------------------------------------------------- */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  html, body { background: #fff; color: #000; }
}

/* END ------------------------------------------------------------- */
