/* 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,
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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F2F2F2;
  color: #28506A;
  min-height: 100vh;
  font-size: 16px;
  font-family: 'Roboto', Arial, sans-serif;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #28506A;
}
a {
  color: #28506A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #D9B16C;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
  line-height: 1.6;
}
strong {
  font-weight: bold;
  color: #D9B16C;
}
p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #28506A;
}

/* TYPOGRAPHY SCALE */
h1 {
  font-size: 2.6rem;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

/* BRAND-DRIVEN PALETTE - BRIGHT, PLAYFUL & DYNAMIC */
:root {
  --primary: #28506A;
  --secondary: #D9B16C;
  --accent: #F2F2F2;
  --white: #fff;
  --fun1: #fcb900;
  --fun2: #5edfff;
  --fun3: #e95d72;
  --shadow: rgba(40,80,106,0.09);
}

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

body {
  background: var(--accent);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: var(--primary);
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 6px 24px var(--shadow);
  transition: box-shadow 0.2s;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* NAVIGATION */
header {
  width: 100%;
  background: var(--primary);
  box-shadow: 0 1px 8px rgba(40,80,106,0.08);
  position: sticky;
  top: 0;
  z-index: 20;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0 20px;
  height: 72px;
  gap: 18px;
}
.main-nav a {
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.06rem;
  position: relative;
  padding: 6px 14px;
  border-radius: 18px;
  transition: background 0.16s, color 0.16s;
}
.main-nav a:not(.cta-primary):hover,
.main-nav a:not(.cta-primary):focus {
  background: var(--fun2);
  color: var(--primary);
}
.main-nav a img {
  height: 38px;
  margin-right: 6px;
  vertical-align: middle;
  display: inline-block;
}
.cta-primary {
  background: var(--secondary);
  color: var(--primary) !important;
  border-radius: 30px;
  box-shadow: 0 2px 8px var(--shadow);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  padding: 11px 28px;
  margin-left: 14px;
  transition: background 0.18s, color 0.18s, transform 0.1s;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--fun1);
  color: var(--primary);
  transform: translateY(-3px) scale(1.04) rotate(-2deg);
  box-shadow: 0 4px 21px var(--shadow), 0 1px 0 #ffeaa7 inset;
}
.cta-secondary {
  background: var(--primary);
  color: var(--white);
  border-radius: 30px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 9px 24px;
  margin-left: 0;
  transition: background 0.14s, color 0.14s, transform 0.1s;
  box-shadow: 0 1px 6px var(--shadow);
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--fun3);
  color: var(--white);
  transform: scale(1.03) rotate(2deg);
}

/* BURGER MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 17px;
  right: 22px;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  cursor: pointer;
  z-index: 60;
  box-shadow: 0 2px 8px var(--shadow);
  transition: background 0.13s, color 0.13s;
}
.mobile-menu-toggle:active {
  background: var(--fun3);
  color: var(--white);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: var(--white);
  box-shadow: 0 0 80px 12px var(--shadow);
  padding: 38px 32px 16px 32px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.54,1.73,.56,.75);
  z-index: 99;
  pointer-events: none;
  opacity: 0.98;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--fun3);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  font-size: 2rem;
  margin-bottom: 18px;
  cursor: pointer;
  box-shadow: 0 1px 7px var(--shadow);
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 12px;
  align-items: flex-start;
}
.mobile-nav a {
  font-size: 1.35rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  padding: 12px 14px;
  border-radius: 14px;
  transition: background 0.14s, color 0.14s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--white);
}
/* Show only on mobile */
@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu {
    display: flex;
  }
}
@media (min-width: 981px) {
  .mobile-menu-toggle,
  .mobile-menu {
    display: none !important;
  }
}

/* LAYOUTS - FLEXBOX ONLY */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 240px;
  min-width: 240px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 4px 18px var(--shadow);
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.12s;
  z-index: 1;
}
.card:hover, .card:focus-within {
  transform: translateY(-2px) scale(1.03) rotate(-1.2deg);
  box-shadow: 0 10px 28px var(--shadow);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px var(--shadow);
  margin-bottom: 24px;
  min-width: 0;
  position: relative;
}
.testimonial-card blockquote {
  font-size: 1.15rem;
  color: #28506A;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-style: italic;
}
.testimonial-card cite {
  margin-left: 16px;
  color: var(--fun3);
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 0;
}
/* Ensure lists inside sections use playful spacing */
section ul, section ol {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 0;
}
section ul li, section ol li {
  background: var(--fun2);
  border-radius: 14px;
  padding: 22px 21px 19px 21px;
  min-width: 220px;
  box-shadow: 0 2px 12px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
}
section ul li:hover, section ol li:focus-within {
  background: var(--fun1);
  color: var(--primary);
  transition: background 0.16s, color 0.16s;
  box-shadow: 0 10px 28px var(--shadow);
}
section ul li img, section ol li img {
  height: 38px;
  margin-bottom: 7px;
}

/* CASE STUDY/REVIEW SUMMARY STYLES (PROJECTS & TESTIMONIALS) */
.case-study, .review-summary {
  background: var(--fun2);
  border-radius: 16px;
  padding: 20px 28px;
  box-shadow: 0 2px 14px var(--shadow);
  margin-bottom: 22px;
  font-family: 'Roboto', Arial, sans-serif;
}
.review-summary strong {
  font-size: 1.2em;
  color: var(--fun3);
}
.review-summary ul,
.case-study ul {
  gap: 10px;
}

/* QUALITY GUARANTEE/PRIVACY NOTICE */
.quality-guarantee, .privacy-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  background: var(--fun2);
  border-radius: 12px;
  box-shadow: 0 2px 10px var(--shadow);
  padding: 14px 20px;
  font-family: 'Roboto', Arial, sans-serif;
}
.quality-guarantee img, .privacy-notice img {
  height: 26px;
}

/* FAQ ACCORDION PREVIEW */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 12px;
}
.faq-accordion div {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 10px var(--shadow);
  padding: 22px;
}
.faq-accordion h2 {
  font-size: 1.25rem;
  margin-bottom: 9px;
  color: var(--primary);
}
.faq-form {
  margin-top: 16px;
  background: var(--fun2);
  border-radius: 14px;
  padding: 15px 18px;
  color: var(--primary);
}
.faq-form a {
  color: var(--fun3);
  font-weight: bold;
}
.faq-form a:hover {
  text-decoration: underline;
}

/* FOOTER */
footer {
  background: var(--primary);
  color: var(--white);
  width: 100%;
  padding: 44px 0 0 0;
  margin-top: 80px;
  font-size: 1rem;
  position: relative;
  z-index: 2;
}
.footer-brand {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}
.footer-brand img {
  height: 46px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}
.footer-links a {
  color: var(--fun2);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 9px;
  transition: color 0.17s, background 0.16s;
}
.footer-links a:hover, .footer-links a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.footer-contact {
  color: var(--accent);
  font-size: 0.96rem;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-contact img {
  vertical-align: middle;
  height: 20px;
  margin-right: 7px;
}
.legal {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.95em;
  color: var(--fun2);
}
.legal a {
  color: var(--fun2);
  transition: color 0.15s;
  font-family: 'Roboto', Arial, sans-serif;
}
.legal a:hover, .legal a:focus {
  color: var(--secondary);
}

/* COOKIE BANNER & MODAL */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: var(--white);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 14px 20px 14px;
  box-shadow: 0 -2px 22px var(--shadow);
  gap: 13px;
  z-index: 300;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  font-size: 1rem;
  animation: cookie-slide-up 0.5s cubic-bezier(.23,2,.65,.74) both;
}
@keyframes cookie-slide-up {
  0% { transform: translateY(80px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 13px;
  margin-top: 2px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 20px;
  padding: 9px 22px;
  cursor: pointer;
  margin-right: 0;
  transition: background 0.15s, color 0.15s, box-shadow 0.17s;
  box-shadow: 0 1px 7px var(--shadow);
}
.cookie-banner .accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--fun1);
  color: var(--primary);
}
.cookie-banner .reject {
  background: var(--fun3);
  color: var(--white);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: var(--primary);
  color: var(--white);
}
.cookie-banner .settings {
  background: var(--fun2);
  color: var(--primary);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--white);
  color: var(--fun3);
  border: 1px solid var(--fun3);
}

/* COOKIE MODAL POPUP */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(40,80,106,0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 400;
  animation: cookie-modal-in 0.38s cubic-bezier(.54,1.73,.56,.59) both;
}
@keyframes cookie-modal-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal .cookie-modal-box {
  background: #fff;
  padding: 40px 28px;
  border-radius: 22px;
  max-width: 420px;
  width: 95%;
  box-shadow: 0 10px 36px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.cookie-modal h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.03rem;
  margin-bottom: 8px;
}
.cookie-modal .cookie-switch {
  width: 38px;
  height: 22px;
  background: var(--fun2);
  border-radius: 18px;
  position: relative;
}
.cookie-modal .cookie-switch input[type="checkbox"] {
  opacity: 0;
  width: 38px;
  height: 22px;
  position: absolute;
  left: 0; top: 0;
  cursor: pointer;
}
.cookie-modal .slider {
  position: absolute;
  left: 0; top: 0;
  width: 38px;
  height: 22px;
  border-radius: 18px;
  background: var(--fun2);
  transition: background 0.15s;
}
.cookie-modal .cookie-switch input[type="checkbox"]:checked + .slider {
  background: var(--fun1);
}
.cookie-modal .slider:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.15s;
}
.cookie-modal .cookie-switch input[type="checkbox"]:checked + .slider:before {
  left: 19px;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
}

/* RESPONSIVE */
@media (max-width: 1020px) {
  .container {
    max-width: 96vw;
    padding: 0 5vw;
  }
}
@media (max-width: 800px) {
  .section {
    padding: 32px 10px;
    margin-bottom: 40px;
  }
  .testimonial-card,
  .case-study, .review-summary, .faq-accordion div {
    padding: 14px 12px;
  }
  .content-wrapper {
    gap: 16px;
  }
}
@media (max-width: 670px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.10rem; }
  .section {
    padding: 22px 2vw;
  }
  .main-nav { height: auto; padding: 8px 4px; }
}
@media (max-width: 480px) {
  .card, .testimonial-card, .case-study, .review-summary {
    padding: 10px 5px;
  }
  .cookie-modal .cookie-modal-box {
    padding: 14px 7px;
  }
}

/* DECOR & PLAYFUL DYNAMIC (MICRO-ANIMATIONS) */
.cta-primary, .cta-secondary, .cookie-banner button, .mobile-menu-toggle {
  animation: bounce-in 0.65s cubic-bezier(.29,1.76,.7,1.35) 0.15s both;
}
@keyframes bounce-in {
  0% { transform: scale(0.7) translateY(-44px); opacity: 0; }
  60% { transform: scale(1.08) translateY(7px); opacity: 0.85; }
  80% { transform: scale(0.97) translateY(-12px); opacity: 0.9; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.card, .testimonial-card, .case-study, .review-summary {
  animation: fade-up 0.8s cubic-bezier(.23,2,0.58,1.12) both;
}
@keyframes fade-up {
  0% {opacity: 0; transform: translateY(22px);}
  70% {opacity: 0.5;}
  100% {opacity: 1; transform: translateY(0);}
}
/* Fun playful headers */
h1, h2, h3 {
  background: linear-gradient(90deg,var(--fun1) 0%,var(--fun2) 45%, var(--fun3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  letter-spacing: -0.8px;
  font-family: 'Montserrat', Arial, sans-serif;
}
h1 {
  font-weight: 900;
  font-style: italic;
}
h2 {
  font-weight: 700;
  font-style: italic;
}
h3 {
  font-weight: 700;
}

/* Inputs (when present) */
input, textarea, select {
  background: var(--accent);
  border: 2px solid var(--secondary);
  border-radius: 10px;
  font-size: 1rem;
  padding: 9px 14px;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.14s, box-shadow 0.15s;
  box-shadow: 0 1px 7px var(--shadow);
  font-family: 'Roboto', Arial, sans-serif;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--fun3);
  box-shadow: 0 2px 16px var(--shadow);
}

/* --- SPACING ENFORCEMENT --- */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
}
.content-grid {
  gap: 20px;
}
.text-image-section {
  gap: 30px;
}
.testimonial-card {
  gap: 20px;
  padding: 20px;
}
.feature-item {
  gap: 15px;
}
.section *, .container * {
  box-sizing: inherit;
}
section > *:not(:last-child),
.card-container > *:not(:last-child),
.content-grid > *:not(:last-child),
.text-image-section > *:not(:last-child),
.testimonial-card > *:not(:last-child),
.feature-item > *:not(:last-child){
  margin-bottom: 20px;
}

/* Prevent accidental overlap on small screens */
@media (max-width: 440px) {
  section, .section {
    padding: 13px 2vw;
    margin-bottom: 30px;
  }
  .card, .testimonial-card, .faq-accordion div {
    padding: 8px 3vw;
    min-width: 0;
  }
  .feature-item, .case-study, .review-summary {
    padding: 9px 3vw;
  }
}

/* ----- PRINT STYLES (Minimal) ------ */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
}
