/* 
* Main Stylesheet for obzhigayuschaya-kolbasa.com
* A real estate website in German
*/

/* === Base Styles === */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --text-light: #777;
  --border-color: #ddd;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 4px;
  
  --container-width: 1200px;
  --header-height: 80px;
}

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

body {
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
  font-size: 16px;
}

img, svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  text-align: center;
}

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

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

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

.btn-tertiary {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-tertiary:hover {
  background-color: var(--light-color);
  color: var(--text-color);
}

/* === Layout Components === */

/* Header */
.header {
  position: sticky;
  top: 0;
  background-color: white;
  box-shadow: var(--shadow);
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
}

.logo a {
  display: flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.5rem;
}

.logo img {
  height: 50px;
  margin-right: 10px;
}

.main-nav ul {
  display: flex;
}

.main-nav li {
  margin-left: 1.5rem;
}

.main-nav a {
  color: var(--text-color);
  font-weight: 600;
  position: relative;
}

.main-nav a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.main-nav a:hover:after,
.main-nav a:focus:after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: var(--transition);
}

/* Banner Section */
.banner {
  padding: 80px 0;
  background-color: var(--light-color);
  position: relative;
}

.banner-content {
  max-width: 600px;
}

.banner h1 {
  margin-bottom: 1.5rem;
}

.banner-image {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  max-width: 50%;
}

/* Section Common Styles */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.section-header h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* About Section */
.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
}

.about-text {
  flex: 1;
}

.about-features {
  margin-top: 20px;
}

.about-features li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

.about-features li:before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success-color);
  font-weight: bold;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 30px;
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
  margin: 0 auto 20px;
  width: 80px;
  height: 80px;
}

/* Properties Section */
.properties-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  background: none;
  border: none;
  padding: 8px 15px;
  margin: 0 5px 10px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-light);
  transition: var(--transition);
  border-radius: var(--border-radius);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--secondary-color);
  color: white;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.property-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background-color: white;
  transition: var(--transition);
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.property-image {
  height: 200px;
  overflow: hidden;
}

.property-content {
  padding: 20px;
}

.property-tag {
  display: inline-block;
  background-color: var(--success-color);
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.property-location {
  color: var(--text-light);
  margin-bottom: 15px;
}

.property-features {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 15px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.property-features span {
  margin-right: 15px;
  position: relative;
}

.property-features span:after {
  content: '•';
  position: absolute;
  right: -10px;
}

.property-features span:last-child:after {
  display: none;
}

.property-price {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-color);
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--light-color);
}

.testimonials-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 30px;
  padding: 20px 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.testimonials-slider::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 20px);
  scroll-snap-align: start;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.testimonial-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
}

.testimonial-content {
  text-align: center;
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author h4 {
  margin-bottom: 5px;
}

.testimonial-author p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background-color: white;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-content {
  padding: 20px;
}

.blog-date {
  display: block;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.blog-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  position: relative;
}

.read-more:after {
  content: '»';
  margin-left: 5px;
  transition: var(--transition);
}

.read-more:hover:after {
  margin-left: 10px;
}

.blog-cta {
  text-align: center;
  margin-top: 40px;
}

/* Contact Section */
.contact-section {
  background-color: var(--light-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}

.contact-info {
  padding-right: 30px;
}

.contact-details {
  margin: 30px 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-item svg {
  margin-right: 15px;
  flex-shrink: 0;
}

.contact-item h4 {
  margin-bottom: 5px;
}

.social-media h4 {
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--light-color);
  border-radius: 50%;
  margin-right: 10px;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--secondary-color);
}

.social-icons a:hover svg path {
  fill: white;
}

/* Subscription Form */
.subscription-form {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.form-container {
  padding: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.form-group.checkbox {
  display: flex;
  align-items: center;
}

.form-group.checkbox input {
  width: auto;
  margin-right: 10px;
}

.form-group.checkbox label {
  margin-bottom: 0;
  font-weight: normal;
}

/* Map */
.map-section {
  padding: 40px 0;
}

.map-container {
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-logo {
  flex: 0 0 100%;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
}

.footer-logo img {
  height: 50px;
  margin-right: 10px;
}

.footer-links {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
}

.footer-column {
  flex: 1;
  min-width: 170px;
  margin-bottom: 30px;
}

.footer-column h4 {
  color: white;
  margin-bottom: 20px;
  position: relative;
}

.footer-column h4:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Thank You Page */
.thank-you-section {
  padding: 120px 0;
  text-align: center;
}

.thank-you-content {
  max-width: 600px;
  margin: 0 auto;
}

.thank-you-image {
  margin-bottom: 30px;
}

.thank-you-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* Legal Pages */
.legal-section {
  padding: 80px 0;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  margin-bottom: 10px;
}

.last-updated {
  color: var(--text-light);
  margin-bottom: 40px;
}

.legal-section-item {
  margin-bottom: 40px;
}

.legal-section-item h2 {
  margin-bottom: 20px;
}

.legal-section-item h3 {
  margin-top: 25px;
  margin-bottom: 15px;
}

.legal-section-item ul,
.legal-section-item ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.legal-section-item ul li,
.legal-section-item ol li {
  margin-bottom: 10px;
  list-style-type: disc;
}

.legal-section-item ol li {
  list-style-type: decimal;
}

.cookie-settings-button {
  margin-top: 20px;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid var(--border-color);
  padding: 10px 15px;
  text-align: left;
}

.cookie-table th {
  background-color: var(--light-color);
  font-weight: 600;
}

/* Blog Page */
.blog-header {
  background-color: var(--primary-color);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.blog-header h1 {
  color: white;
  margin-bottom: 10px;
}

.blog-main {
  padding: 60px 0;
}

.newsletter-section {
  background-color: var(--light-color);
  padding: 60px 0;
  text-align: center;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form-group {
  display: flex;
  margin: 20px 0;
}

.newsletter-form-group input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  border-right: none;
}

.newsletter-form-group button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.newsletter-form-check {
  text-align: left;
  margin-top: 10px;
}

/* Article Page */
.article-section {
  padding: 60px 0;
}

.article-header {
  margin-bottom: 40px;
}

.article-meta {
  color: var(--text-light);
  margin-bottom: 20px;
}

.article-date {
  margin-right: 15px;
}

.article-image {
  margin-bottom: 30px;
}

.article-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
}

.article-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.article-content ul,
.article-content ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.article-content ul li,
.article-content ol li {
  margin-bottom: 10px;
  list-style-type: disc;
}

.article-share {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.social-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--light-color);
  border-radius: 50%;
  transition: var(--transition);
}

.social-button:hover {
  background-color: var(--secondary-color);
}

.social-button:hover svg path {
  fill: white;
}

.article-related {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.related-articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.related-article {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.related-article img {
  height: 150px;
  object-fit: cover;
}

.related-article h4 {
  padding: 15px;
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .banner-image {
    position: static;
    transform: none;
    max-width: 100%;
    margin-top: 40px;
  }
  
  .banner-content {
    max-width: 100%;
  }
  
  .testimonial-card {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (max-width: 992px) {
  :root {
    --header-height: 70px;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-image {
    margin-bottom: 30px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: var(--shadow);
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
  }
  
  .main-nav.active {
    height: calc(100vh - var(--header-height));
  }
  
  .main-nav ul {
    flex-direction: column;
    padding: 20px;
  }
  
  .main-nav li {
    margin: 0 0 15px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .testimonial-card {
    flex: 0 0 100%;
  }
  
  .footer-logo {
    margin-bottom: 20px;
  }
  
  .footer-column {
    flex: 0 0 50%;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .newsletter-form-group {
    flex-direction: column;
  }
  
  .newsletter-form-group input {
    border-radius: var(--border-radius);
    border-right: 1px solid var(--border-color);
    margin-bottom: 10px;
  }
  
  .newsletter-form-group button {
    border-radius: var(--border-radius);
  }
  
  .footer-column {
    flex: 0 0 100%;
  }
  
  .thank-you-actions {
    flex-direction: column;
  }
  
  .thank-you-actions .btn {
    margin-bottom: 10px;
  }
}
