/* === 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;
  outline: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
body {
  background: #e6ede7;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #294032;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: #295889;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F9A825;
  text-decoration: underline;
}

/* === Brand Variables and Nature Organic Palette === */
:root {
  --primary: #295889;
  --primary-dark: #20446a;
  --secondary: #e6ede7;
  --secondary-light: #f6faf6;
  --accent: #F9A825;
  --success-green: #489a7a;
  --earth-brown: #9c8464;
  --clay: #f1ede6;
  --leaf: #6fb98f;
  --dark-text: #294032;
  --muted: #788675;
  --shadow: 0 4px 14px 0 rgba(70, 88, 50, 0.09);
  --radius: 18px;
  --card-bg: #f6faf6;
  --testimonial-bg: #fffefd;
}

/* === Typography === */
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.75rem; /* 44px */
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  color: var(--success-green);
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p {
  font-size: 1rem;
  margin-bottom: 18px;
  color: var(--dark-text);
}
strong {
  color: var(--primary);
  font-weight: 600;
}

/* Typography details for smaller text: */
span, li, label, .service-price {
  font-size: 1rem;
}

/* === Layout: Containers, Sections, Spacing === */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  background: var(--card-bg);
  border-radius: var(--radius);
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: var(--shadow);
  position: relative;
}
@media (max-width: 768px) {
  .section {
    padding: 24px 7px;
    margin-bottom: 40px;
  }
  .container {
    padding: 0 7px;
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  max-width: 700px;
  margin: 0 auto;
  align-items: flex-start;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 26px 26px;
  min-width: 270px;
  transition: box-shadow 0.25s;
}
.card:hover {
  box-shadow: 0 8px 24px 0 rgba(70, 88, 50, 0.18);
}

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

/* === Responsive Flex Adjustments === */
@media (max-width: 991px) {
  .card-container, .content-grid {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .content-wrapper, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .card {
    min-width: 0;
    padding: 18px 10px 16px 10px;
  }
}

/* === Header & Navigation === */
header {
  background: linear-gradient(90deg, #e0f2f1 60%, #c4dec7 100%);
  box-shadow: 0 3px 16px rgba(73, 112, 88, 0.07);
  position: relative;
  z-index: 50;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 20px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.15s;
  color: var(--primary-dark);
}
header nav a:hover, header nav a:focus {
  background: var(--leaf);
  color: #fff;
}
.cta-primary {
  background: var(--accent);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 700;
  padding: 10px 32px;
  border: none;
  border-radius: 31px 9px 27px 9px/16px 24px 10px 19px;
  box-shadow: 0 3px 12px rgba(249,168,37,.10);
  letter-spacing: 0.2px;
  transition: background 0.22s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  margin-left: 18px;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: #cf8d1e;
  color: #fff;
  box-shadow: 0 6px 24px rgba(193, 163, 41, 0.14);
  transform: translateY(-2px) scale(1.03);
  text-decoration: none;
}
.cta-secondary {
  background: none;
  color: var(--primary-dark);
  border: 2px solid var(--success-green);
  padding: 10px 26px;
  border-radius: 19px 18px 26px 17px/17px 24px 12px 15px;
  font-weight: 600;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  transition: background 0.2s, color 0.22s, border 0.18s;
  margin-top: 8px;
  display: inline-block;
  box-shadow: 0 2px 9px rgba(88, 164, 122, 0.07);
  cursor: pointer;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--leaf);
  color: #fff;
  border-color: var(--leaf);
}

/* Mobile menu button */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: #fff;
  font-size: 2.1rem;
  border: none;
  border-radius: 7px;
  padding: 6px 13px;
  cursor: pointer;
  margin-left: 18px;
  transition: background 0.18s, box-shadow 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #cf8d1e;
  box-shadow: 0 3px 16px rgba(193, 163, 41, 0.18);
}
@media (max-width: 991px) {
  header nav,
  .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* === Mobile Menu Overlay === */
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100dvh;
  background: linear-gradient(135deg, #e0f2f1 90%, #cadbbf 100%);
  box-shadow: 0 12px 28px rgba(41,88,137,0.09);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(-105%);
  transition: transform 0.38s cubic-bezier(.57,.03,.39,.96);
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: rgba(41,88,137,0.08);
  border: none;
  border-radius: 9px;
  font-size: 2.3rem;
  padding: 2px 16px;
  margin: 20px 18px 0 0;
  color: var(--primary-dark);
  cursor: pointer;
  transition: background 0.18s;
  z-index: 1250;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--accent);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin-top: 60px;
  padding-left: 36px;
  font-size: 1.4rem;
}
.mobile-nav a {
  color: var(--primary-dark);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 8px;
  padding: 8px 14px;
  transition: background 0.21s, color 0.18s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--leaf);
  color: #fff;
}
@media (min-width: 992px) {
  .mobile-menu {display:none !important}
}

/* === Footer === */
footer {
  background: var(--secondary-light);
  padding: 48px 0 26px 0;
  box-shadow: 0 -1px 12px 0 rgba(73, 112, 88, 0.06);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav a {
  color: var(--muted);
  font-size: .98rem;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.19s;
}
.footer-nav a:hover {
  color: var(--primary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: .97rem;
  color: var(--dark-text);
}
footer img {
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(41,88,137,0.09);
}
footer span {
  font-size: 0.96rem;
  color: var(--muted);
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .footer-nav {
    gap: 12px;
  }
}

/* === Testimonial Card === */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--testimonial-bg);
  border-radius: var(--radius);
  box-shadow: 0 3px 14px rgba(41,88,137,0.09);
  margin-bottom: 20px;
  border-left: 7px solid var(--leaf);
  max-width: 670px;
  color: var(--dark-text);
}
.testimonial-card p {
  color: var(--primary-dark);
  margin-bottom: 2px;
  font-size: 1.14rem;
  font-style: italic;
  line-height: 1.6;
}
.testimonial-card span {
  color: var(--muted);
  font-size: .97rem;
  font-style: normal;
}
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    padding: 18px 10px;
    max-width: 100%;
  }
}

/* Accordion FAQ List */
.accordion-faq-list > div {
  background: var(--card-bg);
  border-radius: var(--radius);
  margin-bottom: 20px;
  padding: 22px 20px 10px 26px;
  box-shadow: 0 2px 12px rgba(111,185,143,0.06);
}
.accordion-faq-list h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--success-green);
}
.accordion-faq-list p {
  margin-bottom: 4px;
}

/* Cards for Services/Tečaji */
.service-card, .courses-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 1px 9px rgba(188, 179, 110, 0.07);
  padding: 26px 18px 18px 24px;
  margin-bottom: 20px;
  min-width: 280px;
}
.service-price {
  color: var(--leaf);
  font-weight: 700;
  font-size: 1.08rem;
  margin-top: 12px;
}

/* Contact Details & Map Section */
.contact-details ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 9px;
}
.map-section img {
  border-radius: 19px 10px 30px 17px;
  border: 2px solid var(--earth-brown);
  box-shadow: 0 4px 18px #b8bbac14;
  margin-top: 12px;
  max-width: 400px;
}
@media (max-width: 768px) {
  .map-section img {
    max-width: 100%;
  }
}

/* Lists in Features/Benefits */
ul {
  list-style: none;
  padding-left: 0;
}
ul li {
  position: relative;
  font-size: 1.07rem;
  padding-left: 26px;
  margin-bottom: 16px;
  color: var(--dark-text);
}
ul li strong {
  color: var(--success-green);
}
ul li:before {
  content: '';
  position: absolute;
  left: 5px; top: 12px;
  width: 8px;
  height: 8px;
  background: var(--leaf);
  border-radius: 50%;
}
ol {
  padding-left: 18px;
}
ol li {
  font-size: 1.06rem;
  margin-bottom: 14px;
}

/* === Cookie Consent Banner === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fffcea;
  color: #466438;
  z-index: 2400;
  padding: 26px 6vw 18px 6vw;
  box-shadow: 0 -3px 18px rgba(88,122,67,0.12);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
  transition: transform 0.33s cubic-bezier(0.57,0.03,0.39,0.96);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner-message {
  flex: 2 1 350px;
  font-size: 1.01rem;
  margin-right: 12px;
}
.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 15px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 1px 7px rgba(41,88,137,0.06);
  transition: background 0.19s, color 0.19s;
}
.cookie-btn.accept {
  background: var(--leaf);
  color: #fff;
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: var(--success-green);
}
.cookie-btn.reject {
  background: #e1d9c8;
  color: #405237;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #d3c7aa;
  color: #2d3e21;
}
.cookie-btn.settings {
  background: #fff;
  border: 1px solid #cabb98;
  color: #795b24;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: #f9e4b6;
  border-color: #efd683;
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    gap: 17px;
    padding: 18px 7px 19px 7px;
    font-size: .98rem;
    align-items: flex-start;
  }
  .cookie-banner-actions {
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
  }
}

/* Cookie Modal Popup */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(61,91,41,0.24);
  z-index: 2550;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(.49,.18,.84,1);
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fcf9f4;
  border-radius: 22px 13px 33px 20px;
  padding: 44px 30px 28px 35px;
  max-width: 420px;
  width: 90vw;
  box-shadow: 0 8px 30px rgba(100, 147, 86, 0.13);
  color: #344a2d;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal-content h3 {
  margin-bottom: 8px;
  color: var(--primary-dark);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--leaf);
  transform: scale(1.22);
}
.cookie-category .locked {
  color: #8d9a8b;
  font-size: 0.9em;
  margin-left: 4px;
}
.cookie-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.cookie-modal-close {
  position: absolute;
  right: 13px; top: 9px;
  background: rgba(41,88,137,0.04);
  border: none;
  border-radius: 7px;
  font-size: 1.8rem;
  color: var(--primary-dark);
  padding: 2px 11px;
  cursor: pointer;
  transition: background 0.17s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--accent);
  color: #fff;
}
@media (max-width: 560px) {
  .cookie-modal-content { padding: 24px 5vw 18px 5vw; }
}

/* === Misc & Enhancements === */
::-webkit-scrollbar {
  width: 8px;
  background: #f0f0eb;
}
::-webkit-scrollbar-thumb {
  border-radius: 9px;
  background: #c4dec7;
}
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border: 1.5px solid #cccfbe;
  border-radius: 13px;
  padding: 8px 10px;
  background: #f7faf5;
  margin-bottom: 10px;
  transition: border 0.17s, background 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--leaf);
  background: #f4fff8;
}
button {
  font-family: inherit;
  cursor: pointer;
}

hr {
  border: 0;
  height: 1px;
  background: #c4dec7;
  margin: 24px 0 16px 0;
}

/* Organic visual elements */
.card, .service-card, .courses-card, .testimonial-card, .accordion-faq-list > div {
  /* Decorative organic border radii */
  border-radius: 29px 19px 25px 21px/19px 26px 16px 14px;
}

/* === Animations/Micro-interactions === */
.card, .testimonial-card, .accordion-faq-list > div {
  transition: box-shadow 0.23s, transform 0.19s;
}
.card:hover, .testimonial-card:hover, .accordion-faq-list > div:hover {
  box-shadow: 0 9px 30px rgba(41,88,137,0.17);
  transform: translateY(-2px) scale(1.008);
}
.cta-primary:active, .cta-secondary:active {
  transform: scale(0.98);
  box-shadow: 0 1px 3px rgba(0,0,0,0.10);
}
.mobile-menu, .cookie-banner, .cookie-modal {
  will-change: transform, opacity;
}

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