/* === CSS RESET & BASE === */

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,
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;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #F7F7F7;
  color: #14253C;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: #274B6D;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: bold;
  color: #274B6D;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; line-height: 1.15; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; }
.subheadline {
  font-size: 1.2rem;
  color: #5CA07A;
  margin-bottom: 20px;
}

p, li, blockquote, span {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
blockquote {
  font-style: italic;
  color: #5CA07A;
  border-left: 5px solid #5CA07A;
  padding-left: 15px;
  margin: 16px 0;
}

strong { font-weight: 700; }

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

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

/* === PLAYFUL_DYNAMIC THEME COLORS === */
:root {
  --primary: #274B6D;
  --secondary: #5CA07A;
  --accent: #F7F7F7;
  --icon-bg: #FFFDED;
  --fun-yellow: #FFE065;
  --playful-blue: #5DACF6;
  --fun-orange: #FFA552;
  --fun-pink: #FF6F91;
  --card-shadow: 0 4px 20px 0 rgba(39,75,109,0.12);
  --text-main: #14253C;
  --text-dark: #1B2D47;
  --white: #fff;
  --gray-100: #F3F5F8;
  --gray-200: #E4E9F2;
  --gray-400: #BFCAD6;
  --gray-600: #6C7A89;
}

/* === BASE LAYOUT & SPACING === */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
}

.card-container, .feature-grid, .service-grid, .pricing-table {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--card-shadow);
  position: relative;
  padding: 32px 24px;
}
.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;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--fun-yellow);
  border-radius: 18px;
  margin-bottom: 24px;
  box-shadow: 0 1.5px 8px rgba(39,75,109,0.09);
  color: var(--text-main);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.feature-grid > div,
.service-grid > div,
.pricing-table > div {
  flex: 1 1 230px;
  background: var(--white);
  border-radius: 18px;
  padding: 28px 20px 32px 20px;
  box-shadow: var(--card-shadow);
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
   /* playful decorative */
  overflow: hidden;
}
.feature-grid > div:hover,
.service-grid > div:hover,
.pricing-table > div:hover {
  transform: translateY(-8px) scale(1.025) rotate(-1.3deg);
  box-shadow: 0 8px 32px rgba(90,160,122,0.18),var(--card-shadow);
  z-index: 2;
}

.feature-grid img,
.service-grid img {
  width: 42px;
  height: 42px;
  background: var(--icon-bg);
  border-radius: 50%;
  padding: 7px;
  box-shadow: 0 2px 7px rgba(255,224,101,0.14);
  margin-bottom: 7px;
  transition: transform 0.25s;
}
.feature-grid > div:hover img {
  transform: rotate(-15deg) scale(1.17);
}

.certifications {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 14px;
}
.certifications img {
  width: 40px;
  height: 40px;
}

/* === BUTTONS & CTA === */
.cta-btn, button, input[type="submit"], .cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  color: var(--white);
  background: linear-gradient(90deg, var(--secondary) 70%, var(--playful-blue) 100%);
  padding: 13px 32px;
  border-radius: 32px;
  border: none;
  box-shadow: 0 2px 8px rgba(90,160,122,0.14);
  cursor: pointer;
  outline: none;
  transition: background 0.18s, transform 0.14s, box-shadow 0.16s;
  letter-spacing: 0.02em;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}
.cta-btn:hover, button:hover, input[type="submit"]:hover, .cookie-btn:hover {
  background: linear-gradient(90deg, var(--playful-blue) 60%, var(--secondary) 100%);
  color: var(--white);
  transform: translateY(-2px) scale(1.03) rotate(-1.5deg);
  box-shadow: 0 6px 18px rgba(90,160,122,0.19);
}

.main-nav .cta-btn {
  background: linear-gradient(90deg, var(--fun-yellow), var(--fun-orange));
  color: var(--primary);
  box-shadow: 0 1.5px 8px rgba(255,224,101,0.13);
  margin-top: 0;
}
.main-nav .cta-btn:hover {
  background: linear-gradient(90deg, var(--fun-orange), var(--fun-pink));
  color: var(--white);
}

/* === HEADER/NAVIGATION === */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(39,75,109,0.07);
  position: sticky;
  top: 0;
  z-index: 99;
}
.logo img {
  height: 46px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  padding: 7px 13px;
  border-radius: 22px;
  transition: background 0.16s, color 0.17s;
}
.main-nav a:hover {
  background: var(--fun-yellow);
  color: var(--secondary);
}
.mobile-menu-toggle {
  margin-left: 18px;
  background: var(--fun-yellow);
  color: var(--primary);
  font-size: 2.1rem;
  border: none;
  border-radius: 13px;
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.14s, box-shadow 0.14s;
  box-shadow: 0 2px 7px rgba(255,224,101,0.15);
  cursor: pointer;
  z-index: 1500;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--fun-orange);
  color: var(--white);
  outline: none;
}

/* === MOBILE NAVIGATION OVERLAY === */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: var(--playful-blue);
  color: var(--white);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 35px 0 0 0;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.83,0,0.17,1);
  box-shadow: 0 0 0 999vw rgba(39,75,109,0.12);
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 0 0 999vw rgba(39,75,109,0.30);
}
.mobile-menu-close {
  font-size: 2.1rem;
  margin: 0 0 23px 30px;
  background: transparent;
  border: none;
  color: var(--fun-yellow);
  cursor: pointer;
  outline: none;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--fun-orange);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 38px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.17rem;
  color: var(--white);
  padding: 11px 0;
  border-radius: 28px;
  transition: background 0.13s, color 0.14s;
}
.mobile-nav a:hover {
  background: var(--fun-yellow);
  color: var(--primary);
  padding-left: 13px;
}

/* === SECTIONS & CARDS === */
section {
  margin-bottom: 60px;
  padding: 40px 0; /* override .section for global section */
}
section .container {
  width: 100%;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  border-left: 6px solid var(--secondary);
  margin-bottom: 24px;
  transition: box-shadow 0.18s, transform 0.15s;
  background: var(--fun-yellow);
  font-size: 1.06rem;
  color: var(--text-main);
}
.testimonial-card span {
  color: var(--primary);
  font-size: 1rem;
}
.testimonial-card:hover {
  background: var(--fun-orange);
  box-shadow: 0 8px 24px rgba(255,165,82,0.10);
}

/* --- PRICING TABLE --- */
.pricing-table {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 32px;
}
.pricing-table > div {
  flex: 1 1 240px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 24px 18px 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 34px 18px 22px 18px;
  border-radius: 22px 22px 0 0;
  margin-top: 54px;
  box-shadow: 0 2px 20px 0 rgba(39,75,109,0.13);
}
.footer-branding {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 14px;
}
.footer-branding img {
  height: 36px;
}
.footer-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.footer-menu a {
  color: var(--fun-yellow);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 7px;
  transition: background 0.13s;
}
.footer-menu a:hover {
  background: rgba(90,160,122,0.17);
}
.company-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0.97;
  margin-top: 8px;
  font-size: 0.94rem;
}
.company-info img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 6px;
}

/* --- LISTS --- */
ul, ol {
  margin-left: 18px;
  margin-bottom: 10px;
}
li {
  margin-bottom: 6px;
  position: relative;
  line-height: 1.55;
  padding-left: 8px;
}
ul li::before {
  content: '•';
  color: var(--fun-pink);
  font-size: 1.25em;
  position: absolute;
  left: -15px;
  top: 0.1em;
}

/* --- HERO ANIMATION & GENERAL ANIMATIONS --- */
@keyframes pop-hero {
  0% {opacity:0; transform: translateY(40px) scale(0.96); }
  80% {opacity:1; transform: translateY(-7px) scale(1.04);}
  100% {opacity:1; transform: none;}
}

.content-wrapper > h1, .content-wrapper > h2, .content-wrapper > h3 {
  animation: pop-hero 0.68s cubic-bezier(0.22,1,0.36,1.06) 0.1s both;
}
.card, .feature-grid > div, .service-grid > div, .testimonial-card {
  animation: pop-hero 0.65s cubic-bezier(0.22,1,0.36,1.06) both;
}

/* --- FORMS, INPUTS, FIELDS --- */
input, textarea, select {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border-radius: 10px;
  border: 1.8px solid var(--gray-200);
  padding: 10px 16px;
  margin-bottom: 10px;
  background: var(--white);
  transition: border 0.18s, box-shadow 0.16s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--fun-yellow);
  box-shadow: 0 2px 9px rgba(255,224,101,0.18);
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 5000;
  background: var(--fun-yellow);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 22px 19px 17px 19px;
  box-shadow: 0 -2px 20px 0 rgba(39,75,109,0.15);
  border-radius: 18px 18px 0 0;
  animation: cookie-slide-up 0.68s cubic-bezier(0.22,1,0.36,1.06);
}
@keyframes cookie-slide-up {
  0% { transform: translateY(130%); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-banner p {
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 6px;
  font-size: 1rem;
}
.cookie-actions {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}
.cookie-btn {
  background: var(--secondary);
  color: var(--white);
  border: none;
  padding: 8px 22px;
  border-radius: 30px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s, color 0.13s;
}
.cookie-btn.accept {
  background: var(--playful-blue);
  color: var(--primary);
}
.cookie-btn.reject {
  background: var(--fun-pink);
  color: var(--white);
}
.cookie-btn.settings {
  background: var(--fun-yellow);
  color: var(--primary);
  border: 1.7px solid var(--primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--fun-orange);
  color: var(--white);
  outline: none;
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(39,75,109,0.44);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  animation: cookie-overlay-fadein 0.48s cubic-bezier(0.37,0,0.63,1);
}
@keyframes cookie-overlay-fadein {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: var(--white);
  color: var(--primary);
  border-radius: 24px 24px 0 0;
  padding: 34px 26px 26px 26px;
  width: 92vw;
  max-width: 370px;
  margin-bottom: 0;
  box-shadow: 0 0 40px 14px rgba(39,75,109,0.12);
  animation: cookie-modal-up 0.54s cubic-bezier(0.28,0.84,0.42,1);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@keyframes cookie-modal-up {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.33rem;
  margin-bottom: 7px;
  color: var(--secondary);
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  margin: 4.5px 0;
}
.cookie-modal input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--playful-blue);
}
.cookie-category {
  margin-bottom: 7px;
  display: flex;
  align-items: center;
}
.cookie-modal .cookie-btn {
  margin-top: 16px;
  width: 100%;
  padding: 10px 0;
}

/* --- UTILITIES & ANIMATIONS --- */
@media (max-width: 1200px) {
  .container {
    max-width: 900px;
  }
}
@media (max-width: 992px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 768px) {
  header {
    flex-direction: row;
    padding: 10px 8px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .container {
    max-width: 98vw;
    padding: 0 6vw;
  }
  .feature-grid, .service-grid, .pricing-table {
    flex-direction: column;
    gap: 22px;
  }
  .footer-branding {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-menu {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .testimonials {
    flex-direction: column;
    gap: 20px;
  }
  .section, section {
    margin-bottom: 38px;
    padding: 22px 0;
  }
  .content-grid, .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 17px;
  }
  .card {
    padding: 18px 11px;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.24rem; }
  .content-wrapper {
    gap: 16px;
  }
  .card, .section {
    border-radius: 10px;
    margin-bottom: 22px;
    padding: 14px 7vw;
  }
  .testimonial-card {
    padding: 10px;
    border-radius: 10px;
  }
  .cookie-modal {
    padding: 18px 8px 14px 8px;
  }
}

/* === PLAYFUL & DYNAMIC FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;900&family=Open+Sans:wght@400;600&display=swap');

body, input, textarea, select {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
h1, h2, h3, .cta-btn, .main-nav a, .footer-menu a, .mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/* === MICRO-INTERACTIONS === */
.cta-btn:active, button:active, .cookie-btn:active {
  transform: scale(0.98) rotate(0.7deg);
}
.card:active, .feature-grid > div:active, .service-grid > div:active {
  transform: scale(0.97) rotate(-2deg);
}

/* === FUN ELEMENTS (confetti, wavy underline) === */
.cta-btn::after {
  content: '';
  display: block;
  position: absolute;
  left: 80%;
  top: 80%;
  width: 15px; height: 15px;
  background: var(--fun-pink);
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(2px);
  transform: scale(0.7);
  z-index: -1;
}
h2 {
  position: relative;
}
h2::after {
  content: '';
  display: block;
  position: absolute;
  left: 0; bottom: -8px;
  width: 45px; height: 7px;
  background: var(--fun-yellow);
  border-radius: 6px;
  opacity: 0.60;
}

/* === ACCESSIBILITY === */
:focus {
  outline: 2.5px dashed var(--playful-blue);
  outline-offset: 2.5px;
}

/* === MISCELLANEOUS ENHANCEMENTS === */
::-webkit-scrollbar {
  width: 9px;
  background: var(--accent);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 14px;
}

/* === PRINT === */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  body {
    background: #fff;
  }
}
