/* =============================================
   TINE BERG — STYLIST & MAKE-UP ARTIST
   Modern Responsive Portfolio
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

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

:root {
  --black:   #0d0d0d;
  --white:   #ffffff;
  --gray-light: #f5f4f2;
  --gray-mid:   #c8c4be;
  --accent:     #b89a7a;
  --nav-h:      72px;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;

  --gap: 6px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

a {
  text-decoration: none;
  color: inherit;
}

/* ─── Navigation ───────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: all 0.3s var(--ease);
}

nav.scrolled {
  height: 60px;
  border-bottom-color: rgba(0,0,0,0.1);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  opacity: 0.65;
  transition: opacity 0.2s;
  padding-bottom: 2px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--black);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--black);
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 105;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.nav-overlay.open {
  display: flex;
}

.nav-overlay a {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--black);
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav-overlay a:hover { opacity: 1; }

/* ─── Page wrapper ─────────────────────────── */
main {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* ─── Page header ──────────────────────────── */
.page-header {
  padding: 60px 40px 40px;
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--black);
}

.page-subtitle {
  margin-top: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-mid);
}

/* ─── Gallery Grid ─────────────────────────── */
.gallery {
  padding: 0 var(--gap) var(--gap);
  columns: 3;
  column-gap: var(--gap);
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--gap);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.03);
  filter: brightness(0.92);
}

/* ─── Home Hero ────────────────────────────── */
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  padding: 0 var(--gap);
  height: calc(100vh - var(--nav-h));
}

.hero-left,
.hero-right {
  overflow: hidden;
  position: relative;
}

.hero-left img,
.hero-right img {
  transition: transform 0.8s var(--ease);
}

.hero-left:hover img,
.hero-right:hover img {
  transform: scale(1.04);
}

.hero-tagline {
  position: absolute;
  bottom: 40px;
  left: 40px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

/* ─── Home category grid ───────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  padding: var(--gap);
  margin-top: var(--gap);
}

.category-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}

.category-card img {
  transition: transform 0.6s var(--ease);
}

.category-card:hover img {
  transform: scale(1.06);
}

.category-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── Films grid ───────────────────────────── */
.films-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  padding: 0 40px 80px;
}

.film-card {
  background: var(--gray-light);
}

.film-embed {
  position: relative;
  padding-bottom: 56.25%;
  overflow: hidden;
}

.film-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.film-info {
  padding: 20px 24px 24px;
}

.film-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.film-meta {
  margin-top: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-mid);
}

/* ─── About page ───────────────────────────── */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
  padding: 0 40px 100px;
  max-width: 1400px;
  margin: 0 auto;
}

.about-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 40px;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.85;
  font-weight: 300;
  color: #333;
  margin-bottom: 24px;
}

.about-text .names {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--accent);
  line-height: 1.6;
}

.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  align-content: start;
}

.about-photos img {
  aspect-ratio: 1;
  object-fit: cover;
}

.about-photos .span2 {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

/* ─── Contact page ─────────────────────────── */
.contact-wrap {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contact-image {
  overflow: hidden;
  height: calc(100vh - var(--nav-h));
  position: sticky;
  top: var(--nav-h);
}

.contact-info {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 48px;
}

.contact-tagline {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 300;
  font-style: italic;
  color: #555;
  margin-bottom: 56px;
  line-height: 1.6;
  max-width: 420px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray-mid);
}

.contact-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--black);
  transition: color 0.2s;
}

.contact-value:hover {
  color: var(--accent);
}

/* ─── Lightbox ─────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: white;
  font-size: 2rem;
  font-weight: 200;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  background: none;
  border: none;
  line-height: 1;
}

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

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2.5rem;
  font-weight: 100;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.5;
  padding: 20px;
  transition: opacity 0.2s;
  line-height: 1;
}

.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ─── Footer ───────────────────────────────── */
footer {
  padding: 40px;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-copy {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gray-mid);
  text-transform: uppercase;
}

/* ─── Animations ───────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.7s var(--ease) both;
}

/* ─── Responsive ───────────────────────────── */

/* Large screens */
@media (min-width: 1400px) {
  .gallery { columns: 4; }
}

/* Tablet */
@media (max-width: 1024px) {
  nav { padding: 0 24px; }
  .nav-links { gap: 20px; }

  .home-hero { height: 70vh; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }

  .about-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .about-photos .span2 {
    grid-column: span 1;
    aspect-ratio: 1;
  }

  .contact-wrap { grid-template-columns: 1fr; }
  .contact-image { display: none; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  nav { padding: 0 20px; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .home-hero {
    grid-template-columns: 1fr;
    height: 80vh;
  }

  .hero-right { display: none; }

  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }

  .gallery {
    columns: 2;
    padding: 0 4px 4px;
    column-gap: 4px;
  }

  .gallery-item { margin-bottom: 4px; }

  .page-header { padding: 40px 20px 28px; }

  .films-grid {
    grid-template-columns: 1fr;
    padding: 0 20px 60px;
    gap: 24px;
  }

  .about-wrap { padding: 0 20px 60px; }
  .about-text p { font-size: 1rem; }

  .about-photos {
    grid-template-columns: 1fr 1fr;
  }

  .contact-info {
    padding: 40px 24px 60px;
  }

  footer {
    padding: 28px 20px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .gallery { columns: 1; }
  .category-grid { grid-template-columns: 1fr; }
  .home-hero { height: 65vh; }
}
