
:root {
  --white: #ffffff;
  --light: #fafcfa;
  --black: #000000;
  --brown: #825353;
  --yellow: #F8C934;
  --gold: #fec42a;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--light);
  color: var(--black);
}

header.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--black);
  color: var(--white);
}

a {
  color: var(--gold);
}
header .logo img {
  height: 50px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--white);
  font-weight: bold;
}
.site-nav a:hover {
  color: var(--gold);
}

.hero {
  position: relative;
  text-align: center;
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-text {
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  color: var(--white);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  z-index: 2;
}

.hero-text h1 {
  margin: 0 0 1rem;
  font-size: 2rem;
}

.content {
  padding: 2rem;
  line-height: 1.6;
  margin: auto;
  width: 70%;
}

.map-section {
  margin-top: 2rem;
  text-align: center;
}

.map-image {
  max-width: 100%;
  height: auto;
}

.gallery {
  padding: 2rem;
}

.gallery .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.project img {
  width: 100%;
  border-radius: 4px;
}

.project p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form button {
  background: var(--black);
  color: var(--white);
  padding: 0.75rem;
  border: none;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--gold);
  color: var(--black);
}

.image-end img {
  width: 100%;
  display: block;
  margin-top: 2rem;
}

footer.site-footer {
  text-align: center;
  padding: 1rem;
  background: var(--black);
  color: var(--white);
  margin-top: 2rem;
}


/* Overlay hero text */
.hero {
  position: relative;
  color: var(--white);
}
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 8px;
  max-width: 90%;
}

.hero-text h1 {
  font-size: 2.5rem;
  color: var(--white);
  z-index: 2;
  position: relative;
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--gold);
}

/* Project image consistency */
.project img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

.about-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 8px;
}

.footer-columns {
  display: flex;
  justify-content: space-around;
  padding: 2rem;
  background: #111;
  color: #fff;
  flex-wrap: wrap;
}
.footer-columns div {
  margin-bottom: 1rem;
  max-width: 300px;
}
.footer-columns h4 {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  header.site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .hero-text {
    position: static;
    transform: none;
    margin-top: -4px;
    padding: 1.5rem;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .footer-columns {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
}

.hero-image {
  width: 100%;
  height: 70vh;
  object-fit: cover;
}

.hamburger {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--white);
  display: none;
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 1001;
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .hamburger {
    display: block;
    align-self: center;
  }

  .site-nav ul {
    display: none;
    width: 100%;
    flex-direction: column;
    background: var(--black);
    padding: 1rem 0;
  }

  .site-nav ul.active {
    display: flex;
  }

  .footer-columns {
    text-align: center;
    align-items: center;
  }

  .footer-columns div {
    margin: 1rem auto;
  }
}

/* Lightbox overlay */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
}
.lightbox-overlay.active {
  display: flex;
}

/* Sticky CTA */
.get-quote-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--gold);
  color: var(--black);
  font-weight: bold;
  padding: 0.75rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 999;
}

.hero-overlay {
  position: relative;
}

.overlayed {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: rgba(0, 0, 0, 0.65);
  padding: 2rem;
  border-radius: 8px;
  max-width: 90%;
  color: var(--white);
}

@media (max-width: 768px) {
  .overlayed {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.65);
    padding: 1.5rem;
    color: var(--white);
    border-radius: 8px;
    max-width: 90%;
  }
}

.view-projects-link {
  display: block;
  text-align: center;
  margin: 1rem auto;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--gold);
  text-decoration: none;
}
.view-projects-link:hover {
  color: var(--white);
}

.projects-link-image {
  text-align: center;
  margin: 2rem auto;
}
.linked-projects-img {
  width: 100%;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  margin-top: -32px;
}
.linked-projects-img:hover {
  transform: scale(1.03);
}

.linked-projects-wrapper {
  position: relative;
  display: inline-block;
}
.linked-projects-text {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
}

@media (min-width: 769px) {
  .overlayed {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
  }
}
@media (max-width: 768px) {
  .overlayed {
    top: 190px;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    position: absolute;
  }
}

.map-section-two-column {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  padding: 2rem;
}
.map-image-box, .linked-projects-box {
  flex: 1 1 400px;
}

/* ****************************************************************** */

/* Base styles for the table */
.table-container {
    display: table;
    width: 80%;
    border-collapse: collapse;
    margin: auto;
}

.project-row {
    display: table-row;
}

.cell {
    display: table-cell;
    padding: 10px;
    vertical-align: middle;
}



/* Desktop styles (traditional table with header) */
@media screen and (min-width: 768px) {
    .project-row {
        display: table-row;
    }
    .label {
        font-weight: bold;
        display: none;
    }
    .header-row {
        background-color: #000000;
        color: #ffffff;
        border-bottom: 2px solid #333;
    }

    .header-row .cell {
        font-weight: bold;
        text-align: left;
        padding: 12px 10px;
    }

    .header-row .cell .label {
        display: inline-block; /* Ensure label is visible in header */
    }

    .cell {
        border-right: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
    }

    .cell:last-child {
        border-right: none;
    }

    .project-row:hover:not(.header-row) {
        background-color: #f5f5f5;
    }
}

/* Mobile styles (stacked column layout) */
@media screen and (max-width: 767px) {
    .table-container {
        display: block;
    }


    .project-row {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 10px;
        background-color: #f9f9f9;
    }
    .header-row {
        display: none; /* Hide header row on mobile */
    }

    .cell {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid #e0e0e0;
    }

    .cell:last-child {
        border-bottom: none;
    }

    .label {
        flex: 1;
        font-size: 14px;
        color: #333;
    }

    .cell::after {
        content: attr(data-value);
        flex: 1;
        text-align: right;
        font-size: 14px;
        color: #555;
        display: none;
    }

    .cell > *:not(.label) {
        display: none;
    }
}

