/* 
* Car Service - Główny arkusz stylów
* Minimalistyczny, profesjonalny design dla serwisu samochodowego
*/

/* ----- PODSTAWOWE STYLE ----- */
:root {
  --primary-color: #0056b3;
  --secondary-color: #003366;
  --accent-color: #ff4d00;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #333333;
  --text-color: #222222;
  --white: #ffffff;
  --success-color: #28a745;
  --font-main: 'Roboto', 'Arial', sans-serif;
  --transition-speed: 0.3s;
  --border-radius: 4px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

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

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

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

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
  color: var(--secondary-color);
  position: relative;
  padding-bottom: 15px;
}

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

/* ----- PRZYCISKI ----- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  border: none;
  font-size: 1rem;
}

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

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

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.btn-tertiary {
  background-color: var(--light-gray);
  color: var(--dark-gray);
}

.btn-tertiary:hover {
  background-color: var(--medium-gray);
}

/* ----- NAGŁÓWEK ----- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--white);
  box-shadow: var(--box-shadow);
  padding: 15px 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  color: var(--secondary-color);
}

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

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 25px;
}

.main-nav a {
  color: var(--dark-gray);
  font-weight: 500;
  position: relative;
}

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

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

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

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--dark-gray);
  margin-bottom: 5px;
  border-radius: 3px;
  transition: all var(--transition-speed) ease;
}

/* ----- BANER ----- */
.banner {
  background-color: var(--light-gray);
  padding: 80px 0;
}

.banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.banner-content {
  flex: 1;
  padding-right: 40px;
}

.banner-image {
  flex: 1;
}

.banner h1 {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.banner p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--dark-gray);
}

/* ----- SEKCJA O NAS ----- */
.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about-text {
  flex: 1;
  padding-right: 40px;
}

.about-image {
  flex: 1;
}

.about-text p {
  margin-bottom: 20px;
}

/* ----- SEKCJA USŁUGI ----- */
.services-section {
  background-color: var(--light-gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

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

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  margin-bottom: 20px;
}

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

.service-card h3 {
  margin-bottom: 15px;
  color: var(--secondary-color);
}

/* ----- SEKCJA SALON ----- */
.showroom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.showroom-text {
  flex: 1;
  padding-right: 40px;
}

.showroom-image {
  flex: 1;
}

.showroom-text p {
  margin-bottom: 20px;
}

/* ----- SEKCJA DIAGNOSTYKA ----- */
.diagnostics-section {
  background-color: var(--light-gray);
}

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

.diagnostics-image {
  flex: 1;
  padding-right: 40px;
}

.diagnostics-text {
  flex: 1;
}

.diagnostics-text p {
  margin-bottom: 20px;
}

.diagnostics-list {
  list-style-type: none;
  margin-top: 20px;
}

.diagnostics-list li {
  padding: 10px 0;
  padding-left: 25px;
  position: relative;
}

.diagnostics-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-color);
}

/* ----- SEKCJA OPINIE ----- */
.testimonials-section {
  padding: 80px 0;
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-item {
  padding: 30px;
  background-color: var(--light-gray);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  position: relative;
}

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

.testimonial-author {
  font-weight: 700;
  color: var(--secondary-color);
}

/* ----- SEKCJA BLOG ----- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

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

.blog-card:hover {
  transform: translateY(-5px);
}

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

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

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

.blog-content {
  padding: 20px;
}

.blog-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.blog-excerpt {
  margin-bottom: 15px;
  color: var(--dark-gray);
}

.blog-link {
  font-weight: 500;
  color: var(--primary-color);
  display: inline-block;
  position: relative;
}

.blog-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-speed) ease;
}

.blog-link:hover::after {
  width: 100%;
}

/* ----- SEKCJA KONTAKT ----- */
.contact-section {
  background-color: var(--light-gray);
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.contact-info {
  padding: 30px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-info h3,
.subscription-form-container h3 {
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.contact-info address {
  font-style: normal;
  margin-bottom: 25px;
}

.contact-info address p {
  margin-bottom: 5px;
}

.working-hours {
  margin-bottom: 25px;
}

.working-hours h4,
.social-media h4 {
  margin-bottom: 10px;
  color: var(--dark-gray);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-gray);
  color: var(--dark-gray);
  transition: all var(--transition-speed) ease;
}

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

.subscription-form-container {
  padding: 30px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.subscription-form-container p {
  margin-bottom: 20px;
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--dark-gray);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  font-size: 1rem;
}

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

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 5px;
}

.checkbox-group label {
  font-size: 0.9rem;
}

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

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

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo-img {
  height: 40px;
  margin-bottom: 10px;
  filter: brightness(0) invert(1);
}

.footer-logo-text {
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--white);
}

.footer ul {
  list-style: none;
}

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

.footer a {
  color: var(--medium-gray);
}

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

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

/* ----- COOKIE CONSENT ----- */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  z-index: 1000;
  display: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-content h3 {
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.cookie-content p {
  margin-bottom: 15px;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-btn {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* ----- COOKIE SETTINGS MODAL ----- */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
}

.modal-content {
  background-color: var(--white);
  margin: 10% auto;
  padding: 20px;
  border-radius: var(--border-radius);
  max-width: 600px;
  box-shadow: var(--box-shadow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--medium-gray);
}

.close {
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  margin-bottom: 20px;
}

.cookie-option {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--light-gray);
}

.cookie-option:last-child {
  border-bottom: none;
}

.cookie-option label {
  font-weight: 500;
  margin-left: 10px;
}

.cookie-option p {
  margin-top: 5px;
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin-left: 25px;
}

.modal-footer {
  text-align: right;
}

/* ----- STRONA PODZIĘKOWANIA ----- */
.thanks-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thanks-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.thanks-icon {
  margin-bottom: 20px;
  color: var(--success-color);
}

.thanks-icon svg {
  width: 80px;
  height: 80px;
}

.thanks-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.thanks-message {
  margin-bottom: 30px;
}

/* ----- RESPONSYWNOŚĆ ----- */
@media (max-width: 992px) {
  .section {
    padding: 60px 0;
  }

  .banner h1 {
    font-size: 2.5rem;
  }

  .banner {
    padding: 60px 0;
  }

  .about-content,
  .showroom-content,
  .diagnostics-content {
    flex-direction: column;
  }

  .about-text,
  .showroom-text {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .diagnostics-image {
    order: 2;
    padding-right: 0;
    margin-top: 40px;
  }

  .diagnostics-text {
    order: 1;
  }

  .banner .container {
    flex-direction: column;
  }

  .banner-content {
    padding-right: 0;
    margin-bottom: 40px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-open {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
  }

  .mobile-menu-open ul {
    flex-direction: column;
  }

  .mobile-menu-open li {
    margin: 10px 0;
  }

  .testimonials-slider {
    padding: 0 20px;
  }

  .cookie-buttons {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 40px 0;
  }

  .banner {
    padding: 40px 0;
  }

  .banner h1 {
    font-size: 2rem;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: 20px;
  }

  .modal-content {
    margin: 20% auto;
    width: 90%;
  }
}

.article-image img {
  margin: 0 auto;
}