/* =========================================
   style.css - Taxi Srbija Agregator
   ========================================= */

/* 1. CSS VARIJABLE */
:root {
  --primary: #f59e0b;
  --primary-dark: #d97706;
  --primary-light: #fef3c7;
  --secondary: #1e293b;
  --secondary-light: #334155;
  --light: #f8fafc;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --white: #ffffff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1200px;
  --header-height: 70px;
  --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 2. RESET & OSNOVNI STILOVI */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  color: var(--secondary);
  background: var(--light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }
img, video, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; color: var(--secondary); }
p { margin-bottom: 1rem; }

/* 3. LAYOUT & KONTENJERI */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }
.text-center { text-align: center; }
.section-subtitle { max-width: 700px; margin: -20px auto 40px; color: var(--gray); }

/* 4. HEADER & NAVIGACIJA */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
}
.header .container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo { font-size: 1.8rem; font-weight: 800; color: var(--primary-dark); }
.nav-list { display: flex; gap: 25px; align-items: center; }
.nav-list a { font-weight: 500; padding: 8px 0; position: relative; }
.nav-list a:hover { color: var(--primary-dark); }
.nav-list a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--primary); transition: var(--transition);
}
.nav-list a:hover::after { width: 100%; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--secondary); padding: 8px; }

/* Dropdown (opciono) */
.dropdown { position: relative; }
.dropdown-toggle { cursor: pointer; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; background: var(--white);
  box-shadow: var(--shadow); border-radius: var(--radius); padding: 10px 0;
  min-width: 200px; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: var(--transition);
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 10px 20px; font-weight: 400; }
.dropdown-menu a:hover { background: var(--light); color: var(--primary-dark); }

/* 5. HERO SEKCIJA */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--white);
  padding: 100px 0 80px;
  text-align: center;
}
.hero h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 15px; }
.hero p { font-size: 1.1rem; max-width: 750px; margin: 0 auto 30px; opacity: 0.9; }
.hero-actions { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* 6. DUGMAD */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: var(--radius); font-weight: 600;
  cursor: pointer; border: 2px solid transparent; transition: var(--transition);
  text-align: center; font-size: 1rem; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--secondary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3); }
.btn-secondary { background: transparent; border-color: var(--white); color: var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--secondary); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary-dark); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-block { width: 100%; display: flex; }

/* 7. NASLOVI SEKCIJA */
h2 { font-size: clamp(1.8rem, 4vw, 2.2rem); margin-bottom: 40px; position: relative; text-align: center; }
h2::after { content: ''; display: block; width: 60px; height: 4px; background: var(--primary); margin: 10px auto 0; border-radius: 2px; }

/* 8. GRID & KARTICE */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 25px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--white); padding: 25px; border-radius: var(--radius);
  box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--gray-light);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.card h3 { margin-bottom: 10px; color: var(--secondary); font-size: 1.25rem; }
.card p { color: var(--gray); margin-bottom: 15px; }
.card-icon { font-size: 2rem; margin-bottom: 15px; display: block; }

/* 9. CENOVNIK (TABELA) */
.pricing { background: #f1f5f9; }
.price-table {
  width: 100%; border-collapse: collapse; background: var(--white);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 20px;
}
.price-table th, .price-table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--gray-light); }
.price-table th { background: var(--secondary); color: var(--white); font-weight: 600; }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: var(--light); }

/* 10. FAQ AKORDION */
.faq details {
  background: var(--white); padding: 18px 20px; margin-bottom: 15px;
  border-radius: var(--radius); box-shadow: var(--shadow); cursor: pointer;
  border: 1px solid var(--gray-light); transition: var(--transition);
}
.faq details[open] { border-color: var(--primary); box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15); }
.faq summary { font-weight: 600; list-style: none; outline: none; position: relative; padding-right: 30px; }
.faq summary::marker { content: ''; }
.faq summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--primary); font-weight: 700; transition: var(--transition);
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 12px; color: var(--gray); line-height: 1.7; margin-bottom: 0; }

/* 11. STATISTIKA / PRAĆENJE VOZILA */
.stats { background: var(--white); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; text-align: center; }
.stat-item h3 { font-size: 2.5rem; color: var(--primary-dark); margin-bottom: 5px; }
.stat-item p { color: var(--gray); font-weight: 500; margin: 0; }

/* 12. TESTIMONIJALI */
blockquote {
  background: var(--white); padding: 25px; border-radius: var(--radius);
  box-shadow: var(--shadow); position: relative; border: 1px solid var(--gray-light);
}
blockquote::before { content: '"'; font-size: 4rem; color: var(--primary); position: absolute; top: -10px; left: 15px; opacity: 0.3; }
blockquote p { font-style: italic; margin-bottom: 10px; padding-left: 20px; }
blockquote cite { color: var(--gray); font-weight: 600; display: block; }

/* 13. KONTAKT & INFO BOX */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.contact-box { background: var(--white); padding: 25px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.contact-box h3 { margin-bottom: 15px; color: var(--secondary); }
.contact-box a { color: var(--primary-dark); font-weight: 600; }
.contact-box a:hover { text-decoration: underline; }
.contact-box p { margin-bottom: 8px; }

/* 14. FOOTER */
.footer { background: var(--secondary); color: var(--light); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer h3, .footer h4 { margin-bottom: 15px; color: var(--primary); }
.footer ul li { margin-bottom: 10px; }
.footer a:hover { color: var(--primary); }
.footer-bottom { text-align: center; border-top: 1px solid #334155; padding-top: 25px; font-size: 0.9rem; color: #94a3b8; }
.socials { display: flex; gap: 12px; margin-top: 15px; flex-wrap: wrap; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: #334155; border-radius: 50%; color: var(--white); transition: var(--transition); }
.socials a:hover { background: var(--primary); color: var(--secondary); transform: translateY(-3px); }

/* 15. UTILITY KLASE */
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none !important; }
.badge { display: inline-block; background: var(--primary-light); color: var(--primary-dark); padding: 4px 10px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 10px; }

/* 16. RESPONZIVNOST */
@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .nav-list {
    position: fixed; top: var(--header-height); left: -100%; width: 100%;
    background: var(--white); flex-direction: column; padding: 20px;
    box-shadow: var(--shadow); transition: var(--transition); z-index: 99;
  }
  .nav-list.active { left: 0; }
  .nav-list a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--gray-light); }
  .nav-list a:last-child { border-bottom: none; }
  .dropdown-menu { position: static; box-shadow: none; padding-left: 20px; opacity: 1; visibility: visible; transform: none; display: none; }
  .dropdown:hover .dropdown-menu { display: block; }
  .hero { padding: 80px 0 60px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 300px; }
  section { padding: 60px 0; }
  h2 { font-size: 1.8rem; margin-bottom: 30px; }
  .price-table { display: block; overflow-x: auto; }
}

/* 17. PRISTUPAČNOST & PERFORMANSE */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* 18. PRINT STILOVI */
@media print {
  .header, .footer, .hero-actions, .btn, .mobile-menu-btn, .socials, .stats, .faq { display: none !important; }
  body, a { color: #000 !important; }
  section { padding: 20px 0; page-break-inside: avoid; }
}