/*
----------------------------------------------
  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, 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F6F3EC;
  color: #23405d;
}
a {
  background: none;
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Roboto+Slab:wght@400;700&display=swap');

:root {
  --primary: #25466F;
  --secondary: #7DA795;
  --accent: #F6F3EC;
  --pastel-rose: #F9E9E2;
  --pastel-mint: #D6F5E3;
  --pastel-blue: #DEE8F6;
  --pastel-yellow: #FFF6D2;
  --pastel-purple: #F2E7F6;
  --heading-font: 'Roboto Slab', serif;
  --body-font: 'Open Sans', Arial, sans-serif;
  --shadow: 0 4px 24px 0 rgba(180, 180, 180, 0.13), 0 1.5px 4px 0 rgba(160, 160, 160, 0.06);
  --radius: 18px;
  --transition: 0.2s cubic-bezier(.45,1,.45,1);
  --border: 1px solid #e7e3e8;
}

/*
----------------------------------------------
  TYPOGRAPHY
----------------------------------------------
*/
body {
  font-family: var(--body-font);
  font-size: 16px;
  color: #23405d;
  background: var(--accent);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
}
h1 { font-size: 2.25rem; line-height: 1.2; margin-bottom: 18px; }
h2 { font-size: 1.5rem;  line-height: 1.3; margin-bottom: 14px; }
h3 { font-size: 1.1rem;  line-height: 1.35; margin-bottom: 10px; font-weight: 700; }
h4, h5, h6 { font-size: 1rem; font-weight: 600;  }
p, li {
  font-size: 1rem;
  color: #37516e;
  font-weight: 400;
  margin-bottom: 8px;
}
.subheadline {
  font-family: var(--body-font);
  font-size: 1.13rem;
  color: var(--secondary);
  margin-bottom: 18px;
  font-weight: 600;
}
strong { font-weight: 700; color: var(--primary); }

/* Visual Hierarchy helpers */
.section-title { font-size: 1.6rem; color: var(--primary); letter-spacing: 0.02em; text-align: left; }

/*
----------------------------------------------
  LAYOUT CONTAINERS & SPACING
----------------------------------------------
*/
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  flex: 1 1 320px;
}
.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;
  background: var(--pastel-mint);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  min-width: 270px;
  flex: 1 1 290px;
  flex-direction: column;
  border: var(--border);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  min-width: 220px;
  margin-bottom: 24px;
}
.text-section {
  margin-bottom: 20px;
}

/*
----------------------------------------------
  HEADER & NAVIGATION
----------------------------------------------
*/
header {
  background: var(--pastel-blue);
  box-shadow: 0 2px 16px 0 rgba(74, 103, 144, 0.07);
  padding: 0 0 0 0;
  border-bottom: var(--border);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}
.logo img {
  height: 52px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 24px;
}
.main-nav a {
  font-family: var(--body-font);
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  opacity: 0.85;
  transition: color var(--transition), opacity var(--transition);
  padding: 9px 6px;
  border-radius: 6px;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
  opacity: 1;
  background: var(--pastel-rose);
}
.cta-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 24px;
  background: linear-gradient(90deg, #F9E9E2 0%, #D6F5E3 100%);
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 1.07rem;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(180, 180, 180, 0.12);
  transition: background var(--transition), color var(--transition), transform .15s cubic-bezier(.38,1.5,.89,.83);
  outline: none;
  border: none;
  margin-left: 20px;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #D6F5E3 0%, #F9E9E2 100%);
  color: var(--secondary);
  transform: translateY(-2px) scale(1.035);
}
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: #fff;
  font-size: 2.1rem;
  height: 46px;
  width: 46px;
  border-radius: 50%;
  border: none;
  align-items: center;
  justify-content: center;
  margin-left: 16px;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--primary);
  color: #fff6e0;
}

/*
----------------------------------------------
  HERO & SECTIONS
----------------------------------------------
*/
.hero {
  background: linear-gradient(90deg, #DEE8F6 40%, #F9E9E2 100%);
  padding: 54px 0 38px 0;
  border-radius: 0 0 var(--radius) var(--radius);
}
.hero h1 {
  color: var(--primary);
  font-size: 2.4rem;
  font-family: var(--heading-font);
  letter-spacing: 0.01em;
  line-height: 1.17;
}
.hero .subheadline {
  color: var(--secondary);
}

.features {
  background: var(--pastel-mint);
  border-radius: var(--radius);
  margin: 40px 0 46px 0;
}
.features .feature-grid,
.features .workshop-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 18px;
  justify-content: flex-start;
}
.features .feature-grid li {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 340px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px 18px 18px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  color: #37516e;
  font-size: 1.03rem;
  margin-bottom: 0;
  transition: box-shadow 0.16s cubic-bezier(.39,.6,.61,1.1);
}
.features .feature-grid li img {
  width: 32px;
  height: 32px;
}
.features .feature-grid li:hover {
  box-shadow: 0 4px 32px #c3e7d6;
}

/* Workshop List (rabotilnici) as features */
.features .workshop-list li {
  background: var(--pastel-yellow);
  color: var(--primary);
  padding: 16px 16px 13px 16px;
  border-radius: 12px;
  margin-bottom: 0;
  box-shadow: var(--shadow);
  font-size: 1.06rem;
}

/*
----------------------------------------------
  SERVICES & CARDS
----------------------------------------------
*/
.services {
  background: var(--pastel-rose);
  border-radius: var(--radius);
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 28px;
}
.service-list li {
  flex: 1 1 270px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  color: #25466F;
  font-size: 1.06rem;
  margin-bottom: 0;
  transition: box-shadow var(--transition);
}
.service-list li:hover {
  box-shadow: 0 6px 36px #efe4ec;
}

.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 38px;
}
.service-cards li {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px 22px 22px;
  flex: 1 1 310px;
  transition: box-shadow var(--transition), transform var(--transition);
  margin-bottom: 0;
  min-width: 270px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
}
.service-cards li h2 { font-size: 1.12rem; color: var(--secondary); margin-bottom: 4px; }
.service-cards li p { color: #23405d; font-size: 1rem; }
.service-cards li:hover {
  box-shadow: 0 4px 32px #ebbabad2;
  transform: translateY(-5px) scale(1.025);
}

/*
----------------------------------------------
  TESTIMONIALS
----------------------------------------------
*/
.testimonials {
  margin-top: 34px;
  margin-bottom: 54px;
  background: var(--pastel-purple);
  border-radius: var(--radius);
  padding: 38px 0 26px 0;
}
.testimonials .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.testimonial-card {
  background: var(--pastel-mint);
  color: #20334a;
  font-size: 1.05rem;
  border-left: 5px solid var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 28px;
  width: 100%;
  max-width: 630px;
  transition: box-shadow var(--transition), transform var(--transition);
  align-items: flex-start;
}
.testimonial-card blockquote {
  margin-bottom: 12px;
  color: #25466F;
  font-size: 1.06rem;
  font-style: italic;
  quotes: "\201C" "\201D";
}
.testimonial-card .testimonial-client {
  color: #385D44;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0;
}
.testimonial-card:hover {
  box-shadow: 0 6px 30px #c8e6e1b8;
  transform: translateY(-3px) scale(1.01);
}

/*
----------------------------------------------
  TEAM GRID/EKIP
----------------------------------------------
*/
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 14px;
}
.team-grid .text-section {
  background: var(--pastel-blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px;
  min-width: 240px;
  flex: 1 1 250px;
  margin-bottom: 0;
}

/*
----------------------------------------------
  ACCORDION FAQ
----------------------------------------------
*/
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-item {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
  cursor: pointer;
  transition: box-shadow 0.14s cubic-bezier(.42,1.2,.29,1);
  font-size: 1rem;
}
.faq-item:hover {
  box-shadow: 0 4px 24px #e3d1ef;
}

/*
----------------------------------------------
  FOOTER
----------------------------------------------
*/
footer {
  background: var(--pastel-blue);
  border-top: var(--border);
  margin-top: 48px;
  padding-top: 22px;
  padding-bottom: 18px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.footer-brand img {
  height: 36px;
  margin-bottom: 7px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 150px;
}
.footer-menu a {
  color: var(--primary);
  font-size: 1rem;
  opacity: 0.9;
  transition: color var(--transition), opacity var(--transition);
}
.footer-menu a:hover {
  color: var(--secondary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: .97rem;
  color: #37516e;
}

/*
----------------------------------------------
  CTA SECTION
----------------------------------------------
*/
.cta, .cta-contact {
  background: var(--pastel-yellow);
  border-radius: var(--radius);
  padding: 42px 0 36px 0;
  text-align: center;
  margin-bottom: 38px;
  box-shadow: var(--shadow);
}
.cta h2, .cta-contact h2 {
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 1.48rem;
  margin-bottom: 13px;
}
.cta .cta-btn, .cta-contact .cta-btn {
  margin-top: 22px;
  margin-left: 0;
}

/*
----------------------------------------------
  LEGAL PAGE SECTIONS
----------------------------------------------
*/
.legal {
  background: #fff;
  border-radius: var(--radius);
  padding: 38px 24px 32px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 36px;
}

/*
----------------------------------------------
  MOBILE MENU
----------------------------------------------
*/
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1100;
  background: var(--accent);
  box-shadow: 0 4px 40px 0 rgba(60, 85, 119, 0.16);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.32,1.15,.39,1);
  display: flex;
  flex-direction: column;
  padding: 0 0 0 0;
}
.mobile-menu.open { 
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: var(--secondary);
  color: #fff;
  font-size: 2.3rem;
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  transition: background var(--transition);
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 78px 34px 30px 34px;
  margin-top: 18px;
  width: 100vw;
}
.mobile-nav a {
  display: block;
  font-size: 1.2rem;
  color: var(--primary);
  padding: 14px 0;
  border-radius: 6px;
  font-weight: 700;
  transition: background var(--transition), color var(--transition);
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-mint);
  color: var(--secondary);
}

/*
----------------------------------------------
  COOKIE CONSENT BANNER
----------------------------------------------
*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--pastel-rose);
  border-top: 2px solid #fae1c5;
  box-shadow: 0 -1px 22px 0 rgba(180, 180, 180, 0.11);
  padding: 20px 22px 19px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  z-index: 1300;
  animation: cookie-fade-in 0.6s cubic-bezier(.45,1.03,.62,1) 1;
}
@keyframes cookie-fade-in {
  from { opacity: 0; transform: translateY(80px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  font-size: 1rem;
  flex: 1 1 240px;
  color: #25466F;
  margin: 0;
}
.cookie-btn {
  padding: 12px 20px;
  border-radius: 22px;
  margin-left: 7px;
  font-size: 1rem;
  font-family: var(--body-font);
  border: none;
  background: var(--secondary);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: background var(--transition), color var(--transition), transform .1s linear;
}
.cookie-btn.accept {
  background: linear-gradient(90deg, #D6F5E3 0%, #7DA795 100%);
  color: var(--primary);
}
.cookie-btn.reject {
  background: linear-gradient(90deg, #F9E9E2 0%, #FFE1DC 100%);
  color: #94524a;
}
.cookie-btn.settings {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.cookie-btn:hover, .cookie-btn:focus {
  filter: brightness(1.07);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 2px 12px #c9d7c8;
}

/* COOKIE MODAL/POPUP */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(37, 70, 111, 0.32);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1500;
  animation: cookie-fade-in .4s cubic-bezier(.6,1,.4,1) 1;
}
.cookie-modal .modal-content {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 60px 0 rgba(60, 129, 119, 0.18);
  padding: 34px 28px 26px 28px;
  min-width: 320px;
  max-width: 95vw;
  animation: cookie-fade-in-modal .34s cubic-bezier(.4,1.1,.52,1) 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
@keyframes cookie-fade-in-modal {
  from { opacity: 0; transform: scale(0.89) translateY(50px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h2 {
  font-size: 1.2rem; margin-bottom: 11px;
}
.cookie-modal ul {
  margin-bottom: 19px;
}
.cookie-modal li {
  font-size: 1rem;
  color: #23405d;
  margin-bottom: 11px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 18px;
  height: 18px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

/*
----------------------------------------------
  RESPONSIVE DESIGN
----------------------------------------------
*/
@media (max-width: 1150px) {
  .container { max-width: 97vw; }
}
@media (max-width: 1020px) {
  .container { max-width: 98vw; padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 900px) {
  header .container, footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-menu { flex-direction: row; gap: 10px; }
}
@media (max-width: 800px) {
  .main-nav { gap: 13px; }
  .card-container, .content-grid, .service-list, .service-cards, .team-grid, .features .feature-grid, .features .workshop-list {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .content-grid, .team-grid, .service-list, .service-cards, .card-container, .features .feature-grid, .features .workshop-list {
    flex-direction: column;
    gap: 22px;
  }
  .text-image-section { flex-direction: column; gap: 16px; align-items: flex-start; }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .cta-btn { margin-left: 0; margin-top: 12px; }
  header .container { flex-direction: row; }
  .hero h1 { font-size: 1.75rem; }
  .footer-menu { flex-direction: column; gap: 7px; padding: 10px 0 0 0; }
  .cookie-banner { flex-direction: column; padding: 16px 8px 14px 8px; gap: 16px; }
}
@media (max-width: 560px) {
  .hero { padding: 28px 0 18px 0; }
  .section { padding: 22px 5px; margin-bottom: 38px; }
  .legal { padding: 18px 4px 19px 4px; }
  .cta, .cta-contact { padding: 22px 0 19px 0; }
  .service-cards li, .service-list li, .team-grid .text-section, .features .feature-grid li, .testimonial-card {
    min-width: 0;
    padding: 18px 10px;
  }
}

/*
----------------------------------------------
  UTILITY & MISC
----------------------------------------------
*/
::-webkit-scrollbar {
  width: 10px;
  background: var(--pastel-blue);
  border-radius: var(--radius);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: var(--radius);
}
::-webkit-input-placeholder { color: #b2b2c2; }
::-moz-placeholder { color: #b2b2c2; }
:-ms-input-placeholder { color: #b2b2c2; }
::placeholder { color: #b2b2c2; }

/* Accessibility: focus outlines */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus, .mobile-menu-close:focus {
  outline: 2px dashed var(--secondary);
  outline-offset: 2px;
}

/* Next-steps & contact blocks (thank-you) */
.next-steps ul {
  margin-top: 7px;
  margin-bottom: 0;
  font-size: 1rem;
  color: #37516e;
  padding-left: 18px;
}
.next-steps li {
  margin-bottom: 6px;
  list-style-type: disc;
}

/* Legal links light underline */
.footer-menu a, .main-nav a, .mobile-nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 0.18s linear;
}
.footer-menu a:hover, .main-nav a:hover, .mobile-nav a:hover {
  border-bottom: 1px solid var(--secondary);
}

/* Checkbox & form tweaks */
input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 18px;
  height: 18px;
  border-radius: 5px;
  vertical-align: middle;
}

/* Hide elements visually but keep for accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
  padding: 0;
}
