/*
Theme Name: Buoscio Fine Art
Theme URI: https://www.buoscio.com
Author: Christopher Buoscio
Description: A clean, dark fine art portfolio theme for Buoscio Fine Art. Full-width crossfade hero slideshow, filterable dt_portfolios grid, cinematic single portfolio pages.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: buoscio
Tags: portfolio, dark, full-width, photography, art
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --color-bg:       #0d0d0d;
  --color-surface:  #141414;
  --color-surface2: #1c1c1c;
  --color-border:   #2a2a2a;
  --color-text:     #f0ede8;
  --color-muted:    #888880;
  --color-accent:   #c8a96e;
  --color-plum:     #9b5c8a;

  --font-display: 'Bodoni Moda', Georgia, serif;
  --font-body:    'Josefin Sans', 'Helvetica Neue', sans-serif;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--color-accent); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  background: rgba(13,13,13,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: padding 0.4s ease;
}
#site-header.scrolled { padding: 0.75rem 0; }
.admin-bar #site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar #site-header { top: 46px; }
}

.nav-inner {
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo img { height: 36px; width: auto; }
.site-logo:hover { color: var(--color-text); }

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-decoration: none;
  padding: 0.3rem 0.85rem;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0.85rem; right: 0.85rem;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.nav-link:hover { color: var(--color-text); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--color-text); }

.nav-divider {
  display: block;
  width: 1px; height: 14px;
  background: var(--color-border);
  margin-inline: 0.4rem;
  flex-shrink: 0;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1px;
  background: var(--color-text);
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,13,13,0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile-link {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}
.nav-mobile-link:hover { color: var(--color-accent); }
.nav-mobile-divider {
  display: block;
  width: 40px; height: 1px;
  background: var(--color-border);
  margin: 0.75rem 0;
}

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

/* ============================================================
   HERO SLIDESHOW
   ============================================================ */
#hero {
  position: relative;
  height: 65vh;
  min-height: 420px;
  max-height: 800px;
  overflow: hidden;
}

.hero-slides { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--color-surface);
  opacity: 0;
  transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}
.hero-slide.active { opacity: 1; }
.hero-slide-fallback {
  background: linear-gradient(135deg, #160d1c 0%, #0d0d0d 100%);
}

/* Overlay — bottom gradient so nav and grid below read cleanly */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(13,13,13,0.45) 0%,
      rgba(13,13,13,0.1)  40%,
      rgba(13,13,13,0.6)  100%);
}

/* Optional centre text over hero */
.hero-text {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  padding-top: 80px;
}
.hero-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  line-height: 1.1;
}

/* Dots + progress bar */
.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}
.hero-dot.active { background: var(--color-accent); transform: scale(1.4); }
.hero-dot:hover:not(.active) { background: rgba(255,255,255,0.65); }

.hero-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.08);
  z-index: 3;
}
.hero-progress-bar {
  height: 100%;
  background: var(--color-accent);
  width: 0%;
  transition: width linear;
}

.hero-pause {
  position: absolute;
  top: 5rem; right: 2rem;
  z-index: 3;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.5);
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.7rem;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
#hero:hover .hero-pause { opacity: 1; pointer-events: auto; }
.hero-pause:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ============================================================
   PORTFOLIO GRID
   ============================================================ */
#portfolio-grid-section {
  width: 100%;
  padding: 0;
}

/* Filter bar — keep some padding so it doesn't touch edges */
.port-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0;
  padding: 1.25rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--color-border);
}
.port-filter-btn {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  background: none;
  border: 1px solid transparent;
  padding: 0.4rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.port-filter-btn:hover { color: var(--color-text); border-color: var(--color-border); }
.port-filter-btn.active {
  color: var(--color-bg);
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* Grid — flush, no gap, fills full width */
.port-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  width: 100%;
}

/* Card */
.port-card {
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
  cursor: pointer;
  aspect-ratio: 4/3;
}
.port-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease);
}
.port-card:hover img { transform: scale(1.06); }

.port-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(13,13,13,0.9) 0%,
    rgba(13,13,13,0.3) 45%,
    transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.port-card:hover .port-card-overlay { opacity: 1; }

.port-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  transform: translateY(8px);
  opacity: 0;
  transition: all 0.4s ease;
}
.port-card:hover .port-card-info {
  opacity: 1;
  transform: translateY(0);
}
.port-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}
.port-card-cats {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* Pagination */
.port-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 2.5rem clamp(1rem, 3vw, 2.5rem);
  border-top: 1px solid var(--color-border);
}
.port-pagination .page-numbers {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding-inline: 0.75rem;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  transition: all 0.3s ease;
}
.port-pagination .page-numbers:hover,
.port-pagination .page-numbers.current {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.port-pagination .page-numbers.dots { border-color: transparent; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2.5rem clamp(1.5rem, 5vw, 4rem);
  background: var(--color-surface);
}
.footer-inner {
  max-width: 1400px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-muted);
}
.footer-copy {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}
.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.footer-links a:hover { color: var(--color-accent); }

/* ============================================================
   SINGLE PORTFOLIO — see single-dt_portfolios.php
   ============================================================ */

/* ============================================================
   INNER PAGES (About, Exhibitions, etc.)
   ============================================================ */
.page-content {
  max-width: 860px;
  margin-inline: auto;
  padding: 7rem clamp(1.5rem, 5vw, 4rem) 5rem;
}
.admin-bar .page-content { padding-top: 9rem; }
.page-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}
.page-content p { color: var(--color-muted); margin-bottom: 1.25rem; line-height: 1.8; }
.page-content a { color: var(--color-accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .port-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 540px) {
  .port-grid { grid-template-columns: 1fr; }
  #hero { height: 52vh; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  height: 1px; overflow: hidden;
  position: absolute; width: 1px;
}

/* ── Taxonomy archive header ── */
.tax-header {
  text-align: center;
  padding: 3rem clamp(1.5rem,5vw,4rem) 2rem;
  border-bottom: 1px solid var(--color-border);
}
.tax-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.tax-desc {
  color: var(--color-muted);
  margin-top: 0.75rem;
  font-size: 0.95rem;
}
