/* ===========================================================
   Sijajna Energija – Playful Dynamic CSS (Flexbox-only, Responsive)
   =========================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #205E3D;
  background: #FFFFFF;
  min-height: 100vh;
  line-height: 1.7;
  font-size: 1rem;
  position: relative;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #338A6A;
  text-decoration: none;
  transition: color .2s cubic-bezier(.57,1.51,.46,.76);
}
a:hover, a:focus {
  color: #FFB43A;
}

ul, ol {
  margin-left: 1.3em;
}
strong {
  font-weight: bold;
}

/* ---- BRAND COLORS ---- */
:root {
  --primary: #205E3D;
  --secondary: #FFFFFF;
  --accent: #338A6A;
  --playful-yellow: #FFB43A;
  --playful-blue: #19B4FA;
  --playful-pink: #FF5ACE;
  --card-bg: #F8FFF4;
  --shadow: 0 2px 16px 0 rgba(32,94,61,.11);
}

/* ---- TYPOGRAPHY ---- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 16px;
}
h1 {
  font-size: 2.4rem;
  line-height: 1.18;
}
h2 {
  font-size: 2rem;
  line-height: 1.24;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.17rem;
}
.text-section p, p, li, table, td, th {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--primary);
}

/* PLAYFUL/FUN Font accents for extra playful headings */
.hero h1, .section h2, .cta-btn, .mobile-menu-toggle {
  font-family: 'Montserrat', cursive, Arial, sans-serif;
  font-weight: 900;
}

/* ---- CONTAINER ---- */
.container {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 0 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

.content-wrapper {
  /* For playful movement, slight scale animation on hover */
  transition: transform .15s cubic-bezier(.67,1.56,.54,1.03);
}
.content-wrapper:hover {
  transform: scale(1.02) rotate(-1.2deg);
}

/* ---- HEADER ---- */
header {
  background: var(--primary);
  color: var(--secondary);
  width: 100%;
  padding: 0;
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  min-height: 80px;
  padding: 10px 18px;
}
.brand img {
  display: block;
  height: 48px;
  width: auto;
  transition: transform .25s cubic-bezier(.63,1.44,.47,.72);
}
.brand img:hover {
  transform: scale(1.13) rotate(3deg);
}
header nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
header nav a {
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.07rem;
  padding: 6px 12px;
  border-radius: 16px;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: var(--accent);
  color: var(--secondary);
  outline: none;
}
.cta-btn {
  padding: 13px 32px;
  background: var(--playful-yellow);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.17rem;
  font-weight: 900;
  border: none;
  border-radius: 42px;
  cursor: pointer;
  margin-left: 12px;
  box-shadow: 0 3px 28px -7px var(--primary);
  transition: background .19s, color .19s, transform .18s;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 5px rgba(255,255,255,0.22);
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--playful-pink);
  color: #fff;
  transform: scale(1.10) rotate(-2deg);
  text-shadow: 0 3px 12px #205E3D55;
}

/* --- MOBILE BURGER & MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  background: var(--playful-yellow);
  color: var(--primary);
  font-size: 2.1rem;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 14px -3px #205E3D55;
  cursor: pointer;
  z-index: 202;
  transition: background .2s, transform .14s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--playful-blue);
  color: #fff;
  transform: scale(1.09) rotate(7deg);
}
.mobile-menu {
  position: fixed;
  z-index: 300;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  transform: translateX(-110vw);
  transition: transform .38s cubic-bezier(.77,1.51,.32,.97);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--playful-pink);
  color: var(--secondary);
  font-size: 2.2rem;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 360;
  cursor: pointer;
  box-shadow: 0 2px 13px #FF5ACE22;
  transition: background .19s, color .13s, transform .16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--playful-yellow);
  color: var(--primary);
  transform: rotate(28deg);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 90px 0 0 32px;
}
.mobile-nav a {
  color: var(--primary);
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 10px 0 10px 2px;
  transition: color .18s, background .14s, transform .15s;
  border-radius: 13px;
}
.mobile-nav a:active, .mobile-nav a:focus {
  background: var(--accent);
  color: #FFF;
  outline: none;
  transform: scale(1.06) skewX(-4deg);
}

/* ---- HERO SECTION ---- */
.hero {
  background: linear-gradient(90deg, #F8FFF4 70%, #EAFEFE 100%);
  border-radius: 0 0 60px 60px;
  min-height: 320px;
  margin-bottom: 36px;
  box-shadow: 0 3px 32px -16px #338A6A33;
}
.hero .container {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  gap: 16px;
}
.hero .content-wrapper h1 {
  color: var(--primary);
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-family: 'Montserrat', cursive, Arial, sans-serif;
  text-shadow: 2px 2px 0 var(--playful-yellow), 1px 1px 0 #fff6;
  /* Slight playful pop */
}
.hero .content-wrapper p {
  font-size: 1.14rem;
  color: #338A6A;
  margin-bottom: 26px;
  font-weight: 500;
}
.hero .cta-btn {
  margin-top: 5px;
  border: 2px dashed var(--playful-yellow);
  transition: border-color .2s linear;
}
.hero .cta-btn:hover, .hero .cta-btn:focus {
  border-color: var(--playful-blue);
}

/* ---- MAIN SECTIONS & CARDS ---- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--card-bg);
  border-radius: 22px;
  box-shadow: var(--shadow);
  position: relative;
  padding: 28px 24px;
  min-width: 240px;
  max-width: 340px;
  flex: 1 1 260px;
  transition: box-shadow .22s, transform .14s;
  z-index: 1;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 36px -10px var(--playful-blue);
  transform: scale(1.015) rotate(-2deg);
  z-index: 3;
}

.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ---- TESTIMONIALS ---- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 22px;
  background: #FFFDFA;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 #338A6A1a;
  transition: box-shadow .18s, transform .19s;
  position: relative;
  font-size: 1.1rem;
  color: #133120;
}
.testimonial-card p {
  color: #205E3D;
  margin-bottom: 2px;
}
.testimonial-card strong {
  color: var(--primary);
  font-weight: 900;
  letter-spacing: .5px;
}
.testimonial-card > div:last-child {
  font-size: 1.3rem;
  letter-spacing: 3px;
  color: var(--playful-yellow);
  font-family: 'Montserrat', Arial, sans-serif;
  margin-left: 10px;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 7px 36px -5px var(--playful-yellow);
  transform: scale(1.025) rotate(2deg);
  background: #fffdf6;
}

/* ---- LISTS ---- */
ul li, ol li {
  margin-bottom: 10px;
  padding-left: 3px;
  position:relative;
}
ul li strong {
  color: var(--playful-blue);
}

/* ---- TABLES ---- */
table {
  border-collapse: separate;
  border-spacing: 0;
  margin: 26px 0 0 0;
  width: 100%;
  box-shadow: 0 2px 16px 0 #338A6A13;
  background: #FFF;
  border-radius: 15px;
  overflow: hidden;
  font-size: 1rem;
}
thead tr {
  background: var(--accent);
  color: #FFF;
}
th, td {
  text-align: left;
  padding: 18px 17px;
}
th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
}
tbody tr:nth-child(even) {
  background: #F6FBF8;
}
tbody tr:hover {
  background: #FFFBF2;
}

/* ---- FOOTER ---- */
footer {
  background: var(--primary);
  color: #fff;
  border-radius: 54px 54px 0 0;
  box-shadow: 0 -3px 25px -10px #205E3D54;
  margin-top: 34px;
  padding: 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
  padding: 38px 18px 15px 18px;
}
footer a {
  color: #FFF;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 4px 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
footer a:hover, footer a:focus {
  color: var(--playful-yellow);
  background: #13312033;
}
footer .text-section p {
  font-size: 0.93rem;
  color: #EAEAEA;
  margin-top: 9px;
}

/* ---- FORMS (Buttons, Inputs placeholder, etc.) ---- */
button, .cta-btn {
  transition: background .16s, box-shadow .18s, color .12s, transform .13s;
}
input, textarea {
  border-radius: 13px;
  border: 1.5px solid #338A6A;
  font-size: 1rem;
  padding: 11px 13px;
  outline: none;
  margin-bottom: 20px;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F8FFF4;
}
input:focus, textarea:focus {
  border-color: var(--playful-yellow);
  box-shadow: 0 0 0 2px #FFB43A33;
}

/* ---- SPACING & FLEXBOX PATTERNS ---- */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/**** --- COOKIE CONSENT BANNER --- ****/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 550;
  background: linear-gradient(90deg,#FFFEE4 60%, #F7FAFF 100%);
  box-shadow: 0 -2px 20px -10px #69BFA433;
  padding: 25px 14px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  justify-content: center;
  border-radius: 32px 32px 0 0;
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
  transition: transform .38s cubic-bezier(.77,1.51,.32,.97), opacity .39s;
}
.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.cookie-banner p {
  font-size: 1.03rem;
  color: #205E3D;
  margin-bottom: 0;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner button {
  min-width: 113px;
  font-size: 1rem;
  padding: 11px 18px;
  border-radius: 23px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 12px -6px #338A6A22;
  transition: background .13s, color .16s, transform .11s;
}
.cookie-banner .accept {
  background: var(--accent);
  color: #FFF;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus { 
  background: var(--playful-blue);
  color: #fff;
  transform: scale(1.055);
}
.cookie-banner .reject {
  background: var(--playful-pink);
  color: #FFF;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: var(--playful-yellow);
  color: var(--primary);
  transform: scale(1.045) rotate(-2deg);
}
.cookie-banner .settings {
  background: #FFF;
  color: var(--primary);
  border: 2px solid var(--accent);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--accent);
  color: #FFF;
  transform: scale(1.07);
}

/*---- COOKIE MODAL ----*/
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 660;
  background: rgba(32,94,61,0.57);
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(.92);
  background: #FFF;
  z-index: 670;
  border-radius: 32px;
  box-shadow: 0 14px 48px -16px #205E3D44;
  max-width: 420px;
  min-width: 290px;
  width: calc(100vw - 40px);
  padding: 33px 28px 32px 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .29s cubic-bezier(.77,1.43,.17,.88);
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h3 {
  margin-top: 0;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
.cookie-modal .cookie-category label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--primary);
}
.cookie-modal .toggle {
  width: 43px;
  height: 24px;
  border-radius: 16px;
  background: #EAEAEA;
  position: relative;
  margin-left: 4px;
  cursor: pointer;
  transition: background .17s;
  border: 2px solid #338A6A22;
}
.cookie-modal .toggle[data-checked="true"] {
  background: var(--playful-blue);
}
.cookie-modal .toggle .slider {
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1px; left: 1px;
  box-shadow: 0 2px 8px -3px #69BFA422;
  transition: left .16s cubic-bezier(.71,1.44,.21,.84);
}
.cookie-modal .toggle[data-checked="true"] .slider {
  left: 20px;
}
.cookie-modal .cookie-footer {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-modal .cookie-footer button {
  font-size: 1rem;
  padding: 10px 19px;
  border-radius: 24px;
  border: none;
  font-weight: 800;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
}
.cookie-modal .cookie-footer .close {
  background: #EAEAEA;
  color: #205E3D;
}
.cookie-modal .cookie-footer .close:hover {
  background: #FFDFB9;
}
.cookie-modal .cookie-footer .save {
  background: var(--playful-blue);
  color: #FFF;
}
.cookie-modal .cookie-footer .save:hover {
  background: var(--playful-yellow);
  color: #205E3D;
}

/*---- THANK-YOU PAGE ----*/
.thankyou-section h1 {
  font-size: 2.1rem;
  color: var(--playful-blue);
}

/* ---- RESPONSIVE: MOBILE-FIRST ---- */
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
  }
  .content-wrapper, .section {
    padding-left: 8px; padding-right: 8px;
  }
  header .container, footer .container {
    gap: 18px;
    padding-left: 12px; padding-right: 12px;
  }
}
@media (max-width: 850px) {
  header nav {
    display: none !important;
  }
  .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 40px;
    padding: 27px 5px;
  }
  .hero .container {
    min-height: 220px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 19px;
  }
  .card {
    max-width: 100%;
    min-width: 0;
    flex: 1 1 100%;
    padding: 19px 7px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 17px 7px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
  .feature-item {
    gap: 7px;
  }
  table, th, td {
    font-size: .97rem;
    padding: 12px 7px;
  }
  .mobile-menu-toggle {
    right: 10px; top: 10px; width: 44px; height: 44px; font-size: 1.7rem;
  }
}
@media (max-width: 540px) {
  .container {
    padding: 0 4px;
  }
  .section {
    padding-left: 1px; padding-right: 1px;
  }
  h1, .hero .content-wrapper h1 { font-size: 1.45rem; }
  h2, .section h2 { font-size: 1.21rem; }
  .footer .container {
    gap: 9px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 16px 3px 12px 5px;
  }
}

/* ---- ANIMATED ELEMENTS / MICRO-INTERACTIONS ---- */
.cta-btn, .cookie-banner button, .mobile-menu-toggle {
  box-shadow: 0 4px 18px -8px var(--playful-blue);
  position: relative;
}
.cta-btn::after {
  content: '';
  display: block;
  position: absolute;
  left: 19px; right: 19px; top: 80%;
  height: 8px;
  border-radius: 32px;
  background: var(--playful-yellow);
  opacity: 0.15;
  z-index: 0;
  filter: blur(7px);
}
.cta-btn:hover::after {
  filter: blur(2px);
  opacity: 0.22;
}
.content-wrapper {
  /* Subtle pop hover */
}
.card {
  transition: box-shadow .18s cubic-bezier(.54,1.76,.35,.87), transform .13s cubic-bezier(.29,1.56,.60,1.07);
}
.card:hover { box-shadow: 0 6px 30px -8px var(--playful-pink); }

/* ---- UTILITY CLASSES ---- */
.d-none { display: none !important; }
.mt-16 { margin-top: 16px; }
.mb-32 { margin-bottom: 32px; }
.text-center { text-align: center; }

/* ---- SCROLLBAR ---- */
body::-webkit-scrollbar {
  width: 11px;
}
body::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--playful-blue) 0%, var(--playful-yellow) 88%);
  border-radius: 8px;
}
body::-webkit-scrollbar-track {
  background: var(--secondary);
}

/* ---- ACCESSIBILITY FOCUS ---- */
a:focus, button:focus, input:focus, .cta-btn:focus {
  outline: 2px solid var(--playful-blue);
  outline-offset: 2px;
  box-shadow: 0 2px 12px -6px var(--playful-blue) !important;
}

/* ---- Z-INDEX LAYERING FOR MENUS/BANNERS ---- */
header { z-index: 20; }
.mobile-menu { z-index: 300; }
.mobile-menu-close { z-index: 360; }
.cookie-banner { z-index: 550; }
.cookie-modal-overlay { z-index: 660; }
.cookie-modal { z-index: 670; }

/* ---- ENSURE NO OVERLAP ---- */
.section, .card, .testimonial-card, .content-wrapper {
  margin-bottom: 20px;
}
.card-container, .content-grid, .feature-item {
  gap: 20px;
}

/* ---- PRINT OPTIMIZATION ---- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal, .mobile-menu-toggle { display: none !important; }
  .section, .card, .content-wrapper { box-shadow: none !important; background: #fff !important; }
}
