/*
Theme Name: DLP Headshots
Template: twentytwentyfive
Version: 1.0
Description: Child theme for DLP Headshots – minimal white, matches David Levine Photography.
Author: David Levine
*/

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: rgba(17,17,17,0.65);
  --line: rgba(0,0,0,0.12);
  --footer-space: 34px;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-weight: 300;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Suppress Twenty Twenty-Five chrome ─────────────── */

.wp-site-blocks > header,
.wp-site-blocks > footer,
#masthead, #colophon,
.site-header, .site-footer,
.main-navigation, .nav-primary,
.wp-block-template-part,
.wp-block-site-title,
.wp-block-navigation {
  display: none !important;
}

.wp-site-blocks {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
}

.wp-site-blocks > main {
  padding: 0 !important;
  margin: 0 !important;
}

/* ── Page shell ──────────────────────────────────────── */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#dlp-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #fff;
}

/* ── Header ──────────────────────────────────────────── */

#dlp-header {
  position: relative;
  text-align: center;
  margin-bottom: 0;
  height: auto;
  min-height: 44px;
  z-index: 80;
  flex: 0 0 auto;
  padding-top: 18px;
  padding-bottom: 8px;
}

.dlp-title-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 90;
}

.dlp-masthead-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.dlp-logo-trigger {
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin: 0;
  line-height: 1;
  color: inherit;
  text-decoration: none;
}

.dlp-logo-text-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.dlp-logo {
  font-size: clamp(1.45rem, 2vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  line-height: 1;
  color: rgba(17,17,17,0.92);
  text-transform: uppercase;
  margin: 0;
}

.dlp-menu-icon {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1;
  color: rgba(17,17,17,0.62);
  transition: color 0.2s ease;
  transform: translateY(-1px);
}

.dlp-logo-trigger:hover .dlp-menu-icon,
body.dlp-menu-open .dlp-menu-icon {
  color: rgba(17,17,17,0.92);
}

.dlp-section-name {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 12px;
  font-size: clamp(0.92rem, 1.2vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(17,17,17,0.55);
  line-height: 1;
  white-space: nowrap;
}

/* ── Nav ─────────────────────────────────────────────── */

.dlp-nav {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.08s ease;
  z-index: 100;
  white-space: nowrap;
  padding-top: 6px;
  pointer-events: none;
}

.dlp-title-toggle:hover .dlp-nav,
.dlp-title-toggle:focus-within .dlp-nav,
body.dlp-menu-open .dlp-nav {
  max-height: 420px;
  opacity: 1;
  pointer-events: auto;
}

.dlp-nav > a,
.dlp-nav > .dlp-has-children > a {
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  font-weight: 300;
  color: rgba(17,17,17,0.60);
  transition: color 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.dlp-nav > a:hover,
.dlp-nav > .dlp-has-children > a:hover {
  color: rgba(17,17,17,0.88);
}

/* Dropdowns */

.dlp-has-children {
  position: relative;
}

.dlp-sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
  padding: 10px 0;
  min-width: 180px;
  text-align: center;
  z-index: 200;
}

.dlp-has-children:hover .dlp-sub-menu {
  display: block;
}

.dlp-sub-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 0.82rem;
  color: rgba(17,17,17,0.65);
  letter-spacing: 0.03em;
}

.dlp-sub-menu a:hover {
  color: rgba(17,17,17,0.92);
}

/* ── Backdrop ────────────────────────────────────────── */

#dlp-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  cursor: pointer;
}

body.dlp-menu-open #dlp-backdrop {
  display: block;
}

/* ── Main content ────────────────────────────────────── */

#dlp-content {
  flex: 1;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 var(--footer-space);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Hide stray script output & admin bar overlap ────── */

body > script,
body > .grecaptcha-badge {
  display: none !important;
}

#wpadminbar ~ #dlp-page #dlp-header {
  padding-top: 46px;
}

/* ── Homepage hero images ────────────────────────────── */

.dlp-hero {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  height: clamp(280px, 52vh, 580px);
  margin-top: 16px;
  margin-bottom: 52px;
}

.dlp-hero-tile {
  overflow: hidden;
  display: block;
  position: relative;
}

.dlp-hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease, opacity 0.4s ease;
}

.dlp-hero-tile:hover img {
  transform: scale(1.03);
  opacity: 0.88;
}

/* ── Homepage intro text ─────────────────────────────── */

.dlp-intro {
  width: min(calc(100% - 80px), 720px);
  margin: 0 auto 56px;
  text-align: center;
}

.dlp-intro p {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 1em;
}

.dlp-intro p:last-child {
  margin-bottom: 0;
}

/* ── Session packages ────────────────────────────────── */

.dlp-sessions {
  width: min(calc(100% - 80px), 1100px);
  margin: 0 auto 64px;
}

.dlp-sessions-title {
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin: 0 0 32px;
}

.dlp-sessions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dlp-session-card {
  border: 1px solid var(--line);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dlp-session-name {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(17,17,17,0.92);
  margin: 0;
}

.dlp-session-price {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(17,17,17,0.88);
  margin: 0;
  line-height: 1;
}

.dlp-session-detail {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.dlp-session-card .dlp-session-cta {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(17,17,17,0.40);
  border-top: 1px solid var(--line);
}

/* ── Inner page ──────────────────────────────────────── */

#dlp-content.dlp-inner {
  justify-content: flex-start;
  padding: 10px 0 var(--footer-space);
  align-items: flex-start;
}

.dlp-page-title {
  font-size: clamp(0.82rem, 1vw, 0.94rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
  text-align: center;
  width: 100%;
}

.dlp-page-content {
  width: 100%;
  padding: 0 40px;
}

.dlp-page-content p,
.dlp-page-content li {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
}

.dlp-page-content h2,
.dlp-page-content h3 {
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(0.82rem, 1vw, 0.94rem);
  color: rgba(17,17,17,0.85);
  margin: 32px 0 12px;
}

/* Corporate pricing table */

.dlp-corp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.84rem;
  font-weight: 300;
}

.dlp-corp-table th {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(17,17,17,0.50);
  border-bottom: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
  font-weight: 300;
}

.dlp-corp-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}

.dlp-corp-table td:last-child {
  font-size: 1rem;
  color: rgba(17,17,17,0.88);
  white-space: nowrap;
}

/* ── Envira overrides ────────────────────────────────── */

.envira-gallery-wrap,
.envira-gallery-public,
.envira-gallery-theme-default {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.envira-gallery-item img {
  transition: opacity 0.3s ease !important;
}

.envira-gallery-item:hover img {
  opacity: 0.85 !important;
}

/* ── Footer ──────────────────────────────────────────── */

#dlp-footer {
  text-align: center;
  font-size: 0.74rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(17,17,17,0.30);
  padding: 0 0 20px;
  line-height: 1;
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 1000px) {
  .dlp-sessions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dlp-hero {
    grid-template-columns: repeat(2, 1fr);
    height: clamp(320px, 60vw, 480px);
  }
}

@media (max-width: 640px) {
  .dlp-hero {
    grid-template-columns: repeat(2, 1fr);
    height: clamp(240px, 55vw, 360px);
  }
  .dlp-sessions-grid {
    grid-template-columns: 1fr;
  }
  .dlp-sessions,
  .dlp-intro {
    width: min(calc(100% - 32px), 720px);
  }
  .dlp-page-content {
    padding: 0 20px;
  }
  .dlp-corp-table {
    font-size: 0.76rem;
  }
  #dlp-header { padding-top: 14px; }
  .dlp-logo { font-size: 1.15rem; letter-spacing: 0.08em; }
  .dlp-section-name { font-size: 0.78rem; }
  .dlp-nav {
    flex-direction: column;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.10);
    padding: 14px 20px 18px;
    min-width: 200px;
    text-align: center;
  }
 a.show-reel-name {
  color: rgba(17,17,17,0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(17,17,17,0.20);
  transition: border-color 0.2s ease;
}

a.show-reel-name:hover {
  border-bottom-color: rgba(17,17,17,0.70);
}
}