/*
Theme Name: Skill Rent a Car
Theme URI: https://skill.rs
Author: Skill Rent a Car
Description: Vjerni klon skill.rs WordPress teme
Version: 2.4.0
Text Domain: skill-rentacar
*/

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Roboto', Arial, sans-serif; font-size: 14px; line-height: 1.6; color: #333; background: #fff; }
h1, h2, h3, h4, h5, h6,
.main-nav li a,
.section-title,
.page-hero h1,
.btn-hero,
.btn-red,
.btn-submit,
.btn-inquiry { font-family: 'Raleway', sans-serif; }
h1, h2, h3, h4, h5, h6 { font-weight: 900; }
img { max-width: 100%; height: auto; display: block; }
a { color: #333; text-decoration: none; }
a:hover { color: #e8162d; }
ul { list-style: none; }

/* =============================================
   HEADER
   ============================================= */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: #fbfbfb; box-shadow: 0 4px 14px 0 rgba(50,50,50,0.3); transition: all 0.3s ease; }
.header-bar { background: white; }
.header-bar__inner { max-width: 1200px; margin: 0 auto; padding: 0 15px; display: flex; align-items: center; position: relative; min-height: 80px; }

/* Logo Box */
.logo-box {
  position: absolute; top: 0; left: 15px; z-index: 999;
  background: #fff;
  box-shadow: 3px 3px 40px -5px rgba(0,0,0,0.32);
  width: 350px;
  display: flex; align-items: center;
  padding: 0 20px;
  height: 100px; line-height: 100px;
  transition: all 0.3s ease;
}
.logo-box a { display: inline-flex; align-items: center; line-height: 0; }
.logo-box__img { height: 55px; width: auto; margin-right: 6px; transition: height 0.3s; }
.logo-box__svg { width: 26px; height: 26px; margin-right: 4px; flex-shrink: 0; transition: all 0.3s; }
.logo-box__phone { font-size: 14px; font-weight: 700; color: #333; white-space: nowrap; margin-left: 2px; line-height: normal; }
.logo-box__phone:hover { color: #e8162d; }

/* Nav */
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; }
.main-nav li a { display: block; padding: 28px 15px; font-size: 15px; font-weight: 600; text-transform: uppercase; color: #a5abb7; transition: all 0.2s; position: relative; }
.main-nav li a:hover { color: #e8162d; }
 .main-nav .current-menu-item > a { color: #14181c; }
.main-nav li a:hover::before, .main-nav .current-menu-item > a::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: #e8162d; }
.lang-switch a { font-size: 15px !important; color: #333 !important; }
.lang-switch a:hover { color: #e8162d !important; }
.lang-item a::after,
.menu-item-language a::after { content: '\f107'; font-family: FontAwesome; margin-left: 5px; font-size: 13px; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #e8162d;; transition: all 0.3s; }
.nav-close { display: none; }
.nav-overlay { display: none; }

/* Scrolled — shrink */
.site-header.scrolled .logo-box { width: 235px; height: 55px; line-height: 55px; padding: 0 12px; }
.site-header.scrolled .logo-box__img { height: 35px; }
.site-header.scrolled .logo-box__svg { width: 18px; height: 18px; }
.site-header.scrolled .logo-box__phone { font-size: 11px; }
.site-header.scrolled .main-nav li a { padding-top: 16px; padding-bottom: 16px; }
.site-header.scrolled .header-bar__inner { min-height: 55px; }

body:not(.home) { padding-top: 80px; }

/* Home: transparent header */
body.home .site-header { background: transparent; box-shadow: none; }
body.home .site-header.scrolled { background: #fbfbfb; box-shadow: 0 4px 14px 0 rgba(50,50,50,0.3); }
body.home .site-header:not(.scrolled) .main-nav li a { color: #a5abb7; }
body.home .site-header:not(.scrolled) .main-nav li a:hover { color: #e8162d; }
body.home .site-header:not(.scrolled) .hamburger span { background: #a5abb7; }

/* =============================================
   SHARED / GLOBAL
   ============================================= */
.section { padding: 70px 0; }
.section--gray { background: #f7f7f7; }
.section--dark { background: #1a1a1a; color: #fff; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title { font-size: 32px; text-transform: uppercase; margin-bottom: 12px; color: #222; }
.section--dark .section-title { color: #fff; }
.section-title::after { content: ''; display: block; width: 50px; height: 3px; background: #e8162d; margin-top: 10px; }
.section-title.centered { text-align: center; }
.section-title.centered::after { margin: 10px auto 0; }
.page-hero { background: #1a1a1a; padding: 50px 0 40px; }
.page-hero h1 { color: #fff; font-size: 30px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.btn-red { display: inline-block; background: #e8162d; color: #fff; padding: 14px 32px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; transition: background 0.2s; border: 2px solid #e8162d; cursor: pointer; font-family: inherit; }
.btn-red:hover { background: #c0101f; color: #fff; }

/* FOOTER */
.site-footer { background: #111; color: #aaa; padding: 30px 0; text-align: center; font-size: 12px; }
.site-footer a { color: #aaa; } .site-footer a:hover { color: #fff; }

/* FORMS (shared) */
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 12px; color: #aaa; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 9px 12px; font-family: inherit; font-size: 13px; background: #fff; border: 1px solid #ddd; color: #333; transition: border-color 0.2s; appearance: none; -webkit-appearance: none; border-radius: 0; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #e8162d; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23666' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.form-group input[type="date"], .form-group input[type="time"] { color: #555; }
.form-group textarea { resize: vertical; min-height: 60px; }
.form-message { display: none; padding: 8px 12px; font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.form-message.visible { display: block; }
.form-message--error { background: #ffebee; color: #c62828; border-left: 3px solid #e8162d; }
.form-message--success { background: #e8f5e9; color: #2e7d32; border-left: 3px solid #43a047; }
.btn-submit { display: block; width: 100%; padding: 14px; background: #e8162d; color: #fff; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border: none; cursor: pointer; transition: background 0.2s; border-radius: 0; font-family: inherit; margin-top: 4px; }
.btn-submit:hover { background: #c0101f; }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

/* CF7 */
.wpcf7 { margin: 0; } .wpcf7 form { margin: 0; } .wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type="text"],.wpcf7 input[type="email"],.wpcf7 input[type="tel"],.wpcf7 input[type="date"],.wpcf7 input[type="time"],.wpcf7 input[type="number"],.wpcf7 select,.wpcf7 textarea { width:100%!important; padding:9px 12px!important; font-family:'Open Sans',sans-serif!important; font-size:13px!important; background:#fff!important; border:1px solid #ddd!important; border-radius:0!important; color:#333!important; box-shadow:none!important; appearance:none; -webkit-appearance:none; }
.wpcf7 input:focus,.wpcf7 select:focus,.wpcf7 textarea:focus { outline:none!important; border-color:#e8162d!important; }
.wpcf7 textarea { resize:vertical; min-height:40px; }
.wpcf7 input[type="submit"] { display:block!important; width:100%!important; padding:14px!important; background:#e8162d!important; color:#fff!important; font-size:14px!important; font-weight:700!important; text-transform:uppercase!important; border:none!important; border-radius:0!important; cursor:pointer!important; margin-top:6px!important; }
.wpcf7 input[type="submit"]:hover { background:#c0101f!important; }
.wpcf7 .cf7-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:12px; }
.wpcf7 .cf7-row>p { margin:0!important; }
.wpcf7 p { margin-bottom:12px!important; }
.wpcf7 p:last-child { margin-bottom:0!important; }
.wpcf7 label { display:block!important; font-size:13px!important; font-weight:600!important; color:#14181c!important; margin-bottom:4px!important; }
.inquiry-card .wpcf7 label { color:#999!important; }
.contact-form-block .wpcf7 label { color:#666!important; }
.cf7-notice { background:rgba(255,255,255,.05); border:1px solid #444; padding:16px; font-size:13px; color:#aaa; line-height:1.6; }
.cf7-notice strong { color:#fff; }

/* UPIT */
#upit-form { margin:0; }
.upit-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:10px; }
.upit-field { display:flex; flex-direction:column; }
.upit-field label { font-size:12px; color:#ccc; margin-bottom:4px; }
.upit-field input,.upit-field select { width:100%; padding:8px 10px; font-size:13px; background:#fff; border:1px solid #ddd; border-radius:0; color:#333; appearance:none; -webkit-appearance:none; }
.upit-field input:focus,.upit-field select:focus { outline:none; border-color:#e8162d; }
.upit-submit { display:block; width:100%; padding:14px; margin-top:12px; background:#e8162d; color:#fff; font-size:14px; font-weight:700; text-transform:uppercase; border:none; cursor:pointer; }
.upit-submit:hover { background:#c0101f; }
.upit-submit:disabled { opacity:.7; cursor:not-allowed; }
.upit-msg { padding:10px 12px; font-size:12px; font-weight:600; margin-bottom:10px; }
.upit-error { background:#ffebee; color:#c62828; border-left:3px solid #e8162d; }
.upit-success { background:#e8f5e9; color:#2e7d32; border-left:3px solid #43a047; }
/* Date / time / select field icons (global) */
.wpcf7-form-control-wrap:has(.wpcf7-date),
.wpcf7-form-control-wrap:has(.skill-time),
.wpcf7-form-control-wrap:has(.wpcf7-select) { position: relative; }

.wpcf7-form-control-wrap:has(.wpcf7-date)::after,
.wpcf7-form-control-wrap:has(.skill-time)::after,
.wpcf7-form-control-wrap:has(.wpcf7-select)::after {
    font-family: FontAwesome;
    position: absolute; right: 10px; top: 18px;
    transform: translateY(-50%);
    color: #bbb; font-size: 13px; font-weight: 400;
    pointer-events: none;
}
.wpcf7-form-control-wrap:has(.wpcf7-date)::after { content: '\f133'; }
.wpcf7-form-control-wrap:has(.skill-time)::after { content: '\f017'; }
.wpcf7-form-control-wrap:has(.wpcf7-select)::after { content: '\f0d7'; }
.wpcf7-form-control-wrap:has(.wpcf7-select) select { appearance: none; -webkit-appearance: none; padding-right: 30px; }
/* Flatpickr disabled (past) dates */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover { color: #ccc; text-decoration: line-through; cursor: not-allowed; }
@media (max-width:520px) { .upit-row { grid-template-columns:1fr; } }

/* WP core */
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1em; }
.aligncenter { display: block; margin: 0 auto; }

/* =============================================
   RESPONSIVE (global)
   ============================================= */
@media (max-width: 768px) {
  .site-header { position: relative; box-shadow: none; }
  .site-header.scrolled { position: relative; box-shadow: none; }
  body:not(.home) { padding-top: 0; }
  body.home .site-header { background: #fff; }
  .logo-box {
    position: absolute; left: auto; top: 0;
    width: auto; height: auto; line-height: normal;
    background: #fff;
    padding: 12px 20px;
    flex: 1;
  }
  .logo-box__img { height: 40px; }
  .logo-box__svg { width: 22px; height: 22px; }
  .logo-box__phone { font-size: 13px; }
  .header-bar__inner { min-height: auto; padding: 7px 15px; }
  .header-bar { border-bottom: 1px solid #eee; }
  .main-nav {
    position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
    background: #14181c; z-index: 9999;
    transition: right 0.3s ease;
    display: flex; flex-direction: column;
    padding-top: 60px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; }
  .main-nav li a { padding: 14px 30px; color: #fff !important; font-size: 16px; letter-spacing: 0.5px; }
  .main-nav li a:hover { color: #e8162d !important; background: rgba(255,255,255,0.03); }
  .main-nav li a::before { display: none !important; }
  .lang-item a::after,
  .menu-item-language a::after { color: #fff; }
  .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9998; }
  .nav-overlay.active { display: block; }
  .nav-close {
    display: block; position: absolute; top: 12px; right: 16px;
    background: none; border: none; color: #fff; font-size: 32px;
    cursor: pointer; line-height: 1; padding: 4px 8px;
  }
  .nav-close:hover { color: #e8162d; }
  .hamburger { display: flex; margin-left: auto; }
  .form-row-2 { grid-template-columns: 1fr; }
  .wpcf7 .cf7-row { grid-template-columns: 1fr; }
  .page-hero {
      padding: 20px 0 20px;
  }
  .page-hero h1 {
    font-size: 28px;
  }
}
@media (max-width: 1024px) {
  .logo-box { width: 250px; height: 55px; line-height: 55px; }
  .logo-box__img { height: 35px; }
  .logo-box__svg { width: 20px; height: 20px; }
  .logo-box__phone { font-size: 12px; }
}
@media (max-width: 480px) {
  .logo-box__img { height: 34px; }
  .logo-box__svg { width: 18px; height: 18px; }
  .logo-box__phone { font-size: 11px; }
}
