/* --- 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;
  min-height: 100vh;
  background: #F4F4F9;
  color: #293467;
  font-family: 'Nunito', Arial, sans-serif;
}
*, *:before, *:after { box-sizing: border-box; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

/* --- PLAYFUL DYNAMIC BRAND COLORS & FONTS --- */
:root {
  --primary: #293467;
  --secondary: #FFD44D;
  --accent: #F4F4F9;
  --brand-orange: #FF7954;
  --brand-green: #4ED6A7;
  --brand-coral: #FFB7A1;
  --display: 'Montserrat', Arial, sans-serif;
  --body: 'Nunito', Arial, sans-serif;
}

body {
  font-family: var(--body);
  background: var(--accent);
  color: var(--primary);
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  line-height: 1.1;
}
h2 {
  font-size: 1.65rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
p, li {
  color: #293467;
  font-size: 1rem;
  line-height: 1.7;
}
strong {
  color: var(--primary);
}

.container {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-wrapper {
  background: transparent;
  border-radius: 24px;
  padding: 0;
  margin-bottom: 16px;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.text-section {
  align-items: flex-start;
  justify-content: center;
  padding-bottom: 12px;
}

.mt-2 {
  margin-top: 16px;
}

/* --- HEADER/NAV --- */
header {
  background: var(--accent);
  border-bottom: 4px solid var(--secondary);
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 72px;
  width: 100%;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header img {
  height: 48px;
  width: auto;
  transition: transform .22s cubic-bezier(.56,.11,.79,.71);
}
header img:hover { transform: rotate(-5deg) scale(1.08); }
.main-nav {
  display: flex;
  gap: 20px;
  font-family: var(--display);
  font-weight: 700;
  align-items: center;
}
.main-nav a {
  padding: 8px 16px;
  border-radius: 21px;
  font-size: 1.02rem;
  color: var(--primary);
  transition: background .19s, color .19s, box-shadow .19s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 2px 16px 0 rgba(255,212,77,0.19);
}
.btn.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 99px;
  font-weight: 900;
  font-family: var(--display);
  font-size: 1.07rem;
  padding: 13px 32px;
  border: none;
  box-shadow: 0 4px 18px 0 rgba(255,212,77,0.16), 0 2px 7px 0 rgba(41,52,103,0.09);
  letter-spacing: .2px;
  cursor: pointer;
  transition: background .2s, color .18s, transform .12s, box-shadow .18s;
  margin-left: 8px;
  margin-top: 0;
  min-width: 170px;
  min-height: 44px;
  outline: none;
}
.btn.primary:hover, .btn.primary:focus {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px) scale(1.03) rotate(-1deg);
  box-shadow: 0 6px 30px 0 rgba(255,212,77,0.21), 0 2px 9px 0 rgba(41,52,103,0.12);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary);
  font-size: 2rem;
  border: none;
  border-radius: 12px;
  padding: 6px 14px;
  cursor: pointer;
  margin-left: 12px;
  margin-top: 0;
  box-shadow: 0 2px 8px 0 rgba(41,52,103,0.06);
  transition: background .16s, box-shadow .17s;
  z-index: 1012;
}
.mobile-menu-toggle:active {
  background: var(--brand-coral);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: var(--primary);
  transform: translateX(-100%);
  transition: transform .36s cubic-bezier(.57,.02,.19,.95);
  z-index: 1020;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: start;
  box-shadow: 4px 0 24px 0 rgba(41,52,103,0.12);
  padding: 0 0 0 0;
}
.mobile-menu.active {
  transform: translateX(0%);
}
.mobile-menu-close {
  font-size: 2.4rem;
  color: var(--secondary);
  background: none;
  border: none;
  margin: 18px 0 12px 18px;
  cursor: pointer;
  border-radius: 10px;
  padding: 0 12px;
  align-self: flex-start;
  transition: background .18s;
}
.mobile-menu-close:hover {
  background: var(--brand-coral);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-left: 36px;
  margin-top: 24px;
}
.mobile-nav a {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--secondary);
  padding: 8px 0;
  border-radius: 0 24px 24px 0;
  background: none;
  transition: background .14s, color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
  padding-left: 18px;
}

@media (max-width: 1050px) {
  .main-nav {
    gap: 12px;
  }
  header .container {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display:none;
  }
  .btn.primary {
    margin-right: 46px;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (max-width: 600px) {
  header img { height: 40px; }
  .btn.primary {
    padding: 10px 20px;
    min-width: 120px;
    font-size: 1rem;
  }
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(90deg, var(--secondary) 0%, #FFB7A1 95%);
  border-radius: 0 0 60px 60px;
  min-height: 310px;
  box-shadow: 0 10px 48px 2px rgba(255,212,77,0.11), 0 2px 8px 0 rgba(41,52,103,0.06);
  margin-bottom: 60px;
  padding: 60px 0 52px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero .container, .hero .content-wrapper {
  min-height: 100px;
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.hero p {
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 22px;
}
.hero .btn.primary {
  box-shadow: 0 4px 22px 0 rgba(255,212,77,0.14);
  font-size: 1.15rem;
}

@media (max-width: 600px) {
  .hero {
    border-radius: 0 0 32px 32px;
    padding: 28px 0 20px 0;
    min-height: 120px;
  }
  .hero h1 { font-size: 1.45rem; }
  .hero .container { gap: 10px; }
  .hero .btn.primary { font-size: 1rem; }
}

/* --- FLEXBOX LAYOUTS --- */
.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: 24px;
  box-shadow: 0 4px 26px 0 rgba(255,212,77,0.05), 0 2px 10px 0 rgba(41,52,103,0.06);
  padding: 24px;
  transition: box-shadow .16s, transform .15s;
  display: flex;
  flex-direction: column;
  min-width: 230px;
  flex: 1 1 320px;
}
.card:hover {
  box-shadow: 0 8px 36px 0 rgba(255,212,77,0.14), 0 2px 16px 0 rgba(41,52,103,0.13);
  transform: scale(1.02) rotate(-1deg);
}
.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;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 12px 0 rgba(41,52,103,0.11);
  margin-bottom: 20px;
  flex-direction: column;
  transition: box-shadow .16s, transform .12s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px 0 rgba(255,212,77,0.12), 0 2px 19px 0 rgba(41,52,103,0.13);
  transform: scale(1.018) rotate(-2deg);
}
.testimonial-author {
  font-family: var(--display);
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  margin-top: 8px;
  letter-spacing: .5px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 768px) {
  .content-grid, .text-image-section, .section {
    flex-direction: column;
    gap: 20px;
    padding: 22px 8px;
  }
}

/* --- FEATURE GRID & CARDS --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: stretch;
  margin: 18px 0 12px 0;
}
.feature {
  background: #fff;
  border-radius: 20px;
  min-width: 210px;
  flex: 1 1 210px;
  box-shadow: 0 2px 12px 0 rgba(41,52,103,0.09), 0 2px 12px 0 rgba(255,212,77,0.07);
  padding: 24px 14px 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  margin-bottom: 0;
  transition: box-shadow .15s, transform .16s;
}
.feature:hover {
  box-shadow: 0 8px 28px 0 rgba(41,52,103,0.14), 0 2px 16px 0 rgba(255,212,77,0.13);
  transform: scale(1.025) rotate(-1deg);
}
.feature .icon {
  font-size: 2rem;
  margin-bottom: 4px;
  display: inline-block;
  background: var(--secondary);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 2px 7px 0 rgba(255,212,77,0.11);
  color: var(--primary);
}

/* --- SERVICES LIST --- */
.services {
  margin-bottom: 60px;
}
.services-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
  margin-top: 12px;
}
.services-list li {
  background: #fff;
  border-radius: 20px;
  padding: 20px 14px 20px 18px;
  box-shadow: 0 2px 16px 0 rgba(41,52,103,0.09), 0 2px 14px 0 rgba(255,212,77,0.06);
  transition: box-shadow .13s, transform .14s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.services-list li:hover {
  box-shadow: 0 8px 28px 0 rgba(255,212,77,0.13), 0 2px 17px 0 rgba(41,52,103,0.13);
  transform: scale(1.01) rotate(-1deg);
}
.price {
  color: var(--brand-orange);
  border-radius: 12px;
  padding: 3px 11px;
  font-size: .98rem;
  font-family: var(--display);
  font-weight: 900;
  margin-left: 11px;
  box-shadow: 0 1.5px 7px 0 rgba(255,183,161,0.17);
}

/* --- CONSULTANCY and CTA HIGHLIGHTS --- */
.consultancy-highlight, .service-highlight {
  background: var(--brand-orange);
  color: #fff;
  border-radius: 19px;
  box-shadow: 0 2px 16px 0 rgba(255,183,161,0.09), 0 2px 8px 0 rgba(41,52,103,0.08);
  padding: 23px 21px 23px 21px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: highlightFadeIn .8s .08s backwards;
}
@keyframes highlightFadeIn {
  0% { opacity:.4; transform: translateY(24px) scale(.98); }
  100% { opacity:1; transform: none; }
}
.cta {
  background: var(--secondary);
  border-radius: 30px;
  box-shadow: 0 2px 14px 0 rgba(255,212,77,0.09);
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta h2 {
  color: var(--primary);
}

/* --- TESTIMONIALS SECTION --- */
.testimonials h2 {
  color: var(--brand-orange);
}
.testimonials .testimonial-card {
  border-left: 7px solid var(--secondary);
  margin-top: 18px;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 11px 0 rgba(41,52,103,0.06);
}
.testimonial-card p {
  color: #1e2350;
  font-style: italic;
  font-size: 1.07rem;
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: #fff;
  padding: 32px 0 26px 0;
  font-size: 1rem;
  box-shadow: 0 -6px 26px 0 rgba(41,52,103,0.09);
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
}
footer img {
  height: 42px;
  width: auto;
  margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-right: 30px;
}
.footer-nav a {
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.01rem;
  border-radius: 0 11px 11px 0;
  padding: 3px 10px;
  transition: background .13s, color .11s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.footer-contact p {
  color: #fff;
  font-size: .96rem;
  margin-bottom: 3px;
  opacity: .93;
}

@media (max-width: 900px) {
  footer .container { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 10px; margin-top: 10px; margin-bottom: 12px; }
}
@media (max-width: 600px) {
  footer .container { padding: 0 4px; gap: 16px; }
  .footer-contact p { font-size: .89rem; }
}

/* --- ACCESSIBLE CONTRAST, TYPOGRAPHY SCALE --- */
@media (max-width: 450px) {
  h1 { font-size: 1.13rem!important; }
  h2 { font-size: .99rem!important; }
}

/* --- CONTACT INFO ICONS --- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}
.contact-info img {
  width: 23px;
  height: 23px;
  opacity: 0.82;
}

/* --- GENERIC UL/OL LIST STYLE --- */
.features ul, .features li, .features ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.features li {
  position: relative;
  font-size: 1.045rem;
  padding-left: 35px;
  margin-bottom: 14px;
  color: var(--primary);
  font-weight: 600;
  line-height: 1.5;
}
.features li:before {
  content: '\2022';
  color: var(--brand-orange);
  font-size: 1.6rem;
  position: absolute;
  left: 0;
  top: 0;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 4000;
  background: #fffbe6;
  color: var(--primary);
  box-shadow: 0 -2px 26px 0 rgba(41,52,103,0.14);
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  font-size: 1.08rem;
  border-top: 4px solid var(--secondary);
  animation: slideUpBanner .47s cubic-bezier(.47,.01,.38,1.03);
}
@keyframes slideUpBanner {
  0% { transform: translateY(120%);}
  100% { transform: none;}
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 17px;
}
.cookie-btn {
  padding: 9px 20px;
  margin: 0 5px;
  border: none;
  border-radius: 8px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: background .16s, color .14s;
}
.cookie-btn.accept {
  background: var(--brand-green);
  color: #fff;
}
.cookie-btn.reject {
  background: var(--brand-coral);
  color: var(--primary);
}
.cookie-btn.settings {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn:hover { filter: brightness(1.1); }

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    padding: 14px 6vw 14px 6vw;
    font-size: .99rem;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 11px;
}
}

/* --- Cookie MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; width:100vw; height:100vh;
  background: rgba(41,52,103,0.16);
  z-index: 4020;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 42px 0 rgba(41,52,103,0.17);
  max-width: 92vw;
  min-width: 325px;
  width: 380px;
  padding: 30px 28px 20px 28px;
  z-index: 4021;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookiePopin .32s cubic-bezier(.67,-.07,.97,.48) backwards;
}
@keyframes cookiePopin {
  0% { opacity:0; transform: scale(.72) translateY(60px); }
  100% { opacity:1; transform: none;}
}
.cookie-modal h2 { color: var(--brand-orange); font-size: 1.22rem; }
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 10px 0;
}
.cookie-modal .cookie-switch {
  appearance: none;
  background: #ddd;
  width: 38px;
  height: 21px;
  border-radius: 17px;
  position: relative;
  outline: none;
  margin-right: 12px;
  cursor: pointer;
  transition: background .18s;
}
.cookie-modal .cookie-switch:checked {
  background: var(--brand-green);
}
.cookie-modal .cookie-switch::before {
  content: '';
  display: block;
  position: absolute;
  top: 3px; left: 3px;
  width: 15px; height: 15px;
  background: #fff;
  border-radius: 50%;
  transition: left .18s;
}
.cookie-modal .cookie-switch:checked::before {
  left: 20px;
}
.cookie-modal .cookie-category span {
  font-weight: 700;
  color: var(--primary);
  font-family: var(--display);
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* --- Animations & Microinteractions --- */
a, button, .card, .feature, .testimonial-card { transition: box-shadow .17s, transform .19s, color .14s, background .17s; }
.card, .feature, .testimonial-card, .services-list li { transition-property: box-shadow, transform; }
.card:hover, .feature:hover, .testimonial-card:hover, .services-list li:hover {
  z-index: 1;
}

/* --- FUN FONTS & ENERGETIC FEEL --- */
h1, h2, h3 {
  text-shadow: 0 1.5px 2.5px rgba(255,183,161,0.11), 0 2px 10px rgba(255,212,77,0.13);
}

/* --- RESPONSIVE FLEX: ROW TO COLUMN --- */
@media (max-width: 768px) {
  .feature-grid { flex-direction: column; gap: 18px; }
  .card-container { flex-direction: column; gap: 14px; }
  .content-grid { flex-direction: column; gap: 18px; }
  .section { padding: 22px 7px; margin-bottom: 32px; }
}

/* --- PLAYFUL UI TOUCHES --- */
.feature .icon, .btn.primary {
  animation: bounceIn .82s cubic-bezier(.41,-0.27,.55,1.3);
}
@keyframes bounceIn {
  0% { transform: scale(.7) rotate(-15deg); opacity:0; }
  55% { transform: scale(1.05) rotate(8deg); opacity:1; }
  100% { transform: none; }
}

/* --- Buttons, Inputs, Accessibility --- */
input, select, textarea {
  border-radius: 12px;
  border: 1.5px solid var(--secondary);
  padding: 10px 13px;
  margin-bottom: 12px;
  font-size: 1.01rem;
  background: #fff;
  color: var(--primary);
  transition: border-color .16s, box-shadow .16s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 2px 10px 0 rgba(41,52,103,0.09);
}

/* --- MISC: Hide unwanted spacing, debug adjustments --- */
p:empty, h1:empty, h2:empty, h3:empty, h4:empty, h5:empty, h6:empty { display: none; }

/* --- Hide nav on mobile, show burger --- */
@media (max-width: 900px) {
  .main-nav { display: none!important; }
  .mobile-menu-toggle { display: inline-flex; }
}
@media (min-width: 901px) {
  .mobile-menu { display: none!important; }
  .mobile-menu-toggle { display: none!important; }
}

/* --- Z INDEX DEBUGGING --- */
header, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay, .cookie-modal { z-index: 4000; }

/* --- Scrollbar for consistency --- */
body { scrollbar-width: thin; scrollbar-color: var(--secondary) var(--accent); }
::-webkit-scrollbar { width: 11px; background: var(--accent); }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 6px; }

/* --- Utility classes (for possible custom elements in html) --- */
.center { text-align: center!important; }
.text-center { text-align: center!important; }
.hide { display: none!important; }
.show { display: block!important; }

/* --- Prevent content overlap (critical) --- */
.card, .feature, .testimonial-card, .services-list li, .content-wrapper, .container, .section { margin-bottom: 24px; }

/* --- For dialog modals, overlays, etc. --- */
[aria-modal='true'], .modal, .cookie-modal-overlay { z-index: 4020; }

/* --- Ensures spacing between all main content --- */
main section { margin-bottom: 60px; }

/* --- End of CSS --- */
