/* ============================================
   FreeDrive Montenegro – Shared Styles
   ============================================ */

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

:root {
  --red:       #cc1a1a;
  --red-dark:  #a01010;
  --red-bg:    #fff5f5;
  --gray:      #f5f5f5;
  --text:      #1a1a1a;
  --muted:     #666;
  --white:     #fff;
  --shadow:    0 4px 24px rgba(0,0,0,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

/* ── TYPOGRAPHY ── */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }

.section-tag {
  display: inline-block;
  background: var(--red-bg); color: var(--red);
  font-size: .78rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 14px;
}
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 580px; margin-bottom: 48px; line-height: 1.7; }

/* ── LAYOUT ── */
section { padding: 80px 40px; }
.inner { max-width: 1100px; margin: 0 auto; }

/* ── BUTTONS ── */
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 8px;
  font-weight: 700; font-size: .97rem; text-decoration: none;
  border: none; cursor: pointer; transition: all .2s;
}
.btn-red   { background: var(--red);   color: var(--white); }
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-white { background: var(--white); color: var(--red); }
.btn-white:hover { background: #f0e0e0; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-ghost { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn-ghost:hover { background: var(--red); color: white; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--white); border-bottom: 2px solid var(--red);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 68px;
  box-shadow: 0 2px 12px rgba(204,26,26,.08);
}
.nav-logo { font-size: 1.55rem; font-weight: 800; color: var(--red); letter-spacing: -1px; text-decoration: none; }
.nav-logo span { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.nav-links a.active { font-weight: 700; }
.nav-cta { background: var(--red) !important; color: var(--white) !important; padding: 9px 20px; border-radius: 6px; }
.nav-cta:hover { background: var(--red-dark) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 26px; height: 3px; background: var(--red); border-radius: 2px; transition: .3s; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #a01010 0%, var(--red) 60%, #e83232 100%);
  color: var(--white); padding: 90px 40px 80px; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35); color: var(--white);
  font-size: .82rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 18px; border-radius: 30px; margin-bottom: 22px;
}
.hero h1 { margin-bottom: 20px; font-size: clamp(1.3rem, 3.2vw, 2.1rem); }
.hero h1 em { font-style: normal; background: rgba(255,255,255,.22); border-radius: 6px; padding: 0.06em 0.28em; display: inline-block; line-height: 1; vertical-align: -0.08em; }
.hero p { font-size: 1.12rem; opacity: .92; max-width: 540px; margin: 0 auto 32px; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 44px; flex-wrap: wrap; }
.stat-num { font-size: 2.2rem; font-weight: 900; display: block; }
.stat-lbl { font-size: .8rem; opacity: .8; text-transform: uppercase; letter-spacing: .8px; }

/* ── INNER HERO (za podstranice) ── */
.page-hero {
  background: linear-gradient(135deg, #a01010 0%, var(--red) 100%);
  color: var(--white); padding: 70px 40px 60px; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-inner { position: relative; max-width: 700px; margin: 0 auto; text-align: center; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.page-hero p { font-size: 1.05rem; opacity: .9; }
.breadcrumb { font-size: .82rem; opacity: .75; margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.8); text-decoration: none; }
.breadcrumb a:hover { color: white; }

/* ── HOURS STRIP ── */
.hours-strip {
  background: var(--red-bg); border-top: 3px solid var(--red); border-bottom: 1px solid #f0d0d0;
  padding: 14px 40px; display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap;
}
.hi { display: flex; align-items: center; gap: 10px; font-size: .94rem; font-weight: 600; }
.hi .ico { width: 36px; height: 36px; background: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1rem; flex-shrink: 0; }
.hi small { color: var(--muted); font-weight: 400; font-size: .83rem; display: block; }

/* ── CARDS ── */
.card {
  background: var(--white); border-radius: 16px; padding: 32px 28px;
  box-shadow: var(--shadow); border: 2px solid transparent; transition: all .25s;
}
.card:hover { border-color: var(--red); transform: translateY(-4px); }
.card-icon { width: 52px; height: 52px; background: var(--red-bg); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 18px; }

/* ── GRID UTILS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-2-about { gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }

/* ── VIOLATION CHIPS ── */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 16px; }
.vchip {
  background: var(--red-bg); border: 1.5px solid #f0c0c0; border-radius: 10px;
  padding: 18px 14px; text-align: center; font-size: .9rem; font-weight: 600; transition: all .2s; cursor: default;
}
.vchip:hover { background: var(--red); color: white; border-color: var(--red); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(204,26,26,.2); }
.vicon { font-size: 1.5rem; margin-bottom: 8px; display: block; }

/* ── CHECKLIST ── */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.checklist li { display: flex; align-items: flex-start; gap: 11px; font-size: .96rem; color: var(--muted); }
.checklist li::before {
  content: '\2713'; background: var(--red); color: white;
  width: 21px; height: 21px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 900; flex-shrink: 0; margin-top: 2px;
}

/* ── STAT BOX ── */
.stat-box { background: var(--white); border-radius: 16px; padding: 36px; box-shadow: var(--shadow); border-top: 4px solid var(--red); }
.stat-box .num { font-size: 3rem; font-weight: 900; color: var(--red); line-height: 1; }
.stat-box p { color: var(--muted); margin-top: 8px; font-size: .94rem; }

/* ── TELEGRAM CTA ── */
.tg-cta {
  background: linear-gradient(135deg, #a01010, var(--red));
  color: white; border-radius: 16px; padding: 48px 40px; text-align: center;
}
.tg-cta h2 { color: white; margin-bottom: 12px; }
.tg-cta p { opacity: .9; max-width: 500px; margin: 0 auto 28px; }
.tg-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: white; color: var(--red); padding: 14px 28px;
  border-radius: 50px; font-weight: 700; font-size: 1rem; text-decoration: none; transition: all .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.tg-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }

/* ── FORM ── */
.form-wrap {
  background: var(--white); border-radius: 20px; padding: 50px;
  box-shadow: 0 8px 40px rgba(204,26,26,.10); border: 2px solid #f0c0c0;
}
.form-row { margin-bottom: 22px; }
.form-row label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 7px; }
.form-row input:not([type="checkbox"]), .form-row textarea, .form-row select {
  width: 100%; padding: 12px 16px; border: 2px solid #e0e0e0; border-radius: 8px;
  font-size: .97rem; font-family: inherit; color: var(--text); background: var(--white);
  transition: border-color .2s; outline: none; appearance: none;
}
.form-row input:not([type="checkbox"]):focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--red); }
.form-row textarea { resize: vertical; min-height: 130px; }
.upload-area {
  border: 2.5px dashed #e0b0b0; border-radius: 12px; padding: 36px 20px;
  text-align: center; cursor: pointer; background: var(--red-bg); position: relative; transition: all .2s;
}
.upload-area:hover { border-color: var(--red); background: #ffe8e8; }
.upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-area p { font-size: .9rem; color: var(--muted); margin-bottom: 4px; }
.upload-area strong { color: var(--red); }
.file-name { margin-top: 10px; font-size: .85rem; color: var(--red); font-weight: 600; min-height: 20px; }
.consent-wrap { background: #fff5f5; border: 1.5px solid #f0c0c0; border-radius: 10px; padding: 16px 18px; margin-bottom: 22px; }
.consent-label { display: flex !important; align-items: flex-start; gap: 12px; cursor: pointer; font-weight: 400 !important; font-size: .88rem; color: var(--muted); line-height: 1.6; margin-bottom: 0 !important; }
.consent-label input[type="checkbox"] { flex-shrink: 0; margin-top: 3px; width: 18px !important; height: 18px; accent-color: var(--red); cursor: pointer; border: none !important; padding: 0 !important; appearance: auto !important; }
.submit-btn {
  width: 100%; padding: 16px; background: var(--red); color: white;
  border: none; border-radius: 10px; font-size: 1.05rem; font-weight: 700;
  cursor: pointer; transition: background .2s, transform .1s; margin-top: 8px;
}
.submit-btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.success-msg {
  display: none; background: #e8f5e9; border: 2px solid #4caf50; border-radius: 10px;
  padding: 20px; color: #2e7d32; font-weight: 600; text-align: center; font-size: .97rem; margin-top: 20px;
}

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { border: 2px solid #eee; border-radius: 12px; overflow: hidden; transition: border-color .2s; }
.faq-item.open { border-color: var(--red); }
.faq-q {
  padding: 18px 22px; font-weight: 700; font-size: .97rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none; background: var(--white); transition: background .2s, color .2s;
}
.faq-item.open .faq-q { background: var(--red-bg); color: var(--red); }
.faq-q .arr { font-size: .85rem; transition: transform .3s; }
.faq-item.open .arr { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .3s;
  font-size: .93rem; color: var(--muted); padding: 0 22px; line-height: 1.75;
}
.faq-item.open .faq-a { max-height: 300px; padding: 16px 22px 20px; }

/* ── BLOG CARDS ── */
.blog-card {
  background: var(--white); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); border: 2px solid transparent; transition: all .25s; display: flex; flex-direction: column;
}
.blog-card:hover { border-color: var(--red); transform: translateY(-4px); }
.blog-thumb {
  height: 180px; background: linear-gradient(135deg, #a01010, var(--red));
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
}
.blog-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-meta { font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.blog-tag { background: var(--red-bg); color: var(--red); font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-right: 8px; }
.blog-body h3 { font-size: 1rem; margin-bottom: 10px; line-height: 1.4; }
.blog-body p { font-size: .88rem; color: var(--muted); line-height: 1.6; flex: 1; }
.blog-body a { color: var(--red); font-weight: 700; font-size: .88rem; text-decoration: none; margin-top: 16px; display: inline-block; }
.blog-body a:hover { text-decoration: underline; }

/* ── FOOTER ── */
footer { background: #111; color: #ccc; padding: 50px 40px 30px; }
.footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #2a2a2a;
}
.footer-logo { color: var(--red); font-size: 1.5rem; font-weight: 800; letter-spacing: -1px; text-decoration: none; }
.footer-logo span { color: white; }
.footer-tagline { color: #888; font-size: .88rem; margin-top: 12px; line-height: 1.7; max-width: 260px; }
.footer-hours { margin-top: 20px; background: #1a1a1a; border-radius: 10px; padding: 16px 18px; border-left: 3px solid var(--red); }
.footer-hours h4 { color: white; font-size: .82rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.fh { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 6px; }
.fh .d { color: #999; } .fh .t { color: white; font-weight: 600; }
.footer-col h4 { color: white; font-size: .88rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: #999; text-decoration: none; font-size: .9rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--red); }
.tg-link { display: flex; align-items: center; gap: 8px; color: #999 !important; }
.tg-link:hover { color: var(--red) !important; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: .83rem; color: #666;
}
.footer-bottom a { color: #888; text-decoration: none; }
.footer-bottom a:hover { color: var(--red); }
.footer-legal { display: flex; gap: 20px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.social-link { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: #2a2a2a; border-radius: 8px; color: #ccc; transition: background .2s, color .2s; text-decoration: none; }
.social-link:hover { background: var(--red); color: white; }
.social-link svg { width: 18px; height: 18px; fill: currentColor; }

/* ── PRIJAVA GRID (forma + sidebar) ── */
.prijava-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}

/* ── RESPONSIVE: TABLET WIDE (≤ 1100px) ── */
@media (max-width: 1100px) {
  .inner { padding: 0 24px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
}

/* ── RESPONSIVE: TABLET (≤ 960px) ── */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .prijava-grid { grid-template-columns: 1fr; }
}

/* ── RESPONSIVE: NAV + LAYOUT TABLET (≤ 900px) ── */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed;
    top: 68px; left: 0; right: 0; background: white;
    padding: 24px 28px; border-bottom: 2px solid var(--red);
    gap: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.1); z-index: 199;
  }
  .hamburger { display: flex; }
  section { padding: 64px 24px; }
  .hero { padding: 70px 24px 60px; }
  .page-hero { padding: 56px 24px 48px; }
  .hours-strip { padding: 14px 24px; gap: 20px; }
  .tg-cta { padding: 40px 28px; }
  .form-wrap { padding: 36px 28px; }
  .grid-2 { grid-template-columns: 1fr; gap: 32px !important; }
  .stat-box { padding: 28px 24px; }
}

/* ── RESPONSIVE: MOBILE LARGE (≤ 640px) ── */
@media (max-width: 640px) {
  section { padding: 52px 16px; }
  .hero { padding: 60px 16px 48px; }
  .page-hero { padding: 48px 16px 40px; }
  .hours-strip {
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .hi { font-size: .88rem; }
  .hi .ico { width: 32px; height: 32px; font-size: .9rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-auto { grid-template-columns: 1fr 1fr; }
  .vgrid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 1.8rem; }
  .tg-cta { padding: 32px 20px; }
  .tg-cta h2 { font-size: 1.4rem; }
  .form-wrap { padding: 28px 16px; }
  .stat-box { padding: 22px 18px; }
  .stat-box .num { font-size: 2.4rem; }
  .card { padding: 24px 20px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; max-width: 280px; text-align: center; }
  .section-sub { font-size: .97rem; }
  .blog-grid { grid-template-columns: 1fr !important; }
}

/* ── RESPONSIVE: MOBILE SMALL (≤ 420px) ── */
@media (max-width: 420px) {
  section { padding: 44px 14px; }
  .hero { padding: 52px 14px 40px; }
  .page-hero { padding: 40px 14px 32px; }
  .hours-strip { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-auto { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .vgrid { grid-template-columns: repeat(2, 1fr); }
  nav { padding: 0 14px; }
  .hero-btns .btn { max-width: 100%; }
  .faq-q { font-size: .9rem; padding: 15px 16px; }
  .faq-a { padding: 0 16px; }
  .faq-item.open .faq-a { padding: 14px 16px 18px; }
}
