html, body {
  font-family: Arial, sans-serif;
  background-color: #1C1C1C;
  color: #f5f5f5;
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
section {
  margin: 0;
  padding: 0;
}

.site-header {
  background-color: #1C1C1C;
  padding: 0;
  border-bottom: 0px solid #444;
  display: flex;
  align-items: center;
  width: 100vw;
  height: 10vh;
}
#display {
  height: calc(100vh - 12vh); /* 10vh header + 2vh footer */
  overflow: auto;
  box-sizing: border-box;
}
.site-footer {
  width: 100vw;
  height: 2vh;
  text-align: center;
  background: #1C1C1C;
  font-size: 2vh;
  display: block;
  margin: 0;
  padding: 0;
}
.site-footer p {
  display: inline-block;
  margin: 0;
  padding: 0;
  vertical-align: top;
}
.logo-img {
  height: 100%;
  margin-left: 0.1em;
  margin-right: 0.1em;
  display: block;
}
.container.nav-container {
  margin: 0 auto;
  padding: 0;
  height: 100%;
  display: flex;
  align-items: center;
}
.main-nav {
  display: flex;
  align-items: center;
  font-size: 3vh;
  height: 100%;
}
.main-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}
.main-nav li {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 1em;
  margin-right: 1em;
  gap: 0em;
}
.main-nav a {
  text-decoration: underline;
  color: #ccc;
  font-weight: 500;
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  text-decoration: none;
}
.main-nav li:hover .dropdown,
.main-nav li:focus-within .dropdown {
  display: block;
}
.chevron {
  display: inline-block;
  border-right: 0.5vh solid #888;
  border-bottom: 0.5vh solid #888;
  width: 1.5vh;
  height: 1.5vh;
  margin-left: 0.4em;
  margin-right: 1em;
  margin-bottom: 0.3rem;
  margin-top: 0.3rem;
  vertical-align: middle;
}
.chevron-down {
  transform: rotate(45deg);
}

.hero-slider {
  position: relative;
  height: 88vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  flex-direction: row;
  align-items: center;
  transform: translateX(-50%);
  background-color: black;
  transition: opacity 2.5s ease-in-out;
  opacity: 0;
  z-index: 0;
  padding: 0;
  margin: 0;
  height: 100%;
  gap: 0;
  font-size: 0;
  line-height: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  height: 100%;
  width: auto;
  flex: 1 1 0;
  object-fit: cover;
  pointer-events: none;
  background-color: #1C1C1C;
  display: block;
  border: none;
  outline: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.slide img.left,
.slide img.right {
  transform: scaleX(-1);
  opacity: 1;
}
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 18vw;
  background-color: #1C1C1C;
  border: 1px solid #333;
  padding: 0.5rem 1rem;
  z-index: 999;
}
.dropdown a {
  display: block;
  color: #ccc;
  padding: 0.25rem 0;
}
.dropdown a:hover {
  color: #fff;
}

.project-title {
  font-size: 2rem;
  color: white;
  text-align: center;
  margin-top: 0rem;
  text-shadow: 0 0 5px #000;
}
.project-info-overlay {
  background: rgba(28, 28, 28, 0.6);
  color: #fff;
  padding: 2rem;
  max-width: 800px;
  margin-top: 1rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  line-height: 1.6;
}

.project-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.project-gallery img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  background: #1C1C1C;
}
.project-images img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 0 auto;
}

.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(28, 28, 28, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.overlay.hidden { display: none; }
.overlay-content {
  background: #fff;
  color: #000;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
  width: 80vw;
  border-radius: 4px;
}

.contact-info .chat-btn {
  background: #1C1C1C;
  border: 0.01vh solid #C0A050;   /* gold border */
  border-radius: 0.5em;
  color: #C0A050;              /* normal: light blue text */
  cursor: pointer;
  display: inline-block;
  font-weight: 600;
  font-size: inherit;
  line-height: 1;
  height: 1.2em;
  margin-left: 0.2em;
  padding: 0em;
  vertical-align: bottom;
  width: 6em;
}
.contact-info .chat-btn:hover {
  color: #1C1C1C;              /* hover: charcoal black */
  background: #C0A050;     /* background fill */
  border-color: #0066ff;       /* bright blue border */
}



.info-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}
.info-controls .project-title {
  font-size: 1.5rem;
  color: white;
}
.info-controls .more-info {
  font-size: 0.9rem;
  color: #ccc;
  text-decoration: underline;
  cursor: pointer;
}

.info-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(28,28,28,0.92);
  color: white;
  padding: 2rem;
  overflow-y: auto;
  height: 100%;
  display: none;
  z-index: 10;
}
.info-overlay.active { display: block; }
.info-overlay .close-btn {
  float: right;
  font-size: 1.2rem;
  color: #ccc;
  cursor: pointer;
}
.dimmed { filter: brightness(50%); }

/* Seam fillers: underlay clones  (works for left/right/center); originals sit above */
.slide img { position: relative; z-index: 1; } /* originals on top */
.slide img.filler {
  position: absolute;
  top: 0;
  height: 100%;
  width: auto;
  object-fit: cover;
  pointer-events: none;
  z-index: 0; /* behind originals */
}

.hero-slider.no-xfade .slide { transition: none !important; }

/* Hide the hero only while we compute first-slide geometry */
.hero-slider.prep { visibility: hidden; }

#page-info {
  white-space: pre-line;   /* interpret \n as newlines */
}

.highlight-gold {
  color: #C0A050;   /* Vista logo gold */
  font-weight: bold;
}












/* POPUP */
:root {
  --pad: clamp(1vh, 1rem, 2vh);
  --font-lg: clamp(2vh, 1rem, 8vh);
  --radius-sm: clamp(0.5vh, 0.3rem, 2vh);
}

.popup {
  position: fixed;
  top: 12vh;
  width: auto;
  height: auto;
  right: clamp(1vh, 1rem,2vh);
  z-index: 1000;
  background: #1c1c1c;
  color: #fff;
  border: 1px solid #666;
  border-radius: clamp(1.5vh, 2rem,5vh);
  min-width: 20vw;
  max-width: 80vw;
  min-height: 30vh;
  max-height: 85vh;
  padding: clamp(1vh, 1rem,2vh);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: auto;  /* important: prevent content from overflowing when max-height is hit */
}


.popup h2{ 
  margin:0 0 clamp(0.5vh,1rem,1vh) 0; 
  font-size:clamp(2vh,1.5rem,10vh); 
  line-height:1; 
}
.popup .popup-body{ 
  display:flex; 
  flex-direction:column; 
  gap:clamp(0.5vh,1rem,1vh); 
  overflow:auto; 
}
.popup input, .popup textarea{
  font-size:clamp(2vh,1rem,8vh); 
  line-height:1;
  padding:1px 2px; 
  border:0; 
  border-radius:clamp(0.5vh, 0.3rem,2vh); 
  box-sizing:border-box;
}
.popup input{ height:clamp(2vh, 1rem,8vh); }
.popup textarea{resize:none; min-height:20vh; max-height:25vh; }
.popup .popup-actions{ margin-top:clamp(0.5vh,1rem,1vh); display:flex; justify-content:flex-end; }

.popup .popup-actions button{ 
  height:clamp(2.2vh,2rem,14vh); 
  padding:1px 2px; 
  font-size:clamp(2vh,1rem,8vh); 
  border-radius:clamp(0.5vh,0.3rem,2vh); 
  background:#0a66cc; color:#fff; 
}

.popup .close-btn{
  position:absolute; 
  top:clamp(0.4vh,0.8rem,2vh); 
  right:clamp(1vh,1rem,2vh); 
  margin: 0;
  width:clamp(2vh,2rem,10vh); 
  height:clamp(2vh,1.5rem,10vh);
  font-size:clamp(2.2vh,1.5rem,10vh); 
  line-height: 1; 
  border-radius:clamp(0.5vh, 0.3rem,2vh); 
  padding: 0;
  display:flex;
  justify-content:center;
  border: 0;
  cursor:pointer;
}




