/* =========================================================
   Sylva Pustolovščine - Industrial Modern Responsive CSS
   Brand: Nature-inspired, urban, modern, metallic/industrial
   ========================================================= */

/* ===== 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;
  vertical-align: baseline;
  background: transparent;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  line-height: 1.5;
  color: #F3EEE7;
  background-color: #1B1F21;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a {
  color: #A4ACB8;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus { outline: 2px solid #A4ACB8; outline-offset: 2px; }
a:hover, a:active {
  color: #E2CE86;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}
ul, ol { margin-left: 20px; }
strong { color: #f2c172; font-weight: 700; }

/* ===== CUSTOM FONT IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@900;700;500&family=Open+Sans:wght@400;700&display=swap');

/* ===== ROOT CSS VARIABLES ===== */
:root {
  /* Brand / Industrial Modern Palette */
  --color-primary: #22543D;
  --color-secondary: #3A6E4F;
  --color-accent: #F3EEE7;
  --color-bg: #1B1F21;
  --color-bg-section: #242729;
  --color-surface: #23282D;
  --color-dark-metal: #292D32;
  --color-metal-edge: #5D6770;
  --color-shadow: rgba(30,36,40,0.2);
  --color-shadow-darker: rgba(30,36,40,0.35);
  --color-testimonial-bg: #ECEBE6;
  --color-testimonial-fg: #23282D;
  --color-link: #f2c172;
  --color-success: #4AA067;
  --color-danger: #CD3128;
  --border-radius: 12px;
  --border-radius-sm: 7px;

  /* Typography */
  --font-display: 'Montserrat', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-section: 60px;

  /* Z-index */
  --z-header: 1000;
  --z-mobile-menu: 1100;
  --z-cookies: 1200;
}

/* ========== CONTAINER & LAYOUT ========== */
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.section {
  margin-bottom: var(--space-section);
  padding: 40px 20px;
  background: var(--color-bg-section);
  border-radius: var(--border-radius);
  box-shadow: 0 3px 20px var(--color-shadow);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

@media (max-width: 768px) {
  .section {
    padding: 28px 10px;
    margin-bottom: 36px;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-accent);
}
h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  line-height: 1.1;
  color: #E3E6EA;
  text-shadow: 0 2px 8px var(--color-shadow-darker);
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}
h3 {
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  margin-bottom: var(--space-xs);
  line-height: 1.85;
  color: var(--color-accent);
}
.text-section {
  color: var(--color-accent);
  font-size: 1.04rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
ul, ol {
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
  font-size: 1.04rem;
}
li {
  margin-bottom: 10px;
}

/* ========== HEADER & NAVIGATION ========== */
header {
  width: 100%;
  background: var(--color-dark-metal);
  box-shadow: 0 2px 16px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  min-width: 120px;
}
.logo img {
  height: 42px;
  filter: drop-shadow(0 1px 4px #202528);
}

.main-nav {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--color-accent);
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  transition: background 0.18s, color 0.2s;
  position: relative;
}
.main-nav a.cta {
  background: var(--color-primary);
  color: #F3EEE7;
  margin-left: 10px;
  border: 2px solid #F3EEE7;
  box-shadow: 0 3px 10px var(--color-shadow);
}
.main-nav a.cta.primary {
  background: linear-gradient(92deg,#2C2F33 60%, var(--color-primary) 100%);
  border: none;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: #FFE1A5;
}
.main-nav a.cta:hover, .main-nav a.cta:focus {
  background: #26372c;
  color: #FFE1A5;
  border-color: #FFE1A5;
}

.mobile-menu-toggle {
  background: none;
  border: none;
  color: #F3EEE7;
  font-size: 2.2rem;
  cursor: pointer;
  display: none;
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  transition: background 0.16s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-secondary);
}

@media (max-width: 1024px) {
  .main-nav {
    gap: var(--space-sm);
  }
  header .container {
    min-height: 58px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    font-size: 0.97rem;
    gap: var(--space-xs);
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ===== MOBILE MENU & NAVIGATION ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(32,33,35,0.94);
  z-index: var(--z-mobile-menu);
  transition: transform 0.35s cubic-bezier(0.7,0,0.3,1);
  transform: translateX(100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.mobile-menu.mobile-menu--active {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 25px;
  right: 25px;
  z-index: 2;
  background: #313338;
  color: #EDEDED;
  border: none;
  font-size: 2.1rem;
  padding: 7px 14px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: background 0.15s;
  box-shadow: 0 2px 6px var(--color-shadow-darker);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #4D565D;
  color: #FFE1A5;
}
.mobile-nav {
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--color-accent);
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: var(--border-radius);
  width: 78vw;
  text-align: center;
  margin: 0 auto;
  transition: background 0.16s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #FFE1A5;
}
.mobile-nav a.cta {
  background: var(--color-primary);
  color: #FFF6E9;
  margin-top: 18px;
}
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

/* ========== FLEX LAYOUTS (MANDATORY) ========== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-surface);
  box-shadow: 0 2px 6px var(--color-shadow);
  border-radius: var(--border-radius);
  transition: box-shadow 0.18s, transform 0.16s;
  display: flex;
  flex-direction: column;
  min-width: 230px;
}
.card:hover {
  box-shadow: 0 4px 20px var(--color-shadow-darker);
  transform: translateY(-4px) scale(1.022);
}
.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 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--color-testimonial-bg);
  color: var(--color-testimonial-fg);
  border-radius: var(--border-radius-sm);
  box-shadow: 0 2px 12px rgba(36, 45, 54, 0.12);
  min-width: 240px;
  margin-bottom: 20px;
  font-size: 1.07rem;
  letter-spacing: 0.01em;
}
.testimonial-card p {
  font-size: 1.10rem;
  color: var(--color-testimonial-fg);
  font-family: var(--font-body);
}
.testimonial-card span, .testimonial-card strong {
  font-size: 1rem;
  color: #384046;
  opacity: 0.99;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: stretch;
  justify-content: flex-start;
}
.feature-grid > div {
  flex: 1 1 220px;
  background: var(--color-surface);
  border-radius: var(--border-radius);
  box-shadow: 0 1px 8px var(--color-shadow);
  padding: 22px 18px 16px 18px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: background 0.2s, box-shadow 0.22s, transform 0.15s;
  border-left: 4px solid var(--color-primary);
  min-width: 180px;
}
.feature-grid > div img {
  width: 48px;
  margin-bottom: 10px;
  filter: grayscale(50%) contrast(1.2) drop-shadow(1px 2px 4px #202528);
}
.feature-grid > div:hover {
  background: var(--color-dark-metal);
  box-shadow: 0 3px 16px var(--color-shadow-darker);
  transform: translateY(-3px) scale(1.025);
}
@media (max-width: 1100px) {
  .feature-grid > div { min-width: 155px; }
}
@media (max-width: 950px) {
  .feature-grid {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div {
    width: 100%;
    margin-bottom: 0;
    min-width: unset;
  }
}

/* ========== CALL TO ACTION (CTA) BUTTONS ========== */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
  color: #F3EEE7;
  font-family: var(--font-display);
  font-size: 1.09rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  padding: 13px 32px;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  margin-top: 18px;
  box-shadow: 0 2px 12px var(--color-shadow);
  transition: background 0.20s, color 0.18s, box-shadow 0.17s, transform 0.16s;
  text-shadow: 0 3px 8px #1b2526aa;
}
.cta.primary {
  background: var(--color-primary);
  border: 2px solid #F3EEE7;
  color: #FFE7C1;
}
.cta:hover, .cta:focus {
  background: #37764D;
  color: #FFE1A5;
  box-shadow: 0 4px 22px var(--color-shadow-darker);
  transform: translateY(-2px) scale(1.015);
}
.cta.primary:hover, .cta.primary:focus {
  background: #1E4535;
  color: #FFF8DB;
  border-color: #FFE1A5;
}

/* ======= FOOTER ======= */
footer {
  background: var(--color-dark-metal);
  color: #C2BCB4;
  padding: 44px 0 22px 0;
  margin-top: 40px;
  font-size: 0.98rem;
}
footer .container {
  gap: 32px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 44px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}
.footer-nav nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-nav a {
  color: #E2EBE9;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .02em;
  padding: 4px 0;
  transition: color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #F2C375;
}
.footer-info {
  margin-bottom: var(--space-sm);
  color: #ABA69D;
}
.footer-info p strong {
  color: #F2C375;
}
.footer-brand {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8D9699;
  font-size: 1.12rem;
}
.footer-brand img {
  width: 32px;
  height: 32px;
  filter: grayscale(30%) brightness(1.1);
}
@media (max-width: 950px) {
  .footer-nav {
    gap: 24px;
  }
}
@media (max-width: 700px) {
  .footer-nav {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .footer-brand {
    font-size: 1rem;
  }
}

/* ========== CARDS, BUTTONS, & VISUAL EFFECTS ========== */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-md);
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: #ECD9AE;
  font-weight: 700;
  margin-bottom: 7px;
}
.card-description {
  font-family: var(--font-body);
  color: #EEE7DC;
  font-size: 1rem;
}

/* ========== COOKIE CONSENT BANNER (Fixed bottom) ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #191C1Fdc;
  color: #FFEEDB;
  z-index: var(--z-cookies);
  box-shadow: 0 -2px 14px rgba(10,12,14,0.24);
  padding: 26px 20px 21px 20px;
  border-top: 2.5px solid #343A40;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  font-size: 1rem;
  animation: cookies-slidein 0.74s cubic-bezier(0.6,0,0.2,1);
}
@keyframes cookies-slidein {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  max-width: 440px;
  margin-bottom: 0;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-left: 16px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  border-radius: var(--border-radius-sm);
  padding: 10px 20px;
  border: none;
  letter-spacing: 0.04em;
  cursor: pointer;
  margin: 0 2px;
  min-width: 120px;
  box-shadow: 0 1px 8px var(--color-shadow);
  transition: background 0.18s, color 0.16s;
}
button.accept-cookies {
  background: var(--color-success);
  color: #FFF;
}
button.reject-cookies {
  background: var(--color-danger);
  color: #FFF;
}
button.cookie-settings {
  background: var(--color-secondary);
  color: #FFF6E7;
}
button.cookie-settings:hover, button.cookie-settings:focus {
  background: #22543d;
  color: #FCF5E6;
}
button.accept-cookies:hover, button.accept-cookies:focus {
  background: #326B4C;
}
button.reject-cookies:hover, button.reject-cookies:focus {
  background: #A71517;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 17px 7px 14px 7px;
  }
  .cookie-banner .cookie-buttons {
    margin-left: 0;
    gap: 10px;
  }
}

/* ===== COOKIE PREFERENCES MODAL ===== */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: calc(var(--z-cookies) + 10);
  background: rgba(16,17,19,0.83);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s;
}
.cookie-modal.cookie-modal--active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #21262b;
  color: #FFF6ED;
  border-radius: var(--border-radius);
  box-shadow: 0 6px 36px rgba(32,36,40,0.42);
  padding: 38px 30px 34px 30px;
  max-width: 370px;
  width: 96vw;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookiesborn 0.44s cubic-bezier(0.7,0,0.3,1);
}
@keyframes cookiesborn {
  0% { transform: translateY(100px) scale(0.95); opacity:0; }
  100% { transform: translateY(0) scale(1); opacity:1; }
}
.cookie-modal-content h2 {
  color: #FFD473;
  font-size: 1.42rem;
  margin-bottom: 6px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 11px;
}
.cookie-category label {
  font-family: var(--font-body);
  font-size: 1.04rem;
  color: #FFE7A2;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-primary);
  scale: 1.2;
}
.category-essential {
  color: #B0DC91;
  font-weight: 700;
}
.cookie-modal-buttons {
  display: flex;
  flex-direction: row;
  gap: 13px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  right: 16px;
  top: 14px;
  border: none;
  background: #313338;
  color: #fff;
  border-radius: 5px;
  font-size: 1.32rem;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.17s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { background: #4D565D; color: #FFE1A5; }

/* ========== UTILITY/BASIC ANIMATIONS ========== */
.fade-in {
  animation: fadeIn 0.7s cubic-bezier(.6,0,.2,1) 1;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

/* ========== RESPONSIVE GLOBAL ADJUSTMENTS ========== */
@media (max-width: 600px) {
  h1 { font-size: 1.58rem; }
  h2 { font-size: 1.18rem; }
  .footer-nav {
    gap: 13px;
  }
}

/* ========== ACCESSIBILITY ========== */
:focus-visible {
  outline: 2.5px solid #B9F2C3;
  outline-offset: 2px;
}

/* ========== MISC SPACING AND DECORATION ========== */
section + section {
  margin-top: 30px;
}

hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, #394145 0%, #ffa000 100%);
  margin: 30px 0;
  border-radius: 1.5px;
}

/* ========== PRINT ========== */
@media print {
  body { background: #FFF !important; color: #111 !important; }
  header, .main-nav, .mobile-menu, .cookie-banner, .cookie-modal, footer { display: none !important; }
}
/* End of Sylva Pustolovščine Style */
