/* Style sheet for Reparații PC Piatra Neamț website */

/* Global styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #103a60; /* dark blue for text */
  line-height: 1.6;
  background-color: #ffffff;
}

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

/* Container used to constrain content width */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Header and navigation */
header {
  background: #0056b3; /* vibrant blue for header */
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 999;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}
header .logo a {
  color: #fff;
  font-size: 1.3rem;
  font-weight: bold;
  text-decoration: none;
}
header nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}
header nav ul li {
  margin-left: 1rem;
}
header nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem;
  transition: opacity 0.3s ease;
}
header nav ul li a:hover {
  opacity: 0.8;
}

/* Hero section with background illustration */
.hero {
  position: relative;
  background-image: url('assets/repair_in_progress.jpg'); /* realistic hero */
  background-size: cover;
  background-position: center;
  height: 60vh;
  color: #fff;
}
.hero .overlay {
  background: rgba(0, 0, 0, 0.35); /* lighter overlay to show image */
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}
.hero h1 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background: #007acc; /* primary button color */
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}
.btn:hover {
  background: #0056b3; /* darker on hover */
}
/* Buttons with WhatsApp action use white text on dark backgrounds */
/* WhatsApp buttons now use darker colours for improved contrast */
/*
  WhatsApp buttons should have sufficient contrast between the foreground
  (white text) and the background colour to meet accessibility guidelines.
  The previous colours (#128c7e / #0f6c60) were flagged by Google's
  accessibility audit for insufficient contrast.  The new colours below
  are darker and provide a higher contrast ratio with white text.
*/
.whatsapp-button {
  background: #006c5d; /* dark teal for high contrast */
  color: #ffffff;
}
.whatsapp-button:hover {
  background: #00564a; /* slightly darker on hover */
}

/* Testimonials section styles */
.testimonials {
  background-color: #f9fbff;
  padding: 2rem 0;
}
.testimonial-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.testimonial {
  background: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.testimonial .author {
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Section backgrounds */
.about-home,
.services-preview,
.blog-preview {
  background-color: #f0f7ff; /* light blue sections for vibrance */
}

/* Services grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.service-item {
  background: #ffffff;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.service-item h3 {
  margin-top: 0;
  color: #0f3d5e;
}

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.blog-item {
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.blog-item img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}
.blog-item h3 {
  margin: 0.5rem;
  font-size: 1.1rem;
}
.blog-item p {
  margin: 0 0.5rem 0.5rem;
  font-size: 0.9rem;
}

/* Call to action section */
.cta {
  background: #0056b3; /* same as header for consistency */
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}
.cta .btn {
  background: #fff;
  color: #0056b3;
  margin-top: 1rem;
}
.cta .btn:hover {
  background: #e5e5e5;
}

/* Footer styles */
footer {
  background: #003c80;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

/* Responsive image helper */
.responsive-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1rem 0;
}

/* Service list in services page */
.service-list h2 {
  margin-top: 2rem;
  color: #0f3d5e;
}
.service-list ul {
  list-style: disc;
  margin-left: 1.5rem;
}
.service-list ul li {
  margin-bottom: 0.5rem;
}

/* Styled container for services page */
.service-list {
  background: #f0f7ff;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Blog article styles */
.article-content {
  max-width: 800px;
  margin: 0 auto;
}
.article-content h1,
.article-content h2,
.article-content h3 {
  color: #0f3d5e;
}
.article-content p {
  margin-bottom: 1rem;
  font-size: 1rem;
}
.article-content ul {
  list-style: disc;
  margin-left: 1.5rem;
}
.article-content ul li {
  margin-bottom: 0.5rem;
}

/* Contact form styles */
.contact-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-form {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.contact-form .form-group {
  margin-bottom: 1rem;
}
.contact-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.3rem;
  color: #103a60;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ced3dc;
  border-radius: 4px;
  font-size: 1rem;
}
.contact-form textarea {
  resize: vertical;
}
.contact-info {
  background: #f0f7ff;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  color: #103a60;
}
.contact-info h2 {
  margin-top: 0;
  color: #0056b3;
}
.contact-info p {
  margin-bottom: 1rem;
}

/* Media queries for small screens */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  header .container {
    flex-direction: column;
    align-items: flex-start;
  }
  header nav ul {
    flex-direction: column;
    width: 100%;
  }
  header nav ul li {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

/* ------------------------------------------------------------------ */
/* Logo image sizing */
/* The logo image is displayed inside the header and should scale down */
/* gracefully. The height property controls its rendered size; the */
/* width will adjust automatically to preserve the aspect ratio. */
header .logo img {
  /* Increased logo height for better visibility */
  height: 80px;
  margin-right: 0.5rem;
  vertical-align: middle;
}