/*
Theme Name:  Julia Grevenkamp
Theme URI:   https://juliagrevenkamp.com
Author:      Julia Grevenkamp
Description: Custom portfolio theme for Julia Grevenkamp — Interior & Set Designer. Palette: warm white, powder blue, khaki, red accents.
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: julia-grevenkamp
Tags:        portfolio, custom-colors, full-site-editing
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg:         #F5F3EE;
  --blue:       #A8C8D8;
  --blue-deep:  #C8DDE6;
  --khaki:      #7A7455;
  --red:        #C8291A;
  --dark:       #1A1A18;
  --mid:        #6B6860;
  --pale:       #E2DDD5;
  --white:      #ffffff;

  --font:       'Inter', sans-serif;
  --max:        1200px;
  --gutter:     clamp(1.25rem, 4vw, 3rem);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display-title {
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  font-weight: 900;
  line-height: 0.93;
  letter-spacing: -0.02em;
	
}
.display-title .line       { display: block; color: var(--dark); }
.display-title .line + .line { margin-top: 0.12em; }
.display-title .line.red   { color: var(--red); }

.page-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 0.93;
  letter-spacing: -0.02em;
}
.page-title .line           { display: block; color: var(--dark); }
.page-title .line + .line   { margin-top: 0.1em; }
.page-title .line.red       { color: var(--red); }

.section-label {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1rem;
}
.section-label::before {
  font-size: 0.65rem;
  background: rgba(200, 41, 26, 0.12);
  color: var(--red);
  padding: 1px 6px;
  border-radius: 2px;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  background: var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--gutter);
  /*max-width: var(--max);*/
  margin-inline: auto;
}

.site-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-menu a {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.current-menu-item { color: var(--white); }

/* mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

/* ============================================================
   HERO — HOME
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr 160px;
  min-height: 520px;
  border-bottom: 1px solid var(--pale);
}

@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr 80px; min-height: 380px; }
}

.hero-content {
  padding: clamp(2rem, 5vw, 4rem) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg);
}

.hero-tags {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  line-height: 2;
  margin-top: 1.25rem;
}
.hero-tags::before { content: '— '; color: var(--red); }

.hero-arrow {
  font-size: 1.1rem;
  color: var(--red);
  margin-top: 1.5rem;
}

.hero-swatch { background: var(--blue); }

/* ============================================================
   SECTION BANNER (khaki / red strip with label)
   ============================================================ */
.section-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem var(--gutter);
}
.section-banner.khaki { background: var(--khaki); }
.section-banner.red   { background: var(--red);   }

.banner-left { display: flex; align-items: baseline; gap: 0.6rem; }

.banner-num {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--red);
  background: rgba(200, 41, 26, 0.18);
  padding: 1px 6px;
  border-radius: 2px;
}
.section-banner.red .banner-num {
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.15);
}

.banner-title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.banner-link {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}
.banner-link:hover { color: var(--white); }

/* ============================================================
   PROJECT GRID — HOME (3-col portrait)
   ============================================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--pale);
}

@media (max-width: 768px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .project-grid { grid-template-columns: 1fr; }
}

.project-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: pointer;
  border-radius: 2px;
}

.project-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-tile:hover img { transform: scale(1.04); }

.tile-red-bar {
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--red);
  opacity: 0.65;
  z-index: 1;
}

.tile-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem 1.1rem;
  background: linear-gradient(transparent, rgba(15, 12, 10, 0.72));
  z-index: 2;
}

.tile-name {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 3px;
}

.tile-cat {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.tile-arrow {
  position: absolute;
  top: 0.9rem; right: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  z-index: 2;
  transition: color 0.2s;
}
.project-tile:hover .tile-arrow { color: var(--white); }

/* coming soon state */
.tile-coming .tile-name { color: rgba(255,255,255,0.28); }
.tile-coming .tile-cat  { color: rgba(255,255,255,0.2); }
.tile-coming .tile-arrow { color: rgba(255,255,255,0.15); }
.tile-coming-badge {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-top: 4px;
}

/* more works placeholder */
.tile-more {
  background: var(--pale);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile-more span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ============================================================
   ABOUT STRIP — HOME
   ============================================================ */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--pale);
}

@media (max-width: 640px) {
  .about-strip { grid-template-columns: 1fr; }
  .about-strip .about-photo { min-height: 240px; }
}

.about-text-col {
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg);
}

.about-body {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--dark);
}
.about-body .red { color: var(--red); }

.about-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 1.5rem;
  transition: color 0.2s;
}
.about-cta span   { color: var(--red); }
.about-cta:hover  { color: var(--dark); }

.about-photo {
  background: var(--blue-deep);
  min-height: 400px;
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ============================================================
   WORK ARCHIVE PAGE
   ============================================================ */
.page-hero {
  padding: clamp(2rem, 5vw, 4rem) var(--gutter) clamp(1.5rem, 3vw, 2.5rem);
  background: var(--bg);
  border-bottom: 1px solid var(--pale);
}

.category-label {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
  padding: 0.65rem var(--gutter) 0.35rem;
  background: var(--bg);
  border-top: 1px solid var(--pale);
}
.category-label::before { content: '— '; color: var(--red); }

/* flowing asymmetric work grid per category */
.work-flow {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
  background: var(--pale);
}

.work-row { display: flex; gap: 4px; }

.work-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 2px;
  flex: 1;
}
.work-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.work-item:hover img { transform: scale(1.04); }

.work-item.sq   { aspect-ratio: 1; }
.work-item.tall { aspect-ratio: 3 / 4; }
.work-item.land { aspect-ratio: 16 / 9; }
.work-item.w2   { flex: 2; }
.work-item.w3   { flex: 3; }

.work-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.75rem 0.9rem;
  background: linear-gradient(transparent, rgba(15,12,10,0.68));
  z-index: 2;
}
.work-item-name {
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

@media (max-width: 640px) {
  .work-row { flex-direction: column; }
  .work-item.w2, .work-item.w3 { flex: 1; }
  .work-item.land { aspect-ratio: 4/3; }
	.project-hero {
    aspect-ratio: 3 / 4;  /* wechselt von 16:6 zu Hochformat — doppelt so hoch */
  }
}

/* ============================================================
   INFO PAGE
   ============================================================ */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .info-grid { grid-template-columns: 1fr; }
}

.info-col {
  padding: clamp(1.5rem, 4vw, 3rem) var(--gutter);
}
.info-col:first-child {
  border-right: 1px solid var(--pale);
}

@media (max-width: 768px) {
  .info-col:first-child { border-right: none; border-bottom: 1px solid var(--pale); }
}

.info-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 1.5rem;
  background: var(--blue-deep);
}

.info-photo img { width: 100%; height: 100%; object-fit: cover; }

.photo-credit {
  position: absolute;
  bottom: 0.6rem;
  left: 0.75rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.info-body h4 {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 1.25rem 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 5px;
}
.info-body h4::before {
  content: '';
  display: inline-block;
  width: 12px; height: 1.5px;
  background: var(--red);
}
.info-body p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--mid);
  margin-bottom: 0.6rem;
}
.info-body a {
  color: var(--dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pull-quote {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.35;
  font-style: italic;
  letter-spacing: -0.01em;
  margin: 1.25rem 0;
}
.pull-quote .red { color: var(--red); }

.edu-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--mid);
}
.edu-year {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
  min-width: 70px;
  padding-top: 0.1rem;
}

/* ============================================================
   PROJECT DETAIL
   ============================================================ */
.project-hero {
  aspect-ratio: 16 / 6;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--pale);
}
.project-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.project-hero-label {
  position: absolute;
  bottom: 1.25rem; left: var(--gutter);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

.project-info {
  display: grid;
  grid-template-columns: 2fr 1fr;
  border-bottom: 1px solid var(--pale);
}
@media (max-width: 640px) {
  .project-info { grid-template-columns: 1fr; }
}

.project-description {
  padding: clamp(1.5rem, 3vw, 2.5rem) var(--gutter);
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--mid);
  border-right: 1px solid var(--pale);
}
@media (max-width: 640px) {
  .project-description { border-right: none; border-bottom: 1px solid var(--pale); }
	.project-hero {
    aspect-ratio: 3 / 4;  /* wechselt von 16:6 zu Hochformat — doppelt so hoch */
  }
}

.project-meta {
  padding: clamp(1.5rem, 3vw, 2.5rem) var(--gutter);
}
.project-meta dt {
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 5px;
}
.project-meta dt::before {
  content: '';
  display: inline-block;
  width: 8px; height: 1.5px;
  background: var(--red);
}
.project-meta dd {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 0.2rem;
}

/* project image gallery */
.project-gallery {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
  background: var(--pale);
}
.gallery-row { display: flex; gap: 4px; }
.gallery-img {
  flex: 1;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 2px;
}
.gallery-img.land { aspect-ratio: 4 / 3; }
.gallery-img.w2   { flex: 2; }
.gallery-img img  { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-img:hover img { transform: scale(1.03); }

@media (max-width: 640px) {
  .gallery-row { flex-direction: column; }
  .gallery-img.w2 { flex: 1; }
}

.gallery-img a {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-img a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.5s ease;
}

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

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  cursor: pointer;
  font-family: var(--font);
  transition: color 0.2s;
  z-index: 1001;
}
.lightbox-close:hover { color: #fff; }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 2rem;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 900;
  transition: color 0.2s;
  z-index: 1001;
  padding: 1rem;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover,
.lightbox-next:hover { color: #fff; }

@media (max-width: 640px) {
  .lightbox-img-wrap {
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
  }

  .lightbox-img-wrap img {
    max-width: 100vw;
    max-height: 100vh;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
    font-size: 1.25rem;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .lightbox-prev {
    left: 0;
    padding: 1.5rem 1rem;
  }

  .lightbox-next {
    right: 0;
    padding: 1.5rem 1rem;
  }
}

/* project prev/next nav */
.project-nav {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem var(--gutter);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  border-top: 1px solid var(--pale);
}
.project-nav a { color: var(--mid); transition: color 0.2s; }
.project-nav a:hover { color: var(--dark); }
.project-nav .arrow { color: var(--red); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--blue);
  border-top: 1px solid #8fb0c0;
  padding: 1.5rem var(--gutter) 1.25rem;
}

.footer-inner {
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 1rem;
}

@media (max-width: 540px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

.footer-col {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(26, 26, 24, 0.5);
  line-height: 2.1;
}
.footer-col a {
  color: rgba(26, 26, 24, 0.75);
  transition: color 0.2s;
}
.footer-col a::before { content: '· '; color: var(--red); }
.footer-col a:hover   { color: var(--dark); }

.footer-name {
  display: block;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 0.15rem;
}
.footer-col.right {
  text-align: right;
  color: rgba(26, 26, 24, 0.35);
}

/* ============================================================
   RESPONSIVE NAV
   ============================================================ */
@media (max-width: 640px) {
  .site-nav {
    padding: 0.75rem 1.25rem 0.75rem 1.25rem; /* links wieder Padding rein */
  }

  .hero-content {
    padding-left: 1.25rem; /* Hero-Text gleiche Einrückung */
  }

  .work-banner {
    padding-left: 1.25rem;
  }

  .about-text-col {
    padding-left: 1.25rem;
  }

  .footer-inner {
    padding-left: 1.25rem;
  }
}

  .site-logo {
      font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
    white-space: nowrap;    /* verhindert Zeilenumbruch */
    flex-shrink: 0;
  }

  .nav-links {
    display: none;          /* Links auf Mobile ausblenden — kommen ins Menü */
  }

  .nav-toggle {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;      /* schiebt Hamburger nach ganz rechts */
    z-index: 100;
    flex-shrink: 0;
  }

  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--red);
    padding: 1rem 1.25rem 1.5rem;
    gap: 1.25rem;
    z-index: 99;
  }

  .nav-menu.open {
    display: flex !important;
  }

  .nav-menu a {
    font-size: 1rem;
    color: #ffffff;
  }
}

/* ============================================================
   CUSTOM POST TYPE — PROJECT
   ============================================================ */
.no-results {
  padding: 4rem var(--gutter);
  text-align: center;
  font-size: 0.85rem;
  color: var(--mid);
}
