/* Global styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;  /* just in case */
  overflow-y: auto;
  padding-top: 40px;
}

.site-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 20px;
}

/* Logo section */
.site-header {
  background-color: #000;
  padding: 0;
  flex: 0 0 auto;
}

.logo {
  max-width: 220px;
  height: auto;
}

/* Navigation section */
.main-nav {
  flex: 1;
  background-color: #000;
}

.nav-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 20px;
  position: relative;
  overflow: visible; /* allow ghost to poke upward */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-links a {
  display: block;
  padding: 18px 12px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  position: relative;
}

/* 🟣 Ghost icon above active link */
.nav-links li.active::before {
  content: url("../images/ghost_i.png");
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  z-index: 10;
  opacity: 0;
  animation: ghostFadeSlide 0.6s ease-out forwards;
}

/* Ghost animation */
@keyframes ghostFadeSlide {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* 🍔 Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-right: 10px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  display: block;
}

/* Section 3: Hero Title */
.hero-section {
  max-width: 1000px;
  margin: 40px auto;
  text-align: center;
  padding: 20px;
}

.hero-section h1 {
  color: #fff;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 2.0rem;
  margin-bottom: 15px;
}

.hero-section h2 {
  color: #ff3333;
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0;
}

/* Section 4: 3-Column Service Row */
.service-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  gap: 20px;
}

.service-block {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30%;
  text-align: center;
  color: white;
  background-color: #000;
  padding: 15px;
  box-sizing: border-box;
}

.service-block h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 500;
  color: yellow;
  letter-spacing: 0.5px;
}

.service-block p {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #ddd;
  flex-grow: 1;
}

.service-block figure {
  margin: 0;
}

.service-block img {
  width: 100%;
  border: 4px solid yellow;
  transition: border-color 0.3s ease;
}

.service-block img:hover {
  border-color: red;
}

.service-block figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #ccc;
}

/* =======Two-Column Services PAGE===== */
.services-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  color: white;
}

.services-left {
  flex: 1 1 55%;
}

.services-left h3 {
  color: yellow;
  font-weight: bold;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.services-left ul {
  list-style-type: disc;
  padding-left: 20px;
  line-height: 1.8;
  color: #ddd;
  margin-bottom: 15px;
}

.services-left li {
  font-size: 1rem;
}

.services-left .callout {
  color: red;
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 10px;
}

.services-right {
  flex: 1 1 40%;
}

.services-right img {
  width: 100%;
  border: 4px solid yellow;
  display: block;
}

/* ====Rotovac 3-Column Image Gallery===== */
.rotovac-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  gap: 20px;
}

.rotovac-image {
  flex: 1 1 30%;
}

.rotovac-image img {
  width: 100%;
  border: 4px solid yellow;
  display: block;
}

/* ==== Contact Form ===== */

.contact-form {
  max-width: 700px;
  margin: 40px auto;
  background-color: #111;
  padding: 20px;
  border: 2px solid yellow;
  border-radius: 8px;
}

.contact-form h2 {
  text-align: center;
  color: yellow;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.contact-form label {
  color: #fff;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0 20px 0;
  border: 2px solid #444;
  background-color: #000;
  color: #fff;
  font-size: 1rem;
  border-radius: 4px;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: yellow;
}

.contact-form button {
  background-color: red;
  color: #fff;
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  display: block;
  margin: auto;
}

.contact-form button:hover {
  background-color: darkred;
}



/* ====Footer Layout===== */
.site-footer {
  background-color: #000;
  color: #ccc;
  padding: 30px 20px;
  font-size: 0.95rem;
}

.site-footer .site-container {
  display: block; /* override flex if inherited */
}


.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
  gap: 20px;
}

.footer-row.bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  margin-bottom: 0;
}

.footer-left,
.footer-right {
  flex: 1 1 45%;
}

.footer-logo {
  max-width: 160px;
  height: auto;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}

.footer-nav a {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
}

.footer-nav a:hover {
  color: #fff;
}

/* Responsive footer */
@media (max-width: 768px) {
  .footer-row {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-left,
  .footer-right,
  .footer-nav {
    flex: 1 1 100%;
    align-items: center;
    text-align: center;
  }

  .footer-nav {
    margin-top: 15px;
    flex-direction: row;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
}


/* Mobile layout */
@media (max-width: 768px) {
  .service-block {
    width: 100%;
    margin-bottom: 30px;
  }
}



/* ✅ Responsive Rules */
@media (max-width: 768px) {
  .site-container {
    flex-direction: column;
    align-items: center;
  }

  @media (max-width: 768px) {
  .pacman-footer {
    display: none !important;
  }
}

  .nav-container {
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
  }

  .hamburger {
    display: flex;
    padding: 18px 0;
  }

  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    display: none;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li:not(:last-child) {
    border-bottom: 1px solid #fff;
  }

  .nav-links li.active::before {
    display: none; /* hide ghost on mobile */
  }
  .rotovac-image {
    flex: 1 1 100%;
  }
}


