/* === 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, menu, 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, 
main, 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;
}

html {
  height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  min-height: 100%;
  background: #F3F2EF;
  color: #212D45;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol, menu {
  list-style: none;
}
a {
  color: #60A0B5;
  text-decoration: none;
  transition: color 0.18s cubic-bezier(.6,-0.19,.57,1.11);
}
a:hover, a:focus {
  color: #212D45;
  text-decoration: underline;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* === COLOR VARIABLES & BRAND TOKENS === */
:root {
  --primary: #212D45;
  --secondary: #60A0B5;
  --accent: #F3F2EF;
  --warning: #FAAC40;
  --success: #70D67C;
  --info: #63B1FD;
  --error: #FF5B5B;
  --white: #fff;
  --shadow: 0 4px 24px rgba(33,45,69,.06), 0 3px 6px rgba(33,45,69,.04);
  --radius: 18px;
  --focus: 0 0 0 3px #63B1FD33;
}

/* === TYPOGRAPHY SCALE === */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--primary);
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}
h4, h5, h6 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
p, ul, ol {
  margin-bottom: 18px;
}
p:last-child, ul:last-child, ol:last-child {
  margin-bottom: 0;
}
strong {
  font-weight: 700;
}

/* fun font for playful headers */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@800&family=Open+Sans:wght@400;700&display=swap');

/* === CONTAINERS & LAYOUTS === */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow .25s cubic-bezier(.5,1.52,.28,1.18);
}
.section:last-child {
  margin-bottom: 0;
}

.card-container, .card-grid, .features, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 32px 24px;
  position: relative;
  min-width: 230px;
  flex: 1 1 230px;
  transition: transform .17s cubic-bezier(.7,1.98,.53,.72), box-shadow .21s cubic-bezier(.5,1.52,.28,1.18);
  will-change: transform;
}
.card:hover {
  transform: translateY(-6px) scale(1.025) rotate(-1.2deg);
  box-shadow: 0 10px 28px 0 #60A0B54a, 0 4px 12px 0 #212D4522;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

div.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Testimonials */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--white);
  color: var(--primary);
  border-radius: 22px;
  box-shadow: 0 6px 22px 0 rgba(96,160,181,0.13), 0 2px 6px 0 rgba(33,45,69,0.04);
  font-size: 1.09rem;
  position: relative;
  animation: section-in 0.72s cubic-bezier(.58,1.62,.42,1.11) both;
}
.testimonial-card p {
  margin-bottom: 0;
}
.testimonial-card span {
  display: block;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--secondary);
  margin-top: 8px;
}

/* === BUTTONS === */
.cta-btn, .cookie-banner-btn, .cookie-pref-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--white);
  background: linear-gradient(90deg, #FAAC40 60%, #60A0B5 130%);
  background: #60A0B5;
  border: none;
  border-radius: 26px;
  padding: 14px 40px;
  margin-top: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  box-shadow: 0 3px 18px rgba(250,172,64, .08), 0 1.5px 4px rgba(96,160,181, .11);
  letter-spacing: .01em;
  position: relative;
  transition: box-shadow .20s cubic-bezier(.52,1.44,.42,1.11), background 0.16s;
  outline: none;
  z-index: 1;
}
.cta-btn:hover, .cta-btn:focus, .cookie-banner-btn:hover, .cookie-banner-btn:focus, .cookie-pref-btn:hover, .cookie-pref-btn:focus {
  background: #FAAC40;
  color: var(--primary);
  box-shadow: 0 8px 24px 0 #212D4536, 0 2px 8px 0 #FAAC4055;
  text-decoration: none;
}
.cta-btn:active {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 1px 3px #212D452f;
}

/* === HEADER, NAVIGATION, and BURGER MENU === */
header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 3px 12px 0 rgba(33,45,69,0.04);
  position: sticky;
  top: 0; left: 0;
  z-index: 101;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding-top: 16px;
  padding-bottom: 16px;
}
header img {
  height: 38px;
  width: auto;
}
nav {
  display: flex;
  gap: 22px;
}
nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.01rem;
  color: var(--primary);
  padding: 8px 10px;
  border-radius: 12px;
  transition: background .17s, color 0.17s;
}
nav a:hover, nav a.active {
  background: var(--secondary);
  color: var(--white);
}

/* Burger menu (hidden on desktop) */
.mobile-menu-toggle {
  background: var(--secondary);
  color: #fff;
  font-size: 2.1rem;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 8px;
  transition: background .17s;
  box-shadow: 0 4px 16px #60A0B526;
  outline: none;
  z-index: 120;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #FAAC40;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(33,45,69,0.93);
  color: var(--accent);
  z-index: 1200;
  width: 100vw;
  height: 100vh;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.63,1.62,.42,1.11);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--accent);
  border: none;
  font-size: 2.6rem;
  align-self: flex-end;
  margin: 16px 20px 6px 0;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  align-items: center;
  margin-top: 18px;
}
.mobile-nav a {
  color: var(--accent);
  background: transparent;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 18px 0;
  width: 96%;
  border-radius: 12px;
  text-align: center;
  transition: background .18s,color .18s;
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: #FAAC40;
  color: var(--primary);
}
@media (max-width: 900px) {
  nav {
    display: none;
  }
}
@media (min-width: 901px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* === MAIN SECTIONS/STYLES === */
main {
  margin-top: 18px;
  margin-bottom: 18px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: box-shadow .22s cubic-bezier(.5,1.52,.28,1.18);
  animation: section-in 1s cubic-bezier(.72,2.2,.57,1.13) both;
}
section:last-child {
  margin-bottom: 0;
}

@keyframes section-in {
  from { opacity: 0; transform: translateY(44px) scale(.99) rotate(-2deg); }
  to   { opacity: 1; transform: none; }
}

/* === LISTS & ICON LISTS === */
ul, ol {
  margin-left: 0;
  list-style: none;
  padding-left: 0;
  margin-bottom: 22px;
}
ul li, ol li {
  margin-bottom: 12px;
  padding-left: 32px;
  position: relative;
  font-size: 1.06rem;
}
ul li::before, ol li::before {
  content: "\2714";
  color: #FAAC40;
  position: absolute;
  left: 0;
  font-size: 1.4em;
  top: -2px;
}
/* icon override for specific img-in-list */
ul li img {
  display: inline-block;
  width: 26px;
  height: 26px;
  margin-right: 9px;
  margin-left: -32px;
  top: 3px;
  position: relative;
}
ul li img + span,
ul li img + strong {
  margin-left: 8px;
}

/* Steps/Ordered Lists for How we work etc. */
ol li::before {
  content: counter(item) '. ';
  color: var(--secondary);
  font-weight: bold;
  background: transparent;
}
ol {
  counter-reset: item;
}
ol li {
  counter-increment: item;
  margin-bottom: 14px;
  padding-left: 0;
}
ol li::before {
  margin-right: 6px;
  font-size: 1em;
  position: static;
}

/* === FOOTER === */
footer {
  width: 100%;
  background: var(--primary);
  color: var(--accent);
  padding: 38px 0 24px 0;
  border-radius: 32px 32px 0 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
}
footer img {
  height: 38px;
  margin-bottom: 10px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer nav a {
  color: var(--accent);
  font-weight: 600;
  padding: 2px 0;
}
footer nav a:hover, footer nav a:focus {
  color: #FAAC40;
  text-decoration: underline;
}
.footer-contact p {
  font-size: 1em;
  line-height: 1.4;
  margin-bottom: 5px;
  color: var(--accent);
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 -3px 24px rgb(33 45 69 / 19%);
  z-index: 15000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 18px;
  font-size: 1rem;
  border-radius: 26px 26px 0 0;
  animation: cookie-in .7s cubic-bezier(.49,1.85,.61,1.26) both;
}
.cookie-banner p {
  margin-bottom: 0;
}
.cookie-banner-buttons {
  display: flex;
  gap: 12px;
}
.cookie-banner-btn {
  min-width: 120px;
  background: var(--secondary);
  color: var(--white);
  font-weight: 700;
  padding: 11px 16px;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  font-size: 1rem;
  margin: 0;
  transition: background .19s, color .14s;
}
.cookie-banner-btn.settings {
  background: #FAAC40;
  color: var(--primary);
}
.cookie-banner-btn.reject {
  background: #FF5B5B;
}
.cookie-banner-btn:active {
  filter: brightness(0.96);
}

@keyframes cookie-in {
  from { transform: translateY(70px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* === COOKIE PREFERENCES MODAL === */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, 48%) scale(.93);
  min-width: 320px;
  max-width: 94vw;
  background: var(--white);
  color: var(--primary);
  z-index: 17000;
  border-radius: 24px;
  box-shadow: 0 6px 28px #60A0B58a;
  padding: 30px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .23s, transform .33s cubic-bezier(.7,1.8,.56,1.09);
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h3 {
  font-size: 1.2rem;
  margin-bottom: 3px;
}
.cookie-pref-item {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 10px;
}
.cookie-pref-label {
  font-weight: 600;
}
.cookie-pref-toggle {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #ececec;
  position: relative;
  transition: background 0.18s;
  cursor: pointer;
  margin-left: 16px;
}
.cookie-pref-toggle input {
  display: none;
}
.cookie-pref-toggle:before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transition: left 0.19s, background .12s;
  background: #FAAC40;
  box-shadow: 0 0 3px #212D4522;
}
.cookie-pref-toggle input:checked + .cookie-pref-toggle:before {
  left: 21px;
  background: var(--secondary);
}
.cookie-pref-btn {
  background: var(--secondary);
  color: var(--white);
  font-weight: 700;
  padding: 10px 28px;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  font-size: 1rem;
  margin-right: 10px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--secondary);
  cursor: pointer;
  transition: color .13s;
}
.cookie-modal .modal-close:hover {
  color: #FF5B5B;
}

/* === ANIMATIONS & MICRO-INTERACTIONS === */
.card, .cta-btn, .feature-item, .testimonial-card, .cookie-banner, .cookie-modal {
  transition: box-shadow .20s cubic-bezier(.5,1.52,.28,1.18), transform .17s cubic-bezier(.66,2.11,.47,1.13), background .16s;
}
.card:hover, .feature-item:hover {
  transform: translateY(-4px) scale(1.012) rotate(-1deg);
  box-shadow: 0 12px 30px rgba(250,172,64,0.12), 0 3px 8px #60A0B522;
  background: #FFFCEC;
}
.cta-btn:active {
  transform: scale(0.98) rotate(-2deg);
}

/* Fun hover wobbles for playful effect */
nav a:hover, .mobile-nav a:hover {
  animation: wobble 0.48s cubic-bezier(.55,1.71,.55,.79);
  outline: none;
}
@keyframes wobble {
  0% { transform: rotate(0deg); }
  30% { transform: rotate(-3deg) scale(1.05); }
  60% { transform: rotate(5deg) scale(0.98); }
  100% { transform: rotate(0deg) scale(1); }
}

/* === RESPONSIVE DESIGN (MOBILE-FIRST) === */
@media (max-width: 1020px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}
@media (max-width: 900px) {
  .container, footer .container {
    flex-direction: column !important;
    align-items: flex-start;
    gap: 24px;
  }
  .footer-contact { margin-top: 16px; }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  header .container, footer .container {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 7px;
    gap: 16px;
  }
  section, .section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
  .testimonial-card, .card, .feature-item {
    padding: 15px 10px;
  }
  .content-wrapper, .text-section {
    gap: 12px;
  }
  .card-container, .content-grid, .features {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  nav {
    gap: 8px;
  }
  h1 {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }
  h2 {
    font-size: 1.22rem;
    margin-bottom: 10px;
  }
  .cta-btn, .cookie-banner-btn, .cookie-pref-btn {
    font-size: 1rem;
    padding: 12px 24px;
  }
}
@media (max-width: 520px) {
  .container, footer .container {
    padding: 0 3px;
  }
  section, .section {
    padding: 14px 2px;
    border-radius: 13px;
  }
  .testimonial-card, .card, .feature-item {
    border-radius: 11px;
  }
}

/* === FORM INPUTS (for future extension/contact forms) === */
input, textarea, select {
  background: #fff;
  border: 2px solid #e3e6e9;
  border-radius: 10px;
  padding: 12px 17px;
  margin-bottom: 14px;
  font-size: 1rem;
  color: var(--primary);
  outline: none;
  box-shadow: 0 2px 8px #212D450b;
  transition: border .16s, box-shadow .13s;
}
input:focus, textarea:focus, select:focus {
  border: 2px solid #60A0B5;
  box-shadow: var(--focus);
}
label {
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}

/* === VISUAL BRAND DYNAMISM === */
.section {
  border-left: 8px solid #FAAC40;
  box-shadow: 0 2px 12px #60A0B516;
  position: relative;
}
.section:nth-child(even) {
  border-left: 8px solid #63B1FD;
  box-shadow: 0 4px 18px #212D4520;
}
.section:before {
  content: '';
  display: block;
  position: absolute;
  top: -24px; left: 36px;
  width: 50px; height: 13px;
  background: #FAAC40;
  border-radius: 8px;
  opacity: 0.11;
  z-index: 0;
}
.section:nth-child(even):before {
  background: #63B1FD;
}

/* === UTILITIES === */
.hide-mobile { display: none !important; }
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
  .hide-mobile { display: inline !important; }
}

/* === OVERRIDES FOR SPECIAL ELEMENTS/SECTIONS === */
.text-section ul li::before,
div.text-section ul li::before { content: '•'; color: #60A0B5; font-weight: bold; font-size: 1em; left: 0; top: 0; }
.text-section ul { margin-bottom: 10px; }

/* === Z-INDEX LAYERING === */
header, .mobile-menu, .cookie-banner, .cookie-modal { z-index: 1100; }

/* === A11Y: FOCUS VISIBLE STYLES === */
:focus-visible {
  outline: 3px solid #63B1FD;
  outline-offset: 2px;
}

/* === PLAYFUL MICRO-ANIMATION DECOR for "dynamic" effect === */
.card:after, .testimonial-card:after {
  content: '';
  display: block;
  position: absolute;
  width: 38px; height: 12px;
  bottom: 10px; left: 20px;
  background: #FAAC40;
  opacity: 0.13;
  border-radius: 7px;
  z-index: 0;
  pointer-events: none;
  animation: deco-wobble 3s infinite alternate cubic-bezier(.66,2.11,.47,1.13);
}
.card:after { left: 42px; background: #63B1FD; }
.testimonial-card:after { left: 18px; background: #FAAC40; }
@keyframes deco-wobble {
  0% { transform: scaleX(1) rotate(2deg); }
  34% { transform: scaleX(.7) rotate(-1deg); }
  64% { transform: scaleX(1.2) rotate(2deg); }
  100% { transform: scaleX(1.04) rotate(-2deg); }
}

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