:root {
  --color-header: rgba(0, 0, 0, 0);
  --color-mainbody: rgb(255, 255, 255);
  --color-footer: rgb(0, 0, 0);
  --color-text-light: #fff;
}

* {
  box-sizing: border-box;
  font-family: Poppins, Geneva, Tahoma, sans-serif;
  width:100%;
  margin:0;
}

div, nav {
  /*outline: 1px dotted red;*/
  display: inline-flex;
}

body {
  margin: 0;
}

.vertical {
  flex-direction: column;
}
.horizontal {
  flex-direction: row;
}

.business-card {
  display: inline-flex;
  color: white;
  border: 1px solid black;
  margin: 0.5rem;
  width: 22rem;
  min-width: 22rem;
  max-width: 22rem;
  height: 12rem;
  min-height: 12rem;
  max-height: 12rem;
}
.business-body {
  background-color: chocolate;
  height:92%;
}

.business-body p, .business-body a {
  font-size: 0.7rem;
  color:white;
}
.business-stripe {
  height:2%;
  background-color: white;
}
.business-accent {
  height:6%;
  background-color: transparent;
}
.accent1 {
  background-color: #ff0000;
}
.accent2 {
  background-color: #0033FF;
}
.accent3 {
  background-color: #009900;
}
.accent4 {
  background-color: #FFA500;
}

.nav-links-container {
  position: fixed;
  background-color: var(--color-header);
  z-index: 100;
  width: auto;
  border-radius: 0 0 0 2rem;
  text-align: center;
  gap: 2.5rem;
  font-size: 1.5rem;
  right: 0;
  padding:0.5rem 1rem 1rem 1.5rem;
}
.nav-links-container a {
  color:white;
  font-weight: bold;
  text-decoration: none;
  -webkit-text-stroke: rgb(0, 0, 0) 1px;
}
.nav-links-container a:hover, a[aria-current="page"] {
  text-decoration: underline;
} 
.linkcolor1[aria-current="page"], .linkcolor1:hover {
  color: #ff0000;
}
.linkcolor2[aria-current="page"], .linkcolor2:hover {
  color: #0033FF;
}
.linkcolor3[aria-current="page"], .linkcolor3:hover {
  color: #009900;
}
.linkcolor4[aria-current="page"], .linkcolor4:hover {
  color: #FFA500;
}
.nav-links-container a:hover {
  text-decoration: underline;
}
.hero {
  position: absolute;
  color: var(--color-text-light);
  top:4rem;
  right:1rem;
  width:80%;
  text-align: right;
}

#footer {
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 0.5rem;
  background: var(--color-footer);
  color: #fff;
}
#footer p {
  margin:0;
  padding:0.25rem;
}

ul {
  margin: 1rem auto;
}

/* Gallery grid */
.gallery-grid .grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* default: 5 columns on large screens */
  gap: 0.5rem;
  padding: 0.5rem;
}
.gallery-grid figure { margin: 0; }
.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}
.gallery-grid figcaption {
  font-size: 0.9rem;
  color: #444;
}

/* Breakpoints for columns: 6 → 5 → 4 → 3 → 2 → 1 */
@media (max-width: 1500px) {
  .gallery-grid .grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1200px) {
  .gallery-grid .grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1000px) {
  .gallery-grid .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .gallery-grid .grid { grid-template-columns: repeat(2, 1fr); }
}

/* Lightbox / fullscreen preview */
.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  background: rgba(0,0,0,0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease-in-out;
  z-index: 9999;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 85vh;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.7);
}
.lb-close {
  position: absolute;
  top: 18px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.lb-cap {
  color: #fff;
  display: inline-block;
  text-align: center;
  font-size: 1.5rem;
  max-width: 90%;
  width: 100%;
}

.gallery-grid img { cursor: zoom-in; }

/* Prev / Next buttons in lightbox */
.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 52px;
  height: 64px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-prev:focus, .lb-next:focus, .lb-close:focus { outline: 2px solid #fff; }

@media (max-width: 480px) {
  .lb-prev, .lb-next { width: 40px; height: 48px; font-size: 1.6rem; }
}

.center {
  display:inline-flex;
  width: fit-content;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.contact-info {
  background-color: aliceblue;
  text-align: left;
  width:auto;
  padding:1rem;
}

#contact-form {
  background-color: white;
  text-align: left;
  align-items: center;
  width:100%;
  max-width:50rem;
  padding:1rem;
  margin:1rem auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (orientation: portrait) {
  .business-card {
    margin-left: auto;
    margin-right: auto;
    margin-top: 2.5rem;
  }
  .nav-links-container {
    position: fixed;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.696);
    font-size: 1rem;
    border-bottom: 1px solid var(--color-footer);
    border-radius: 0;
    gap:0;
    margin:0;
    padding:0.5rem 0;
  }
  .hero {
    color: red;
    display: none;
  }
}

figcaption {
  display: none;
}
.values {
  
  background-color: rgba(0, 0, 0, 0.5);
  background-image: url(/images/construction1.jpg);
  background-blend-mode: multiply;
  background-size: cover;
  min-height: 70vh;
  width:100%;
  text-align: center;
  margin-top: 2rem;
}

.values-text h2 {
  font-size: 5vh;
  padding:1rem;
  margin:1rem;
  width:fit-content;
  color:white;
  -webkit-text-stroke: black 2px;
  border-radius: 15px;
}

.crane {
  display: inline-flex;
  max-width: 40%;
  right:0;
  transform: translateY(-15%) scaleY(130%);
}

#content {
  max-width:150vh;
  margin:auto;
  text-align: center;
}

body {
  background-color: var(--color-mainbody);
}
nav {
  background-image: url(images/seattle.jpeg) no-repeat;
  background: url(images/seattle.jpeg), linear-gradient(rgba(0, 0, 0, 0.591), rgba(0, 0, 0, 0));
  background-blend-mode: overlay;
  background-size:fill;
}

.info {
  color: black;
  text-align: left;
}

/* Color Palette Selector */
.color-palette-section {
  width: 100%;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.3);
  text-align: center;
  margin: 2rem 0;
}

.color-palette-section p {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  width: 100%;
}

.color-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  width: 100%;
}

.color-buttons button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  color: white;
  border: 2px solid white;
  border-radius: 6px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  width: auto;
}

.color-buttons button:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.color-buttons button:active {
  transform: scale(0.98);
}