/* -----------------------------------------------------
   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, 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 {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #232321;
  color: #F0ECE7;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: 0.01em;
}
a {
  color: #B8D8C9;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F0ECE7;
  text-decoration: underline;
}
ul, ol {
  margin: 0 0 1.5em 1.5em;
}
img {
  max-width: 100%;
  vertical-align: middle;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.2;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}
strong, b {
  font-weight: 700;
}

/* -----------------------------------------------------
    BRAND COLORS & TOKENS
----------------------------------------------------- */
:root {
  --primary: #325B38;
  --secondary: #A39B8B;
  --accent: #F0ECE7;
  --dark-bg: #232321;
  --paper: #353533;
  --metal: #6E6B61;
  --hover: #20201D;
  --box-shadow: 0 2px 12px rgba(20, 20, 20, 0.15);
}

/* -----------------------------------------------------
    FONTS (Montserrat + Roboto)
----------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@900;700;500;400&family=Roboto:wght@400;500;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #F0ECE7;
  letter-spacing: 0.01em;
  font-weight: 700;
  margin-bottom: 0.5em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  line-height: 1.15;
}
h3 {
  font-size: 1.35rem;
  line-height: 1.16;
}
h4 {
  font-size: 1.1rem;
  line-height: 1.2;
}
.hero h1 {
  color: #F0ECE7;
  text-shadow: 0 2px 24px #1A1A1A;
}
p, li {
  font-size: 1rem;
  font-weight: 400;
}

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

/* -----------------------------------------------------
    CONTAINER / CONTENT WRAPPER
----------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: var(--paper);
  border-radius: 18px;
  box-shadow: var(--box-shadow);
  padding: 28px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 14px;
  border: 1.5px solid var(--metal);
  transition: box-shadow 0.2s, border 0.2s, background 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 32px rgba(50,91,56,0.28);
  background: #393B38;
  border-color: var(--primary);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  background: #F0ECE7;
  color: #232321;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 26px;
  margin-bottom: 20px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(57,59,56,0.10);
  min-width: 210px;
  border-left: 4px solid var(--primary);
  font-size: 1.03em;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card strong {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 8px 20px rgba(62,93,56,0.18);
  border-color: var(--metal);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--paper);
  border-radius: 11px;
  padding: 18px 14px;
  margin-bottom: 20px;
  border: 1px solid var(--metal);
}

.usp-list {
  list-style: none;
  padding: 0;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.usp-list li {
  font-weight: 500;
  color: #D6D3CD;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  font-size: 1.08em;
}

.services-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.services-list li {
  background: var(--paper);
  box-shadow: var(--box-shadow);
  border-radius: 13px;
  border: 1px solid var(--metal);
  padding: 22px 18px;
  flex: 1 1 250px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.services-list h3 {
  margin-bottom: 4px;
  font-size: 1.13rem;
  color: var(--accent);
}
.services-list span {
  margin-bottom: 8px;
  color: var(--secondary);
  font-weight: 500;
}

/* -----------------------------------------------------
    HERO SECTION
----------------------------------------------------- */
.hero {
  background: linear-gradient(80deg, #232321 70%, #325B38 120%);
  border-bottom: 3px solid var(--primary);
  min-height: 320px;
  display: flex;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 32px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero p {
  color: #CBC8BE;
  font-size: 1.08em;
  max-width: 650px;
}

/* -----------------------------------------------------
    HEADER & NAVIGATION
----------------------------------------------------- */
header {
  background: #252623;
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
}
header .container {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 10px;
  padding-bottom: 10px;
}
header nav {
  display: flex;
  gap: 22px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 520;
  color: #EFEDE6;
  padding: 8px 5px;
  font-size: 1em;
  letter-spacing: 0.02em;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
}
header nav a:hover, header nav a:focus {
  color: var(--accent);
  background: var(--primary);
  text-decoration: none;
}
header img[alt="Solidni Prijatelj"] {
  max-height: 45px;
  margin-right: 14px;
}
.cta-button {
  background: var(--primary);
  color: #F0ECE7;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 7px;
  padding: 11px 34px;
  margin-left: 10px;
  font-size: 1.07em;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(50,91,56, 0.15);
  transition: background 0.18s, box-shadow 0.16s, color 0.18s;
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: #476944;
  color: #FFE;
  box-shadow: 0 4px 14px rgba(50,91,56, 0.22);
}

/* -----------------------------------------------------
    MOBILE MENU
----------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  font-size: 2rem;
  color: #F0ECE7;
  border: none;
  cursor: pointer;
  z-index: 130;
  margin-left: 16px;
  padding: 8px 14px;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #324038;
  color: var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,35,33,0.97);
  box-shadow: 0 2px 32px #13130E;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 0 0 0;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.20s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  font-size: 2.1rem;
  color: #EFEDE6;
  border: none;
  margin: 22px 22px 10px 0;
  cursor: pointer;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #476944;
  color: var(--accent);
}
.mobile-nav {
  margin-top: 38px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  width: 100%;
  padding-left: 30px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.28em;
  letter-spacing: 0.01em;
  color: #EAE9E2;
  padding: 15px 5px 15px 0;
  border-radius: 6px;
  width: 85%;
  transition: background 0.12s, color 0.12s;
}
.mobile-nav a:focus, .mobile-nav a.active, .mobile-nav a:hover {
  background: var(--primary);
  color: var(--accent);
}

@media (max-width: 1024px) {
  header .container nav,
  header .container .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* -----------------------------------------------------
    FOOTER
----------------------------------------------------- */
footer {
  background: #252623;
  color: #E4E1DB;
  border-top: 2px solid var(--primary);
  margin-top: 48px;
  font-size: 1em;
}
footer .container {
  padding-top: 36px;
  padding-bottom: 22px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}
.contact-info {
  flex: 1 1 200px;
  min-width: 210px;
  color: #D6D3CD;
}
.contact-info a {
  color: var(--secondary);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}
.contact-info a:hover {
  color: var(--primary);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1.01em;
}
.footer-nav a {
  color: var(--secondary);
  font-weight: 500;
  letter-spacing: 0.012em;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
}
.brand-socials {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 11px;
}
.brand-socials img {
  height: 38px;
}
.brand-socials span {
  color: #A39B8B;
  font-size: 1.01em;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 490;
  text-align: right;
}

/* -----------------------------------------------------
    SECTION & CARD SPACING
----------------------------------------------------- */
.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;
}

/* -----------------------------------------------------
    GENERAL BUTTONS & MICRO-INTERACTIONS
----------------------------------------------------- */
button, .button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 7px;
  background: var(--primary);
  color: #F0ECE7;
  padding: 12px 26px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.18s, box-shadow 0.16s, color 0.18s, transform 0.18s;
  outline: none;
}
button:hover, .button:hover,
button:focus, .button:focus {
  background: #2E4632;
  color: #F0ECE7;
  box-shadow: 0 4px 16px rgba(50,91,56,0.18);
  transform: translateY(-2px) scale(1.04);
}

/* -----------------------------------------------------
    TEXT/INFO SECTIONS, QA
----------------------------------------------------- */
.text-section {
  background: #2D2D29;
  padding: 22px 18px;
  border-radius: 10px;
  box-shadow: 0 2px 7px rgba(36,36,32,0.08);
  margin-bottom: 20px;
}
.text-section ul, .text-section ol {
  margin-left: 1.5em;
  margin-bottom: 0.5em;
}
.text-section a {
  color: var(--primary);
  text-decoration: underline;
}
.text-section a:hover, .text-section a:focus {
  text-decoration: underline wavy;
  color: var(--accent);
}

/* -----------------------------------------------------
    FAQ (Q&A) Blocks
----------------------------------------------------- */
main ul li {
  margin-bottom: 14px;
}
main ul li strong {
  color: var(--secondary);
  font-weight: 600;
}
main ul li br {
  margin-bottom: 10px;
}

/* -----------------------------------------------------
    UTILITY SPACING
----------------------------------------------------- */
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mt-32 { margin-top: 32px !important; }

/* -----------------------------------------------------
    ANIMATIONS
----------------------------------------------------- */
@keyframes fadeIn {
  0% {opacity: 0; transform: translateY(15px);}
  100% {opacity: 1; transform: none;}
}
@keyframes slideInUp {
  0% {opacity: 0; transform: translateY(100px);}
  100% {opacity: 1; transform: none;}
}

.hero, .section, .card, .testimonial-card, .content-wrapper {
  animation: fadeIn 0.8s cubic-bezier(0.3, 0.95, 0.2, 1.0);
}

/* -----------------------------------------------------
    RESPONSIVE DESIGN – MOBILE FIRST
----------------------------------------------------- */
@media (max-width: 1024px) {
  .content-wrapper, footer .content-wrapper {
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
  }
  .services-list {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.48rem; }
  .hero { padding-top: 24px; padding-bottom: 24px; }
  .footer-nav, .brand-socials { align-items: flex-start; text-align: left; }
  section, .section { padding: 26px 8px; margin-bottom: 40px; }
  .card, .testimonial-card, .feature-item, .text-section { padding: 16px 9px; }
  .card-container, .services-list, .content-grid { flex-direction: column; gap: 16px; }
  .text-image-section { flex-direction: column; gap: 18px; }
}
@media (max-width: 420px) {
  html { font-size: 14px; }
  .container { padding: 0 5px; }
  .hero { min-height: 210px; }
  header img[alt="Solidni Prijatelj"] { max-height: 36px; }
}

/* -----------------------------------------------------
    COOKIE CONSENT BANNER & MODAL
----------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--paper);
  color: #F0ECE7;
  box-shadow: 0 -2px 18px rgba(32,32,28,0.22);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  z-index: 1600;
  animation: slideInUp 0.44s cubic-bezier(.4,.85,.7,.96);
  gap: 18px;
}
.cookie-banner p {
  color: #F0ECE7;
  max-width: 480px;
  font-size: 0.98em;
  margin-bottom: 0;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-banner button,
.cookie-banner .cookie-btn {
  padding: 10px 23px;
  border-radius: 8px;
  background: var(--primary);
  color: #F0ECE7;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1em;
  font-weight: 600;
  margin: 0;
  transition: background 0.16s, color 0.16s, box-shadow 0.14s;
  cursor: pointer;
  outline: none;
}
.cookie-banner .cookie-btn.rejected {
  background: #393B38;
  color: #E7DCB4;
  border: 1px solid #A39B8B;
}
.cookie-banner .cookie-btn.settings {
  background: var(--secondary);
  color: var(--dark-bg);
  border: none;
}
.cookie-banner button:hover, .cookie-banner .cookie-btn:hover {
  background: #476944;
  color: #FFE;
}
.cookie-banner .cookie-btn.settings:hover {
  background: #8b8575;
  color: var(--accent);
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  z-index: 1800;
  background: rgba(30,29,29,0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.6s;
  pointer-events: auto;
}
.cookie-modal-inner {
  background: #2F2F2B;
  color: #F0ECE7;
  border-radius: 16px;
  box-shadow: 0 2px 36px rgba(42,42,40,0.24);
  min-width: 310px;
  max-width: 96vw;
  padding: 34px 27px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal-inner h3 {
  color: var(--accent);
  font-size: 1.22em;
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 700;
  margin-bottom: 10px;
}
.cookie-modal-inner .category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 8px;
}
.cookie-modal-inner .category label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1em;
  color: #DEDCD1;
}
.cookie-modal-inner .toggle {
  width: 36px;
  height: 22px;
  border-radius: 20px;
  background: #45453F;
  border: 1px solid #88816C;
  position: relative;
  display: inline-block;
  margin-right: 8px;
}
.cookie-modal-inner .toggle input {
  display: none;
}
.cookie-modal-inner .slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary);
  transition: left 0.19s, background 0.22s;
}
.cookie-modal-inner .toggle input:checked + .slider {
  left: 16px;
  background: var(--secondary);
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: transparent;
  color: #F0ECE7;
  border: none;
  font-size: 1.55rem;
  cursor: pointer;
  border-radius: 7px;
  transition: background 0.14s, color 0.13s;
  outline: none;
  padding: 3px 9px;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #476944;
  color: #FFE;
}
.cookie-modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-modal-buttons button {
  padding: 10px 18px;
  border-radius: 7px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .cookie-banner{
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 7px;
    font-size: 0.98em;
  }
  .cookie-banner .cookie-btns{
    gap: 9px;
  }
  .cookie-modal-inner{
    padding: 23px 7px;
    min-width: 78vw;
    max-width: 99vw;
  }
}

/* -----------------------------------------------------
    INDUSTRIAL MODERN VISUAL ELEMENTS
----------------------------------------------------- */
.card, .feature-item, .testimonial-card {
  /* metallic shadow accent */
  box-shadow: 0 2px 12px rgba(160,159,151,0.10), 0 1.5px 0 rgba(50,91,56,0.13);
  border: 1.5px solid var(--metal);
}
.card:before, .feature-item:before, .testimonial-card:before {
  content: '';
  position: absolute;
  left: 0; top: 0; height: 100%; width: 5px;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(180deg, #A39B8B 12%, #232321 60%);
  z-index: 1;
  opacity: 0.17;
}
.card:before, .feature-item:before { display: none; }

/* -----------------------------------------------------
    SCROLLBAR
----------------------------------------------------- */
body::-webkit-scrollbar {
  width: 9px;
  background: #232321;
}
body::-webkit-scrollbar-thumb {
  background: #6E6B61;
  border-radius: 16px;
}

/* -----------------------------------------------------
    SELECTION COLOR
----------------------------------------------------- */
::selection {
  background: #78705A;
  color: #F0ECE7;
}

/* -----------------------------------------------------
    FOCUS VISIBLE
----------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* -----------------------------------------------------
    PRINT STYLES
----------------------------------------------------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
}
