/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #000000;
  color: #f5f5f5;
  line-height: 1.6;
}

/* Containers */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== HEADER / NAV ===== */
header {
  background-color: #000000;
  border-bottom: 2px solid #d60000;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  letter-spacing: 1px;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #f5f5f5;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #d60000;
  transition: width 0.2s ease-in-out;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.btn-nav {
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  background-color: #d60000;
  color: #ffffff;
  border: none;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-nav:hover {
  background-color: #ff1a1a;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/hero.jpg") center/cover no-repeat;
  opacity: 0.65;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #000000 10%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 550px;
  padding: 4rem 0;
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.hero p {
  margin-bottom: 2rem;
  font-size: 1.05rem;
  color: #e3e3e3;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.btn-primary {
  background-color: #d60000;
  color: #ffffff;
  border: 1px solid #d60000;
  margin-right: 0.75rem;
}

.btn-primary:hover {
  background-color: #ff1a1a;
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
}

.btn-secondary:hover {
  background-color: #ffffff;
  color: #000000;
}

/* ===== SECTIONS ===== */
section {
  padding: 4rem 0;
}

.section-dark {
  background-color: #111111;
}

.section-darker {
  background-color: #050505;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: 1.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title .subtitle {
  margin-top: 0.5rem;
  color: #c0c0c0;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.about-grid img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-text p {
  color: #d0d0d0;
}

.badge-list {
  list-style: none;
  margin-top: 1rem;
}

.badge-list li {
  margin-bottom: 0.4rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background-color: #d60000;
  color: #ffffff;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Core values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.value-card {
  background-color: #151515;
  border-radius: 6px;
  padding: 1.4rem 1.2rem;
  border-top: 3px solid #d60000;
}

.value-card h3 {
  margin-bottom: 0.5rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.7rem;
}

.service-card {
  background-color: #141414;
  border-radius: 6px;
  padding: 1.5rem 1.3rem 1.7rem;
  border-top: 3px solid #d60000;
}

.service-card h3 {
  margin-bottom: 0.5rem;
}

.service-card p {
  color: #cfcfcf;
}

.service-tag {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #d60000;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}


/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.contact-info p {
  margin-bottom: 0.7rem;
  color: #d0d0d0;
}

.contact-info strong {
  color: #ffffff;
}

.contact-form {
  background-color: #121212;
  padding: 1.5rem;
  border-radius: 6px;
  border: 1px solid #2a2a2a;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  margin-bottom: 0.9rem;
  border-radius: 4px;
  border: 1px solid #3a3a3a;
  background-color: #050505;
  color: #f5f5f5;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #d60000;
}

/* ===== CTA ===== */
.cta {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #d60000, #550000);
}

.cta h2 {
  font-size: 1.9rem;
  margin-bottom: 0.8rem;
}

/* ===== FOOTER ===== */
footer {
  background-color: #000000;
  border-top: 2px solid #d60000;
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: #c0c0c0;
}

.footer-links a {
  color: #c0c0c0;
  text-decoration: none;
  margin-left: 1rem;
}

.footer-links a:hover {
  color: #ffffff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
  }

  .hero-content h1 {
    font-size: 2.1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .btn-nav {
    display: none; /* hide quote button on very small screens if needed */
  }
  }
  /* Lightbox */
  .lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
  }

  .lightbox-img {
    max-width: 80%;
    max-height: 80%;
    border: 4px solid #d60000;
    border-radius: 6px;
  }

  .close {
    position: absolute;
    top: 40px;
    right: 60px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
  }
/* Popup background */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Popup box */
.popup-content {
    background: #111;
    border: 2px solid red;
    padding: 20px 30px;
    border-radius: 8px;
    color: white;
    font-size: 18px;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

/* Fade animation */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.rebuild-list a,
.rebuild-list a:visited {
    color: white;
    text-decoration: none;
}

.rebuild-list a:hover {
    color: red; /* optional */
}
/* Fix link colors only on Gallery service cards */
/* Fix purple/blue link colors ONLY on the gallery page */
.gallery-page .service-card,
.gallery-page .service-card:link,
.gallery-page .service-card:visited,
.gallery-page .service-card h3,
.gallery-page .service-card p {
    color: white !important;
    text-decoration: none !important;
}

/* Optional hover */
.gallery-page .service-card:hover h3 {
    color: red !important;
}
.hero-image {
    max-width: 80%;              /* Reduce image size */
    height: auto;                /* Maintain correct proportions */
    border: 3px solid rgb(220, 209, 209);                       /* Clean white border */
    border-radius: 18px;                           /* Smooth rounded corners */
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.8); /* Soft white glow */
    display: block;
    margin: 0 auto;                                /* Keep image centered */
    overflow: hidden;                              /* Ensures corners clip cleanly */
}
