/*
Theme Name: Luna Vows
Theme URI: https://example.com/luna-vows
Author: Codex
Author URI: https://example.com
Description: Elegant wedding photography WordPress theme inspired by refined editorial photography sites. Includes hero, galleries, portfolio, client proofing, pricing, testimonials, blog, and contact sections.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: luna-vows
Tags: photography, portfolio, wedding, custom-logo, featured-images, block-styles, threaded-comments
*/

:root {
  --lv-ink: #23201d;
  --lv-muted: #746e67;
  --lv-cream: #f8f3ec;
  --lv-paper: #fffdf9;
  --lv-sage: #8c9a82;
  --lv-moss: #5d6e55;
  --lv-clay: #c89f86;
  --lv-line: rgba(35, 32, 29, 0.13);
  --lv-shadow: 0 22px 70px rgba(35, 32, 29, 0.13);
  --lv-serif: "Cormorant Garamond", Georgia, serif;
  --lv-sans: "Montserrat", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--lv-paper);
  color: var(--lv-ink);
  font-family: var(--lv-sans);
  font-size: 16px;
  line-height: 1.72;
}

body.admin-bar .site-header {
  top: 32px;
}

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

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, 0.88);
  border-bottom: 1px solid var(--lv-line);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 84px;
  margin: 0 auto;
  gap: 22px;
}

.site-branding {
  text-align: center;
}

.site-title {
  margin: 0;
  font-family: var(--lv-serif);
  font-size: 31px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}

.site-description {
  margin: 7px 0 0;
  color: var(--lv-muted);
  font-size: 10px;
  letter-spacing: 0.24em;
  line-height: 1.2;
  text-transform: uppercase;
}

.primary-menu,
.footer-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu a,
.footer-menu a {
  color: var(--lv-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.primary-menu a:hover,
.footer-menu a:hover {
  color: var(--lv-ink);
}

.header-action {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--lv-line);
  background: transparent;
  color: var(--lv-ink);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  content: "";
}

.lv-button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 24px;
  border: 1px solid var(--lv-ink);
  border-radius: 0;
  background: var(--lv-ink);
  color: #fff;
  font-family: var(--lv-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.lv-button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  background: transparent;
  color: var(--lv-ink);
  transform: translateY(-1px);
}

.lv-button.is-light {
  border-color: #fff;
  background: #fff;
  color: var(--lv-ink);
}

.lv-button.is-ghost {
  background: transparent;
  color: var(--lv-ink);
}

.lv-button.is-ghost:hover {
  background: var(--lv-ink);
  color: #fff;
}

.lv-section {
  padding: 104px 0;
}

.lv-section.is-tinted {
  background: var(--lv-cream);
}

.lv-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.lv-kicker {
  margin: 0 0 13px;
  color: var(--lv-moss);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.3;
  text-transform: uppercase;
}

.lv-title {
  margin: 0;
  font-family: var(--lv-serif);
  font-size: clamp(42px, 6vw, 88px);
  font-weight: 400;
  line-height: 0.98;
}

.lv-title.small {
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 1.02;
}

.lv-copy {
  color: var(--lv-muted);
  font-size: 15px;
}

.lv-hero {
  position: relative;
  min-height: calc(100vh - 84px);
  display: grid;
  place-items: end start;
  overflow: hidden;
  background: #161412;
  color: #fff;
}

.lv-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.lv-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 14, 12, 0.72), rgba(17, 14, 12, 0.15) 58%, rgba(17, 14, 12, 0.2));
  content: "";
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 12vh;
}

.hero-content .lv-kicker,
.hero-content .lv-copy {
  color: rgba(255, 255, 255, 0.82);
}

.hero-content .lv-copy {
  width: min(560px, 100%);
  margin: 24px 0 34px;
  font-size: 17px;
}

.hero-count {
  position: absolute;
  right: 38px;
  bottom: 34px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--lv-serif);
  font-size: 44px;
}

.lv-split {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 7vw, 92px);
}

.image-stack {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 18px;
  align-items: end;
}

.image-stack img:first-child {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.image-stack img:last-child {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-bottom: 56px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.portfolio-card {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  background: #ddd7ce;
}

.portfolio-card:nth-child(1),
.portfolio-card:nth-child(4) {
  grid-column: span 7;
}

.portfolio-card:nth-child(2),
.portfolio-card:nth-child(3) {
  grid-column: span 5;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 500ms ease;
}

.portfolio-card:hover img {
  transform: scale(1.045);
}

.portfolio-card__caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 22px;
  background: rgba(255, 253, 249, 0.9);
}

.portfolio-card__caption h3 {
  margin: 0 0 4px;
  font-family: var(--lv-serif);
  font-size: 31px;
  font-weight: 400;
  line-height: 1.05;
}

.portfolio-card__caption span {
  color: var(--lv-muted);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.service-grid,
.testimonial-grid,
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card,
.testimonial-card,
.post-card {
  border: 1px solid var(--lv-line);
  background: var(--lv-paper);
}

.service-card {
  padding: 34px;
}

.service-card h3,
.testimonial-card h3,
.post-card h2,
.post-card h3 {
  margin: 0;
  font-family: var(--lv-serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.05;
}

.price {
  margin: 22px 0;
  color: var(--lv-moss);
  font-family: var(--lv-serif);
  font-size: 38px;
}

.service-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  color: var(--lv-muted);
  list-style: none;
}

.service-card li::before {
  margin-right: 9px;
  color: var(--lv-clay);
  content: "/";
}

.testimonial-card {
  padding: 32px;
}

.testimonial-card blockquote {
  margin: 0;
  color: var(--lv-muted);
  font-family: var(--lv-serif);
  font-size: 28px;
  line-height: 1.22;
}

.testimonial-card cite {
  display: block;
  margin-top: 24px;
  color: var(--lv-ink);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.proofing-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.76fr);
  align-items: center;
  gap: 64px;
  padding: 56px;
  background: var(--lv-moss);
  color: #fff;
}

.proofing-band .lv-copy,
.proofing-band .lv-kicker {
  color: rgba(255, 255, 255, 0.78);
}

.proofing-band img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.journal-grid {
  align-items: start;
}

.post-card img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.post-card__body {
  padding: 26px;
}

.post-card time,
.entry-meta {
  color: var(--lv-muted);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-main {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0 110px;
}

.entry-header {
  margin-bottom: 34px;
  text-align: center;
}

.entry-title {
  margin: 0;
  font-family: var(--lv-serif);
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 400;
  line-height: 1.02;
}

.entry-content a {
  color: var(--lv-moss);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.entry-content img {
  margin: 28px 0;
}

.gallery-masonry {
  column-count: 3;
  column-gap: 20px;
}

.gallery-masonry img,
.gallery-masonry .portfolio-card {
  break-inside: avoid;
  margin-bottom: 20px;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--lv-line);
  border-radius: 0;
  background: #fff;
  color: var(--lv-ink);
  font: inherit;
}

textarea {
  min-height: 150px;
}

label {
  display: block;
  margin-bottom: 16px;
  color: var(--lv-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 44px;
  padding: 44px;
  border: 1px solid var(--lv-line);
  background: var(--lv-cream);
}

.site-footer {
  background: #191613;
  color: #fff;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-title {
  margin: 0;
  font-family: var(--lv-serif);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.02;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 30px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.68);
}

.pagination,
.nav-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 44px;
}

.page-numbers,
.nav-links a,
.nav-links span {
  padding: 9px 14px;
  border: 1px solid var(--lv-line);
}

.current {
  background: var(--lv-ink);
  color: #fff;
}

@media (max-width: 920px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .site-branding {
    text-align: left;
  }

  .nav-toggle {
    display: block;
  }

  .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 20px;
    background: var(--lv-paper);
    border-bottom: 1px solid var(--lv-line);
  }

  .main-navigation.is-open {
    display: block;
  }

  .primary-menu {
    display: grid;
    gap: 16px;
  }

  .header-action .lv-button {
    display: none;
  }

  .lv-split,
  .proofing-band,
  .contact-panel,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .portfolio-card,
  .portfolio-card:nth-child(1),
  .portfolio-card:nth-child(2),
  .portfolio-card:nth-child(3),
  .portfolio-card:nth-child(4),
  .service-grid,
  .testimonial-grid,
  .journal-grid {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .gallery-masonry {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  body.admin-bar .site-header {
    top: 0;
  }

  .header-inner {
    min-height: 72px;
  }

  .site-title {
    font-size: 25px;
  }

  .site-description {
    display: none;
  }

  .lv-section {
    padding: 72px 0;
  }

  .lv-hero {
    min-height: 720px;
  }

  .hero-content {
    padding-bottom: 88px;
  }

  .hero-count {
    right: 18px;
    bottom: 18px;
    font-size: 34px;
  }

  .image-stack {
    grid-template-columns: 1fr;
  }

  .image-stack img:last-child {
    margin-bottom: 0;
  }

  .portfolio-grid,
  .service-grid,
  .testimonial-grid,
  .journal-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .portfolio-card {
    min-height: 360px;
  }

  .proofing-band,
  .contact-panel {
    padding: 28px;
  }

  .gallery-masonry {
    column-count: 1;
  }

  .footer-bottom,
  .footer-menu {
    flex-direction: column;
    align-items: flex-start;
  }
}
