/* =============================================================
   fa.ma ATELIER — site styles
   Mirrors the design tokens from the original HTML mock-up.
   ============================================================= */

:root {
  --ink:  #161616;
  --soft: #3c3c3c;
  --muted:#8c8c8c;
  --line: #e7e7e7;
  --cream:#ede7d3;
  --bg:   #ffffff;
  --font-sans: 'Jost', 'Century Gothic', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Abril Fatface', Georgia, serif;
  --font-atelier: 'Glacial Indifference', 'Jost', sans-serif;
}

/* ---------- Resets ---------- */
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.fama-cream { background: var(--cream); }
body.fama-home  { background: var(--bg); }

h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 500; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1em; }
a { color: var(--ink); text-decoration: none; }
a:hover { opacity: .65; }
img { display: block; max-width: 100%; height: auto; }

/* ---------- Topbar / header ---------- */
.fama-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 36px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
body.fama-home .fama-topbar {
  background: transparent;
  border-bottom: none;
  color: #fff;
}
body.fama-home .fama-topbar a,
body.fama-home .fama-topbar .fama-brand { color: #fff; }

.fama-brand { display: inline-flex; align-items: baseline; gap: 8px; line-height: 1; }
.fama-brand-fama {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  letter-spacing: 0.01em;
}
.fama-brand-atelier {
  font-family: var(--font-atelier);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.fama-links { display: flex; align-items: center; gap: 28px; }
.fama-links a {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.fama-lang-pill {
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 4px 10px;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: inherit;
  cursor: pointer;
}
.fama-lang-pill:hover { opacity: .7; }

/* ---------- Footer ---------- */
.fama-footer {
  border-top: 1px solid var(--line);
  padding: 60px 36px 36px;
  color: var(--soft);
  font-size: 13px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  background: var(--cream);
}
body.fama-home .fama-footer { background: var(--bg); }
body.fama-contact .fama-footer { display: none; }
.fama-footer h4 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 14px;
}
.fama-footer ul { list-style: none; padding: 0; margin: 0; }
.fama-footer li { margin-bottom: 6px; }
.fama-footer-meta { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; }

/* ---------- Layout: inner page wrapper ---------- */
.fama-page { padding: 96px 36px 60px; max-width: 1280px; margin: 0 auto; }
.fama-page h1.page-title { font-size: clamp(36px, 5vw, 64px); margin: 24px 0 14px; }
.fama-page .page-lede { font-size: 18px; color: var(--soft); max-width: 60ch; margin: 0 0 48px; }
.fama-eyebrow { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ---------- Home: full-bleed slideshow ---------- */
.fama-home-slideshow {
  position: fixed; inset: 0;
  background: #000;
  cursor: pointer;
  z-index: 1;
}
.fama-home-slideshow .slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.fama-home-slideshow .slide.active { opacity: 1; }
.fama-home-slideshow .slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.0) 30%, rgba(0,0,0,0.0) 60%, rgba(0,0,0,0.4) 100%); pointer-events: none; }
.fama-home-meta {
  position: fixed; left: 36px; bottom: 36px; z-index: 5;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.fama-home-meta .name { font-size: 24px; font-weight: 500; letter-spacing: -0.01em; display: block; margin-bottom: 4px; }
.fama-home-meta .type { color: rgba(255,255,255,0.78); }
.fama-home-meta a.view {
  pointer-events: auto;
  display: inline-block;
  margin-top: 14px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.7);
  padding-bottom: 2px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.fama-home-dots {
  position: fixed; right: 36px; bottom: 36px; z-index: 5;
  display: flex; gap: 8px;
}
.fama-home-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.7); background: transparent;
  padding: 0; cursor: pointer;
}
.fama-home-dots button.active { background: #fff; }

/* ---------- Projects grid ---------- */
.fama-projects-filters { display: flex; gap: 24px; margin-bottom: 36px; }
.fama-projects-filters button {
  background: transparent; border: 0; padding: 6px 0;
  font: inherit; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}
.fama-projects-filters button:hover { color: var(--ink); }
.fama-projects-filters button.active { color: var(--ink); border-bottom-color: var(--ink); }

.fama-projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; }
.fama-projects-grid .card { display: block; }
.fama-projects-grid .card .img { aspect-ratio: 1 / 1; background: var(--line); overflow: hidden; }
.fama-projects-grid .card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.fama-projects-grid .card:hover .img img { transform: scale(1.03); }
.fama-projects-grid .card .info { padding-top: 14px; }
.fama-projects-grid .card .name { font-size: 18px; color: var(--ink); }
.fama-projects-grid .card .type { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; margin-top: 4px; }
.fama-projects-grid .card.hidden { display: none; }
@media (max-width: 720px) { .fama-projects-grid { grid-template-columns: 1fr; } }

/* ---------- Single project ---------- */
.fama-project { max-width: 1280px; margin: 0 auto; padding: 96px 36px 60px; }
.fama-project .lede { font-size: 18px; color: var(--soft); max-width: 60ch; margin: 18px 0 44px; }
.fama-project .hero { width: 100%; aspect-ratio: 16 / 9; background: var(--line); overflow: hidden; margin-bottom: 60px; }
.fama-project .hero img { width: 100%; height: 100%; object-fit: cover; }
.fama-project .facts {
  display: grid; grid-template-columns: 1fr 1fr 2fr;
  gap: 36px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 60px;
}
.fama-project .facts h4 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.fama-project .facts .body { font-size: 14px; color: var(--ink); }
.fama-project .facts .body .row { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.fama-project .facts .body .row:last-child { border-bottom: 0; }
.fama-project .facts .body .row .label { color: var(--muted); }
.fama-project .desc { max-width: 65ch; font-size: 17px; margin-bottom: 80px; }
.fama-project .gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 120px; gap: 14px; }
.fama-project .gallery .item { background: var(--line); overflow: hidden; }
.fama-project .gallery .item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fama-project .gallery .item.tall { grid-row: span 4; grid-column: span 3; }
.fama-project .gallery .item.wide { grid-row: span 3; grid-column: span 6; }
.fama-project .gallery .item.square { grid-row: span 3; grid-column: span 3; }
.fama-project .gallery .item.thin { grid-row: span 2; grid-column: span 2; }
.fama-project .back { display: inline-block; margin-top: 60px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.fama-project .back:hover { color: var(--ink); border-bottom-color: var(--ink); }
@media (max-width: 720px) { .fama-project .facts { grid-template-columns: 1fr; } .fama-project .gallery { grid-template-columns: repeat(2, 1fr); } .fama-project .gallery .item.tall, .fama-project .gallery .item.wide, .fama-project .gallery .item.square, .fama-project .gallery .item.thin { grid-column: span 2; grid-row: span 3; } }

/* ---------- About ---------- */
.fama-about .slogan { font-size: clamp(40px, 6vw, 84px); max-width: 18ch; margin: 16px 0 44px; }
.fama-about .feature-img { width: 100%; aspect-ratio: 16 / 9; background: var(--line); overflow: hidden; margin-bottom: 60px; }
.fama-about .feature-img img { width: 100%; height: 100%; object-fit: cover; }
.fama-about .columns { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; }
.fama-about .columns h4 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.fama-about .columns .meta-block { margin-bottom: 28px; font-size: 14px; color: var(--ink); }
.fama-about .columns .desc p { font-size: 17px; color: var(--soft); margin-bottom: 1em; }
@media (max-width: 720px) { .fama-about .columns { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.fama-contact-bg {
  position: fixed; inset: 0; z-index: 1; background: #000;
}
.fama-contact-bg .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; }
.fama-contact-bg .slide.active { opacity: 1; }
.fama-contact-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
.fama-contact-card {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 10;
  width: min(560px, 88vw);
  text-align: center;
  color: #fff;
}
.fama-contact-card .brand-big { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 32px; color: #fff; }
.fama-contact-card .brand-big .fama { font-family: var(--font-display); font-style: italic; font-size: 64px; color: #fff; }
.fama-contact-card .brand-big .atelier { font-family: var(--font-atelier); letter-spacing: 0.4em; font-size: 14px; }
.fama-contact-card .info { font-size: 14px; line-height: 1.8; margin-bottom: 28px; opacity: .9; }
.fama-contact-card .email-button {
  display: inline-block; padding: 12px 24px;
  border: 1px solid rgba(255,255,255,0.7);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff; background: transparent; cursor: pointer;
}
.fama-contact-card .email-button:hover { background: rgba(255,255,255,0.12); }

/* Email modal */
.fama-modal { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; }
.fama-modal.open { display: flex; }
.fama-modal .panel { background: var(--cream); width: min(520px, 92vw); padding: 36px; position: relative; }
.fama-modal .panel h3 { font-size: 22px; margin-bottom: 6px; }
.fama-modal .panel p { font-size: 14px; color: var(--soft); margin-bottom: 18px; }
.fama-modal .panel input, .fama-modal .panel textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px;
  border: 1px solid var(--line); background: var(--bg);
  font: inherit; font-size: 14px; margin-bottom: 10px;
}
.fama-modal .panel textarea { min-height: 120px; }
.fama-modal .panel button.send { padding: 12px 22px; background: var(--ink); color: #fff; border: 0; font: inherit; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; }
.fama-modal .panel .close { position: absolute; top: 12px; right: 14px; background: transparent; border: 0; font-size: 22px; cursor: pointer; color: var(--ink); line-height: 1; }

/* Hide WP admin bar on home (so the slideshow is truly full-bleed) */
body.fama-home #wpadminbar { background: rgba(0,0,0,0.5) !important; }
