/* ==========================================================================
   Project Eleven — master stylesheet
   One file styles the whole site. Edit here, every page follows.
   ========================================================================== */

/* ---- Fonts ---- */
@font-face { font-family: "Poppins"; font-weight: 300; font-style: normal;
  src: url("../fonts/poppins-300.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Poppins"; font-weight: 300; font-style: italic;
  src: url("../fonts/poppins-300italic.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal;
  src: url("../fonts/poppins-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal;
  src: url("../fonts/poppins-500.woff2") format("woff2"); font-display: swap; }

/* ---- Base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  color: #000;
  background: #fff;
  line-height: 1.8;
}
h1, h2, h3, h4 { font-weight: 500; line-height: 1.4; }
b, strong { font-weight: 500; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
video { display: block; max-width: 100%; }

/* ---- Header (overlays the hero) ---- */
header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 40px;
}
.logo img { width: 110px; height: auto; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { color: #fff; text-decoration: none; font-size: 1rem; }
.site-nav a:hover, .site-nav a.current { text-decoration: underline; text-underline-offset: 6px; }

/* Hamburger — hidden on desktop */
.menu-toggle {
  display: none;
  background: none; border: 0; cursor: pointer; z-index: 30;
  width: 44px; height: 44px; position: relative;
}
.menu-toggle span {
  display: block; width: 28px; height: 2px; background: #fff;
  margin: 7px auto; transition: transform 0.25s, opacity 0.25s, background 0.25s;
}

@media (max-width: 799px) {
  header { padding: 20px 20px; }
  .menu-toggle { display: block; }
  .site-nav {
    display: none;
    position: fixed; inset: 0; z-index: 20;
    background: #fff;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 1.4em;
  }
  .site-nav a { color: #000; font-size: 1.5rem; }
  body.nav-open .site-nav { display: flex; }
  body.nav-open { overflow: hidden; }
  body.nav-open .menu-toggle span { background: #000; }
  body.nav-open .menu-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

/* ---- Hero ---- */
.hero { position: relative; min-height: 62vh; display: flex; align-items: center; justify-content: center; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.25); }
.hero-title { position: relative; z-index: 1; text-align: center; color: #fff; padding: 120px 20px 60px; }
.hero-title h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.hero-title p { margin-top: 0.5em; }
.hero-caption { max-width: 1100px; margin: 0 auto; padding: 14px 24px 0; font-size: 0.9rem; opacity: 0.7; }
.hero--plain { min-height: 34vh; background: #1f1f1f; }
.hero--plain::after { display: none; }

/* ---- Content sections ---- */
section { max-width: 1100px; margin: 0 auto; padding: 48px 24px; }
section h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 0.6em; }
section h3 { font-size: 1.25rem; margin: 1.2em 0 0.6em; }
section h4 { font-size: 1.05rem; margin: 1.2em 0 0.6em; }
section p { margin-bottom: 1.2em; }
section ul, section ol { margin: 0 0 1.2em 1.4em; }
.meta { opacity: 0.7; font-size: 0.95rem; }
.center { text-align: center; }

/* Figures and galleries */
figure { margin: 2em 0; }
figure img { width: 100%; }
figcaption { font-size: 0.9rem; opacity: 0.7; margin-top: 0.6em; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 2em 0; }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }

/* Two-column: image beside text */
.two-col { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 44px; align-items: start; }
.two-col figure { margin: 0; }
@media (max-width: 799px) { .two-col { grid-template-columns: 1fr; } }

/* Buttons */
.button {
  display: inline-block; padding: 0.9em 1.8em; border: 1px solid #000;
  text-decoration: none; font-weight: 500; font-size: 0.95rem;
}
.button:hover { background: #000; color: #fff; }

/* Year cards on the Projects index */
.year-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 2em 0; }
.year-card { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; text-decoration: none; }
.year-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.year-card:hover img { transform: scale(1.04); }
.year-card::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.3); }
.year-card span {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2rem; font-weight: 500;
}

/* ---- Footer ---- */
footer { background: #1f1f1f; color: #fff; text-align: center; padding: 70px 24px; margin-top: 48px; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .social { margin-top: 1em; display: flex; gap: 24px; justify-content: center; }
footer .social a { opacity: 0.8; font-size: 0.95rem; }
