/* ============================================================
   artkleinart.com — Production Stylesheet
   Hosted on Vercel. Edit in Cursor, push to deploy.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Open+Sans:ital,wght@0,400;0,600;1,400&display=swap');

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 15px;
  color: #333;
  background: #fff;
  line-height: 1.65;
}

a { color: #e07b39; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* --- Top bar ---------------------------------------------- */
.topbar {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

.topbar-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 8px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #666;
}

.topbar-icons { display: flex; gap: 10px; }
.topbar-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #ccc;
  border-radius: 3px;
  color: #0a66c2;
  text-decoration: none;
}
.topbar-icons a svg { display: block; }
.topbar-icons a:hover { background: #f5f5f5; }

/* --- Main navigation -------------------------------------- */
.site-header {
  border-bottom: 1px solid #e8e8e8;
}

.site-header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 12px 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  display: block;
  text-decoration: none;
  padding-bottom: 12px;
  flex-shrink: 0;
  line-height: 0;
}

.site-logo img {
  height: 50px;
  width: auto;
  display: block;
}
.site-logo:hover { opacity: 0.75; text-decoration: none; }

.site-nav {
  display: flex;
  gap: 0;
  align-items: stretch;
  padding-bottom: 0;
}

.site-nav a {
  display: block;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.site-nav a:hover { color: #e07b39; border-bottom-color: #e07b39; text-decoration: none; }
.site-nav a.active {
  color: #fff;
  background: #e07b39;
  border-bottom-color: #e07b39;
}

/* --- Page wrapper ----------------------------------------- */
.page-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}

/* --- Hero section ----------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0 40px;
  border-bottom: 1px solid #eee;
  margin-bottom: 48px;
}

.hero-text h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #222;
}

.hero-text p {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  background: #e07b39;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 3px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.15s;
}
.btn:hover { background: #c8692a; text-decoration: none; color: #fff; }
.btn-secondary {
  background: #fff;
  color: #e07b39;
  border: 1px solid #e07b39;
}
.btn-secondary:hover { background: #fdf4ef; color: #e07b39; }

/* Hero image strip */
.hero-images {
  height: 320px;
  overflow: hidden;
  border-radius: 4px;
  background: #c8b0a0;
}

.hero-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* --- Section labels --------------------------------------- */
.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #999;
  margin-bottom: 8px;
  margin-top: 48px;
}
.section-label:first-child { margin-top: 0; }

.section-subtitle {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 24px;
  margin-top: -4px;
}

.row-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: #bbb;
  margin-top: 28px;
  margin-bottom: 10px;
}

/* --- Project page headings -------------------------------- */
h1.page-title {
  font-size: 26px;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
  margin-top: 48px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e07b39;
}
h1.page-title:first-child { margin-top: 0; }

.project-meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 20px;
}

h3.subsection-header {
  font-size: 13px;
  font-weight: 600;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 32px;
  margin-bottom: 6px;
}
hr.section-rule {
  border: none;
  border-top: 1px solid #2a2a2a;
  margin: 32px 0 28px;
}
h2.section-header {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin-top: 36px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.description {
  font-size: 14px;
  color: #555;
  max-width: 740px;
  margin-bottom: 24px;
  line-height: 1.8;
}

/* --- Image grids ------------------------------------------ */
.img-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.span-full { grid-column: 1 / -1; }

/* --- Portfolio image cards -------------------------------- */
.img-card {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: #ddd;
}

.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.img-card:hover img { transform: scale(1.02); }

/* For wide/flat images where full frame matters more than fill */
.img-card.contain img {
  object-fit: contain;
  background: #111;
}

/* Placeholder cards for content coming soon */
.img-card.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0ede8;
  border: 2px dashed #d0c8bc;
  cursor: default;
}
.img-card.placeholder:hover img { transform: none; }
.placeholder-label {
  font-size: 11px;
  color: #b0a898;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 16px;
  pointer-events: none;
  user-select: none;
}

/* Local video embed */
.video-card {
  position: relative;
  background: #111;
  border-radius: 3px;
  overflow: hidden;
}
.video-card video {
  width: 100%;
  display: block;
  border-radius: 3px;
}
.video-card .img-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.img-card.tall { min-height: 280px; }
.img-card.wide { min-height: 200px; }
.img-card.square { min-height: 220px; }
.img-card.short { min-height: 160px; }

/* When image src is empty, show a placeholder */
.img-card img[src=""] {
  min-height: inherit;
  background: #c8b8a8;
}

/* Image caption overlay */
.img-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  padding: 32px 12px 10px;
  color: rgba(255,255,255,0.95);
  font-size: 11px;
  text-align: center;
  line-height: 1.4;
}

.img-card figcaption {
  font-size: 11px;
  color: #999;
  text-align: center;
  padding: 6px 4px 2px;
  font-style: italic;
}

/* --- Art direction team credit badge ---------------------- */
.team-credit {
  display: block;
  background: #f0f4f8;
  border-left: 3px solid #90a4ae;
  color: #555;
  font-size: 13px;
  padding: 10px 16px;
  margin-bottom: 24px;
  line-height: 1.6;
  border-radius: 0 3px 3px 0;
}

/* --- Video embed ------------------------------------------ */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #111;
  margin-bottom: 8px;
  grid-column: 1 / -1;
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* --- Video link card (fallback when embed is unavailable) -- */
.video-link-card {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #111;
  border-radius: 4px;
  padding: 24px 28px;
  text-decoration: none;
  color: #fff;
  transition: background 0.15s;
}
.video-link-card:hover { background: #1e1e1e; }
.video-link-play {
  font-size: 28px;
  color: #e07b39;
  flex-shrink: 0;
}
.video-link-label {
  font-size: 15px;
  font-weight: 500;
  flex: 1;
}
.video-link-sub {
  font-size: 13px;
  color: #888;
  flex-shrink: 0;
}

/* --- Divider ---------------------------------------------- */
hr.divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 56px 0 0;
}

/* --- Footer ----------------------------------------------- */
.site-footer {
  background: #f8f8f8;
  border-top: 1px solid #ebebeb;
  padding: 32px 32px;
  margin-top: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-name {
  font-family: 'Dancing Script', cursive;
  font-size: 22px;
  color: #555;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
  align-items: center;
}

.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0a66c2;
}
.footer-linkedin svg { display: block; }
.footer-linkedin:hover { text-decoration: underline; }

.footer-copy {
  font-size: 11px;
  color: #bbb;
  width: 100%;
  text-align: center;
}

/* ============================================================
   RESPONSIVE — Tablet (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  .page-content { padding: 32px 24px 60px; }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 0 32px;
  }

  .hero-images {
    height: 220px;
    order: -1;
  }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {
  .topbar-inner { padding: 8px 16px; font-size: 12px; }

  .site-header-inner {
    padding: 10px 16px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .site-logo img {
    height: 38px;
    padding-bottom: 8px;
  }

  .site-nav {
    width: 100%;
    border-top: 1px solid #f0f0f0;
    margin-top: 4px;
  }

  .site-nav a {
    padding: 10px 12px;
    font-size: 12px;
  }

  .page-content { padding: 24px 16px 48px; }

  .hero-text h1 { font-size: 22px; }

  .hero-images { height: 180px; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  .img-card.tall { min-height: 240px; }

  .site-footer {
    padding: 24px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-links { flex-direction: column; gap: 10px; }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.img-card { cursor: zoom-in; }

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

#lightbox.open { display: flex; }

#lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.6);
  cursor: default;
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.15s;
  padding: 0 8px;
}

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

#lightbox-prev,
#lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 72px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s;
  padding: 0 20px;
  display: none;
  align-items: center;
  user-select: none;
}
#lightbox-prev { left: 0; }
#lightbox-next { right: 0; }
#lightbox-prev:hover,
#lightbox-next:hover { opacity: 1; }

#lightbox-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  letter-spacing: 0.05em;
  display: none;
}
