/* 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;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  background: #181d2f;
  color: #f3f3f6;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #ffd700;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #fffbe2;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 16px;
}

/* BRAND APPROACH & TYPOGRAPHY ----------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.18;
  color: #fff;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; letter-spacing: 0.02em; }
h2 { font-size: 2rem; margin-bottom: 12px; }
h3 { font-size: 1.3rem; margin-bottom: 8px; }
h4 { font-size: 1.1rem; margin-bottom: 6px; }
p, li, td, th {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #e3eafc;
  margin-bottom: 10px;
  letter-spacing: 0.012em;
}
strong, b { color: #ffd700; }
small { font-size: 0.89em; letter-spacing: 0.01em; }

body, section {
  background: linear-gradient(135deg, #1a2035 40%, #222b44 100%);
}

::selection {
  background: #ffd700;
  color: #1a2035;
}

/* CONTAINER & LAYOUTS ------------------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #222b44;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(18,23,38,0.34);
  position: relative;
  transition: box-shadow 0.24s, transform 0.16s;
}
.card:hover, .card:focus {
  box-shadow: 0 4px 32px 0 #274472;
  transform: translateY(-3px) scale(1.02);
}

.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: #f8f8f8;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px 0 rgba(30, 40, 70, 0.09);
  color: #181d2f;
  flex-direction: column;
}
.testimonial-card p {
  color: #23263c;
}
.testimonial-card span {
  font-size: 1rem;
  color: #274472;
  font-weight: 600;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.text-section {
  background: rgba(50,64,98,0.13);
  border-left: 4px solid #ffd700;
  padding: 18px 22px;
  border-radius: 10px;
  margin-bottom: 18px;
}

.legal-disclaimer {
  border: none;
  background: none;
  color: #8297bd;
  padding: 0;
}

/* HEADER & NAVIGATION ------------------- */
header {
  background: #1a2035;
  border-bottom: 2.5px solid #274472;
  position: sticky;
  top: 0; left: 0;
  z-index: 100;
  box-shadow: 0 1px 18px 0 rgba(30, 40, 70, 0.23);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  color: #e6eefe;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.16s;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  border-radius: 2px;
  position: relative;
}
header nav a:hover, header nav a:focus {
  color: #ffd700;
  border-bottom: 2px solid #ffd700;
  background: rgba(39, 68, 114, 0.13);
}

header img {
  height: 48px;
  width: auto;
}

.cta-btn {
  background: #ffd700;
  color: #1a2035;
  font-weight: 800;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 12px 32px;
  border-radius: 28px;
  box-shadow: 0 2px 12px 0 #ffd70033;
  font-size: 1.07rem;
  letter-spacing: 0.04em;
  border: none;
  transition: background 0.19s, color 0.19s, box-shadow 0.19s, transform 0.13s;
  text-transform: uppercase;
  cursor: pointer;
  margin-left: 16px;
  outline: none;
  text-decoration: none;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #ffe372;
  color: #274472;
  box-shadow: 0 4px 30px 0 #ffd70066;
  transform: scale(1.04);
}

/* MOBILE BURGER MENU -------------------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #ffd700;
  cursor: pointer;
  height: 44px;
  width: 44px;
  transition: background 0.13s;
  z-index: 120;
  margin-left: 8px;
}
.mobile-menu {
  position: fixed;
  left: 0; top: 0;
  height: 100vh;
  width: 100vw;
  background: #23263c;
  box-shadow: 0 16px 80px 0 #14172788;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 18px 18px 18px;
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(.8,.4,.23,1.2);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #ffd700;
  font-size: 2rem;
  cursor: pointer;
  margin-bottom: 28px;
  align-self: flex-end;
  transition: color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fffbe2;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  color: #ffd700;
  padding: 14px 0;
  border-bottom: 1.8px solid #344168;
  transition: color 0.15s, background 0.13s;
  border-radius: 6px;
  font-weight: 600;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #fffbe2;
  background: #27447233;
}

@media (max-width: 1024px) {
  header .container {
    gap: 6px;
  }
  .cta-btn {
    padding: 11px 20px;
    font-size: 1em;
  }
}
@media (max-width: 900px) {
  header nav {
    gap: 13px;
  }
}
@media (max-width: 820px) {
  header nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu {
    display: flex;
  }
}

/* HERO & GENERAL SECTION STYLES --------- */
section {
  width: 100%;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 16px;
}
.service-list > div {
  background: #23263c;
  border-radius: 16px;
  box-shadow: 0 2px 14px 0 rgba(18,23,38,0.16);
  padding: 26px 22px;
  flex: 1 1 260px;
  min-width: 250px;
  transition: box-shadow 0.18s, transform 0.13s;
  border-left: 4px solid #ffd700;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service-list > div:hover, .service-list > div:focus {
  box-shadow: 0 8px 32px 0 #ffd70055;
  transform: scale(1.03);
  border-left-color: #ffe372;
}
.service-list strong {
  color: #ffd700;
  font-size: 1.13em;
}
.service-list a {
  color: #ffd700;
  font-weight: bold;
  text-decoration: underline;
  margin-top: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* TABLE STYLES (usluge.html) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  background: #222b44;
  color: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
}
thead {
  background: #1a2035;
}
th, td {
  padding: 12px 18px;
  border-bottom: 1.5px solid #23263c;
  text-align: left;
}
th {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #ffd700;
  font-size: 1.05rem;
  border-bottom: 2px solid #ffd70055;
}
tr:last-child td {
  border-bottom: none;
}

/* FOOTER ------------------------------ */
footer {
  background: #181d2f;
  border-top: 2.5px solid #274472;
  box-shadow: 0 -2px 18px 0 #181d2f33;
  padding: 40px 0 12px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: flex-start;
  justify-content: space-between;
}
footer img {
  height: 42px;
  margin-bottom: 8px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 8px;
}
footer nav a {
  color: #ffd700;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1em;
}
footer nav a:hover, footer nav a:focus {
  color: #fffbe2;
}
footer .text-section {
  background: none;
  border-left: none;
  padding: 0;
  color: #b2bed9;
  font-size: 1em;
}

/* BUTTONS ----------------------------- */
button, .btn {
  background: #274472;
  color: #ffd700;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 21px;
  padding: 12px 28px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.17s, transform 0.10s;
}
button:hover, .btn:hover, button:focus, .btn:focus {
  background: #ffd700;
  color: #1a2035;
  box-shadow: 0 2px 14px 0 #ffd70044;
  outline: none;
  transform: scale(1.04);
}

input, textarea {
  border: 1.6px solid #274472;
  background: #23263c;
  border-radius: 8px;
  font-family: 'Roboto', Arial, sans-serif;
  color: #f8f8f8;
  padding: 12px 14px;
  font-size: 1em;
  margin-bottom: 14px;
  width: 100%;
  outline: none;
  transition: border 0.15s;
}
input:focus, textarea:focus {
  border-color: #ffd700;
}

/* COOKIE BANNER (Fixed Bottom Banner) --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #23263c;
  color: #ffd700;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  box-shadow: 0 -4px 40px 0 #181d2f33;
  z-index: 240;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 22px 10vw 22px 10vw;
  transition: transform 0.29s cubic-bezier(.7,1.32,.22,1.19);
}
.cookie-banner.hide {
  transform: translateY(120px);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner-btn-group {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-left: 18px;
}
.cookie-btn {
  background: #ffd700;
  color: #23263c;
  border-radius: 20px;
  font-size: 1em;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  padding: 7px 23px;
  border: none;
  cursor: pointer;
  margin: 0;
  transition: background 0.18s, color 0.18s, box-shadow 0.12s, transform 0.10s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #ffe372;
  color: #274472;
  box-shadow: 0 2px 14px 0 #ffd70030;
}
.cookie-settings-btn {
  background: none;
  border: 1.5px solid #ffd700;
  color: #ffd700;
  padding: 7px 18px;
  font-size: 1em;
  border-radius: 18px;
  font-weight: 600;
  margin-left: 7px;
  transition: background 0.1s, color 0.1s, border 0.13s;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #ffd70033;
  color: #fffbe2;
}

/* COOKIE MODAL ------------------------ */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24,29,47,0.84);
  transition: background 0.18s;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #222b44;
  color: #fffbe2;
  border-radius: 18px;
  box-shadow: 0 4px 26px 0 #1a2035dd;
  padding: 38px 24px 24px 24px;
  max-width: 410px;
  width: 90vw;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal-content h2 {
  color: #ffd700;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 10px;
  font-size: 1.2em;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 13px;
}
.cookie-switch {
  width: 46px; height: 22px;
  background: #23263c;
  border-radius: 18px;
  position: relative;
  cursor: pointer;
  border: 1.5px solid #ffd700;
  transition: background 0.16s;
}
.cookie-switch[data-enabled="true"] {
  background: #ffd700;
}
.cookie-switch .switch-knob {
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s, background 0.16s;
}
.cookie-switch[data-enabled="true"] .switch-knob {
  left: 26px;
  background: #23263c;
}
.cookie-modal-btns {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-modal-close {
  position: absolute;
  right: 15px; top: 10px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #ffd700;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #fffbe2;
}

/* ANIMATIONS & HOVER EFFECTS ----------- */
.card, .service-list > div, .cta-btn, button, .btn, .testimonial-card, .mobile-menu, .mobile-menu-close, .cookie-banner, .cookie-modal-content {
  transition-property: background, color, border, box-shadow, transform, opacity, filter;
  transition-timing-function: cubic-bezier(.66,.12,.13,1);
}
h1, h2, h3 {
  text-shadow: 0 2px 12px #27447277, 0 1px 4px #181d2f44;
}

/* UTILS & SPACING ---------------------- */
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
.pt-2 { padding-top: 16px; }
.pb-2 { padding-bottom: 16px; }
.pt-4 { padding-top: 32px; }
.pb-4 { padding-bottom: 32px; }

/* RESPONSIVE --------------------------- */
@media (max-width: 1300px) {
  .container { max-width: 96vw; }
}
@media (max-width: 900px) {
  .content-wrapper {
    gap: 20px;
  }
  .service-list > div, .card, .text-section {
    padding: 18px 12px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .container { padding: 0 6px; }
  .section {
    padding: 26px 5px;
    margin-bottom: 32px;
  }
  .service-list {
    flex-direction: column;
    gap: 18px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    padding: 12px;
    font-size: 0.98em;
  }
  .content-wrapper { gap: 12px; }
  .text-section {
    padding: 10px 8px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.36rem; }
  h2 { font-size: 1.05rem; }
  header .container {
    min-height: 46px;
  }
  .cta-btn, button, .btn {
    padding: 11px 15px;
    font-size: 0.97em;
  }
  .footer .content-wrapper, footer .content-wrapper {
    gap: 10px;
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .section {
    padding: 18px 2px;
    margin-bottom: 20px;
  }
}

/* FLEXBOX ONLY: PREVENT OVERLAPING ---- */
.section, .card, .service-list > div, .text-section, .testimonial-card, .content-wrapper, .container, .feature-item {
  margin-bottom: 20px;
  min-width: 0;
}

/* SCROLLBAR STYLE ----------------------- */
::-webkit-scrollbar {
  width: 9px;
  background: #1a2035;
}
::-webkit-scrollbar-thumb {
  background: #274472;
  border-radius: 9px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ffd700;
}

/* NEON EFFECTS & MODERN DECOR ----------- */
.cta-btn, .service-list > div, .testimonial-card, .card {
  box-shadow: 0 0 0px 0 #ffd700, 0 0 1px #1a2035;
}
.cta-btn:hover, .cta-btn:focus, .service-list > div:hover, .service-list > div:focus {
  filter: drop-shadow(0 0 3px #ffd700A0);
  box-shadow: 0 0 10px 1.5px #ffd70044, 0 2px 22px 0 #ffd70011;
}

/* VISUAL HIERARCHY --------------------- */
main > section > .container > .content-wrapper > h1,
main > section > .container > .content-wrapper > h2 {
  margin-top: 2px;
  margin-bottom: 15px;
  text-transform: none;
  letter-spacing: 0.017em;
  color: #ffd700;
}

/* REMOVE ABSOLUTE FOR CONTENT ---------- */
/* Decorative elements may use absolute; cards/texts must not */

/* PRINT & SELECTION -------------------- */
@media print {
  body, .container, .section, .content-wrapper, .text-section {
    background: #fff;
    color: #111;
  }
  nav, header, footer, .cta-btn, .mobile-menu, .cookie-banner, .cookie-modal {
    display: none !important;
  }
}
