@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap");

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #0f172a;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --fleet-accent: #0d9488;
  --fleet-accent-hover: #0f766e;
  --success: #059669;
  --error: #dc2626;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Crna podloga logotipa se stapa sa tamnom navigacijom */
.site-header .logo img {
  height: 44px;
  width: auto;
  mix-blend-mode: lighten;
}

.site-footer .footer-brand img {
  height: 52px;
  width: auto;
  mix-blend-mode: lighten;
  margin-bottom: 0.75rem;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  color: #e2e8f0;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-desktop a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lang-switch a {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  background: transparent;
}

.lang-switch a.active {
  background: var(--accent);
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.2s;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--primary);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  color: #e2e8f0;
  font-weight: 500;
  padding: 0.5rem 0;
}

/* Hero */
.hero {
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/banner.jpg") center/cover no-repeat;
  opacity: 0.2;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-content .lead {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

.hero-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.hero-features li {
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #e2e8f0;
}

.hero-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.hero-phones {
  margin: 1.5rem 0;
}

.hero-phones a {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.hero-phones a:hover {
  text-decoration: underline;
}

.hero-phones small {
  color: #94a3b8;
  font-size: 0.85rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Booking card – u skladu sa ostatkom sajta (svetla kartica) */
.booking-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  color: var(--text);
  border: 1px solid var(--border);
}

.booking-card h2 {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.booking-card .btn-primary {
  background: var(--accent);
  color: var(--primary);
  width: 100%;
}

.booking-card .btn-primary:hover {
  background: var(--accent-hover);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.form-errors {
  color: var(--error);
  font-size: 0.875rem;
  margin: 0.5rem 0;
}

.form-errors p {
  margin: 0.25rem 0;
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-status {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.form-status.success {
  color: var(--success);
}

/* Sections */
section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.section-header p {
  color: var(--muted);
  margin: 0;
}

/* Fleet cards (referentni dizajn) */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.fleet-card {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.fleet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
}

.fleet-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  min-height: 44px;
}

.fleet-card-head h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.fleet-card-logo {
  display: block;
  width: 56px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center right;
  filter: grayscale(100%);
  opacity: 0.9;
  transition: opacity 0.2s;
}

.fleet-card-logo--invert {
  filter: invert(1) grayscale(100%);
}

.fleet-card:hover .fleet-card-logo {
  opacity: 1;
}

.fleet-card-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 0.5rem;
  min-height: 2.6rem;
}

.fleet-card-specs li {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  min-width: 0;
}

.fleet-card-specs i {
  color: #94a3b8;
  font-size: 0.85rem;
  width: 14px;
  text-align: center;
}

.fleet-card-image {
  position: relative;
  margin: 0 -1.25rem 1rem;
  width: calc(100% + 2.5rem);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}

.fleet-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.04) 0%,
    transparent 35%,
    transparent 72%,
    rgba(255, 255, 255, 0.35) 100%
  );
}

.fleet-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.fleet-card-foot {
  display: flex;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  gap: 0;
}

.btn-fleet-inquiry {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  background: var(--fleet-accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 6px 0 0 6px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}

.btn-fleet-inquiry:hover {
  background: var(--fleet-accent-hover);
  color: #fff;
}

.fleet-card-price {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 0 1rem;
  border-left: 1px solid var(--border);
  min-width: 100px;
}

.fleet-card-price span {
  font-size: 0.75rem;
  color: var(--muted);
}

.fleet-card-price strong {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--fleet-accent);
  line-height: 1.1;
}

.fleet-card-price strong.contact-only {
  font-size: 0.95rem;
}

/* Floating contact buttons (Viber + Instagram) */
.fab-stack {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fab-stack a,
.fab-stack .scroll-top {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.25s, visibility 0.25s;
  flex-shrink: 0;
}

.fab-stack a:hover,
.fab-stack .scroll-top.visible:hover {
  transform: scale(1.06);
  color: #fff;
}

.fab-viber {
  background: #7360f2;
  box-shadow: 0 4px 20px rgba(115, 96, 242, 0.45);
}

.fab-viber:hover {
  box-shadow: 0 6px 28px rgba(115, 96, 242, 0.55);
}

.fab-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  box-shadow: 0 4px 20px rgba(220, 39, 67, 0.4);
}

.fab-instagram:hover {
  box-shadow: 0 6px 28px rgba(220, 39, 67, 0.5);
}

.fab-stack .fa {
  font-size: 1.65rem;
}

.fab-viber svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.fab-stack .scroll-top {
  position: static;
  padding: 0;
  border: none;
  cursor: pointer;
  background: linear-gradient(145deg, #334155 0%, #0f172a 100%);
  color: var(--accent);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.35);
  display: none;
}

.fab-stack .scroll-top.visible {
  display: flex;
}

.fab-stack .scroll-top.visible:hover {
  background: linear-gradient(145deg, #475569 0%, #1e293b 100%);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.fab-stack .scroll-top .fa {
  font-size: 1.35rem;
  font-weight: 700;
}

/* Terms accordion */
.terms-list {
  max-width: 800px;
  margin: 0 auto;
}

.term-item {
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.term-item summary {
  padding: 1.15rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.term-item summary::-webkit-details-marker {
  display: none;
}

.term-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 400;
}

.term-item[open] summary::after {
  content: "−";
}

.term-item .term-content {
  padding: 0 1.5rem 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-card .icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: rgba(245, 158, 11, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form-wrap h3 {
  margin: 0 0 1.25rem;
  text-align: center;
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: #94a3b8;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h4 {
  color: #fff;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

.payment-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.payment-icons img {
  height: 28px;
  width: auto;
  filter: brightness(1.2);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s;
}

.social-links a:hover {
  background: var(--accent);
  color: var(--primary);
}

/* Responsive */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header-actions .btn-outline {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .cars-grid {
    grid-template-columns: 1fr;
  }
}
