/* ========== 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: #F6F7FB;
  color: #163559;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #238D6C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #163559;
  text-decoration: underline;
}

/* ========== ROOT COLORS & FONTS ========== */
:root {
  --clr-primary: #163559;
  --clr-secondary: #238D6C;
  --clr-accent: #F6F7FB;
  --clr-bright: #FFC746;
  --clr-fun: #FF7262;
  --clr-blue: #3796FF;
  --clr-danger: #EB5160;

  --ff-display: 'Montserrat', 'Open Sans', Arial, sans-serif;
  --ff-body: 'Open Sans', Arial, sans-serif;
  --radius: 22px;
  --shadow: 0 4px 22px 0 rgba(35, 141, 108, 0.09),0 1.5px 8px 0 rgba(22,53,89, 0.04);
  --shadow-card: 0 6px 32px 0 rgba(55, 150, 255, 0.13);
  --transition: all .27s cubic-bezier(.42, .18, .12, .99);
}

/* ========== PLAYFUL DYNAMIC TYPOGRAPHY ========== */
h1 {
  font-family: var(--ff-display);
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: var(--clr-primary);
  line-height: 1.16;
}
h2 {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--clr-secondary);
  line-height: 1.2;
}
h3 {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--clr-fun);
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-family: var(--ff-display);
  color: var(--clr-primary);
  margin-bottom: 8px;
}
p {
  font-family: var(--ff-body);
  font-size: 1rem;
  color: #163559;
  margin-bottom: 14px;
}
ul, ol {
  margin-left: 18px;
  margin-bottom: 14px;
  list-style-position: inside;
}
ul li, ol li {
  margin-bottom: 8px;
  font-size: 1rem;
  font-family: var(--ff-body);
}
strong {
  font-weight: 700;
  color: var(--clr-blue);
}
.section strong {
  color: var(--clr-fun);
}

/* ========== GENERAL LAYOUT & CONTAINERS ========== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: var(--clr-accent);
  box-shadow: var(--shadow);
}
/* Features Section (flex only!) */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #FFF;
  border-radius: var(--radius);
  padding: 26px 26px 26px 22px;
  min-width: 258px;
  flex: 1 1 270px;
  box-shadow: var(--shadow-card);
  transition: transform 0.16s, box-shadow 0.16s;
  margin-bottom: 20px;
  position: relative;
  border: 2.5px solid transparent;
}
.feature-item:hover {
  transform: translateY(-6px) scale(1.03) rotate(-2deg);
  box-shadow: 0 10px 38px 0 rgba(55, 150, 255, 0.19);
  border-color: var(--clr-fun);
  z-index: 2;
}
/* Card Containers */
.card-container, .service-cards, .testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card, .service-card {
  background: #FFF;
  border-radius: var(--radius);
  padding: 32px 26px 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  position: relative;
  min-width: 230px;
  flex: 1 1 260px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:hover {
  transform: translateY(-4px) scale(1.02) rotate(2deg);
  box-shadow: 0 6px 32px 0 rgba(35, 141, 108, 0.19);
  border: 2px solid var(--clr-bright);
  z-index: 2;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
/* Content Grid */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* ========== BUTTONS & CTA STYLES ========== */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--clr-fun) 85%, var(--clr-blue) 120%);
  color: #163559;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.1rem;
  border: none;
  border-radius: 50px;
  padding: 16px 38px;
  margin-top: 10px;
  margin-bottom: 0;
  box-shadow: 0 3px 12px 0 rgba(35, 141, 108, 0.16);
  outline: none;
  cursor: pointer;
  letter-spacing: 0.11ch;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, var(--clr-blue) 70%, var(--clr-fun) 120%);
  color: #FFF;
  box-shadow: 0 10px 36px 0 rgba(255, 114, 98, 0.13);
  text-decoration: none;
  transform: scale(1.05);
}
button, .button {
  font-family: var(--ff-display);
  font-weight: 700;
  padding: 11px 34px;
  border-radius: 32px;
  font-size: 1rem;
  border: none;
  background: var(--clr-secondary);
  color: #FFF;
  cursor: pointer;
  margin-right: 12px;
  margin-top: 8px;
  transition: var(--transition);
}
button:hover, .button:hover,
button:focus, .button:focus {
  background: var(--clr-primary);
  color: var(--clr-fun);
  box-shadow: 0 6px 18px 0 rgba(35, 141, 108, 0.17);
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: #FFF;
  box-shadow: var(--shadow);
  padding: 0 0 0 0;
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px 18px 20px;
  border-radius: 0 0 var(--radius) var(--radius);
}
header img {
  height: 56px;
  width: auto;
  margin-right: 34px;
  border-radius: 10px 30px 10px 30px;
  box-shadow: 0 2px 8px 0 rgba(35,141,108,0.12);
  background: #F6F7FB;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.main-nav a {
  font-size: 1.04rem;
  font-family: var(--ff-display);
  font-weight: 700;
  padding: 8px 18px;
  color: var(--clr-primary);
  border-radius: 21px;
  position: relative;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--clr-fun);
  color: #fff;
}
header .cta-button {
  margin-left: 10px;
  margin-top: 0;
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-menu-toggle {
  display: none;
  background: var(--clr-secondary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 103;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:hover {
  background: var(--clr-fun);
  color: var(--clr-primary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(22,53,89,0.97);
  color: #fff;
  z-index: 108;
  width: 100vw;
  height: 100vh;

  transform: translateX(102vw);
  transition: transform 0.37s cubic-bezier(.61,1.33,.18,.99);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
  visibility: hidden;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 2.1rem;
  margin-right: 18px;
  margin-top: 18px;
  cursor: pointer;
  z-index: 112;
  transition: color 0.16s;
}
.mobile-menu-close:hover {
  color: var(--clr-fun);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 40px 0 0 38px;
}
.mobile-nav a {
  font-size: 1.42rem;
  font-family: var(--ff-display);
  font-weight: 900;
  color: #FFC746;
  background: transparent;
  border-radius: 16px;
  padding: 11px 14px 9px 0;
  transition: color 0.18s;
  margin-bottom: 10px;
}
.mobile-nav a:hover, .mobile-nav a.active {
  color: #fff;
  background: var(--clr-fun);
  text-decoration: none;
}

/* ========== HERO SECTIONS ========== */
.hero {
  background: linear-gradient(120deg, #F6F7FB 70%, #FFC746 260%);
  padding: 60px 0 38px 0;
  border-radius: 0 0 var(--radius) var(--radius);
  min-height: 350px;
  margin-bottom: 60px;
  position: relative;
  box-shadow: 0 6px 40px 0 rgba(55,150,255,0.07);
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 14px;
  max-width: 700px;
}
.hero h1 {
  color: var(--clr-secondary);
  margin-bottom: 8px;
  text-shadow: 1px 2px 0 #ffc74645;
}
.hero p {
  color: var(--clr-primary);
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.hero .cta-button {
  margin-top: 18px;
}

/* ========== TESTIMONIALS ========== */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 22px;
}
.testimonial-card {
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 5px 40px 0 rgba(35,141,108,0.11);
  padding: 24px 32px 18px 32px;
  min-width: 270px;
  max-width: 340px;
  flex: 1 1 300px;
  font-family: var(--ff-body);
  color: #163559;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, transform 0.17s;
  border: 3px dashed #ffc7468a;
  position: relative;
}
.testimonial-card p {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.4;
  color: #345069;
  text-align: center;
}
.testimonial-card strong {
  font-size: 1.08rem;
  color: var(--clr-fun);
  text-align: right;
  align-self: flex-end;
}
.testimonial-card:before {
  content: '\201C';
  position: absolute;
  font-size: 3.2rem;
  left: 16px;
  top: 8px;
  color: #FFC746;
  z-index: 1;
  opacity: 0.7;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(255,114,98,.21);
  transform: translateY(-4px) scale(1.03) rotate(-2deg);
  border-color: var(--clr-fun);
}

/* ========== CONTACT INFO SHORT BLOCKS & DETAILS ========== */
.contact-info-short ul, .contact-details ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1.14rem;
  list-style-type: none;
}
.contact-info-short li, .contact-details li {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--clr-primary);
  font-weight: 600;
}
.contact-info-short img, .contact-details img {
  width: 28px;
  height: 28px;
  margin-right: 7px;
}

/* ========== FOOTER ========== */
footer {
  background: #163559;
  color: #fff;
  padding: 28px 0 19px 0;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-top: 50px;
  box-shadow: 0 -5px 24px 0 rgba(55,150,255,0.08);
}
footer p {
  color: white;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  padding: 0 20px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 11px;
}
.footer-nav a {
  color: #FFC746;
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 13px;
  border-radius: 18px;
  transition: background 0.15s, color 0.15s;
  background: transparent;
}
.footer-nav a:hover {
  background: var(--clr-fun);
  color: #fff;
}
.footer-info {
  font-size: 0.97rem;
  color: #F6F7FB;
}

/* ========== COOKIE CONSENT BANNER & MODAL ========== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #fffbe9;
  box-shadow: 0 -6px 34px 0 rgba(35,141,108,0.23);
  color: var(--clr-primary);
  z-index: 9999;
  padding: 22px 12px 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: transform 0.26s cubic-bezier(.76,1.54,.14,.93);
  transform: translateY(104%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.cookie-banner p {
  color: #345069;
  font-size: 1.06rem;
  line-height: 1.48;
  text-align: center;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 20px;
}
.cookie-banner .cookie-btns button {
  background: var(--clr-secondary);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  padding: 8px 24px;
  font-size: 0.98rem;
  margin: 0;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.cookie-banner .cookie-btns button.cookie-accept {
  background: var(--clr-fun);
  color: #fff;
}
.cookie-banner .cookie-btns button.cookie-reject {
  background: var(--clr-danger);
}
.cookie-banner .cookie-btns button.cookie-settings {
  background: var(--clr-blue);
}
.cookie-banner .cookie-btns button:hover,
.cookie-banner .cookie-btns button:focus {
  background: var(--clr-primary);
  color: #FFC746;
}

/* Cookie Preferences Modal */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(22,53,89,0.92);
  align-items: center;
  justify-content: center;
  transition: background 0.16s;
}
.cookie-modal.active {
  display: flex;
}
.cookie-modal-content {
  background: #FFF;
  padding: 36px 32px 20px 32px;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  min-width: 320px;
  max-width: 95vw;
  color: var(--clr-primary);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.cookie-modal-content h2 {
  color: var(--clr-fun);
  font-size: 1.34rem;
  margin-bottom: 8px;
}
.cookie-modal-content label {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
  font-family: var(--ff-body);
  margin-bottom: 11px;
}
.cookie-modal-toggle {
  width: 36px;
  height: 18px;
  appearance: none;
  background: #FFC746;
  border-radius: 14px;
  transition: background 0.15s;
  position: relative;
  outline: none;
  margin-right: 7px;
}
.cookie-modal-toggle:checked {
  background: var(--clr-secondary);
}
.cookie-modal-toggle:before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s;
}
.cookie-modal-toggle:checked:before {
  left: 19px;
}
.cookie-modal-category[disabled] {
  color: #bbb;
}
.cookie-modal-content .modal-buttons {
  display: flex;
  gap: 18px;
  margin-top: 14px;
}
.cookie-modal-content .cookie-modal-close {
  background: none;
  border: none;
  font-size: 2.3rem;
  color: var(--clr-fun);
  position: absolute;
  top: 7px;
  right: 17px;
  cursor: pointer;
  transition: color 0.11s;
}
.cookie-modal-content .cookie-modal-close:hover {
  color: var(--clr-primary);
}

/* ========== DYNAMIC & PLAYFUL ANIMATIONS ========== */
@keyframes wiggle {
  0%{ transform: rotate(-1deg) scale(1) }
  20%{ transform: rotate(2deg) scale(1.04) }
  50%{ transform: rotate(-2deg) scale(1.08) }
  70%{ transform: rotate(2deg) scale(1.04) }
  100%{ transform: rotate(0deg) scale(1) }
}
.cta-button:hover, .feature-item:hover, .testimonial-card:hover {
  animation: wiggle 0.56s 1;
}

@keyframes heroFadeIn {
  from{ opacity:0; transform: translateY(35px) }
  to{ opacity:1; transform: translateY(0) }
}
.hero .content-wrapper {
  animation: heroFadeIn 1.05s cubic-bezier(.42, .18, .13, .99);
}

/* ========== MEDIA QUERIES (RESPONSIVE FLEX LAYOUTS) ========== */
@media (max-width: 1020px) {
  .container {
    max-width: 95vw;
    padding-left: 9px;
    padding-right: 9px;
  }
  .features-grid, .service-cards, .testimonial-slider, .card-container, .content-grid {
    gap: 12px;
  }
}

@media (max-width: 820px) {
  .main-nav {
    display: none;
  }
  header .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header img {
    height: 45px;
    margin-right: 14px;
  }
  .container {
    padding-left: 4px;
    padding-right: 4px;
  }
}

@media (max-width: 768px) {
  html{ font-size: 98%; }
  .hero {
    padding: 36px 0 28px 0;
    min-height: 220px;
    margin-bottom: 32px;
    border-radius: 0 0 20px 20px;
  }
  .features-grid, .service-cards, .testimonial-slider {
    flex-direction: column !important;
    gap: 20px;
  }
  .feature-item, .service-card, .testimonial-card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .text-image-section, .content-grid {
    flex-direction: column !important;
    gap: 18px;
  }
  header .container {
    flex-direction: row;
    gap: 10px;
    border-radius: 0;
    padding: 14px 6px 14px 6px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 540px) {
  h1 {
    font-size: 1.4rem;
  }
  h2 {
    font-size: 1.17rem;
  }
  .cta-button { font-size: 1rem; padding: 12px 18px; }
  .section {
    padding: 18px 6px;
    margin-bottom: 26px;
  }
  .testimonial-card {
    padding: 13px 13px 8px 13px;
  }
  .cookie-modal-content {
    padding: 17px 7px 14px 7px;
    min-width: 0;
  }
}

/* Additional micro-interactions for focus/active states */
:focus {
  outline: 2px dashed var(--clr-fun);
  outline-offset: 2px;
}
.cta-button:active, button:active {
  box-shadow: 0 1px 4px 0 var(--clr-fun),0 1.5px 8px 0 rgba(22,53,89, 0.08);
}

/* Utility: Hide visually */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* ========== FLEXBOX LAYOUT ENFORCEMENT ========== */
/* All main content containers */
.card-container, .service-cards, .testimonial-slider, .features-grid, .content-grid,
.section, .footer-nav, .text-image-section, .process-overview, .cookie-btns, .feature-item, .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.card, .service-card, .testimonial-card, .feature-item, .footer-info, .text-section, .tools-used, .consulting-process {
  flex-direction: column;
  display: flex;
}

/* Prevent overlapping and preserve spacing */
.card, .service-card, .feature-item, .testimonial-card, .section, .content-wrapper, .text-section {
  margin-bottom: 20px;
}
.section:last-child, .card:last-child, .feature-item:last-child, .testimonial-card:last-child {
  margin-bottom: 0;
}

/* ENSURE NO GRID OR COLUMN PROPERTIES USED - OVERRIDE ANY DEFAULTS */
[class*='grid'], [class*='col'], [class*='column'] {
  /* force flex */
  display: flex !important;
  flex-wrap: wrap;
  gap: 20px !important;
}

/* ========== END ========== */
