/* Josh Magalong — portfolio shell
   Mirrors a classic Squarespace "strip gallery" layout:
   bold wordmark left, small bold nav right of it, full-bleed horizontal photo strip. */

:root {
  --ink: #000;
  --text: #111;
  --muted: #999;
  --rule: #e6e6e6;
  --bar: #f7f7f7;
  --menu-link: #666;
  --ph-a: #ececec;
  --ph-b: #e2e2e2;
  --ph-label: #a8a8a8;
  --arrow-bg: rgba(0, 0, 0, 0.1);
  --strip-h: 600px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: flex-start;
  gap: 21px;
  padding: 36px 30px 30px;
  position: relative;
  z-index: 20;
}

.logo {
  margin: 0;
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.main-nav { padding-top: 10px; margin-bottom: -10px; }

.main-nav > ul { display: flex; flex-wrap: wrap; }

.main-nav > ul > li { position: relative; margin-left: 25px; }
.main-nav > ul > li:first-child { margin-left: 0; }

.main-nav a {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: 0.04em;
  padding: 7px 0;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.1s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible { color: var(--muted); }

/* Folder dropdowns — toggled open by clicking the parent (e.g. Services) */
.subnav {
  display: none;
  position: absolute;
  top: 36px;
  left: -12.5px;
  background: #fff;
  border: 1px solid var(--rule);
  padding: 6.25px 0;
  z-index: 999;
}

.folder.open .subnav { display: block; }
.folder.open > a { color: var(--muted); }

.subnav a {
  display: block;
  padding: 3.125px 12.5px;
  line-height: normal;
  white-space: nowrap;
}

/* ---------- Strip gallery ---------- */

.strip {
  position: relative;
  height: var(--strip-h);
  overflow: hidden;
  user-select: none;
}

.strip-track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.strip-track.animate {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
  height: 100%;
  flex: 0 0 auto;
  cursor: pointer;
}

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

.placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ph-a);
  color: var(--ph-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slide:nth-child(even) .placeholder { background: var(--ph-b); }

.strip-arrow {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 60px;
  margin-top: -30px;
  border: 0;
  padding: 0;
  background: var(--arrow-bg);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 2;
}

.strip-arrow:hover { background: rgba(0, 0, 0, 0.25); }
.strip-arrow.prev { left: 0; }
.strip-arrow.next { right: 0; }
.strip-arrow svg { width: 12px; height: 22px; }

/* ---------- Text pages (About / Contact) ---------- */

.text-page {
  max-width: 640px;
  padding: 40px 30px 80px;
  font-size: 15px;
  line-height: 1.7;
}

.text-page h2 {
  font-size: 11px;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
}

.text-page .ph-image {
  aspect-ratio: 4 / 5;
  max-width: 360px;
  margin-bottom: 30px;
}

/* ---------- Mobile ---------- */

.mobile-menu-link,
.mobile-nav { display: none; }

@media (max-width: 767px) {
  .mobile-menu-link {
    display: block;
    width: 100%;
    background: var(--bar);
    border: 0;
    padding: 15px;
    font: 700 17px/27.2px var(--font);
    letter-spacing: 0.04em;
    color: var(--ink);
    cursor: pointer;
  }

  .mobile-nav.open { display: block; background: var(--bar); padding-bottom: 8px; }

  .mobile-nav a {
    display: block;
    text-align: center;
    padding: 11.2px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--menu-link);
  }

  .mobile-nav .sub { display: none; }
  .mobile-nav .folder.open .sub { display: block; }
  .mobile-nav .sub a { font-size: 14px; padding: 8px; font-weight: 400; }

  .site-header { justify-content: center; padding: 30px 20px; }
  .main-nav { display: none; }
  .logo { white-space: normal; text-align: center; }

  /* Strip becomes a vertical stack of full-width images */
  .strip { height: auto; overflow: visible; }
  .strip-track { display: block; transform: none !important; }
  .slide { height: auto; margin-bottom: 6px; cursor: default; }
  .slide.clone { display: none; }
  .slide img { width: 100%; height: auto; }
  .placeholder { height: auto; aspect-ratio: var(--ratio); }
  .strip-arrow { display: none; }

  .text-page { padding: 10px 20px 60px; }
}
