/* ============================================================
   DreamPlay CR — Self-Hosted Static Site
   ============================================================ */

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

:root {
  --black: #1a1a1a;
  --white: #ffffff;
  --gray: #555;
  --light-gray: #f5f5f5;
  --accent: #e8e8e8;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --max-width: 2200px;
  --nav-height: 80px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── HEADER / NAV ─── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  border-bottom: 1px solid var(--accent);
}

.site-header .logo img {
  height: 50px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 40px;
  list-style: none;
}

.site-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  transition: opacity 0.2s;
}

.site-nav a:hover,
.site-nav a.active { opacity: 0.5; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: all 0.3s;
}

/* ─── MOBILE NAV ─── */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--accent);
  z-index: 999;
  padding: 24px 40px;
  flex-direction: column;
  gap: 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── PAGE WRAPPER ─── */
.page-content {
  padding-top: var(--nav-height);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ─── HOME: GALLERY GRID ─── */
.gallery-section {
  padding: 60px 40px 80px;
}

.gallery-grid {
  columns: 3;
  column-gap: 16px;
}

.gallery-grid .gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-grid .gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-grid .gallery-item:hover img {
  transform: scale(1.03);
}

/* ─── LIGHTBOX ─── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}
.lightbox-close {
  position: fixed;
  top: 24px; right: 32px;
  color: white;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 40px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  user-select: none;
  padding: 16px;
}
.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ─── STORIES PAGE ─── */
.stories-section {
  padding: 60px 40px 80px;
}

.stories-section h1 {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 48px;
}

.story-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--accent);
}

.story-card:last-child {
  border-bottom: none;
}

.story-card.reverse { direction: rtl; }
.story-card.reverse > * { direction: ltr; }

.story-image {
  overflow: hidden;
}
.story-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.story-image:hover img { transform: scale(1.03); }

.story-body { }

.story-tag {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 12px;
}

.story-body h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

.story-body p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 24px;
}

.story-body .btn {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 2px solid var(--black);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.story-body .btn:hover { opacity: 0.5; }

/* ─── QUOTE BANNER ─── */
.quote-banner {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 80px 40px;
}
.quote-banner blockquote {
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto 16px;
  line-height: 1.4;
}
.quote-banner cite {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ─── ABOUT PAGE ─── */
.about-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
}
.about-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: flex-end;
  padding: 48px;
}
.about-hero-overlay h1 {
  color: white;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
}

.about-section {
  padding: 80px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.about-section h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 24px;
}

.about-section p {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-section p:last-child { margin-bottom: 0; }

/* ─── TEAM GRID ─── */
.team-section {
  padding: 0 40px 80px;
}
.team-section h2 {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 48px;
  text-align: center;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.team-card { text-align: center; }
.team-card .avatar {
  width: 100%;
  padding-bottom: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  margin-bottom: 20px;
  background: var(--light-gray);
}
.team-card .avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.team-card .role {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 12px;
}
.team-card .linkedin {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--black);
  padding-bottom: 1px;
  display: inline-block;
  transition: opacity 0.2s;
}
.team-card .linkedin:hover { opacity: 0.5; }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 40px;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.site-footer a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.site-footer a:hover { color: white; }
.footer-social {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}
.footer-social a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .gallery-grid { columns: 2; }
  .story-card { grid-template-columns: 1fr; gap: 32px; }
  .story-card.reverse { direction: ltr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-header { padding: 0 20px; }
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .gallery-grid { columns: 1; }
  .gallery-section,
  .stories-section,
  .team-section { padding-left: 20px; padding-right: 20px; }
  .about-hero-overlay { padding: 24px; }
  .about-section { padding: 48px 20px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .story-image img { height: 260px; }
}
