/*
Theme Name: Devin Allen Photography
Theme URI: https://example.com/devin-allen-photography
Author: OpenAI
Description: A cinematic, fully editable photography portfolio theme with a multi-image hero carousel, portfolio galleries, customizable calls-to-action, and WordPress Customizer support.
Version: 2.0.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: devin-allen-photography
*/

:root {
  --bg: #050505;
  --bg-soft: #0b0b0b;
  --text: #ffffff;
  --muted: #c9c9c9;
  --line: rgba(255,255,255,.22);
  --content: 1180px;
  --header-h: 92px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.site-header {
  position: relative;
  z-index: 30;
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

/* Optional transparent navigation banner. When enabled the header overlays the first visual section. */
body.dap-transparent-header .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: transparent;
  border-bottom-color: transparent;
}
body.admin-bar.dap-transparent-header .site-header { top: 32px; }
body.dap-transparent-header .site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.42), rgba(0,0,0,0));
}

.header-inner {
  width: min(var(--content), calc(100% - 40px));
  min-height: var(--header-h);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.site-branding { flex: 0 0 auto; }
.custom-logo-link img, .bundled-logo { height: var(--dap-logo-height, 58px); max-height: none; width: auto; max-width: 100%; display: block; object-fit: contain; }
.responsive-logo-link { display: inline-flex; align-items: center; line-height: 0; max-width: min(42vw, 420px); }
.responsive-logo-picture { display: block; line-height: 0; }
.responsive-logo { display: block; width: auto; height: var(--dap-logo-height, 58px); max-height: none; max-width: 100%; object-fit: contain; }
.bundled-logo-link { display: inline-flex; align-items: center; }
.text-logo {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  white-space: nowrap;
}
.header-actions { display: flex; align-items: center; gap: 22px; }
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-nav a,
.book-now-btn {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .76rem;
}
.book-now-btn {
  border: 1px solid rgba(255,255,255,.55);
  padding: 12px 18px;
  transition: background .2s ease, color .2s ease;
}
.book-now-btn:hover { background: #fff; color: #000; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; color: #fff; align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger-line { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-book-now-wrap { display: none; }

.hero { position: relative; min-height: var(--dap-hero-height, 67vh); overflow: hidden; background: #111; }
.hero-track { position: relative; min-height: var(--dap-hero-height, 67vh); }
.hero.hero-fullscreen, .hero.hero-fullscreen .hero-track { min-height: 100vh; min-height: 100svh; }
.hero.hero-fullscreen .hero-content { min-height: 100vh; min-height: 100svh; justify-content: center; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity .8s ease;
}
.hero-slide.is-active { opacity: 1; z-index: 2; }
.hero-slide-media {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: var(--dap-desktop-x, 50%) var(--dap-desktop-y, 50%);
  transform: scale(var(--dap-desktop-zoom, 1));
  transform-origin: center center;
  transition: transform .25s ease, background-position .25s ease;
  will-change: transform;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.38) 46%, rgba(0,0,0,.12) 100%);
}
@media (max-width: 1024px) and (min-width: 701px) {
  .hero-slide-media {
    background-position: var(--dap-tablet-x, 50%) var(--dap-tablet-y, 50%);
    transform: scale(var(--dap-tablet-zoom, 1));
  }
}
@media (max-width: 1024px) and (min-width: 701px) {
  .about-image-media { background-position:var(--dap-about-tablet-x,50%) var(--dap-about-tablet-y,50%); transform:scale(var(--dap-about-tablet-zoom,1)); }
}
@media (max-width: 700px) {
  .hero-slide-media {
    background-position: var(--dap-mobile-x, 50%) var(--dap-mobile-y, 50%);
    transform: scale(var(--dap-mobile-zoom, 1));
  }
}
@media (max-width: 700px) {
  .about-image-media { background-position:var(--dap-about-mobile-x,50%) var(--dap-about-mobile-y,50%); transform:scale(var(--dap-about-mobile-zoom,1)); }
}
.hero-content {
  position: relative;
  z-index: 4;
  width: min(var(--content), calc(100% - 40px));
  min-height: 67vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 76px 0;
  pointer-events: none;
}
.hero-content > * { pointer-events: auto; }
.hero-title {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.08;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 500;
}
.hero-subtitle { margin: 22px 0 30px; color: #f2f2f2; letter-spacing: .08em; text-transform: uppercase; }
.outline-btn {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.65);
  padding: 13px 22px;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .75rem;
}
.outline-btn:hover { background: #fff; color: #000; }
.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 7;
  display: flex;
  gap: 8px;
}
.hero-dot { width: 9px; height: 9px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.hero-dot.is-active { background: #fff; }

.hero-scroll-arrow {
  position: absolute; left: 50%; bottom: 24px; z-index: 8; transform: translateX(-50%);
  width: 48px; height: 48px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; opacity: .88; transition: opacity .2s ease, transform .2s ease;
}
.hero-scroll-arrow:hover, .hero-scroll-arrow:focus-visible { opacity: 1; transform: translateX(-50%) translateY(3px); }
.hero-scroll-arrow span {
  display: block; width: 18px; height: 18px; border-right: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(45deg) translate(-2px, -2px); animation: dap-arrow-bob 1.7s ease-in-out infinite;
}
@keyframes dap-arrow-bob { 0%,100% { margin-top: -5px; } 50% { margin-top: 7px; } }
@media (prefers-reduced-motion: reduce) { .hero-scroll-arrow span { animation: none; } }

.section { padding: 70px 0; }
.section-dark { background: #000; }
.section-inner { width: min(var(--content), calc(100% - 40px)); margin: 0 auto; }
.section-heading { text-align: center; margin-bottom: 34px; }
.section-heading h2 { margin: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: .35em; font-weight: 500; }
.section-heading h2::after { content: ""; display: block; width: 34px; height: 1px; background: rgba(255,255,255,.55); margin: 14px auto 0; }

.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.category-card { position: relative; min-height: 340px; background: #151515; overflow: hidden; }
.category-card img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.72); transition: transform .5s ease, filter .5s ease; }
.category-card:hover img { transform: scale(1.04); filter: brightness(.9); }
.category-card-title { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; text-align: center; text-transform: uppercase; letter-spacing: .17em; font-size: .88rem; }
.center-cta { text-align: center; margin-top: 28px; }

.about-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 420px; }
.about-image { position:relative; min-height:420px; background:#151515; overflow:hidden; }
.about-image-media { position:absolute; inset:0; background-repeat:no-repeat; background-size:cover; background-position:var(--dap-about-desktop-x,50%) var(--dap-about-desktop-y,50%); transform:scale(var(--dap-about-desktop-zoom,1)); transform-origin:center center; transition:transform .25s ease,background-position .25s ease; }
.about-copy { background: #030303; padding: clamp(42px, 7vw, 90px); display: flex; flex-direction: column; justify-content: center; }
.about-copy h2, .cta-band h2 { margin: 0 0 18px; text-transform: uppercase; letter-spacing: .28em; font-size: 1rem; font-weight: 500; }
.about-copy p { color: var(--muted); max-width: 470px; margin-bottom: 26px; }

.cta-band { position: relative; min-height: 270px; display: grid; place-items: center; text-align: center; background: #171717 center/cover no-repeat; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.cta-band-inner { position: relative; z-index: 2; width: min(760px, calc(100% - 40px)); }
.cta-band p { color: #ddd; margin-bottom: 24px; }

.site-footer { background: #000; border-top: 1px solid rgba(255,255,255,.08); }
.footer-main { width:min(var(--content),calc(100% - 40px)); margin:0 auto; padding:28px 0; display:flex; justify-content:space-between; align-items:center; gap:28px; }
.footer-logo .custom-logo-link img, .footer-logo .bundled-logo { height: var(--dap-footer-logo-height, 50px); max-height: none; width: auto; }
.footer-icons{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.footer-icon{width:34px;height:34px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.38);border-radius:50%;transition:border-color .2s ease,transform .2s ease,background .2s ease}.footer-icon:hover,.footer-icon:focus-visible{border-color:#fff;background:rgba(255,255,255,.06);transform:translateY(-2px)}.footer-icon svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.footer-icon .dap-icon-fill{fill:#fff;stroke:none}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); text-align: center; color: #aaa; font-size: .78rem; padding: 15px 20px; }

.page-hero { min-height: 36vh; display: grid; place-items: center; text-align: center; background: #111 center/cover no-repeat; position: relative; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.52); }
.page-hero-inner { position: relative; z-index: 2; width: min(900px, calc(100% - 40px)); }
.page-hero h1 { margin: 0; text-transform: uppercase; letter-spacing: .12em; font-size: clamp(2.3rem, 6vw, 4.8rem); font-weight: 500; }

.portfolio-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }
.portfolio-filter button { background: transparent; color: #fff; border: 1px solid var(--line); padding: 9px 14px; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; cursor: pointer; }
.portfolio-filter button.is-active { background: #fff; color: #000; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.portfolio-item { position: relative; overflow: hidden; background: #151515; min-height: 320px; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .45s ease; }
.portfolio-item:hover img { transform: scale(1.03); filter: brightness(.7); }
.portfolio-item-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: end; padding: 22px; background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transition: opacity .3s ease; }
.portfolio-item:hover .portfolio-item-overlay { opacity: 1; }
.portfolio-item-overlay h3 { margin: 0 0 5px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; font-size: .95rem; }
.portfolio-item-overlay span { color: #ddd; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }

.entry-content { width: min(900px, calc(100% - 40px)); margin: 0 auto; padding: 60px 0; }
.entry-content a { text-decoration: underline; }
.single-portfolio-image { margin-bottom: 28px; }

@media (max-width: 980px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card:last-child { grid-column: span 2; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr; text-align: center; }
  .footer-icons { justify-content:center; }
  .menu-toggle { display: inline-flex; }
  .desktop-book-now-btn { display: none; }
  .responsive-logo-link { max-width: min(55vw, 360px); }
  .responsive-logo { height: var(--dap-logo-height-tablet, 52px); max-height: none; }
  .primary-nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: #000; border-top: 1px solid var(--line); display: none; padding-bottom: 20px; }
  body.dap-transparent-header .primary-nav { background: rgba(0,0,0,.96); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { width: min(var(--content), calc(100% - 40px)); margin: 0 auto; padding: 18px 0 12px; flex-direction: column; align-items: flex-start; gap: 14px; }
  .mobile-book-now-wrap { display: block; width: min(var(--content), calc(100% - 40px)); margin: 0 auto; padding-top: 10px; border-top: 1px solid var(--line); }
  .mobile-book-now-btn { display: inline-block; margin-top: 8px; }
}

@media (max-width: 700px) {
  .header-inner { min-height: 76px; }
  :root { --header-h: 76px; }
  .header-actions { gap: 10px; }
  .responsive-logo-link { max-width: 58vw; }
  .responsive-logo { height: var(--dap-logo-height-mobile, 44px); max-height: none; }
  .book-now-btn { padding: 10px 12px; font-size: .68rem; }
  .hero, .hero-track, .hero-content { min-height: var(--dap-hero-height, 67vh); }
  .hero.hero-fullscreen, .hero.hero-fullscreen .hero-track, .hero.hero-fullscreen .hero-content { min-height: 100vh; min-height: 100svh; }
  .hero-title { font-size: clamp(2.3rem, 11vw, 4rem); }
  .hero-subtitle { font-size: .78rem; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card, .category-card:last-child { grid-column: auto; min-height: 300px; }
  .about-split { grid-template-columns: 1fr; }
  .about-image { min-height: 360px; }
  .portfolio-grid { grid-template-columns: 1fr; }
}

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