/*
Theme Name: PRO-AGRO
Theme URI: https://pro-agro.rs/
Author: sala2000
Description: PRO-AGRO
Version: 1.0
Text Domain: proagro
*/

:root {
  --primary: #ef1c23;
  --secondary: #781800;
  --light: #f5f5f5;
  --dark: rgba(0,0,0,0.6);
  --text: #282829;
  --white: #ffffff;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body,
.about-text, .page-content, .post-content, .service-content {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  /* loading: lazy; */
}

/* Typography */
h1, h2, h3, h4, h5, h6,
.page-title, .post-title, .service-title, .section-title {
  color: var(--primary);
  margin-top: 1.5em;
  hyphens: auto;
}

/* .section-title {
  font-size: 34px;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
} */

/* Components */
.btn,
.proagro-btn,
.proagro-btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--white) !important;
  padding: 12px 30px;
  border-radius: 0;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  border: none;
  transition: all 0.3s;
}

.proagro-btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary) !important;
}

.proagro-btn-outline:hover {
  background: var(--primary);
  color: var(--white) !important;
}

/* Header */
.header {
  background: var(--light);
  padding: 15px 0;
}

.header .proagro-btn-primary {
  background-color: var(--primary);
  color: var(--white) !important;
  padding: 10px 25px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
  box-shadow: 0 2px 10px var(--primary);
}

.header .proagro-btn-primary:hover {
  background-color: var(--white);
  color: var(--primary) !important;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--primary);
}

.header .proagro-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px var(--primary);
}

.navbar-brand img {
  height: 60px;
  width: auto;
}

.nav-link {
  font-weight: 600;
  color: var(--text) !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}

/* Cards */
.hero-story,
.news-card,
.service-card {
  background: var(--light);
  border-radius: 0 0 40px 0;
  padding: 20px;
  transition: all 0.3s;
  height: 100%;
  position: relative;
}

.hero-story:hover,
.news-card:hover,
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--dark);
}

.hero-image {
  height: 100%;
  max-height: 400px;
  object-fit: cover;
}

.news-thumbnail,
.service-thumbnail img {
  height: 200px;
  object-fit: cover;
}

.hero-title,
.news-title,
.service-title {
  /* font-size: 26px; */
  margin-bottom: 20px;
}

.hero-title a,
.news-title a,
.service-title a {
  color: var(--primary);
  text-decoration: none;
}

.hero-title a:hover,
.news-title a:hover,
.service-title a:hover {
  color: var(--secondary);
}

.news-meta {
  color: #666;
  font-size: 0.9rem;
}

.read-more {
  position: absolute;
  bottom: 15px;
  right: 15px;
  margin-top: 15;
  text-decoration: none !important;
}

.read-more-icon {
  display: inline-flex;
}

.read-more-icon .bi {
  color: var(--primary);
  font-size: 2.5rem;
}

.read-more:hover .read-more-icon .bi {
  color: var(--secondary);
}

/* Banner */
.proagro-banner {
  width: 100%;
  height: 300px;
  overflow: visible;
  margin-top: 200px;
}

.banner-background {
  background-color: var(--primary);
  height: 100%;
  position: relative;
  z-index: 1;
}

.banner-image-wrapper {
  top: -235px; /* вынос изображения вверх над фоном */
  z-index: 2;
}

.banner-image {
  width: 466px;
  height: 535px;
  display: block;
}

.banner-link {
  font-size: 3rem;
  font-weight: bold;
  color: var(--white);
  text-decoration: none;
  text-align: right;
}

.banner-features li {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.banner-features i {
  color: var(--white);
  margin-right: 5px;
}

/* Footer */
.footer {
  background: linear-gradient(var(--dark), var(--dark));
  color: var(--white);
  padding: 40px 0 20px;
}

.logo_footer img {
    height: 50px;
    width: auto;
}

.footer-title {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-contacts address p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.footer-contacts address .bi {
  margin-right: 8px;
  color: var(--primary);
}

.footer-link {
  color: var(--white) !important;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--primary) !important;
}

.footer-menu {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 10px;
  margin-right: 0;
}

.footer-menu a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
  display: block;
  padding: 5px 0;
}

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

/* Responsive */
@media (max-width: 991.98px) {
  .navbar-collapse {
    padding-top: 20px;
  }

  .section-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .banner-image {
    width: 300px;
    height: auto;
  }

  .banner-image-wrapper {
    top: -80px;
  }

  .banner-link {
    font-size: 1.5rem;
    text-align: center;
    display: block;
    margin-top: 1rem;
  }
}

@media (max-width: 767.98px) {
  .footer .col-md-4 {
    margin-bottom: 30px;
    text-align: left !important;
  }

  .news-thumbnail,
  .service-thumbnail img {
    height: 150px;
  }
}
