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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
}

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

a {
  text-decoration: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.section {
  padding: 100px 0;
}

/* NAV */

.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: white;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

/* Locate your existing logo rules and update them to match this: */

.logo {
  display: flex;
  align-items: center;
  height: 100%; /* Ensures the container stays within the 90px navbar */
}

.logo img {
  width: auto; /* Allows the width to scale proportionally */
  max-width: 180px; /* Keeps your maximum desired width */
  max-height: 60px; /* FORCES the logo to fit comfortably inside the 90px header */
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: #222;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.nav-btn {
  background: #d81f26;
  color: white;
  padding: 14px 24px;
  font-weight: 600;
  border-radius: 4px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #222;
}

/* HERO */

.hero {
  min-height: 100vh;
  background: url("https://scontent-iad6-1.xx.fbcdn.net/v/t39.30808-6/480905599_1225524419573747_4135373740611048788_n.jpg?_nc_cat=106&ccb=1-7&_nc_sid=cc71e4&_nc_ohc=UgFQNSAhRkIQ7kNvwFE4y3m&_nc_oc=AdoMEPqWuhuwse1VksvG3OqhT15b8bpJu7vREj6lMFgA_ehlXzpdNKA2N2WVYI7ni73kuPwKIOhWGdVWzoPvAoXE&_nc_zt=23&_nc_ht=scontent-iad6-1.xx&_nc_gid=Bd4SLi4dVOqPyHln5o5ZCQ&_nc_ss=7b2a8&oh=00_Af7e58dLpG7DszZ-ZJkiJiPmMJxILyAJQVtc7BMp2COrKg&oe=6A194A80")
    center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 120px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}

.top-text {
  color: #d81f26;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 {
  color: white;
  font-size: 68px;
  line-height: 1.05;
  margin-bottom: 25px;
}

.hero-description {
  color: #f1f1f1;
  max-width: 600px;
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.primary-btn,
.secondary-btn {
  padding: 16px 28px;
  font-weight: 700;
  border-radius: 4px;
  display: inline-block;
}

.primary-btn {
  background: #d81f26;
  color: white;
}

.secondary-btn {
  border: 2px solid white;
  color: white;
}

/* FORM */

.hero-form {
  background: white;
  padding: 40px;
  border-radius: 10px;
}

.hero-form h3 {
  margin-bottom: 20px;
  font-size: 28px;
}

.hero-form input,
.hero-form select,
.hero-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  font-family: inherit;
}

.hero-form textarea {
  height: 120px;
  resize: none;
}

.hero-form button {
  width: 100%;
  padding: 16px;
  border: none;
  background: #d81f26;
  color: white;
  font-weight: 700;
  cursor: pointer;
}

/* TRUST */

.trust-bar {
  background: #111;
  color: white;
  padding: 40px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.trust-item h3 {
  color: #d81f26;
  font-size: 30px;
}

/* ABOUT */

.about-grid,
.owner-grid,
.emergency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.section-tag {
  color: #d81f26;
  font-weight: 700;
  margin-bottom: 15px;
}

.about h2,
.services h2,
.owner h2,
.emergency h2,
.reviews h2,
.cta h2 {
  font-size: 48px;
  margin-bottom: 25px;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 35px 0;
}

.feature {
  background: #f5f5f5;
  padding: 14px;
}

/* SERVICES */

.services {
  background: #f8f8f8;
}

.services-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.service-card {
  background: white;
  padding: 40px 30px;
  border-top: 4px solid #d81f26;
}

.service-card span {
  font-size: 40px;
  font-weight: 800;
  color: #d81f26;
}

.service-card h3 {
  margin-top: 20px;
}

/* GALLERY */

.gallery {
  background: #fff;
}

.gallery-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* LOAD MORE FUNCTIONALITY */
.gallery-item.hidden {
  display: none;
}

/* Hide gallery captions on the main grid page */
.gallery-caption {
  display: none;
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5000;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

/* UPDATE THIS BLOCK BELOW */
.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  width: auto; /* Overrides the global width: 100% */
  height: auto; /* Ensures aspect ratio is maintained */
  object-fit: contain; /* Keeps the image contained without distortion */
  border-radius: 10px;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 42px;
  cursor: pointer;
  font-weight: 700;
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column; /* Stacks the image and caption vertically */
  justify-content: center;
  align-items: center;
  z-index: 5000;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90%;
  max-height: 75vh; /* Dropped slightly to leave breathing room for caption */
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

/* ADD THIS NEW CLASS FOR THE LIGHTBOX CAPTION */
.lightbox-caption {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  margin-top: 20px;
  text-align: center;
  max-width: 80%;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 42px;
  cursor: pointer;
  font-weight: 700;
}

/* RESPONSIVE */

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* OWNER */

.owner {
  background: #111;
  color: white;
}

.owner .primary-btn {
  margin-top: 20px;
}

.owner-image img {
  max-width: 400px;
  margin: auto;
}

/* EMERGENCY */

.phone {
  font-size: 28px;
  font-weight: 700;
  margin: 25px 0;
  color: #d81f26;
}

/* REVIEWS */

.reviews {
  background: #f8f8f8;
  text-align: center;
}

.review {
  display: none;
  max-width: 800px;
  margin: auto;
}

.review.active {
  display: block;
}

.review p {
  font-size: 24px;
  margin-bottom: 20px;
}

/* CTA */

.cta {
  background: #d81f26;
  color: white;
  text-align: center;
  padding: 100px 0;
}

.cta-btn {
  display: inline-block;
  margin-top: 25px;
  background: white;
  color: #d81f26;
  padding: 18px 34px;
  font-weight: 700;
}

/* FOOTER */

.footer {
  background: #111;
  color: white;
  padding: 50px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: center; /* Aligns all columns vertically */
}

/* ADD THESE NEW CLASSES BELOW */

.footer-logo-col {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Puts a clean space between the logo and the address text */
}

.footer-logo img {
  width: auto;
  max-width: 160px; /* Keeps the footer logo slightly smaller and balanced */
  max-height: 55px;
  object-fit: contain;
}

.date {
  background-color: #111;
  color: white;
  padding-bottom: 20px;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .hero-content,
  .about-grid,
  .owner-grid,
  .emergency-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 52px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 90px;
    right: -100%;
    flex-direction: column;
    background: white;
    width: 100%;
    padding: 40px;
    transition: 0.4s;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .nav-btn {
    display: none;
  }

  .trust-grid,
  .features,
  .services-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 42px;
  }

  .about h2,
  .services h2,
  .owner h2,
  .emergency h2,
  .reviews h2,
  .cta h2 {
    font-size: 36px;
  }

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

  .footer {
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto;
  }
}
