/* ============================================================
   LIAM ROBERT DESIGN CO — styles.css (Homepage)
   ============================================================ */

:root {
  --bg: #edecea;
  --white: #ffffff;
  --black: #111110;
  --grey: #8a8885;
  --light-grey: #d4d2cf;
  --font: Helvetica Neue, Helvetica, Arial, sans-serif;
  --nav-height: 72px;
  --easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font);
  font-weight: 500;
  background: var(--bg);
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 1; }

/* ============================================================
   NAV
   ============================================================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  pointer-events: none;
}

.site-nav a { pointer-events: all; }

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li { margin: 0; padding: 0; }

.nav-links a {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  padding: 6px 14px;
  display: block;
  transition: opacity 0.2s;
}

.nav-links a.active {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Mobile hamburger (hidden on desktop) */
.nav-hamburger {
  display: none;
  pointer-events: all;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--white);
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}

.nav-hamburger span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: width 0.2s, opacity 0.2s, transform 0.2s;
}

.nav-hamburger span:nth-child(1) { width: 24px; }
.nav-hamburger span:nth-child(2) { width: 18px; }
.nav-hamburger span:nth-child(3) { width: 24px; }

.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); width: 24px; }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 24px; }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--black);
  z-index: 9998;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 80px 40px 40px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nav-drawer.open {
  display: flex;
  opacity: 1;
}

.nav-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-drawer ul li { margin-bottom: 4px; }

.nav-drawer ul a {
  font-family: var(--font);
  font-size: clamp(28px, 8vw, 52px);
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.01em;
  display: block;
  text-align: right;
  padding: 6px 0;
  transition: opacity 0.15s;
}

.nav-drawer ul a:hover { opacity: 0.45; }

.nav-drawer-footer {
  margin-top: auto;
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ============================================================
   SLIDESHOW
   ============================================================ */

.image-slideshow {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--black);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--easing);
  z-index: 0;
}

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

.slides {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

.slide .slides {
  animation-name: kenburns;
  animation-duration: 8s;
  animation-timing-function: ease-out;
  animation-fill-mode: both;
  animation-play-state: paused;
}

.slide.active .slides { animation-play-state: running; }

/* Bottom gradient only — no hover darkening */
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.08) 45%, rgba(0,0,0,0) 70%);
  z-index: 2;
  pointer-events: none;
}

.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0) 25%);
  z-index: 2;
  pointer-events: none;
}

/* Caption */
.caption {
  position: absolute;
  bottom: 52px;
  left: 48px;
  right: 48px;
  color: #fff;
  z-index: 10;
  pointer-events: all;
}

.caption h2 {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(22px, 3.2vw, 44px);
  line-height: 1.15;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.caption p {
  font-family: var(--font);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
  opacity: 0.7;
}

/* Nav arrows */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: transparent;
  color: rgba(255,255,255,0.5);
  border: none;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  border-radius: 50%;
}

.prev { left: 24px; }
.next { right: 24px; }

.prev:hover, .next:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* Dot indicators */
.slide-dots {
  position: absolute;
  bottom: 52px;
  right: 48px;
  z-index: 10;
  display: flex;
  gap: 6px;
  pointer-events: none;
}

.slide-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  padding: 0;
  cursor: pointer;
  pointer-events: all;
  flex-shrink: 0;
  transition: background 0.3s;
}

.slide-dot.active {
  background: rgba(255,255,255,0.9);
}

/* Progress bar */
.slideshow-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,0.15);
  z-index: 10;
}

.slideshow-progress-bar {
  height: 100%;
  background: rgba(255,255,255,0.5);
  width: 0%;
  transition: width 6s linear;
}

/* ============================================================
   DESCRIPTION
   ============================================================ */

.desc-paragraph {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 48px 48px;
  background-color: var(--white);
  gap: 40px;
}

.desc-paragraph p {
  margin: 0;
  max-width: 520px;
  font-family: var(--font);
  font-size: clamp(16px, 1.8vw, 21px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--black);
}

.desc-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: right;
}

.desc-nav ul li { line-height: 1.7; }

.desc-nav a {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color 0.2s;
}

.desc-nav a:hover { color: var(--black); opacity: 1; }

/* ============================================================
   FOOTER
   ============================================================ */

.footer-bottom {
  background: var(--bg);
  padding: 28px 48px;
}

.footer-bottom p {
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0;
}

/* ============================================================
   MISC
   ============================================================ */

.bullet { font-size: 0.5em; vertical-align: middle; }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 768px) {
  /* Switch to hamburger nav */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .site-nav { padding: 0 24px; height: 72px; }
  .nav-logo img { width: 140px; }

  /* Slideshow */
  .image-slideshow { height: 75svh; }

  .caption {
    bottom: 36px;
    left: 24px;
    right: 24px;
  }

  .prev { left: 12px; width: 40px; height: 40px; }
  .next { right: 12px; width: 40px; height: 40px; }

  .slide-dots { right: 0; left: 0; bottom: 16px; justify-content: center; }

  /* Description fills remaining viewport space; footer scrolls into view below */
  .desc-paragraph {
    height: 25svh;
    flex-direction: column;
    gap: 12px;
    padding: 20px 24px;
    overflow: hidden;
  }

  .desc-nav ul { text-align: left; }

  /* Footer */
  .footer-bottom { padding: 16px 24px; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 480px) {
  .caption h2 { font-size: 20px; }
  .caption p { font-size: 10px; }
  .desc-paragraph { padding: 28px 20px; }
  .footer-bottom { padding: 20px 20px; }
}
