/* ========================================================== */
/* CSS RESET + NORMALIZE FOR MAX COMPATIBILITY                */
/* ========================================================== */
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;
}
html { box-sizing: border-box; scroll-behavior: smooth; }
*, *:before, *:after { box-sizing: inherit; }
body {
  background: #E0E9EF;
  color: #166080;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
img { display: inline-block; max-width: 100%; height: auto; border: 0; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #114766;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; margin-bottom: 8px; }
p, ul, ol, li, table, blockquote {
  color: #166080;
  margin-bottom: 16px;
  font-size: 1rem;
}
ul, ol { padding-left: 22px; }
strong { color: #114766; }

/* ========================================================== */
/* COLOR VARIABLES + PLAYFUL PALETTE EXTENDED                */
/* ========================================================== */
:root {
  --primary: #166080;
  --primary-dark: #114766;
  --secondary: #E0E9EF;
  --secondary-light: #f5fafd;
  --accent: #F9B233;
  --accent-dark: #f59a00;
  --fun-pink: #E35683;
  --fun-green: #39B77B;
  --fun-blue: #60B5FF;
  --white: #fff;
  --shadow-card: 0 4px 16px 0 rgba(22, 96, 128, 0.12);
  --shadow-fun: 0 6px 32px 0 rgba(249,178,51,0.18);
  --radius: 24px;
}

/* ========================================================== */
/* GLOBAL WRAPPERS, SECTIONS, FLEX LAYOUTS                   */
/* ========================================================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* ========================================================== */
/* HEADER & NAVIGATION (DESKTOP AND MOBILE)                  */
/* ========================================================== */
header {
  width: 100%;
  background: var(--primary);
  position: relative;
  box-shadow: 0 3px 20px rgba(22,96,128,0.06);
  z-index: 11;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 0 20px;
  min-height: 70px;
}
header nav img {
  height: 48px;
  width: auto;
  margin-right: 10px;
}
header nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--accent);
  background: transparent;
  transition: background 0.18s, color 0.18s;
  font-size: 1rem;
  outline: 0;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 2px 12px 0 rgba(249,178,51,0.18);
}
.mobile-menu-toggle {
  background: var(--accent);
  color: var(--primary-dark);
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: 16px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(249,178,51,0.12);
  transition: background 0.18s, box-shadow 0.18s, color 0.15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover { background: var(--fun-pink); color: var(--white); }

/* Mobile nav overlay */
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: var(--secondary);
  box-shadow: 0 0 40px rgba(22,96,128,0.28);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 0;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  align-self: flex-end;
  margin: 18px 28px 10px 0;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 12;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--fun-pink);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  margin: 16px 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--primary-dark);
  font-size: 1.15rem;
  padding: 12px 0 12px 4px;
  border-radius: 12px;
  background: none;
  text-decoration: none;
  width: 100%;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--fun-pink);
  color: var(--white);
}
/* Hide desktop nav and show mobile nav on mobile */
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Ensure body not scrollable when mobile menu open */
body.menu-open {
  overflow: hidden;
}

/* ========================================================== */
/* SECTIONS, FLEX CONTAINERS, CARDS, LAYOUTS (MANDATORY GAPS)*/
/* ========================================================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary-light);
  border-radius: var(--radius);
}
.card-container, .services-cards, .features-grid, .product-overview, .product-table, .workshop-schedule {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 18px;
}
.card, .service-card, .faq-card {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 20px;
  position: relative;
  padding: 30px 24px;
  box-shadow: var(--shadow-card);
  min-width: 240px;
  flex: 1 1 230px;
  transition: box-shadow 0.19s, transform 0.17s;
  z-index: 1;
}
.card:hover, .service-card:hover, .faq-card:hover {
  box-shadow: 0 6px 36px 0 rgba(249,178,51,0.16);
  transform: translateY(-4px) scale(1.015);
}
.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;
  flex-direction: row;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-fun);
  margin-bottom: 24px;
  min-width: 250px;
  transition: box-shadow 0.17s, transform 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 38px 0 rgba(249,178,51,0.19);
  transform: scale(1.025) rotate(-1.1deg);
}
.testimonial-card p {
  color: var(--primary-dark);
  font-size: 1.07rem;
}
.testimonial-meta { font-size: 1rem; color: var(--fun-pink); margin-left: 14px; }
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 200px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 2px 15px rgba(96,181,255,0.09);
  padding: 20px 18px;
  margin-bottom: 24px;
  transition: box-shadow 0.17s, transform 0.17s;
  /* Fun hover bounces! */
  will-change: transform;
}
.feature-item:hover {
  box-shadow: 0 4px 24px rgba(56,183,123,0.16);
  transform: scale(1.04) rotate(1.5deg);
  background: var(--accent);
  color: var(--primary-dark);
}
.feature-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--secondary);
  padding: 6px;
  margin-bottom: 8px;
  box-shadow: 0 1px 8px 0 rgba(57,183,123,0.10);
  animation: fun-bounce 2s infinite ease-in-out;
}
@keyframes fun-bounce {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-7px); }
  40% { transform: translateY(-2px); }
  50% { transform: translateY(-10px); }
  60% { transform: translateY(2px); }
  75% { transform: translateY(-5px); }
}
.services-cards {
  gap: 24px;
  flex-wrap: wrap;
}
.service-card {
  flex: 1 1 225px;
  text-align: left;
  border: 3px dashed var(--accent);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.19s, border-color 0.18s, transform 0.17s;
}
.service-card:hover {
  border-color: var(--primary-dark);
  box-shadow: 0 8px 30px 0 rgba(22,96,128,0.16);
  transform: scale(1.04) rotate(-2.2deg);
}
.faq-card {
  background: var(--secondary-light);
  border-left: 6px solid var(--accent);
}
.product-overview, .product-table {
  flex-wrap: wrap;
  gap: 24px;
}
.product-overview > div, .product-table > div {
  background: var(--white);
  border-radius: 16px;
  padding: 18px 20px;
  min-width: 200px;
  flex: 1 1 180px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}
.contact-info > div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--primary-dark);
}
.contact-info img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

/* ========================================================== */
/* BUTTONS, LINKS, CTA, FOCUS/ACTIVE                         */
/* ========================================================== */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(90deg, var(--accent) 82%, var(--fun-pink) 100%);
  color: var(--primary-dark);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 800;
  border-radius: 44px;
  padding: 12px 32px;
  margin: 12px 0 0 0;
  text-decoration: none;
  border: 2.5px solid var(--accent-dark);
  box-shadow: 0 2px 13px 0 rgba(249,178,51,0.15);
  cursor: pointer;
  transition: background 0.21s, color 0.16s, box-shadow 0.18s, transform 0.13s;
  will-change: transform;
}
.cta-btn:active {
  box-shadow: 0 0 0 rgba(249,178,51,0.11);
}
.cta-btn:focus, .cta-btn:hover {
  background: linear-gradient(80deg, var(--fun-pink), var(--fun-blue) 90%);
  color: var(--white);
  transform: scale(1.045) rotate(-1deg);
}

/* Links */
a {
  color: var(--fun-pink);
  cursor: pointer;
  text-decoration: underline;
  outline: none;
  transition: color 0.13s;
}
a:focus, a:hover { color: var(--fun-blue); }

/* ========================================================== */
/* TEXT STYLES & TYPOGRAPHY                                  */
/* ========================================================== */
.text-section {
  background: var(--secondary-light);
  padding: 18px 24px;
  border-radius: 16px;
  color: var(--primary);
  font-family: 'Roboto', Arial, sans-serif;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
}
ul, ol {
  margin-bottom: 18px;
  list-style: circle inside;
  color: var(--primary-dark);
}
li {
  margin-bottom: 8px;
  line-height: 1.6;
  font-size: 1rem;
}

/* ========================================================== */
/* FOOTER: BRAND COLORS, SOCIAL LINKS, LEGALS                */
/* ========================================================== */
footer {
  background: var(--primary-dark);
  color: var(--secondary);
  width: 100%;
  padding: 0;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}
footer .container { padding: 0 12px; }
footer .content-wrapper {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
}
footer nav {
  display: flex;
  gap: 14px;
}
footer nav a {
  color: var(--accent);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 2px 10px;
  border-radius: 8px;
  text-decoration: none;
  background: none;
  transition: background 0.16s, color 0.15s;
}
footer nav a:focus, footer nav a:hover {
  background: var(--accent);
  color: var(--primary-dark);
}
.social-links {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: 5px;
}
.social-links img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--secondary);
  box-shadow: 0 2px 10px 0 rgba(249,178,51,0.07);
  transition: transform 0.15s;
}
.social-links img:focus, .social-links img:hover {
  transform: scale(1.2) rotate(8deg);
}
.legal-links {
  font-size: 0.95rem;
  color: var(--secondary);
  opacity: 0.7;
}
/* Responsive layout in footer */
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 23px 0;
  }
  footer nav { margin-bottom: 8px; }
}

/* ========================================================== */
/* COOKIE CONSENT BANNER + MODAL                             */
/* ========================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--accent);
  color: var(--primary-dark);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 24px 14px;
  z-index: 1600;
  box-shadow: 0 -2px 32px rgba(22,96,128,0.19);
  font-size: 1rem;
  animation: cookieup 0.45s ease-in;
}
@keyframes cookieup {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.cookie-banner__content {
  max-width: 650px;
  margin-right: 24px;
}
.cookie-banner .cookie-btn {
  background: var(--primary-dark);
  color: var(--accent);
  border: none;
  border-radius: 38px;
  padding: 12px 24px;
  margin: 0 9px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.19s, color 0.17s, transform 0.13s;
  cursor: pointer;
}
.cookie-banner .cookie-btn:focus, .cookie-banner .cookie-btn:hover {
  background: var(--fun-pink);
  color: var(--white);
  transform: scale(1.04) rotate(-2deg);
}
.cookie-banner .cookie-settings {
  background: var(--fun-blue);
  color: var(--white);
  margin-right: 0;
}
.cookie-banner .cookie-settings:focus, .cookie-banner .cookie-settings:hover {
  background: var(--fun-green);
}

/* Cookie Preference Modal */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 1700;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(22,96,128,0.34);
  justify-content: center;
  align-items: center;
  transition: background 0.22s;
}
.cookie-modal.open {
  display: flex;
  animation: modalFadeIn 0.27s;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal__box {
  background: var(--secondary);
  color: var(--primary-dark);
  border-radius: 19px;
  box-shadow: 0 8px 45px 0 rgba(96,181,255,0.13);
  max-width: 400px;
  width: 90vw;
  padding: 32px 23px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: 'Roboto', Arial, sans-serif;
  align-items: flex-start;
}
.cookie-modal__title { font-size: 1.32rem; font-family: 'Montserrat', 'Roboto', Arial, sans-serif; font-weight: 700; }
.cookie-modal__group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0;
}
.cookie-modal label {
  font-size: 1.05rem;
  color: var(--primary-dark);
}
.cookie-modal input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--accent);
}
.cookie-modal__actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  width: 100%;
  margin-top: 8px;
  justify-content: flex-end;
}
.cookie-modal__btn {
  background: var(--accent);
  color: var(--primary-dark);
  padding: 10px 18px;
  border: none;
  border-radius: 22px;
  font-size: 1rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.13s, color 0.15s;
  cursor: pointer;
}
.cookie-modal__btn:focus, .cookie-modal__btn:hover {
  background: var(--fun-green);
  color: var(--white);
}
.cookie-modal__close {
  background: none;
  color: var(--fun-pink);
  border: none;
  font-size: 1.5rem;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: -10px;
  margin-top: -18px;
}
.cookie-modal__close:focus, .cookie-modal__close:hover { color: var(--primary-dark); }

/* ========================================================== */
/* RESPONSIVE DESIGN: MOBILE <900px and <600px               */
/* ========================================================== */
@media (max-width: 900px) {
  .section {
    padding: 32px 9px;
    border-radius: 22px;
  }
  .content-wrapper {
    gap: 20px;
  }
  .features-grid, .services-cards, .product-overview, .product-table, .workshop-schedule, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card, .service-card, .feature-item, .faq-card {
    min-width: 0;
  }
  footer .container { padding: 0 7px; }
}
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .section { padding: 22px 3px; margin-bottom: 32px; }
  .container { padding: 0 3px; }
  .testimonial-card, .service-card, .feature-item, .faq-card {
    padding: 13px 7px;
    font-size: 1em;
  }
  .cta-btn {
    padding: 11px 21px;
    font-size: 1rem;
  }
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 15px 6px; }
  .cookie-banner__content { margin-right: 0; margin-bottom: 9px; }
}
/* Stack text-image-sections vertically on mobile */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 20px; }
  .content-wrapper {gap: 18px;}
}

/* ========================================================== */
/* SCROLLBARS & MICRO-ANIMATIONS                             */
/* ========================================================== */
::-webkit-scrollbar { width: 10px; background: var(--secondary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 5px; }
::-webkit-scrollbar-track { background: var(--secondary-light); }

/* Fun CTA shake! */
.cta-btn.shake {
  animation: jello 1.4s cubic-bezier(.17,.67,.83,.67) infinite alternate;
}
@keyframes jello {
  0% { transform: none; }
  14% { transform: skewX(-7deg) rotate(-1deg); }
  28% { transform: skewX(7deg) scale(1.085) rotate(2.5deg); }
  42% { transform: skewX(-4deg) rotate(-0.4deg); }
  56% { transform: skewX(2deg) shrink(1.0) rotate(1deg); }
  70% { transform: skewX(-1deg) rotate(-1.2deg); }
  84% { transform: skewX(0deg) scale(1.00) rotate(0deg); }
  100% { transform: none; }
}

/* ========================================================== */
/* ANIMATED/PLAYFUL HIGHLIGHTS                               */
/* ========================================================== */
.feature-item::after {
  content: '';
  display: block;
  width: 24px;
  height: 5px;
  border-radius: 8px;
  margin: 0 auto 0 0;
  background: var(--fun-blue);
  opacity: 0.19;
}
.feature-item:nth-child(2)::after { background: var(--fun-green); }
.feature-item:nth-child(3)::after { background: var(--fun-pink); }

.service-card::after {
  content: '';
  position: absolute;
  top: -17px;
  right: 8px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--fun-blue);
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}
.service-card:nth-child(2)::after { background: var(--fun-pink); top: -12px; right: 16px; }

.testimonial-card::before {
  content: '★';
  font-size: 1.2rem;
  color: var(--fun-pink);
  margin-right: 9px;
}

/* ========================================================== */
/* PRINT OPTIMIZATION                                        */
/* ========================================================== */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  section, .section, .container, .content-wrapper { all: unset; }
}
