/* ===================================================
   Mistična Veja – Warm, Friendly Brand CSS Framework
   Author: Professional Website Developer for Mistična Veja
   Style: warm_friendly – rounded, soft, warm, approachable
   Layout: 100% Flexbox ONLY – Responsive, Accessible
   =================================================== */

/* ---------------
   RESET & BASE   
----------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F5F6EB;
  color: #2D2D28;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: #336633;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #C4A86B;
  outline: none;
}
img {
  max-width: 100%;
  border: none;
  display: block;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 20px;
}
li {
  margin-bottom: 8px;
}
hr {
  border: none;
  border-top: 1px solid #e5e3d6;
  margin: 24px 0;
}
strong {
  font-weight: 700;
}

/* ---------------
   TYPOGRAPHY
----------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #336633;
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.4rem;
}
.subtitle {
  color: #766435;
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-family: 'Roboto', Arial, sans-serif;
  letter-spacing: 0.005em;
}

/* ---------------
   CONTAINERS & LAYOUT
----------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 16px 0 rgba(196, 168, 107, 0.07),
              0 1.5px 3px 0 rgba(51,102,51,0.03);
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 38px;
    padding: 24px 10px;
    border-radius: 16px;
  }
}

/* Flex Layout Utilities (mandatory patterns) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(196,168,107,0.08);
  padding: 28px 22px;
  margin-bottom: 20px;
  position: relative;
  min-width: 250px;
  flex: 1 1 250px;
  transition: box-shadow 0.18s;
}
.card:hover, .card:focus {
  box-shadow: 0 6px 24px 0 rgba(51,102,51,0.11);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
.testimonial-card {
  background: #F5F6EB;
  border-radius: 18px;
  box-shadow: 0 1px 8px 0 rgba(51,102,51,0.09);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  font-size: 1.07rem;
  color: #2d2d28;
  position: relative;
  min-width: 0;
}
.testimonial-card p {
  color: #2d2d28;
  font-style: italic;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 8px;
}
.testimonial-card span {
  color: #665B39;
  font-size: 0.97rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

/* ---------------
   HEADER & NAVIGATION
----------------- */
header {
  background: #fff;
  box-shadow: 0 4px 16px 0 rgba(51,102,51,0.05);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 1001;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 14px 0;
}
.main-nav img {
  height: 38px;
  width: auto;
  margin-right: 12px;
}
.main-nav a {
  padding: 7px 15px;
  border-radius: 24px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #336633;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:not(.btn-primary):hover,
.main-nav a:not(.btn-primary):focus {
  background: #F5F6EB;
  color: #C4A86B;
}

/* Primary Button */
.btn-primary {
  background: #336633;
  color: #fff;
  padding: 9px 28px;
  border-radius: 30px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.07rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
  box-shadow: 0 2px 8px 0 rgba(196,168,107,0.10);
  outline: none;
  display: inline-block;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: #C4A86B;
  color: #336633;
  transform: translateY(-2px) scale(1.025);
}


/* -----------------------
   Burger/Mobile Navigation
------------------------- */
.mobile-menu-toggle {
  display: none;
  background: #C4A86B;
  color: #fff;
  font-size: 2rem;
  padding: 7px 14px;
  border: none;
  border-radius: 50%;
  position: absolute;
  top: 18px;
  right: 24px;
  cursor: pointer;
  transition: background 0.18s;
  z-index: 1102;
  box-shadow: 0 1.5px 8px rgba(51,102,51,0.08);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #336633;
  color: #fff;
  outline: none;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; right: 0; left: 0; height: 100vh;
  width: 100vw;
  background: rgba(245,246,235,0.96);
  box-shadow: 0px 6px 32px 0 rgba(196,168,107,0.13);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,.2,.05,1.0);
  overflow-y: auto;
  padding: 34px 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: #C4A86B;
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  margin: 0 24px 14px 0;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #336633;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  align-items: flex-start;
  padding: 0 35px;
}
.mobile-nav a {
  font-size: 1.15rem;
  color: #336633;
  background: none;
  padding: 10px 0;
  border-radius: 16px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  width: 100%;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #C4A86B;
  color: #fff;
}

@media (max-width: 1020px) {
  .main-nav {
    gap: 12px;
  }
}
@media (max-width: 850px) {
  .main-nav {
    gap: 7px;
  }
  .main-nav a {
    padding: 7px 8px;
    font-size: 0.96rem;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: fixed;
    top: 18px;
    right: 14px;
  }
}
@media (min-width: 769px) {
  .mobile-menu, .mobile-menu.open {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ---------------
   HERO, CTA & BUTTONS
----------------- */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: transparent;
}
@media (max-width: 768px) {
  section {
    margin-bottom: 36px;
    padding: 23px 0;
  }
}
.cta-area {
  background: #C4A86B;
  color: #fff;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 45px;
  padding: 36px 24px;
  box-shadow: 0 2px 16px 0 rgba(196,168,107,0.13);
}
.cta-area h2, .cta-area h1 {
  color: #fff;
}

/* Accent/secondary button for less prominent actions */
.btn-secondary {
  background: #fff;
  color: #336633;
  border: 2px solid #C4A86B;
  padding: 8px 24px;
  border-radius: 24px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #C4A86B;
  color: #fff;
}

/* ---------------
   LISTS & CALLOUTS
----------------- */
.callout-box {
  background: #FFFBE7;
  border-left: 6px solid #C4A86B;
  padding: 20px 24px;
  border-radius: 16px;
  margin: 36px 0 20px 0;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.06rem;
  color: #3C371E;
  box-shadow: 0 1.5px 8px rgba(196,168,107,0.07);
}

/* ---------------
   FOOTER STYLING
----------------- */
footer {
  background: #336633;
  color: #fff;
  padding: 45px 0 20px 0;
  border-radius: 36px 36px 0 0;
  margin-top: 36px;
  box-shadow: 0 -3px 16px 0 rgba(196,168,107,0.07);
  font-size: 0.97rem;
  position: relative;
  width: 100%;
}
footer .container {
  padding: 0 20px;
}
footer .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 14px;
  }
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  background: none;
  padding: 2px 0;
  border-radius: 10px;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #C4A86B;
  background: #F5F6EB;
}
.contact-info {
  color: #F5F6EB;
  margin-bottom: 12px;
  font-size: 0.97rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-info strong {
  color: #C4A86B;
  font-weight: 600;
}
.contact-info a {
  color: #C4A86B;
  text-decoration: underline;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.newsletter {
  background: #224422;
  color: #fff;
  border-radius: 20px;
  padding: 18px 24px;
  min-width: 220px;
  box-shadow: 0 2px 8px rgba(52, 70, 44, 0.07);
}
.newsletter h3 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #fff;
  margin-bottom: 8px;
  font-size: 1.18rem;
}
.newsletter p {
  color: #f5f6eb;
  font-size: 1rem;
}
@media (max-width: 768px) {
  footer {
    border-radius: 18px 18px 0 0;
    padding: 30px 0 14px 0;
  }
  .newsletter {
    min-width: 0;
    padding: 13px 13px;
  }
}

/* ---------------
   MAP EMBED & SPECIALS
----------------- */
.map-embed {
  background: #F5F6EB;
  border-radius: 18px;
  box-shadow: 0 1px 8px 0 rgba(51,102,51,0.07);
  padding: 16px 14px;
  font-size: 0.97rem;
  color: #766435;
  font-style: italic;
  margin-top: 8px;
}

/* ---------------
   RESPONSIVE - MOBILE FIRST
----------------- */
@media (max-width: 768px) {
  .container {
    max-width: 97vw;
    padding: 0 6px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.29rem;
  }
  h3 {
    font-size: 1.12rem;
  }
}

/* ---------------
   COOKIE CONSENT BANNER
----------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fffbe7;
  color: #3C371E;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -4px 16px 0 rgba(196,168,107,0.13);
  padding: 18px 10px 18px 10px;
  gap: 14px;
  z-index: 1400;
  font-size: 1.01rem;
  animation: cookieSlideIn 0.4s cubic-bezier(.77,.2,.05,1.0) 1;
}
@keyframes cookieSlideIn {
  from { transform: translateY(100%); }
  to {   transform: translateY(0%);   }
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}
.cookie-banner .btn-primary,
.cookie-banner .btn-secondary {
  font-size: 1rem;
  padding: 6px 24px;
  border-radius: 18px;
  min-width: 110px;
}
.cookie-banner .btn-settings {
  background: #fff;
  color: #C4A86B;
  border: 2px solid #C4A86B;
  padding: 6px 18px;
  border-radius: 16px;
  font-size: 1rem;
  margin-left: 8px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.19s;
}
.cookie-banner .btn-settings:hover,
.cookie-banner .btn-settings:focus {
  background: #C4A86B;
  color: #fff;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(51,102,51,0.32);
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalFade 0.25s cubic-bezier(.77,.2,.05,1.0) 1;
}
@keyframes cookieModalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 6px 32px 0 rgba(196,168,107,0.11);
  padding: 42px 28px 30px 28px;
  max-width: 380px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  position: relative;
}
.cookie-modal h3 {
  color: #336633;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  margin-bottom: 8px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  font-family: 'Roboto', Arial, sans-serif;
  color: #665B39;
}
.cookie-toggle {
  appearance: none;
  width: 36px;
  height: 20px;
  background: #dfd9c9;
  border-radius: 30px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-toggle:checked {
  background: #C4A86B;
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  left: 3px; top: 3.5px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s;
}
.cookie-toggle:checked::before {
  transform: translateX(15px);
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-modal .btn-primary,
.cookie-modal .btn-secondary {
  font-size: 1rem;
  border-radius: 18px;
  padding: 7px 18px;
}
.cookie-modal .btn-secondary {
  background: #fff;
  color: #336633;
  border: 2px solid #C4A86B;
}
.cookie-modal .btn-secondary:hover,
.cookie-modal .btn-secondary:focus {
  background: #C4A86B;
  color: #fff;
}
.cookie-modal .cookie-essential {
  color: #aaa;
  font-size: 0.98em;
  opacity: 0.7;
  padding-left: 5px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #C4A86B;
  color: #fff;
  border: none;
  font-size: 1.29rem;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s;
  outline: none;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #336633;
}

/* ---------------
   MICRO-INTERACTIONS & TRANSITIONS
----------------- */
section, .card, .callout-box, .testimonial-card, .newsletter, .cta-area {
  transition: box-shadow 0.18s, background 0.21s;
}
.btn-primary, .btn-secondary, .mobile-menu-toggle, .mobile-menu-close, .cookie-banner .btn-settings {
  transition: background 0.18s, color 0.18s, transform 0.12s;
}
input, textarea, select {
  border-radius: 14px;
  border: 1.5px solid #C4A86B;
  padding: 12px 15px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 16px;
  width: 100%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(196,168,107,0.05);
  transition: border-color 0.18s, box-shadow 0.18s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #336633;
  box-shadow: 0 2px 8px rgba(196,168,107,0.12);
}

/* --------------
   MEDIA QUERIES – GAPS & WRAPS
-------------- */
@media (max-width: 768px) {
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* --------------
   GENERAL SPACINGS
----------------- */
main, header, footer {
  width: 100%;
  overflow-x: hidden;
}
main > section, main > .section, .main {
  min-width: 0;
}
button {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}

/* --------------
   Z-INDEX HIERARCHY
----------------- */
header      { z-index: 1001; }
.mobile-menu      { z-index: 1200; }
.cookie-banner    { z-index: 1400; }
.cookie-modal-overlay { z-index: 1600; }

/* --------------
   SCROLLBAR & SELECTION
----------------- */
::-webkit-scrollbar {
  width: 8px;
  background: #F5F6EB;
}
::-webkit-scrollbar-thumb {
  background: #C4A86B;
  border-radius: 6px;
}
::selection {
  background: #C4A86B55;
  color: #2d2d28;
}

/* --------------
   ACCESSIBILITY FOCUS STATES
----------------- */
:focus-visible {
  box-shadow: 0 0 0 3px #fffbe7, 0 0 0 6px #C4A86B;
  outline: none;
}

/* ---------------
   END OF CSS
----------------- */
