/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { -webkit-user-drag: none; user-select: none; }

:root {
  --black:   #0a0a0a;
  --white:   #ffffff;
  --grey:    #888888;
  --font:    'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html { font-size: 10px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

/* ─── ABOVE FOLD ───────────────────────────────────────────── */
.above-fold {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
}

/* ─── NAV ──────────────────────────────────────────────────── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 3.2rem 0 0;
}

.nav-logo {
  margin-top: 10px;
  margin-left: 40px;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-contact {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--black);
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.2s;
  margin-top: 10px;
  margin-right: 40px;
}

.nav-contact:hover { opacity: 0.4; }

/* ─── HERO ─────────────────────────────────────────────────── */
.hero {
  height: 450px;
  padding: 0 10px 2rem;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  margin-top: auto;
  flex-shrink: 0;
  position: relative;
}

.hero-title {
  font-size: calc((100vw - 20px) / 7);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: var(--black);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ─── GALLERY SLIDESHOW ────────────────────────────────────── */
.gallery {
  width: 100%;
  height: 460px;
  overflow: hidden;
  padding-bottom: 10px;
}

.gallery-track {
  display: flex;
  gap: 10px;
  height: 450px;
  align-items: stretch;
  will-change: transform;
}

.gallery-item {
  flex: 0 0 auto;
  height: 450px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 5px;
  display: flex;
  align-items: center;
  background: #f0efeb;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.15);
}

.gallery-item > img {
  height: 450px;
  width: auto;
  display: block;
  border-radius: 5px;
}

.gallery-label {
  position: absolute;
  display: none;
  bottom: 1.2rem;
  left: 1rem;
  width: fit-content;
  height: 20px;
  padding: 0 1rem;
  line-height: 20px;
  border-radius: 5px;

  /* liquid glass */
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(255, 255, 255, 0.10);

  color: #2d2d2d;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}


/* ─── LIGHTBOX ─────────────────────────────────────────────── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 100;
}

.lightbox-overlay.active { display: block; }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 110;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.lightbox.active { display: flex; }

.lightbox-img-wrap {
  width: min(72vw, 640px);
  height: min(64vh, 520px);
  overflow: hidden;
}

.lightbox-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-label {
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.lightbox-close {
  position: absolute;
  top: 2.4rem;
  right: 2.8rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 3.2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.55;
  transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(255,255,255,0.28);
  color: var(--white);
  font-size: 1.8rem;
  width: 5.2rem;
  height: 5.2rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.lightbox-nav--prev { left: 2.4rem; }
.lightbox-nav--next { right: 2.4rem; }

/* ─── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  position: relative;
  min-height: 100vh;
  background: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 12rem;
}

.footer-side {
  position: absolute;
  height: 90px;
  width: auto;
  top: 50%;
  transform: translateY(-50%);
}

.footer-side--left { left: 3.2rem; }
.footer-side--right { right: 3.2rem; }
.footer-side--se { height: 90px; }
.footer-side--se img { height: 90px; }

.footer-cta { display: block; }
.footer-cta__off,
.footer-cta__on { height: 90px; width: auto; display: block; }
.footer-side--se .footer-cta__off,
.footer-side--se .footer-cta__on { height: 90px; }

.footer-cta__on  { display: none; }
.footer-cta:hover .footer-cta__off { display: none; }
.footer-cta:hover .footer-cta__on  { display: block; }

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.2rem;
  text-align: center;
  max-width: 72rem;
  z-index: 1;
}

.footer-about {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
}

.footer-services {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
}

.footer-dot {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
}

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .gallery-item { flex: 0 0 50vw; }
}

@media (max-width: 700px) {
  /* Nav */
  .nav-logo  { margin-left: 2rem; }
  .nav-contact { margin-right: 2rem; }

  /* Hero */
  .hero { height: 150px; padding: 0 10px 1.6rem; }

  /* Gallery */
  .gallery       { height: calc(55vh + 10px); }
  .gallery-track { height: 55vh; }
  .gallery-item  { flex: 0 0 80vw; height: 55vh; }
  .gallery-item:not(.carousel-frame) { justify-content: center; }
  .gallery-item > img { height: 55vh; }
  .gallery-label { font-size: 0.85rem; bottom: 1rem; left: 1rem; }

  /* Footer index */
  .site-footer { padding: 6rem 2rem 6rem; }
  .footer-center { gap: 2rem; max-width: calc(100% - 14rem); }
  .footer-about,
  .footer-services { font-size: 1.1rem; letter-spacing: 0.04em; line-height: 1.7; }
  .footer-side { height: 52px; }
  .footer-cta__off,
  .footer-cta__on,
  .footer-side--se .footer-cta__off,
  .footer-side--se .footer-cta__on { height: 52px; }
  .footer-side--left  { left: 1.6rem; }
  .footer-side--right { right: 1.6rem; }
}
