* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: #0d0f12;
  color: #f5f5f5;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 90%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 18, 0.95);
  border-bottom: 1px solid #25282d;
}

.nav-wrap {
  min-height: 105px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  width: 300px;
  height: 96px;
  overflow: hidden;
}

.brand img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

nav a {
  color: #d7d7d7;
}

nav a:hover {
  color: #ffffff;
}

.nav-button {
  border: 1px solid #ffffff;
  padding: 8px 14px;
  border-radius: 4px;
}

.hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(5, 7, 9, 0.40), rgba(5, 7, 9, 0.82)),
    url("/images/walnut-bridge-2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  padding: 100px 0;
  max-width: 850px;
}

.eyebrow,
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: #aeb5be;
}

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.98;
  margin: 18px 0 24px;
  max-width: 900px;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin-top: 10px;
}

.hero-text {
  font-size: 1.2rem;
  max-width: 700px;
  color: #c5c9ce;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 700;
}

.primary {
  background: #ffffff;
  color: #0d0f12;
}

.secondary {
  border: 1px solid #777;
  color: #ffffff;
}

.section {
  padding: 90px 0;
}

.alternate {
  background: #15181d;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}

.card {
  background: #171a1f;
  border: 1px solid #292d33;
  padding: 28px;
  border-radius: 8px;
}

.card-number {
  margin: 0 0 28px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #7f8790;
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.card p {
  color: #b8bec6;
}

.about-section {
  background: #111419;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  align-items: start;
}

.about-copy {
  color: #c1c6cc;
  font-size: 1.08rem;
}

.about-copy p:first-child {
  margin-top: 0;
}

.portfolio-placeholder {
  margin-top: 35px;
  min-height: 300px;
  border: 1px dashed #474d55;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #939aa3;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 35px;
}

.portfolio-grid a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}

.portfolio-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-grid a:hover img {
  transform: scale(1.04);
}

.client-section {
  padding: 80px 0;
  background: #f3f3f3;
  color: #111;
}

.client-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.client-content p {
  max-width: 650px;
}

.client-content .primary {
  background: #111;
  color: #fff;
  white-space: nowrap;
}

.contact-text {
  color: #bdc2c9;
  max-width: 600px;
  margin-bottom: 30px;
}

footer {
  border-top: 1px solid #25282d;
  padding: 30px 0;
  color: #8e949b;
  font-size: 0.9rem;
}

.contact-section {
  background: #0f1216;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 70px;
  align-items: start;
}

.contact-copy h2 {
  max-width: 700px;
}

.contact-details {
  border-left: 1px solid #2c3138;
  padding-left: 35px;
}

.contact-heading {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 30px;
}

.contact-item {
  margin-bottom: 26px;
}

.contact-item span {
  display: block;
  margin-bottom: 5px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #7f8790;
}

.contact-item p,
.contact-item a {
  margin: 0;
  color: #d1d5da;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 1000;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  cursor: default;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 2.5rem;
  width: 56px;
  height: 72px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 1001;
}

.lightbox-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

/* Client Gallery */

.gallery-hero {
  min-height: 42vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(5, 7, 9, 0.55), rgba(5, 7, 9, 0.9)),
    url("/images/walnut-bridge-2.jpg");
  background-size: cover;
  background-position: center;
}

.gallery-hero-content {
  padding: 90px 0 70px;
}

.gallery-hero h1 {
  max-width: 800px;
  margin-bottom: 22px;
}

.gallery-intro {
  max-width: 650px;
  font-size: 1.15rem;
  color: #c4cad0;
}

.gallery-access {
  display: flex;
  justify-content: center;
}

.gallery-access-card {
  width: min(680px, 100%);
  padding: 42px;
  background: #15181d;
  border: 1px solid #292d33;
  border-radius: 10px;
}

.gallery-access-card h2 {
  margin-bottom: 18px;
}

.gallery-form {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.gallery-form label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9098a1;
}

.gallery-form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 5px;
  border: 1px solid #3b4149;
  background: #0f1216;
  color: #ffffff;
  font-size: 1rem;
}

.gallery-form input:focus {
  outline: none;
  border-color: #ffffff;
}

.gallery-form .button {
  border: none;
  cursor: pointer;
  justify-self: start;
  margin-top: 4px;
}

.gallery-help {
  margin-top: 28px;
  font-size: 0.9rem;
  color: #9299a1;
}

.gallery-help a {
  color: #ffffff;
  text-decoration: underline;
}

/* Client Gallery Page */

.client-gallery-header {
  padding: 80px 0 45px;
  background: #111419;
  border-bottom: 1px solid #292d33;
}

.client-gallery-header h1 {
  margin-bottom: 18px;
}

.gallery-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: #9ba2aa;
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.gallery-description {
  max-width: 700px;
  color: #c1c6cc;
}

.client-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.client-photo {
  margin: 0;
  background: #15181d;
  border: 1px solid #292d33;
  border-radius: 8px;
  overflow: hidden;
}

.client-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.client-photo a:first-child {
  display: block;
  overflow: hidden;
}

.client-photo a:first-child:hover img {
  transform: scale(1.04);
}

.photo-download {
  display: block;
  padding: 14px 16px;
  text-align: center;
  font-size: 0.85rem;
  color: #d8dde2;
  border-top: 1px solid #292d33;
}

.photo-download:hover {
  background: #1d2127;
  color: #ffffff;
}

.gallery-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.download-note {
  font-size: 0.85rem;
  color: #8f969e;
}

/* mobile section */

@media (max-width: 800px) {
  .nav-wrap {
    flex-direction: column;
    padding: 18px 0;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .client-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .lightbox-nav {
    width: 44px;
    height: 60px;
    font-size: 2rem;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .contact-details {
    border-left: none;
    border-top: 1px solid #2c3138;
    padding-left: 0;
    padding-top: 30px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-access-card {
    padding: 28px 22px;
  }

  .gallery-hero-content {
    padding: 70px 0 50px;
  }

  .client-photo-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 3.4rem;
  }
}
