/* home.css - Homepage-only styles */

html { scroll-behavior: smooth; }

.home-page .hero-inner{
  max-width:1100px;
  margin:0 auto;
  padding:0 20px;
  text-align:center;
}

.home-page .hero-actions{
  display:flex;
  justify-content:center;
  gap:18px;
  margin:20px 0 28px;
  flex-wrap:wrap;
}

.home-page .hero-cta{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 22px;
  border-radius:10px;
  font-weight:700;
  font-size:1rem;
  text-decoration:none;
  white-space:nowrap;
}

/* Call + Quote = white */
.home-page .hero-cta.phone,
.home-page .hero-cta.quote{
  background:#fff;
  color:#005bd1;
}

/* Completed jobs = blue */
.home-page .hero-cta.scroll{
  background:rgba(255,255,255,0.15);
  color:#fff;
}

.home-page .hero-cta.scroll:hover{
  background:rgba(255,255,255,0.25);
}

/* Centre the highlights properly */
.home-page .welcome-highlights{
  max-width:600px;
  margin:22px auto 18px;
  text-align:center;
  line-height:1.8;
}

/* Completed jobs section */
.home-page #completed-jobs{
  scroll-margin-top:120px;
  padding:80px 20px;
  text-align:center;
  color:#fff;
  background:#005bd1;
}

.home-page #completed-jobs h2,
.home-page #completed-jobs > p{
  color:#fff;
}

/* Job cards */
.home-page .jobs-grid{
  max-width:1100px;
  margin:28px auto 0;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap:18px;
  text-align:left;
}

.home-page .job-card{
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(0,0,0,0.14);
  margin:0;
}

.home-page .job-card a{
  display:block;
}

.home-page .job-card img{
  width:100%;
  height:340px;
  object-fit:cover;
  object-position: top center;
  display:block;
}

.home-page .job-info{
  padding:16px;
}

.home-page .job-info h3{
  margin:0 0 6px;
  font-size:1.1rem;
  color:#111;
}

.home-page .job-location{
  margin:0;
  font-size:0.95rem;
  opacity:0.75;
  color:#111;
}

.home-page .job-description{
  margin-top:8px;
  font-size:0.95rem;
  line-height:1.5;
  color:#333;
}

@media (max-width:900px){
  .home-page .jobs-grid{ grid-template-columns:1fr; }
}

@media (max-width:600px){
  .home-page .job-card img{ height:220px; }
}

/* Lightbox */
.home-page .lightbox{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.home-page .lightbox.is-open{
  display: block;
}

.home-page .lightbox-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
}

.home-page .lightbox-content{
  position: relative;
  max-width: min(1000px, 92vw);
  margin: 6vh auto 0;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.home-page .lightbox-content img{
  width: 100%;
  height: auto;
  display: block;
}

.home-page .lightbox-caption{
  margin: 0;
  padding: 12px 16px;
  color: #fff;
  font-size: 0.95rem;
  background: rgba(0,0,0,0.6);
}

.home-page .lightbox-close{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.home-page .lightbox-close:hover{
  background: rgba(0,0,0,0.85);
}

/* Rating row */
.rating-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.stars {
  color: #ffc107;
  font-size: 18px;
  letter-spacing: 2px;
}

.rating-text {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

/* Facebook icon */
.facebook-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #1877f2;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.facebook-link:hover {
  background: #145dbf;
  transform: scale(1.1);
}
