/*
Theme Name: Jeff C Photography
Theme URI: https://example.com/
Author: Jeff C Photography
Description: Editorial commercial, fashion, and portrait photography theme with customizable color controls.
Version: 1.0.9
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: jeff-c-photography
*/

:root {
  --jcp-bg: #050505;
  --jcp-surface: #111111;
  --jcp-text: #f6f0ec;
  --jcp-muted: #b7aaa4;
  --jcp-accent: #b11226;
  --jcp-accent-dark: #670814;
  --jcp-border: rgba(246, 240, 236, 0.18);
  --jcp-max: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--jcp-bg);
  color: var(--jcp-text);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration-color: var(--jcp-accent);
  text-underline-offset: 0.22em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(5, 5, 5, 0.88);
  border-bottom: 1px solid var(--jcp-border);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(100% - 32px, var(--jcp-max));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: grid;
  gap: 2px;
  text-decoration: none;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.brand-tagline {
  color: var(--jcp-muted);
  font-size: 0.7rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 9px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--jcp-border);
  border-radius: 999px;
  color: var(--jcp-muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 220ms ease, color 220ms ease, background 220ms ease;
}

.social-link:hover {
  border-color: var(--jcp-accent);
  background: var(--jcp-accent);
  color: #fff;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.nav-menu a {
  display: inline-block;
  position: relative;
  overflow: hidden;
  padding: 6px 0;
  text-decoration: none;
}

.nav-menu a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--jcp-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.nav-menu a::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(177, 18, 38, 0.22), transparent);
  transform: translateX(-120%);
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
  color: var(--jcp-accent);
}

.nav-menu a:hover {
  animation: jcpMenuPulse 180ms linear;
}

.nav-menu a:hover::before {
  animation: jcpShutterSweep 420ms ease;
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item > a::after {
  transform: scaleX(1);
  transform-origin: left;
}

@keyframes jcpMenuPulse {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-1px);
  }

  50% {
    transform: translateX(1px);
  }

  75% {
    transform: translateX(-1px);
  }
}

@keyframes jcpShutterSweep {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(120%);
  }
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #050505, #2b060d 55%, #080808);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(90deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.55) 48%, rgba(5, 5, 5, 0.24) 100%);
}

.hero-media,
.hero-video,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: jcpHeroFade 24s infinite;
}

.hero-slide:first-child:last-child {
  opacity: 1;
  animation: none;
}

.hero-slide:nth-child(1) {
  animation-delay: 0s;
}

.hero-slide:nth-child(2) {
  animation-delay: 6s;
}

.hero-slide:nth-child(3) {
  animation-delay: 12s;
}

.hero-slide:nth-child(4) {
  animation-delay: 18s;
}

@keyframes jcpHeroFade {
  0%,
  18% {
    opacity: 1;
  }

  26%,
  100% {
    opacity: 0;
  }
}

.hero-inner {
  width: min(100% - 32px, var(--jcp-max));
  margin: 0 auto;
  padding: 96px 0 72px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--jcp-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1,
.page-title {
  max-width: 850px;
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  margin: 26px 0 0;
  color: var(--jcp-muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--jcp-accent);
  border-radius: 0;
  background: var(--jcp-accent);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--jcp-text);
}

.section {
  padding: 82px 0;
}

.section-inner,
.content-area {
  width: min(100% - 32px, var(--jcp-max));
  margin: 0 auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-heading h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
}

.section-heading p {
  max-width: 430px;
  margin: 0;
  color: var(--jcp-muted);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.portfolio-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--jcp-surface);
  text-decoration: none;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 450ms ease, opacity 450ms ease;
}

.portfolio-card:hover img {
  transform: scale(1.04);
  opacity: 1;
}

.portfolio-card span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 11px;
  background: rgba(5, 5, 5, 0.76);
  color: var(--jcp-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--jcp-border);
  border-left: 1px solid var(--jcp-border);
}

.service {
  display: block;
  min-height: 250px;
  padding: 26px;
  border-right: 1px solid var(--jcp-border);
  border-bottom: 1px solid var(--jcp-border);
  background: rgba(255, 255, 255, 0.025);
  color: inherit;
  text-decoration: none;
  transition: background 220ms ease, border-color 220ms ease;
}

.service:hover {
  background: rgba(177, 18, 38, 0.12);
  border-color: rgba(177, 18, 38, 0.58);
}

.service h3 {
  margin: 0 0 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.8rem;
}

.service p {
  margin: 0;
  color: var(--jcp-muted);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.proofing-strip {
  padding: 18px 0 56px;
}

.proofing-inner {
  width: min(100% - 32px, var(--jcp-max));
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.proofing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid var(--jcp-border);
  color: var(--jcp-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 220ms ease, color 220ms ease, background 220ms ease;
}

.proofing-button:hover {
  border-color: var(--jcp-accent);
  background: rgba(177, 18, 38, 0.12);
  color: var(--jcp-text);
}

.content-area {
  padding: 72px 0;
}

.content-area h1,
.content-area h2,
.content-area h3 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.05;
}

.content-area input,
.content-area textarea,
.content-area select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--jcp-border);
  background: #0b0b0b;
  color: var(--jcp-text);
  font: inherit;
}

.site-footer {
  border-top: 1px solid var(--jcp-border);
  padding: 34px 0;
  color: var(--jcp-muted);
}

.footer-inner {
  width: min(100% - 32px, var(--jcp-max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.85rem;
}

.footer-proofing-link {
  color: var(--jcp-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-proofing-link:hover {
  color: var(--jcp-accent);
}

@media (max-width: 880px) {
  .header-inner,
  .footer-inner,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-left {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nav-menu {
    flex-wrap: wrap;
    gap: 12px 16px;
  }

  .portfolio-grid,
  .services,
  .split {
    grid-template-columns: 1fr;
  }

  .portfolio-card,
  .portfolio-card img {
    min-height: 340px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-menu a,
  .nav-menu a::before,
  .nav-menu a::after,
  .hero-slide {
    animation: none;
    transition: none;
  }

  .nav-menu a:hover {
    animation: none;
    transform: none;
  }

  .hero-slide {
    opacity: 0;
  }

  .hero-slide:first-child {
    opacity: 1;
  }
}
