/* ===================================
   MOTOROIL - Avtomobilska trgovina
   CSS Stylesheet
   =================================== */

/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* === CSS VARIABLES === */
:root {
  --primary-color: #7C2843;
  --primary-hover: #651F32;
  --primary-dark: #5F1F33;
  --text-dark: #27272a;
  --text-gray: #52525b;
  --text-light: #71717a;
  --bg-white: #ffffff;
  --bg-gray: #fafafa;
  --bg-gray-100: #f4f4f5;
  --bg-dark: #18181b;
  --border-gray: #e4e4e7;
  --border-radius: 5px;
}

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-gray);
}

/* === CONTAINER & LAYOUT === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

/* === HEADER === */
.header {
  background-color: var(--bg-dark);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  height: 32px;
  width: auto;
}

/* === NAVIGATION === */
.nav {
  display: flex;
  gap: 0.75rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  background-color: #27272a;
  color: white;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.nav-link:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 40, 67, 0.3);
}

.nav-link.active {
  background-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(124, 40, 67, 0.3);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-nav {
  display: none;
  padding-bottom: 1rem;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  color: white;
  transition: color 0.3s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--primary-color);
}

#close-icon {
  display: none;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(124, 40, 67, 0.4);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

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

.btn-white:hover {
  background-color: var(--bg-gray-100);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.btn-icon {
  width: 24px;
  height: 24px;
}

/* === HERO SECTION === */
.hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
  background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(24, 24, 27, 0.85) 0%, rgba(24, 24, 27, 0.7) 50%, rgba(24, 24, 27, 0.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 5rem 0;
  animation: fadeInUp 0.6s ease-out;
}

.hero h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: #d4d4d8;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* === CARDS === */
.card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-8px);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img {
  transform: scale(1.1);
}

.card-content {
  padding: 1.5rem;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.card-category {
  color: var(--primary-color);
  font-weight: 500;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.card:hover .card-title {
  color: var(--primary-color);
}

.card-text {
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.card-link {
  color: var(--primary-color);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.card:hover .card-link {
  color: var(--primary-hover);
  gap: 0.75rem;
}

/* === GRID === */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* === FEATURES === */
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateX(8px);
}

.feature-icon {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-content h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.feature-content p {
  font-size: 0.95rem;
  color: var(--text-gray);
}

/* === PARTNERS CAROUSEL === */
.partners-carousel {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
}

.partners-gradient-left,
.partners-gradient-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 128px;
  z-index: 10;
  pointer-events: none;
}

.partners-gradient-left {
  left: 0;
  background: linear-gradient(90deg, white 0%, transparent 100%);
}

.partners-gradient-right {
  right: 0;
  background: linear-gradient(270deg, white 0%, transparent 100%);
}

.partners-track {
  display: flex;
  /*gap: 3rem;*/
  width: max-content;
  animation: scroll 50s linear infinite;
	animation-duration: unset;
  will-change: transform;
}

.partner-logo {
  height: 80px;
  width: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-gray);
  border-radius: 8px;
  background: white;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-gray);
  letter-spacing: 0.05em;
  margin-right: 3rem;
}

.partner-logo img {
	padding: 10px;
	max-width: 100%;
	max-height: 100%;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* === CONTACT CARDS === */
.contact-card {
  background: var(--bg-gray);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.contact-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.contact-icon-wrapper {
  width: 48px;
  height: 48px;
  background: rgba(124, 40, 67, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.contact-icon {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
}

.contact-info {
  font-size: 0.875rem;
  color: var(--text-gray);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
}

/* === CTA SECTION === */
.cta-section {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

.cta-section h2 {
  color: white;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
}

/* === FOOTER === */
.footer {
  background-color: var(--bg-dark);
  color: white;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer p,
.footer a {
  color: #a1a1aa;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-contact-icon {
  width: 24px;
  height: 24px;
}

.footer-bottom {
  border-top: 1px solid #27272a;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom img {
  display: inline;
}

.footer-logo {
  height: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 1;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-fadeInRight {
  animation: fadeInRight 0.6s ease-out;
}

/* === UTILITY CLASSES === */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color);
}

.bg-white {
  background-color: var(--bg-white);
}

.bg-gray {
  background-color: var(--bg-gray);
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-8 {
  margin-top: 2rem;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-4 {
  gap: 1rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  /* Navigation */
  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  /* Typography */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* Hero */
  .hero {
    min-height: 500px;
  }

  .hero-content {
    padding: 3rem 0;
  }

  /* Grids */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

  /* Buttons */
  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  /* Cards */
  .card-img {
    height: 240px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .section {
    padding: 2rem 0;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

/* === FORMS === */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-gray);
  border-radius: var(--border-radius);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(124, 40, 67, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* === SECTION HEADERS === */
.section-header {
  margin-bottom: 3rem;
}

.section-subtitle {
  color: var(--text-gray);
  font-size: 1.125rem;
  max-width: 700px;
}

.section-header.text-center .section-subtitle {
  margin: 0 auto;
}

/* === LINK WITH ARROW === */
.link-arrow {
  color: var(--primary-color);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.link-arrow:hover {
  color: var(--primary-hover);
  gap: 0.75rem;
}

/* === IMAGE CONTAINER === */
.img-container {
  position: relative;
  height: 400px;
  background-color: var(--bg-gray-100);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.img-container:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.img-container:hover img {
  transform: scale(1.05);
}






.form-feedback .msg-error {
	font-size: 1.1em;
	color: #ffffff;
	padding: 10px;
	margin: 0 0 30px 0;
	border-radius: 5px;
	text-align: center;
	background-color: #cf0000;
}

.form-feedback .msg-success {
	font-size: 1.1em;
	color: #ffffff;
	padding: 10px;
	margin: 0 0 30px 0;
	border-radius: 5px;
	text-align: center;
	background-color: #078603;
}

