/* ========================================================================
   B FOTO — Main Stylesheet
   Design System: Pitch Black (#000000) | Playfair Display | Zero-Pad Layout
   ======================================================================== */

/* ── CSS Custom Properties (Design Tokens) ─────────────────────────────── */
:root {
  /* Colour Palette */
  --color-pitch: #000000;
  --color-charcoal: #0D0D0D;
  --color-muted: #A0A0A0;
  --color-body: #E0E0E0;

  /* Typography */
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", "Sarabun", sans-serif;

  /* Layout */
  --max-content: 1920px;
  --nav-h: 96px;
  --nav-h-scrolled: 80px;

  /* Z-Index Scale */
  --z-progress: 60;
  --z-nav: 50;
}

/* ── Reset & Base ──────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-pitch);
  color: var(--color-body);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: #fff;
  color: #000;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
}

/* ── Utility Classes ───────────────────────────────────────────────────── */
.serif {
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
}

.tracking-ultra {
  letter-spacing: 0.25em;
}

.glass-nav {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.4);
}

.text-muted {
  color: var(--color-muted);
}

.bg-pitch {
  background-color: var(--color-pitch);
}

.bg-charcoal {
  background-color: var(--color-charcoal);
}

.grayscale {
  filter: grayscale(100%);
}

.grayscale-0 {
  filter: grayscale(0%);
}

/* ── Scroll Progress Bar ───────────────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  z-index: var(--z-progress);
  transform-origin: left;
  transition: none;
  will-change: width;
}

/* ── Site Header ───────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-nav);
  transition: height 0.5s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  height: var(--nav-h);
}

.site-header.scrolled {
  height: var(--nav-h-scrolled);
}

.header-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  height: 100%;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.site-logo a {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

/* Desktop Navigation */
.primary-nav {
  display: none;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.primary-nav a {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 600;
  color: var(--color-muted);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.primary-nav a:hover,
.primary-nav .current-menu-item a,
.primary-nav .current_page_item a {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

/* Mobile Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0;
}

.mobile-toggle span {
  display: block;
  height: 1px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-3px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--color-pitch);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  color: var(--color-muted);
  transition: color 0.3s ease;
}

.mobile-nav a:hover {
  color: #fff;
}

/* ── Hero Section ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 6rem 3rem 5rem;
  background: linear-gradient(to top, #09090b, #000);
  z-index: 10;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 5rem;
}

.hero-content .divider-line {
  margin-bottom: 2rem;
  height: 1px;
  width: 5rem;
  background: rgba(255, 255, 255, 0.3);
}

.hero-content .hero-badge {
  color: var(--color-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-content h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.85;
  color: #fff;
  margin-bottom: 2.5rem;
  letter-spacing: -0.05em;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero-actions .btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 1rem 2.5rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  transition: background 0.5s ease, color 0.5s ease;
  background: transparent;
  color: #fff;
}

.hero-actions .btn-outline:hover {
  background: #fff;
  color: #000;
}

.hero-actions .hero-byline {
  color: var(--color-muted);
  font-size: 11px;
  font-style: italic;
  opacity: 0.6;
}

/* Hero Image */
.hero-image {
  width: 100%;
  position: relative;
  min-height: 50vh;
  overflow: hidden;
  background: #18181b;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.75);
  transition: all 1s ease;
}

.hero-image:hover img {
  filter: grayscale(100%) brightness(0.9);
}

.hero-image .gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #000, transparent, transparent);
  opacity: 0.6;
  pointer-events: none;
}

.hero-image .plate-info {
  position: absolute;
  bottom: 3rem;
  right: 3rem;
  text-align: right;
}

.hero-image .plate-info .plate-no {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  display: block;
  margin-bottom: 0.25rem;
}

.hero-image .plate-info .plate-title {
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* ── Spotlight Section ─────────────────────────────────────────────────── */
.spotlight {
  background: var(--color-pitch);
}

.spotlight-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

/* Awards Column */
.spotlight-awards {
  width: 100%;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-charcoal);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spotlight-awards .year {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.spotlight-awards .award-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  line-height: 1.4;
  margin-bottom: 2rem;
}

.spotlight-awards .explore-link {
  font-size: 10px;
  text-decoration: underline;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  transition: color 0.3s ease;
  margin-top: 2rem;
}

.spotlight-awards .explore-link:hover {
  color: var(--color-muted);
}

/* Description Column */
.spotlight-desc {
  flex: 1;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-charcoal);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.spotlight-desc h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-style: italic;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.spotlight-desc .desc-body {
  color: var(--color-body);
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 32rem;
  margin-bottom: 2.5rem;
  opacity: 0.8;
}

.spotlight-thumbs {
  display: flex;
  gap: 1.5rem;
  height: 8rem;
}

.spotlight-thumbs .thumb {
  flex: 1;
  overflow: hidden;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.spotlight-thumbs .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all 1s ease;
}

.spotlight-thumbs .thumb:hover img {
  transform: scale(1.1);
  opacity: 1;
  filter: grayscale(0%);
}

/* Stats Column */
.spotlight-stats {
  width: 100%;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--color-pitch);
}

.spotlight-stats .stat-group {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.spotlight-stats .stat-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.spotlight-stats .stat-value {
  font-size: 1.125rem;
  color: #fff;
}

.spotlight-stats .stat-value.italic {
  font-style: italic;
}

.spotlight-stats .stat-footer {
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.5rem;
}

.spotlight-stats .stat-footer p {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
  font-style: italic;
}

/* ── Services Section ──────────────────────────────────────────────────── */
.services {
  background: var(--color-pitch);
}

.services-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

.service-card {
  flex: 1;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 300px;
  transition: background 0.5s ease;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:last-child {
  border-bottom: none;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

.service-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.875rem;
  color: #fff;
  transition: all 0.3s ease;
}

.service-card:hover h3 {
  font-style: italic;
}

.service-card .card-index {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.service-card:hover .card-index {
  color: #fff;
}

.service-card .card-subtitle {
  font-size: 11px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 1.5rem;
}

.service-card .card-body {
  color: rgba(160, 160, 160, 0.6);
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 20rem;
  transition: color 0.3s ease;
}

.service-card:hover .card-body {
  color: var(--color-muted);
}

/* ── Quote Section ─────────────────────────────────────────────────────── */
.quote-section {
  padding: 8rem 1.5rem;
  background: var(--color-pitch);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3rem;
}

.quote-mark {
  color: rgba(255, 255, 255, 0.1);
  font-size: clamp(6rem, 14vw, 10rem);
  line-height: 1;
  margin-top: -2rem;
  user-select: none;
  font-style: italic;
  font-weight: 700;
}

.quote-text h3 {
  font-size: clamp(1.75rem, 5vw, 4.5rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 3rem;
}

.quote-text .highlight-soft {
  font-style: italic;
  font-weight: 300;
  opacity: 0.6;
}

.quote-text .highlight-em {
  font-style: italic;
}

.quote-attribution {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.quote-attribution .attr-line {
  height: 1px;
  width: 4rem;
  background: rgba(255, 255, 255, 0.3);
}

.quote-attribution p {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 600;
  color: var(--color-muted);
}

/* ── Gallery Grid ──────────────────────────────────────────────────────── */
.gallery-grid {
  background: var(--color-pitch);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.gallery-cell {
  flex: 1;
  aspect-ratio: 9 / 14;
  overflow: hidden;
  filter: grayscale(100%);
  transition: filter 1s ease;
  cursor: pointer;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-cell:last-child {
  border-bottom: none;
}

.gallery-cell:hover {
  filter: grayscale(0%);
}

.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
  transition: transform 1s ease, filter 1s ease;
}

.gallery-cell:hover img {
  transform: scale(1.05);
  filter: brightness(0.9);
}

.gallery-cell .cell-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-cell:hover .cell-overlay {
  opacity: 1;
  transform: translateY(0);
}

.cell-overlay .vol {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #fff;
  font-weight: 500;
}

.cell-overlay .tag {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

/* ── Site Footer ───────────────────────────────────────────────────────── */
.site-footer {
  height: 48px;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
}

.site-footer .copyright {
  font-size: 10px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.footer-cities {
  display: flex;
  gap: 2rem;
}

.footer-cities span {
  font-size: 10px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  transition: color 0.3s ease;
  cursor: pointer;
}

.footer-cities span:hover {
  color: #fff;
}

/* ── Scroll-Triggered Animation (JS driven) ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.5s ease, transform 1.5s ease;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered children */
.stagger-children .reveal {
  transition-delay: calc(var(--i, 0) * 100ms);
}

/* ── WordPress Admin Bar Offset ────────────────────────────────────────── */
.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  /* Navigation */
  .primary-nav {
    display: flex;
  }

  .mobile-toggle {
    display: none;
  }

  /* Hero */
  .hero {
    flex-direction: row;
    align-items: stretch;
  }

  .hero-content {
    width: 50%;
    padding: 6rem;
    padding-bottom: 5rem;
    margin-top: 0;
  }

  .hero-image {
    width: 50%;
    min-height: auto;
  }

  .hero-content h1 {
    font-size: clamp(3rem, 5.5vw, 5.5rem);
  }

  .hero-image .plate-info .plate-title {
    font-size: 1.125rem;
  }

  /* Spotlight */
  .spotlight-inner {
    flex-direction: row;
    align-items: stretch;
  }

  .spotlight-awards {
    width: 200px;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
  }

  .spotlight-desc {
    padding: 2.5rem 4rem;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .spotlight-stats {
    width: 350px;
    padding: 2.5rem;
  }

  .spotlight-thumbs {
    height: 10rem;
  }

  /* Services */
  .services-inner {
    flex-direction: row;
  }

  .service-card {
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 4rem;
  }

  .service-card:last-child {
    border-right: none;
  }

  /* Quote */
  .quote-section {
    padding: 12rem 3rem;
  }

  .quote-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 3rem;
  }

  .quote-mark {
    font-size: 10rem;
    margin-top: -4rem;
  }

  /* Gallery */
  .gallery-inner {
    flex-direction: row;
  }

  .gallery-cell {
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .gallery-cell:last-child {
    border-right: none;
  }
}

/* ── WordPress Default Alignment Overrides ─────────────────────────────── */
.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.alignwide {
  max-width: var(--max-content);
  margin-left: auto;
  margin-right: auto;
}

/* Screen reader text — WordPress accessibility requirement */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
