/* -----------------------------------
    MJG Renovations LLC
    Red | Black | White Corporate Theme
----------------------------------- */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background: #ffffff;
  color: #111;
}

/* ---------------- TOP NAVIGATION ---------------- */
.top-nav {
  width: 100%;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2em 5%;
  border-bottom: 2px solid #c90000;
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: wrap; /* prevent overflow */
}

.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8em;
  color: #c90000;
}

/* Nav menu */
.top-nav ul {
  list-style: none;
  display: flex;
  gap: 2em;
}

.top-nav ul li a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
  transition: 0.3s;
}

.top-nav ul li a:hover,
.top-nav ul li a.active {
  color: #c90000;
}

.cta-btn {
  background: #c90000;
  color: #fff;
  padding: 0.7em 1.4em;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.cta-btn:hover {
  background: #a00000;
}

/* ---------------- HERO SECTION ---------------- */
.hero {
  width: 100%;
  height: 75vh;
  background: url("../images/house.jpg") center/cover no-repeat;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}



.hero-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
}

.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  max-width: 700px;
  padding: 2em;
}

.hero-content h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 0.7em;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 1.2em;
}

.hero-btn {
  background: #c90000;
  padding: 0.9em 1.7em;
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.hero-btn:hover {
  background: #a00000;
}
/* ---------------- HAMBURGER MENU (MOBILE) ---------------- */

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #c90000;
  transition: 0.3s;
  border-radius: 3px;
}

/* Animate into X */
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* MOBILE NAV MENU */
@media (max-width: 800px) {

  .hamburger {
    display: flex;
  }

  .top-nav ul {
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    text-align: center;
    padding: 1.5em 0;
    gap: 1.5em;

    /* Hidden by default */
    max-height: 0;
    overflow: hidden;
    transition: 0.35s ease-in-out;
    border-bottom: 2px solid #c90000;
  }

  /* Open state */
  .top-nav ul.open {
    max-height: 400px; /* enough space for menu */
  }

  .top-nav ul li a {
    font-size: 1.2rem;
  }
}



/* ---------------- INTRO SECTION ---------------- */
.intro {
  background: #ffffff;
  text-align: center;
  padding: 4em 10%;
  font-size: 1.3rem;
  color: #222;
}

.intro-link {
  display: inline-block;
  margin-top: 1.5em;
  color: #c90000;
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
}

.intro-link:hover {
  text-decoration: underline;
}

/* ---------------- SERVICES PREVIEW ---------------- */
.services-preview {
  display: flex;
  justify-content: center;
  gap: 2em;
  padding: 3.5em 10%;
  background: #8B0000;
  flex-wrap: wrap; /* makes them wrap for mobile */
}

/* Service Card */
.service-box {
  background: #ffffff;
  padding: 2em;
  width: 30%;
  min-width: 260px;
  border-left: 5px solid #c90000;
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  transition: transform 0.25s ease;
  text-align: left;
}

.service-box:hover {
  transform: translateY(-5px);
}

/* Service Image */
.service-box img {
  width: 100%;
  height: 500px;
  object-fit: cover;    /* keeps image proportional */
  border-radius: 6px;
  margin-bottom: 1em;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Title */
.service-box h3 {
  font-size: 1.5rem;
  margin-bottom: 0.6em;
  font-weight: 700;
  color: #111;
}

/* Text */
.service-box p {
  font-size: 1rem;
  color: #444;
}

/* Responsive (Phones/Tablets) */
@media (max-width: 768px) {
  .services-preview {
    flex-direction: column;
    align-items: center;
    padding: 2.5em 5%;
  }

  .service-box {
    width: 90%;
  }
}



/* ===================== GALLERY GRID ===================== */

.gallery-grid {
  width: 90%;
  margin: 3em auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5em;
  padding-bottom: 3em;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Large images automatically fit nicely */
.gallery-grid img.tall {
  grid-row: span 2;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1em;
  }
}
/* ===================== LIGHTBOX POPUP ===================== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1.5em;
}

.lightbox-img {
  max-width: 95%;
  max-height: 90%;
  border-radius: 6px;
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
  animation: fadeIn 0.3s ease;
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 3rem;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s ease;
  z-index: 10000;
}

.close-lightbox:hover {
  color: #c90000;
  transform: scale(1.1);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}



/* ================= FOOTER (RUAN STYLE) ================= */

.mjg-footer {
  background: #2b2b2b;
  color: #fff;
  padding: 3em 8%;
  margin-top: 3em;
  font-size: 1rem;
}

/* TOP ROW */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2em;
  margin-bottom: 2em;
}

.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2em;
  font-weight: bold;
  color: #c90000;
}

.footer-actions a {
  color: #fff;
  font-weight: 600;
  margin-right: 2em;
  text-decoration: none;
  transition: 0.3s;
}

.footer-actions a:hover {
  color: #c90000;
}

.footer-social a img {
  width: 26px;
  height: 26px;
  margin-left: 1em;
  opacity: 0.85;
  transition: 0.3s;
}

.footer-social a img:hover {
  opacity: 1;
}

/* MID NAV */
.footer-nav {
  text-align: center;
  margin: 2em 0;
}

.footer-nav a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  margin: 0 0.7em;
  transition: 0.3s;
}

.footer-nav span {
  color: #c90000;
  margin: 0 0.7em;
}

.footer-nav a:hover {
  color: #c90000;
}

/* BOTTOM ROW */
.footer-bottom {
  text-align: center;
  color: #bbb;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: #fff;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #c90000;
}

/* MOBILE FOOTER */
@media (max-width: 800px) {
  .footer-actions {
    display: flex;
    flex-direction: column;
    gap: 0.7em;
  }
  .footer-social {
    margin: 0 auto;
  }
}

/* ---------------- RESPONSIVE BREAKPOINTS ---------------- */

/* Tablets */
@media (max-width: 900px) {
  .top-nav ul {
    gap: 1.2em;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .services-preview {
    padding: 3em 5%;
  }

  .service-box {
    width: 45%;
  }
}




/* ---------------- PHONES (max-width: 768px) ---------------- */
@media (max-width: 900px) {

  /* Top Navigation Layout */
  .top-nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1em 1.2em;
  }

  /* Hide full menu on phones */
  .top-nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    background: #fff;
    padding: 1.5em 0;
    gap: 1.2em;
    border-bottom: 2px solid #c90000;
    position: absolute;
    top: 70px;
    left: 0;
    transition: 0.3s ease;
  }

  /* Show menu when hamburger is active */
  .top-nav ul.open {
    display: flex;
  }

  /* Show hamburger on phones */
  .hamburger {
    display: flex !important;
  }

  /* Hero section */
  .hero {
    height: 60vh;
  }
  

  .hero-content h1 {
    font-size: 1.9rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  /* Intro section */
  .intro {
    font-size: 1.1rem;
    padding: 3em 6%;
  }

  /* Services stack vertically */
  .services-preview {
    flex-direction: column;
    align-items: center;
  }

  .service-box {
    width: 90%;
  }
}

