/* Silverline Builders — shared custom styles layered on top of Tailwind. */

:root {
  --ink: #111113;
  --silver-100: #f4f4f5;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Thin uppercase eyebrow label used above section headings. */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.72rem;
  font-weight: 600;
}

/* Knockout the two-tone logo to solid white so it reads on a dark photo.
   brightness(0) crushes every pixel to black, invert(1) flips it to white;
   the PNG's alpha channel is untouched, so the letterforms stay clean. The
   drop-shadow is applied after the knockout so it shadows the white shape. */
.logo-knockout {
  filter: brightness(0) invert(1) drop-shadow(0 2px 18px rgba(0, 0, 0, 0.45));
}

/* Hide the scrollbar on a scroll-snap carousel track while keeping it scrollable. */
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Underline that animates in on nav hover / active link. */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 1px;
  width: 0;
  background: currentColor;
  transition: width 0.28s ease;
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}

/* Placeholder "photo" tiles — a subtle blueprint texture so the site looks
   finished before real photography is dropped in. Replace .ph blocks with
   <img> tags pointing at real project photos. The `data-label` attribute is
   kept on each block as an in-code note of what image belongs there, but it is
   intentionally NOT rendered on the page. */
.ph {
  position: relative;
  background-color: #e8e8ea;
  background-image:
    linear-gradient(135deg, rgba(17, 17, 19, 0.06) 25%, transparent 25%),
    linear-gradient(225deg, rgba(17, 17, 19, 0.06) 25%, transparent 25%),
    linear-gradient(45deg, rgba(17, 17, 19, 0.06) 25%, transparent 25%),
    linear-gradient(315deg, rgba(17, 17, 19, 0.06) 25%, transparent 25%);
  background-size: 22px 22px;
  overflow: hidden;
}

/* Fade-up on scroll. Applied site-wide (see main.js auto-reveal + stagger).
   The default is a gentle rise; directional/scale variants are opt-in via the
   extra classes below. Per-element transition-delay is set inline by main.js
   to create staggered cascades within a group of siblings. */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Directional / scale variants — add alongside .reveal for variety. */
.reveal-left {
  transform: translateX(-28px);
}
.reveal-right {
  transform: translateX(28px);
}
.reveal-scale {
  transform: scale(0.96);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Photo lightbox — full-screen gallery for listing photos (see main.js). */
.lb-open {
  cursor: zoom-in;
  padding: 0;
  border: 0;
  background: none;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 12, 0.93);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
}
.lightbox__ctl {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox__ctl:hover {
  background: rgba(255, 255, 255, 0.2);
}
.lightbox__close {
  top: 20px;
  right: 20px;
  height: 44px;
  width: 44px;
}
.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  height: 52px;
  width: 52px;
}
.lightbox__prev {
  left: 20px;
}
.lightbox__next {
  right: 20px;
}
.lightbox__count {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  background: rgba(10, 10, 12, 0.6);
  padding: 6px 14px;
  border-radius: 9999px;
}
@media (max-width: 640px) {
  .lightbox__prev,
  .lightbox__next {
    height: 42px;
    width: 42px;
  }
  .lightbox__prev {
    left: 10px;
  }
  .lightbox__next {
    right: 10px;
  }
}
