/* --- 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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #f8fcff;
  color: #22314f;
  min-height: 100vh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  transition: background 0.3s;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style-position: inside;
  margin-left: 0;
}
img {
  max-width: 100%;
  height: auto;
  border-style: none;
  display: block;
}
button, input, textarea, select {
  font: inherit;
  color: inherit;
  outline: none;
  border: none;
  background: transparent;
}
button {
  cursor: pointer;
}

/* --- BRAND COLOR PALETTE --- */
:root {
  --brand-primary: #22314f;
  --brand-secondary: #50bfa9;
  --brand-accent: #ffffff;
  --vibrant-yellow: #fed700;
  --electric-pink: #ff3e95;
  --electric-blue: #19c1eb;
  --electric-purple: #8053ff;
  --neutral-bg: #f8fcff;
  --neutral-card: #ffffff;
  --shadow-color: rgba(34, 49, 79, 0.15);
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --border-radius-sm: 8px;
  --spacing-xs: 8px;
  --spacing-s: 16px;
  --spacing-m: 24px;
  --spacing-l: 32px;
  --spacing-xl: 40px;
  --transition-fast: 0.22s cubic-bezier(.33,1,.68,1);
  --transition-normal: 0.35s cubic-bezier(.33,1,.68,1);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--brand-primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  font-weight: 700;
  line-height: 1.14;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-m);
}
h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-s);
}
h3 {
  font-size: 1.4rem;
  margin-bottom: var(--spacing-xs);
}
h4 {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-xs);
}
p {
  font-size: 1rem;
  color: #29385c;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  margin-bottom: var(--spacing-xs);
  line-height: 1.6;
}
ul, ol {
  margin-bottom: var(--spacing-s);
  color: #29406b;
  font-size: 1rem;
}
li {
  margin-bottom: 0.5em;
}
strong {
  font-weight: 700;
}

/* --- CONTAINER AND SECTION LAYOUT --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-s);
  padding-right: var(--spacing-s);
}
main {
  padding-bottom: 80px; /* Space for cookie banner */
}
.section,
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-m);
  align-items: flex-start;
}
.text-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-s);
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(120deg, var(--electric-blue) 0%, var(--vibrant-yellow) 100%);
  color: var(--brand-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 6px 64px var(--shadow-color);
  margin-bottom: 60px;
  overflow: hidden;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: var(--spacing-m);
}
.hero h1,
.hero p {
  color: var(--brand-primary);
  text-shadow: 0 1px 6px rgba(255,255,255,0.3);
}
.hero h1 {
  font-size: 2.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: -1px;
}
.hero .cta.primary {
  margin-top: var(--spacing-s);
}

/* --- NAVIGATION --- */
header {
  background: var(--brand-primary);
  color: var(--brand-accent);
  box-shadow: 0 2px 12px var(--shadow-color);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 110;
}
header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-m);
  padding: var(--spacing-xs) var(--spacing-l);
  justify-content: flex-start;
}
header nav img {
  height: 42px;
  margin-right: var(--spacing-xs);
}
header nav a {
  color: var(--brand-accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: var(--spacing-xs) var(--spacing-xs);
  margin-right: 2px;
  border-radius: var(--border-radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
  position: relative;
}
header nav a.cta.primary {
  background: var(--vibrant-yellow);
  color: var(--brand-primary);
  font-weight: bold;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  padding: 10px 24px;
  border-radius: var(--border-radius-md);
  margin-left: auto;
  box-shadow: 0 2px 16px var(--shadow-color);
  transition: box-shadow 0.15s, background 0.2s;
}
header nav a.cta.primary:hover,
header nav a.cta.primary:focus {
  background: var(--electric-blue);
  color: #fff;
  box-shadow: 0 4px 16px var(--electric-blue);
}
header nav a:not(.cta):hover,
header nav a:not(.cta):focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
header nav a.active::after {
  content: '';
  display: block;
  background: var(--electric-pink);
  height: 4px;
  width: 24px;
  border-radius: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -6px;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: var(--spacing-m);
  top: 16px;
  padding: 8px 14px;
  background: var(--vibrant-yellow);
  color: var(--brand-primary);
  border-radius: var(--border-radius-md);
  font-size: 2rem;
  z-index: 130;
  border: none;
  box-shadow: 0 2px 12px rgba(80,191,169,0.1);
  transition: background 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--electric-blue);
  color: #fff;
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, #fff 60%, var(--vibrant-yellow) 100%);
  box-shadow: 0 8px 32px var(--shadow-color);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--spacing-m);
  transform: translateX(-100vw);
  transition: transform var(--transition-normal);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: var(--electric-pink);
  background: transparent;
  align-self: flex-end;
  padding: 8px;
  cursor: pointer;
  border-radius: var(--border-radius-sm);
  margin-bottom: var(--spacing-s);
  transition: background 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--electric-pink);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-m);
  width: 100%;
  margin-top: var(--spacing-xl);
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  color: var(--brand-primary);
  padding: 14px 0;
  border-radius: var(--border-radius-sm);
  text-align: left;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
  display: block;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #fff;
  background: var(--electric-blue);
}
@media (max-width: 1024px) {
  header nav {
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-s);
  }
}
@media (max-width: 900px) {
  header nav {
    font-size: 0.9rem;
  }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- SECTION & CARD LAYOUTS --- */
.feature-grid,
.card-container,
.content-grid,
.blog-post-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.feature-grid > div,
.card,
.blog-post-previews article {
  background: var(--neutral-card);
  border-radius: var(--border-radius-md);
  box-shadow: 0 3px 18px var(--shadow-color);
  padding: 28px 22px 22px 22px;
  flex: 1 1 260px;
  min-width: 230px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-xs);
  transition: box-shadow 0.18s, transform 0.2s;
}
.feature-grid > div:hover,
.card:hover,
.blog-post-previews article:hover {
  box-shadow: 0 8px 36px var(--electric-blue);
  transform: translateY(-4px) scale(1.025);
  z-index: 2;
}

.testimonial-card {
  background: #fff;
  color: #22314f;
  border-left: 6px solid var(--electric-pink);
  box-shadow: 0 3px 18px var(--shadow-color);
  border-radius: var(--border-radius-md);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  font-size: 1.04rem;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px var(--electric-pink);
  border-left: 6px solid var(--electric-blue);
}
.testimonial-card strong {
  color: var(--brand-primary);
}

.blog-post-previews {
  width: 100%;
}
.blog-post-previews article h3 {
  margin-bottom: 0.5em;
  font-size: 1.2rem;
  color: var(--brand-primary);
}
.blog-post-previews article p {
  margin-bottom: 1em;
  color: #29406b;
}

.card {
  position: relative;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-m);
  width: 100%;
  margin-bottom: var(--spacing-l);
}
.faq-list ul {
  padding-left: 0;
}
.faq-list li {
  margin-bottom: var(--spacing-xs);
}

/* --- BUTTONS & CTAs --- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: var(--border-radius-lg);
  border: none;
  box-shadow: 0 2px 18px var(--shadow-color);
  cursor: pointer;
  text-decoration: none;
  color: var(--brand-primary);
  background: var(--vibrant-yellow);
  letter-spacing: 0.5px;
  margin-right: var(--spacing-m);
  margin-bottom: var(--spacing-xs);
  transition: background 0.17s, color 0.17s, box-shadow 0.16s, transform 0.18s;
}
.cta.primary {
  background: var(--vibrant-yellow);
  color: var(--brand-primary);
}
.cta.primary:hover,
.cta.primary:focus {
  background: var(--electric-blue);
  color: #fff;
  box-shadow: 0 4px 12px var(--electric-blue);
  transform: scale(1.04);
}
.cta.secondary {
  background: var(--electric-pink);
  color: #fff;
}
.cta.secondary:hover,
.cta.secondary:focus {
  background: var(--electric-purple);
  color: #fff;
  box-shadow: 0 4px 12px var(--electric-blue);
  transform: scale(1.04);
}

/* --- INPUT STYLES (if needed for forms) --- */
input, textarea, select {
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--electric-blue);
  padding: 12px 14px;
  font-size: 1rem;
  background: #fff;
  color: var(--brand-primary);
  box-shadow: 0 1px 8px var(--shadow-color);
  transition: border 0.2s, box-shadow 0.2s;
  margin-bottom: var(--spacing-s);
}
input:focus, textarea:focus, select:focus {
  border: 2px solid var(--electric-pink);
  outline: none;
  box-shadow: 0 3px 12px var(--electric-pink);
}

/* --- CUSTOM FLEXBOX WRAPPERS --- */
.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;}

/* --- FOOTER --- */
footer {
  background: var(--brand-primary);
  color: var(--brand-accent);
  padding: var(--spacing-xl) var(--spacing-s) var(--spacing-m) var(--spacing-s);
  border-top-left-radius: var(--border-radius-lg);
  border-top-right-radius: var(--border-radius-lg);
  box-shadow: 0 -4px 28px var(--shadow-color);
  margin-top: 60px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-m);
  margin-bottom: var(--spacing-s);
}
footer nav a {
  color: var(--vibrant-yellow);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  padding: 6px 12px;
  margin-right: 2px;
  transition: background 0.15s, color 0.15s;
}
footer nav a:hover,
footer nav a:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.footer-contact p, .footer-contact a {
  font-family: 'Roboto', Arial, sans-serif;
  color: #fff;
  font-size: 0.99rem;
}
.footer-contact a {text-decoration: underline; color: var(--vibrant-yellow);}

/* --- RESPONSIVE DESIGN (MOBILE-FIRST) --- */
@media (max-width: 1200px) {
  .container {max-width: 98vw;}
}
@media (max-width: 992px) {
  .feature-grid, .card-container, .content-grid, .blog-post-previews {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.28rem; }
  .section, section { padding: 26px 8px; margin-bottom: 38px; }
  .content-wrapper, .text-section {
    gap: var(--spacing-s);
  }
  .feature-grid, .card-container, .blog-post-previews {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.99rem;
    padding: 16px;
  }
  .text-image-section { flex-direction: column; gap: 16px; }
  .container {
    padding-left: var(--spacing-xs);
    padding-right: var(--spacing-xs);
  }
}
@media (max-width: 480px) {
  .hero .content-wrapper { gap: var(--spacing-s); }
  .section, section {padding: 16px 3px;}
  main {padding-bottom: 120px;}
  .footer-contact p {font-size: 0.85rem;}
}

/* --- UTILITIES --- */
.text-center { text-align: center; }
.mt-l { margin-top: var(--spacing-l) !important; }
.mb-l { margin-bottom: var(--spacing-l) !important; }
.mt-s { margin-top: var(--spacing-s) !important; }
.mb-s { margin-bottom: var(--spacing-s) !important; }

/* --- MICRO-INTERACTIONS & ANIMATIONS --- */
.cta, .feature-grid > div, .card, .blog-post-previews article, .testimonial-card {
  will-change: transform, box-shadow;
}
.cta:active,
.feature-grid > div:active,
.card:active,
.blog-post-previews article:active {
  transform: scale(0.97);
}

/* --- COOKIE CONSENT BANNER --- */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--brand-primary);
  color: var(--brand-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -4px 24px var(--shadow-color);
  padding: 20px 10vw 18px 10vw;
  font-size: 1rem;
  gap: var(--spacing-xs);
  transition: transform 0.29s cubic-bezier(.33,1,.68,1), opacity 0.17s;
}
#cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
#cookie-banner .cookie-btns {
  display: flex;
  gap: 20px;
  margin: 0.5em 0 0 0;
}
#cookie-banner .cookie-btns button {
  min-width: 120px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: var(--border-radius-lg);
  padding: 10px 18px;
  border: none;
  margin-right: 5px;
  margin-bottom: 0;
  box-shadow: 0 2px 12px rgba(80,191,169,.10);
  transition: background 0.17s, color 0.15s, box-shadow 0.14s;
  outline: none;
  cursor: pointer;
}
#cookie-banner .cookie-btns .accept {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
#cookie-banner .cookie-btns .accept:hover,
#cookie-banner .cookie-btns .accept:focus {
  background: var(--electric-blue);
  color: #fff;
}
#cookie-banner .cookie-btns .reject {
  background: var(--electric-pink);
  color: #fff;
}
#cookie-banner .cookie-btns .reject:hover,
#cookie-banner .cookie-btns .reject:focus {
  background: var(--electric-purple);
}
#cookie-banner .cookie-btns .settings {
  background: var(--vibrant-yellow);
  color: var(--brand-primary);
}
#cookie-banner .cookie-btns .settings:hover,
#cookie-banner .cookie-btns .settings:focus {
  background: var(--electric-blue);
  color: #fff;
}

/* --- COOKIE PREFERENCES MODAL --- */
#cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(34,49,79,0.69);
  display: none;
  align-items: center;
  justify-content: center;
}
#cookie-modal-overlay.active {
  display: flex;
  animation: fade-in 0.25s linear;
}
@keyframes fade-in {
  0% {opacity: 0;}
  100% {opacity: 1;}
}
#cookie-modal {
  background: #fff;
  color: var(--brand-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 6px 48px var(--shadow-color);
  min-width: 310px;
  max-width: 94vw;
  padding: 32px 28px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: slideInModal 0.28s cubic-bezier(.41,1.17,.7,1) 1;
  position: relative;
}
@keyframes slideInModal {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
#cookie-modal h2 {
  margin-bottom: 12px;
  font-size: 1.18rem;
  color: var(--brand-primary);
  font-family: 'Montserrat', Arial, sans-serif;
}
#cookie-modal .category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
#cookie-modal .category strong {
  color: var(--electric-blue);
}
#cookie-modal .toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
#cookie-modal .toggle-switch input { display: none; }
#cookie-modal .toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--electric-blue);
  border-radius: 28px;
  transition: background 0.2s;
}
#cookie-modal .toggle-switch input:checked + .toggle-slider {
  background: var(--vibrant-yellow);
}
#cookie-modal .toggle-slider::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
#cookie-modal .toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(18px);
}
#cookie-modal .cookie-modal-btns {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
#cookie-modal .cookie-modal-btns button {
  min-width: 110px;
  padding: 11px 20px;
  border-radius: var(--border-radius-md);
  font-weight: bold;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  box-shadow: 0 2px 12px var(--shadow-color);
  transition: background 0.13s, color 0.12s;
  outline: none;
}
#cookie-modal .cookie-modal-btns .save {
  background: var(--electric-blue);
  color: #fff;
}
#cookie-modal .cookie-modal-btns .save:hover,
#cookie-modal .cookie-modal-btns .save:focus {
  background: var(--brand-secondary);
}
#cookie-modal .cookie-modal-btns .cancel {
  background: #efefef;
  color: var(--brand-primary);
}
#cookie-modal .cookie-modal-btns .cancel:hover,
#cookie-modal .cookie-modal-btns .cancel:focus {
  background: var(--vibrant-yellow);
}
#cookie-modal .close-modal {
  position: absolute;
  right: 13px;
  top: 8px;
  background: transparent;
  font-size: 1.8rem;
  color: var(--electric-pink);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 4px 8px;
}
#cookie-modal .close-modal:hover {
  background: var(--electric-pink);
  color: #fff;
}

/* --- END OF CSS --- */
