/* CreativeSilva.com — shared stylesheet */

:root {
  --bg: #1a1a1a;
  --bg-2: #222222;
  --text: #ffffff;
  --text-dim: #aaaaaa;
  --text-faint: #777777;
  --accent: #cc0000;
  --max-width: 1200px;
  --header-height: 84px;
  --font-head: "Oswald", "Bebas Neue", "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html, body { height: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

/* Fixed blurred cityscape background with dark overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../images/City_Background_Blur.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: blur(2px);
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

/* Thin copper border at very top edge */
body { border-top: 2px solid #6b3a1a; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

img { display: block; max-width: 100%; height: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: var(--header-height);
}
.nav-left,
.nav-right {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  text-transform: uppercase;
}
.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }
.nav-left a,
.nav-right a {
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav-left a:hover, .nav-left a.active,
.nav-right a:hover, .nav-right a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.brand {
  display: flex;
  align-items: center;
  justify-self: center;
}
.brand img {
  height: 56px;
  width: auto;
}

@media (max-width: 820px) {
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 16px 20px;
    gap: 14px;
  }
  .brand { flex: 0 0 100%; order: 1; justify-content: center; }
  .nav-left, .nav-right { order: 2; justify-content: center; gap: 16px; font-size: 0.72rem; }
}

/* ---------- Layout ---------- */
main { min-height: calc(100vh - var(--header-height) - 120px); }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 32px;
}
.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 32px;
}

/* ---------- Page titles ---------- */
.page-title {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(2rem, 4vw, 3.4rem);
  text-align: center;
  margin-bottom: 16px;
}

/* ---------- Gallery prev/next navigation ---------- */
.gallery-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}
.gallery-header .page-title { margin-bottom: 0; }
.gallery-nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.gallery-nav-btn:hover { color: var(--accent); }
.gallery-nav-btn .nav-arrow { font-size: 1.1rem; }
.gallery-intro {
  font-style: italic;
  text-align: center;
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 auto 56px;
  font-size: 1.05rem;
}

/* ---------- Homepage / Selected Works gallery index ---------- */
.gallery-index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.gallery-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #000;
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease, opacity .4s ease;
  opacity: 0.85;
}
.gallery-card:hover img {
  transform: scale(1.05);
  opacity: 1;
}
.gallery-card .label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
  transition: background .3s ease;
}
.gallery-card:hover .label {
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 100%);
}
@media (max-width: 720px) {
  .gallery-index { grid-template-columns: 1fr; }
}

/* ---------- Gallery detail (2-up image grid) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 32px;
}
.gallery-item figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.gallery-item img {
  cursor: zoom-in;
  transition: opacity .25s ease;
  background: #000;
}
.gallery-item img:hover { opacity: 0.92; }
@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Text pages (Statement / Bio) ---------- */
.statement-layout {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 56px;
  align-items: start;
}
.statement-layout .headshot img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(255,255,255,0.08);
}
.prose p {
  margin-bottom: 1.25em;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #e8e8e8;
}
.prose p:last-child { margin-bottom: 0; }
@media (max-width: 820px) {
  .statement-layout { grid-template-columns: 1fr; gap: 32px; }
}

.bio-prose {
  max-width: 720px;
  margin: 0 auto;
}
.bio-prose p { text-align: left; }

/* ---------- Contact ---------- */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form label {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 6px;
  display: block;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color .2s, background .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.06);
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form button {
  margin-top: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 20px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.contact-form button:hover { background: #a30000; }
.contact-form button:active { transform: translateY(1px); }
.contact-info {
  text-align: center;
  margin-top: 36px;
  color: var(--text-dim);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}
.contact-info a:hover { color: var(--accent); }

/* ---------- "You may also like" cross-links ---------- */
.also-like {
  margin-top: 96px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.also-like h2 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 28px;
  font-weight: 600;
}
.also-like-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.also-like-grid a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.also-like-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: opacity .3s, transform .6s;
}
.also-like-grid a:hover img { opacity: 1; transform: scale(1.04); }
.also-like-grid .label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  background: rgba(0,0,0,0.4);
}
@media (max-width: 720px) {
  .also-like-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 80px;
  padding: 32px 32px 48px;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.back-to-top {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}
.back-to-top::before { content: "↑ "; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 32px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0,0,0,0.8);
}
.lightbox .lb-caption {
  position: absolute;
  bottom: 24px;
  left: 0; right: 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.lightbox .lb-close {
  position: absolute;
  top: 20px; right: 28px;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.lightbox .lb-prev,
.lightbox .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.6rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background .2s, border-color .2s;
  z-index: 101;
  line-height: 1;
}
.lightbox .lb-prev { left: 24px; }
.lightbox .lb-next { right: 24px; }
.lightbox .lb-prev:hover,
.lightbox .lb-next:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}
