/* ============================================
   ESTHER DELGADO — Fashion Photographer
   estherdelgado.com
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap');

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

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --grey: #888888;
  --light-grey: #f5f5f5;
  --border: #e8e8e8;
  --nav-width: 260px;
  --font: 'Jost', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ease: 0.2s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--black); background: var(--white); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }

/* ============================================
   LAYOUT
   ============================================ */

.site-wrapper { display: flex; min-height: 100vh; }

/* ============================================
   SIDEBAR NAV
   ============================================ */

.site-nav {
  position: fixed;
  top: 0; left: 0;
  width: var(--nav-width);
  height: 100vh;
  overflow-y: auto;
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  z-index: 100;
  background: var(--white);
}

.site-nav::-webkit-scrollbar { width: 2px; }
.site-nav::-webkit-scrollbar-thumb { background: #ddd; }

.site-logo {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
  margin-bottom: 48px;
  display: block;
  white-space: nowrap;
}

.nav-section { margin-bottom: 28px; }

.nav-section-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.nav-links { list-style: none; }
.nav-links li { margin-bottom: 2px; }
.nav-links a {
  font-size: 12px;
  color: var(--grey);
  transition: color var(--ease);
  line-height: 1.6;
  display: block;
  padding: 3px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--black); }

.nav-bottom { margin-top: auto; padding-top: 30px; }

.nav-bottom a {
  display: block;
  font-size: 12px;
  color: var(--grey);
  margin-bottom: 8px;
  transition: color var(--ease);
}
.nav-bottom a:hover { color: var(--black); }

.nav-social { display: flex; gap: 14px; margin-top: 16px; }
.nav-social a {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color var(--ease);
  display: inline;
  margin-bottom: 0;
}
.nav-social a:hover { color: var(--black); }

/* ============================================
   MAIN CONTENT
   ============================================ */

.site-main { margin-left: var(--nav-width); flex: 1; }

/* ============================================
   HOME GRID
   ============================================ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.project-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  display: block;
}

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

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

.project-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.project-thumb:hover .project-thumb-overlay { background: rgba(0,0,0,0.4); }

.project-thumb-title {
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.project-thumb:hover .project-thumb-title { opacity: 1; transform: translateY(0); }

/* ============================================
   PROJECT PAGE
   ============================================ */

.project-page { padding: 60px 60px 100px; }

.project-header { margin-bottom: 48px; text-align: center; }

.project-title {
  font-size: clamp(24px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.project-subtitle {
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 20px;
}

.project-meta {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.5;
  max-width: 560px;
  text-align: center;
  margin: 0 auto;
}

.project-meta p + p { margin-top: 4px; }

.project-meta .editorial-note {
  display: none;
}

.project-images {
  column-count: 3;
  column-gap: 18px;
}
.project-images img {
  width: 100%;
  height: auto;
  display: block;
  break-inside: avoid;
  margin-bottom: 18px;
}
.project-images .row-2 { display: contents; }

/* ============================================
   COLLECTION INDEX
   ============================================ */

.collection-page { padding: 60px 60px 100px; }

.collection-title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.collection-list { list-style: none; }

.collection-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity var(--ease);
}
.collection-item:first-child { border-top: 1px solid var(--border); }
.collection-item:hover { opacity: 0.6; }

.collection-item-year { font-size: 12px; color: var(--grey); min-width: 38px; }
.collection-item-title { font-size: 14px; font-weight: 500; }
.collection-item-thumb {
  width: 56px; height: 56px;
  object-fit: cover;
  margin-left: auto;
  flex-shrink: 0;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-page { padding: 60px 60px 100px; max-width: 820px; margin: 0 auto; }

.about-page h1 {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 48px;
  text-align: center;
}

.about-body { font-size: 16px; line-height: 1.85; color: var(--grey); text-align: justify; }
.about-body p + p { margin-top: 22px; }

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-page { padding: 60px 60px 100px; max-width: 680px; margin: 0 auto; }

.contact-page h1 {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 24px;
  text-align: center;
}

.contact-intro { font-size: 15px; line-height: 1.75; color: var(--grey); text-align: justify; margin-bottom: 48px; }

.contact-form { display: flex; flex-direction: column; gap: 22px; }

.form-group { display: flex; flex-direction: column; gap: 7px; }

.form-group label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}

.form-group input,
.form-group textarea {
  border: 1px solid #ddd;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--black);
  background: var(--white);
  transition: border-color var(--ease);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--black); }

.form-group textarea { min-height: 150px; resize: vertical; }

.btn-submit {
  align-self: flex-start;
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 14px 38px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity var(--ease);
}
.btn-submit:hover { opacity: 0.75; }

/* ============================================
   MOBILE
   ============================================ */

.nav-toggle {
  display: none;
  position: fixed;
  top: 14px; left: 14px;
  z-index: 200;
  background: var(--white);
  border: 1px solid var(--border);
  width: 38px; height: 38px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 9px;
}

.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--black);
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .site-nav {
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,0.08);
  }
  .site-nav.open { transform: translateX(0); }

  .site-main { margin-left: 0; padding-top: 56px; }

  .projects-grid { grid-template-columns: 1fr; }
  .project-images { column-count: 2; column-gap: 12px; }
  .project-images img { margin-bottom: 12px; }

  .project-page,
  .about-page,
  .contact-page,
  .collection-page { padding: 28px 20px 70px; }
}

@media (max-width: 560px) {
  .project-images { column-count: 1; }
  .collection-item-thumb { display: none; }
}
