* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #333;
  background-color: #fafafa;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background: #ffffff;
  border-bottom: 1px solid #ddd;
  height: 100px;
}

.site-brand {
  display: flex;
  align-items: center;
}

.site-logo {
  height: 50px;
  width: auto;
  margin-right: 15px;
}

.site-brand h1 {
  margin: 0;              /* important */
  font-size: 1.4rem;      
}

.site-header a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
}

.hero {
  padding: 80px 40px;
  text-align: center;
  background-image: url('../images/hero-background1.jpg');
  background-size: cover;       /* Makes image cover entire hero */
  background-position: center;  /* Centers the image */
  background-repeat: no-repeat; /* Don’t repeat the image */
  background-color: #f0f0f0;
  color: rgb(255, 255, 255);
}

@media (max-width: 768px) {
  .hero {
    background-image: url('../images/hero-mobile.jpg');
    height: 350px;
  }
}

.hero-text-overlay {
  display: inline-block;  /* Shrink box to fit content */
  /* rest of your styles */
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px 30px;
  border-radius: 8px;
  max-width: 400px;
  text-align: center;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero > * {
  position: relative;  /* Ensures text appears above the overlay */
  z-index: 2;
}

.hero .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: #333;
  color: #fff;
  text-decoration: none;
}

.container {
  max-width: 1800px;   /* adjust if needed */
  margin: 0 auto;
  padding: 0 40px;     /* consistent side spacing */
}

.section {
  padding: 60px 0;
}

@media (max-width: 600px) {
  .section {
    padding: 40px 20px;
  }
}

.section.light {
  background: #ffffff;
}


.section#services {
  background-color: #f9f9f9; /* optional light background */
  
}

#services h3 {
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #222;
  letter-spacing: 0.03em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #ddd;
  text-align: center;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* keeps content starting at top */
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  /* optional shadow for “floating” look */
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Bigger images for About section cards */
#about .card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 8px;
}



.card h4 {
  margin-top: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: #222;
}

.card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card:hover .card-img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.card-img {
  width: 80px;        /* or 100% for full card width */
  height: 80px;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 8px; /* optional rounded corners */
}

#about > h3 {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #222;
  letter-spacing: 0.03em;
}

.about-text {
  max-width: 700px;
  margin-bottom: 30px;
  line-height: 1.6;
}


.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.contact-form {
  max-width: 500px;
  margin: 30px auto 0; /* centers horizontally */
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
}

.contact-form button {
  padding: 12px;
  width: 100%;
  background: #333;
  color: white;
  border: none;
  cursor: pointer;
}

/* Hide honeypot */
.contact-form input[name="company"] {
  display: none;
}

.site-footer {
  padding: 20px;
  text-align: center;
  background: #333;
  color: #fff;
}

/* Make about cards clickable */
.lightbox-trigger {
  cursor: zoom-in;
  text-decoration: none;
}

/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

/* Show when targeted */
.lightbox:target {
  opacity: 1;
  pointer-events: auto;
}

/* Large image */
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  cursor: zoom-out;
}

/* ===== Before / After Comparison ===== */

.before-after-center {
  display: flex;
  justify-content: center;
  width: 100%;
}

.before-after-wrapper {
  width: 100%;
  max-width: 900px;
  text-align: center;
}


.before-after-wrapper {
  max-width: 900px;
  margin-top: 40px auto;
  text-align: center;
}

.before-after-wrapper h3 {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #222;
}

.before-after {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.before-after img {
  width: 100%;
  display: block;
  max-height: 520px;
}

.before-after .after-img {
  position: absolute;
  top: 0;
  left: 0;
  clip-path: inset(0 50% 0 0);
  height: 520px;
  object-fit: cover;
}

/* Slider */
.ba-slider {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  appearance: none;
  height: 4px;
  background: rgba(255,255,255,0.8);
  cursor: pointer;
}

.ba-slider::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  background: #333;
  border-radius: 50%;
  border: 2px solid #fff;
}

